/* ============ ASDB Island — styles ============ */
/* Black + athletic gold, mimicking athletestrategydefensiveback.com */

:root {
  --bg: #000000;
  --bg-2: #0a0a0a;
  --surface: #111111;
  --surface-2: #1a1a1a;
  --line: #2a2a2a;
  --gold: #F5B823;
  --gold-bright: #FFC425;
  --gold-dim: #a8861c;
  --orange: #ff6a3d;
  --white: #ffffff;
  --text: #c9c9c9;
  --muted: #8a8a8a;
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 60% 40% at 85% -5%, rgba(245, 184, 35, 0.10), transparent),
    radial-gradient(ellipse 50% 35% at 8% 105%, rgba(245, 184, 35, 0.05), transparent);
}

img { display: block; max-width: 100%; height: auto; }

[hidden] { display: none !important; }

button { cursor: pointer; background: none; border: none; color: inherit; font: inherit; }
input, select, textarea { font: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ============ SPLASH ============ */
.splash {
  position: fixed; inset: 0; z-index: 300;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.splash.leave { opacity: 0; visibility: hidden; }
.splash-glow {
  position: absolute; width: 65vw; height: 65vw; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
}
.glow-a { top: -30vw; left: -20vw; background: radial-gradient(circle, rgba(245, 184, 35, 0.22), transparent 60%); }
.glow-b { bottom: -35vw; right: -15vw; background: radial-gradient(circle, rgba(245, 184, 35, 0.12), transparent 60%); }
.splash-inner {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 22px; padding: 24px; text-align: center; max-width: 620px;
}
.splash-logo {
  width: min(200px, 42vw); height: auto; border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(245, 184, 35, 0.25), 0 0 60px rgba(245, 184, 35, 0.22);
  animation: pulse 3.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
.splash-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7.5vw, 74px);
  font-weight: 400; line-height: 0.95; letter-spacing: 0.04em;
  color: var(--white);
}
.splash-creds {
  font-size: 13px; font-weight: 700; letter-spacing: 0.28em;
  color: var(--gold); text-transform: uppercase;
}
.splash-enter {
  font-family: var(--font-body);
  font-size: 15px; font-weight: 800; letter-spacing: 0.22em;
  padding: 16px 52px; border-radius: 10px;
  color: #0d0a04;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 0 42px rgba(245, 184, 35, 0.5);
  transition: transform 0.15s, box-shadow 0.15s;
}
.splash-enter:hover { transform: scale(1.04); box-shadow: 0 0 0 2px var(--white), 0 0 64px rgba(245, 184, 35, 0.75); }
.splash-enter:active { transform: scale(0.98); }
.splash-tag {
  font-size: 12px; font-weight: 700; letter-spacing: 0.3em; color: var(--muted);
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 36px; height: 36px; border-radius: 50%; }
.brand-text {
  font-family: var(--font-display); font-size: 19px; letter-spacing: 0.08em;
  color: var(--white); line-height: 1.05;
}
.brand-text small {
  display: block; font-family: var(--font-body); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold);
}
.footer .brand-text small { color: var(--muted); }

.topnav { display: flex; gap: 4px; flex-wrap: wrap; }
.topnav button {
  padding: 8px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: var(--text); transition: background 0.15s, color 0.15s;
}
.topnav button:hover { color: var(--white); background: var(--surface-2); }
.topnav button.active { color: #0d0a04; background: var(--gold); font-weight: 800; }

/* ---------- views ---------- */
main { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 60px; }
.view { display: none; padding-top: 36px; }
.view.active { display: block; animation: rise 0.35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.view-head { margin-bottom: 28px; }
.view-head h1 { font-family: var(--font-display); font-size: clamp(34px, 5.5vw, 54px); line-height: 1; letter-spacing: 0.02em; }
.view-sub { color: var(--text); margin-top: 10px; max-width: 640px; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px;
  font-weight: 800; font-size: 13.5px; letter-spacing: 0.06em; text-transform: uppercase;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #0d0a04; box-shadow: 0 0 22px rgba(245, 184, 35, 0.28);
}
.btn-gold:hover { box-shadow: 0 4px 34px rgba(245, 184, 35, 0.55); }
.btn-ghost { border: 1px solid var(--line); color: var(--white); background: var(--surface); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 8px 14px; font-size: 12px; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--white);
  transition: border-color 0.15s;
}
.icon-btn:hover { border-color: var(--gold); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero {
  position: relative; border-radius: 20px; overflow: hidden;
  margin-top: 8px; border: 1px solid var(--line);
  max-height: 520px;
}
.hero img { width: 100%; height: 520px; object-fit: cover; filter: saturate(0.85) contrast(1.05); }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.15) 100%);
}
.hero-content {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(20px, 5vw, 64px); max-width: 660px;
}
.hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(46px, 7vw, 80px); line-height: 0.92; letter-spacing: 0.02em;
}
.gold { color: var(--gold); }
.hero-sub { color: var(--text); font-size: 16px; max-width: 470px; margin: 18px 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- sections ---------- */
.section { margin-top: 56px; }
.section-head { margin-bottom: 24px; }
.section-head h2, .detail-section h2 {
  font-family: var(--font-display); font-size: clamp(26px, 3.5vw, 38px); line-height: 1.02; letter-spacing: 0.02em;
}
.section-head p { color: var(--text); margin-top: 8px; max-width: 560px; }

/* ---------- pillar grid (TRAIN/STUDY/COMPETE/SEPARATE) ---------- */
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pillar-card {
  position: relative; text-align: left; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.pillar-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent 80%);
  opacity: 0; transition: opacity 0.18s;
}
.pillar-card:hover { transform: translateY(-3px); border-color: var(--gold-dim); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); }
.pillar-card:hover::before { opacity: 1; }
.pillar-num {
  font-family: var(--font-display); font-size: 15px; color: var(--gold); letter-spacing: 0.1em;
}
.pillar-name {
  font-family: var(--font-display); font-size: 30px; letter-spacing: 0.05em; color: var(--white);
}
.pillar-desc { color: var(--text); font-size: 13px; line-height: 1.5; }

/* ---------- split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split-media img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; height: 340px; object-fit: cover; filter: saturate(0.85); }
.split-body h2 { font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 38px); line-height: 1; letter-spacing: 0.02em; }
.split-body p { color: var(--text); margin: 16px 0 22px; }
.split-body .hero-cta { margin-top: 2px; }

.coach-band {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 48px);
  margin-top: 56px;
}
.coach-band .split-media img { height: 300px; }

/* ---------- signup form ---------- */
.signup { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.signup input {
  flex: 1; min-width: 220px; padding: 13px 16px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--white);
  outline: none; transition: border-color 0.15s;
}
.signup input:focus { border-color: var(--gold); }
.consent { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* ---------- filters ---------- */
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  padding: 8px 15px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  transition: all 0.15s;
}
.chip:hover { color: var(--white); border-color: var(--gold-dim); }
.chip.active { background: var(--gold); color: #0d0a04; border-color: var(--gold); font-weight: 800; }

/* ---------- drill grid ---------- */
.drill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.drill-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.drill-card:hover, .drill-card:focus-visible {
  transform: translateY(-3px); border-color: var(--gold-dim);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); outline: none;
}
.drill-thumb {
  height: 130px; border-radius: 8px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-direction: column;
}
.drill-thumb[data-cat="footwork"], .drill-thumb[data-cat="fund"] {
  background: repeating-linear-gradient(0deg, var(--surface-2) 0 24px, var(--bg-2) 24px 48px);
}
.drill-thumb[data-cat="man"], .drill-thumb[data-cat="sit"] {
  background: repeating-linear-gradient(90deg, var(--surface-2) 0 24px, var(--bg-2) 24px 48px);
}
.drill-thumb[data-cat="zone"] { background: repeating-linear-gradient(45deg, var(--surface-2) 0 24px, var(--bg-2) 24px 48px); }
.drill-thumb[data-cat="ball"] {
  background: radial-gradient(circle at 60% 40%, rgba(245, 184, 35, 0.14), var(--bg-2) 70%);
}
.drill-thumb::after {
  content: ''; position: absolute; inset: 12px; border: 2px dashed var(--line); border-radius: 6px;
}
.drill-step-count {
  position: absolute; top: 8px; right: 8px; z-index: 1;
  font-size: 11px; font-weight: 700; color: var(--gold); background: rgba(0, 0, 0, 0.8);
  padding: 3px 8px; border-radius: 999px; letter-spacing: 0.04em;
}
.fund-num {
  font-family: var(--font-display); font-size: 46px; color: var(--gold);
  line-height: 1; position: relative; z-index: 1;
}
.sit-cov { font-family: var(--font-display); font-size: 19px; line-height: 1.1; color: var(--white); position: relative; z-index: 1; text-align: center; padding: 0 10px; letter-spacing: 0.03em; }
.sit-vs { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); position: relative; z-index: 1; }
.drill-name { font-family: var(--font-display); font-size: 20px; letter-spacing: 0.03em; }
.drill-desc { color: var(--text); font-size: 13.5px; flex: 1; }
.drill-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line);
}
.tag.hs { color: var(--white); }
.tag.college { color: var(--gold); border-color: rgba(245, 184, 35, 0.4); }
.tag.cat { color: var(--orange); border-color: rgba(255, 106, 61, 0.4); }
.link-chip {
  font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  transition: all 0.15s;
}
.link-chip:hover { color: var(--gold); border-color: var(--gold-dim); }
.more { font-size: 12px; color: var(--muted); }

/* ---------- level cards ---------- */
.level-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.level-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
}
.level-card h3 { font-family: var(--font-display); font-size: 24px; letter-spacing: 0.03em; }
.level-desc { color: var(--text); font-size: 13.5px; }

/* ---------- detail views ---------- */
.detail-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.detail-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge-chip {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--line); color: var(--text);
}
.badge-chip.gold { color: var(--gold); border-color: rgba(245, 184, 35, 0.4); }
.detail-title { font-family: var(--font-display); font-size: clamp(30px, 4.5vw, 48px); line-height: 1; letter-spacing: 0.02em; }
.detail-focus { color: var(--text); font-size: 16px; margin: 12px 0 24px; max-width: 700px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.detail-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.detail-box.wide { grid-column: 1 / -1; }
.detail-box h3, .eval-group h3 { font-family: var(--font-display); font-size: 18px; margin-bottom: 8px; color: var(--gold); letter-spacing: 0.04em; }
.detail-box p, .detail-box li { color: var(--text); font-size: 14.5px; }
.detail-section { margin-top: 48px; }
.detail-section .view-sub { margin-bottom: 20px; }
.detail-section .drill-grid { margin-top: 20px; }

/* ---------- demo layout: stage + panel ---------- */
.demo-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; align-items: start; }
.stage { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.stage canvas { width: 100%; height: auto; display: block; }
.stage .drill-video { width: 100%; height: auto; display: block; background: #000; }

/* video-backed drill panel (static coaching cues) */
.demo-step.static { cursor: default; align-items: flex-start; }
.demo-step.static:hover { background: none; }
.demo-step-text { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 2px; }

.demo-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 14px;
  min-height: 420px;
}
.demo-controls { display: flex; align-items: center; gap: 10px; }
.demo-speed { display: flex; gap: 4px; }
.demo-speed button {
  font-size: 12px; font-weight: 700; padding: 7px 10px; border-radius: 999px;
  background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); transition: all 0.15s;
}
.demo-speed button.active { background: var(--gold); color: #0d0a04; border-color: var(--gold); }
.demo-progress { flex: 1; height: 5px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.demo-progress-fill { height: 100%; width: 0%; background: var(--gold); transition: width 0.2s linear; border-radius: 999px; }

.demo-steps { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
.demo-step {
  display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 8px 10px; border-radius: 8px; border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.demo-step:hover { background: var(--surface-2); }
.demo-step.active { background: var(--surface-2); border-color: var(--gold-dim); }
.demo-step-num {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2); color: var(--muted); font-size: 11px; font-weight: 700;
}
.demo-step.active .demo-step-num { background: var(--gold); color: #0d0a04; }
.demo-step-label { font-size: 13px; font-weight: 600; color: var(--text); }
.demo-step.active .demo-step-label { color: var(--white); }

.demo-caption {
  margin-top: auto; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 14px;
}
.demo-caption-title { font-family: var(--font-display); font-size: 17px; color: var(--gold); margin-bottom: 6px; letter-spacing: 0.04em; }
.demo-caption-text { font-size: 13.5px; color: var(--text); line-height: 1.55; }

/* ---------- situation breakdown ---------- */
.breakdown { list-style: none; display: flex; flex-direction: column; gap: 12px; max-width: 820px; counter-reset: step; }
.breakdown li {
  position: relative; padding: 16px 18px 16px 58px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); font-size: 14.5px; counter-increment: step;
}
.breakdown li::before {
  content: counter(step); position: absolute; left: 16px; top: 14px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold); color: #0d0a04; font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.breakdown b, .breakdown strong { color: var(--white); }

/* ---------- quiz ---------- */
.quiz-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(20px, 4vw, 44px); max-width: 760px;
}
.quiz-progress { display: flex; gap: 6px; margin-bottom: 22px; }
.quiz-progress-dot { height: 6px; flex: 1; border-radius: 999px; background: var(--surface-2); }
.quiz-progress-dot.done { background: var(--gold-dim); }
.quiz-progress-dot.current { background: var(--gold); }
.quiz-q { font-size: 12px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.quiz-question { font-family: var(--font-display); font-size: clamp(21px, 3vw, 28px); line-height: 1.15; margin-bottom: 22px; letter-spacing: 0.02em; }
.quiz-answers { display: flex; flex-direction: column; gap: 10px; }
.quiz-answer {
  text-align: left; padding: 14px 18px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line); font-size: 15px; font-weight: 500;
  transition: border-color 0.15s, background 0.15s, opacity 0.15s;
}
.quiz-answer:hover { border-color: var(--gold-dim); }
.quiz-answer.correct { border-color: var(--gold); background: rgba(245, 184, 35, 0.08); }
.quiz-answer.wrong { border-color: var(--orange); background: rgba(255, 106, 61, 0.08); }
.quiz-answer.dim { opacity: 0.45; }
.quiz-feedback {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); font-size: 14px;
  border-left: 3px solid var(--gold); background: rgba(245, 184, 35, 0.05); color: var(--text);
  animation: rise 0.3s ease both;
}
.quiz-feedback.bad { border-left-color: var(--orange); background: rgba(255, 106, 61, 0.05); }
.quiz-card .btn { margin-top: 18px; }
.score-row { display: flex; align-items: center; gap: 24px; margin: 8px 0 4px; }
.score-num { font-family: var(--font-display); font-size: 68px; color: var(--gold); line-height: 1; }
.score-num span { font-size: 30px; color: var(--muted); }
.score-msg { color: var(--text); font-size: 16px; max-width: 420px; }

/* ---------- blog ---------- */
.write-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(18px, 3.5vw, 34px); margin-bottom: 32px;
}
.write-card h2 { font-family: var(--font-display); font-size: 26px; letter-spacing: 0.04em; margin-bottom: 18px; }
.write-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.write-card input[type="text"], .write-card select, .write-card textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--white);
  outline: none; transition: border-color 0.15s; resize: vertical;
}
.write-card input[type="text"], .write-card select { flex: 1; min-width: 200px; width: auto; }
.write-card input:focus, .write-card select:focus, .write-card textarea:focus { border-color: var(--gold); }
.file-name { font-size: 12.5px; color: var(--muted); }
.file-btn { position: relative; overflow: hidden; }

.blog-list { display: flex; flex-direction: column; gap: 12px; }
.post-card {
  display: flex; gap: 18px; align-items: center; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; transition: border-color 0.18s, transform 0.18s;
}
.post-card:hover { border-color: var(--gold-dim); transform: translateX(4px); }
.post-card-side { flex: none; }
.post-card-main { flex: 1; min-width: 0; }
.post-card-title { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.03em; margin-bottom: 4px; }
.post-card-excerpt { color: var(--text); font-size: 13.5px; margin-bottom: 6px; }
.post-card-meta { font-size: 12px; color: var(--muted); }
.post-arrow { font-size: 20px; color: var(--gold); flex: none; }

.post-date { color: var(--muted); font-size: 13.5px; margin: 8px 0 20px; }
.post-cover { border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 20px; max-height: 420px; object-fit: cover; width: 100%; }
.post-body { max-width: 760px; }
.post-body p { color: var(--text); font-size: 16px; line-height: 1.7; margin-bottom: 18px; }
.post-actions { display: flex; gap: 10px; margin-top: 28px; }

/* ---------- media library ---------- */
.media-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.media-actions .spacer { flex: 1; }
.storage-note { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.storage-note.warn { color: var(--orange); }

.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.media-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin: 0;
}
.media-card img, .media-card video {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-2); display: block;
}
.play-badge {
  position: absolute; top: 26%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.65); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 17px; padding-left: 4px;
  border: 2px solid rgba(245, 184, 35, 0.6); pointer-events: none;
}
.media-card figcaption {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
}
.media-name { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-meta { font-size: 11px; color: var(--muted); }
.media-open {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(245, 184, 35, 0.4); border-radius: 999px;
  padding: 4px 10px; transition: background 0.15s;
}
.media-open:hover { background: rgba(245, 184, 35, 0.12); }
.media-del {
  width: 24px; height: 24px; border-radius: 50%; color: var(--muted);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  transition: color 0.15s, background 0.15s; flex: none;
}
.media-del:hover { color: var(--orange); background: rgba(255, 106, 61, 0.12); }

.media-empty {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px;
  border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted);
}
.media-empty p:first-child { color: var(--white); font-size: 16px; font-weight: 600; margin-bottom: 6px; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(0, 0, 0, 0.92);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lightbox-close {
  position: absolute; top: 16px; right: 20px; z-index: 2;
  font-size: 34px; color: var(--white); width: 46px; height: 46px; border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.1); color: var(--gold); }
.lightbox-body { max-width: min(1000px, 94vw); max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox-body img, .lightbox-body video { max-width: 100%; max-height: 82vh; border-radius: var(--radius); border: 1px solid var(--line); }
.lightbox-name { color: var(--muted); font-size: 13px; }

/* ---------- development ---------- */
.eval-card {
  margin-top: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(20px, 4vw, 40px);
}
.eval-card h2 { font-family: var(--font-display); font-size: 28px; letter-spacing: 0.04em; }
.eval-card .view-sub { margin: 8px 0 24px; }
.eval-groups { display: flex; flex-direction: column; gap: 22px; margin-bottom: 24px; }
.eval-group h3 { font-size: 16px; }
.check-row {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px;
  border-radius: 8px; cursor: pointer; transition: background 0.15s;
}
.check-row:hover { background: var(--surface-2); }
.check-row input {
  width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); cursor: pointer; flex: none;
}
.check-row span { font-size: 14.5px; color: var(--text); }
.eval-result { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 24px; }
.eval-result h3 { font-family: var(--font-display); font-size: 24px; margin-bottom: 12px; letter-spacing: 0.03em; }
.eval-result h4 {
  font-size: 12px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin: 22px 0 14px;
}
.eval-verdict { color: var(--text); }
.eval-verdict b { color: var(--gold); }
.eval-verdict.good { color: var(--gold); }
.eval-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.eval-result .drill-grid { grid-template-columns: repeat(2, 1fr); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner {
  max-width: 1160px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 40px) 40px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.footer-inner p { color: var(--muted); font-size: 13px; }
.footer-inner a { color: var(--gold-dim); font-size: 13px; text-decoration: none; }
.footer-inner a:hover { color: var(--gold); }
.fine { width: 100%; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 80px);
  background: var(--gold); color: #0d0a04; font-weight: 700; font-size: 14px;
  padding: 12px 22px; border-radius: 999px; z-index: 400;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); pointer-events: none;
  max-width: calc(100vw - 40px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .drill-grid, .level-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .coach-band { grid-template-columns: 1fr; }
  .split-media img { height: 240px; }
  .demo-layout { grid-template-columns: 1fr; }
  .demo-panel { min-height: 0; }
  .demo-steps { max-height: 180px; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .pillar-grid, .drill-grid, .level-grid, .media-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .eval-result .drill-grid { grid-template-columns: 1fr; }
  .hero { max-height: none; }
  .hero img { height: 500px; }
  .hero-content { padding: 0 20px; }
  .hero-title { font-size: 44px; }
  .hero-sub { font-size: 15px; margin: 14px 0 20px; }
  .score-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .topbar { gap: 10px; padding: 10px 16px; }
  .topnav {
    gap: 0; flex-wrap: nowrap; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    justify-content: flex-start; flex: 1; min-width: 0;
  }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav button { padding: 7px 10px; font-size: 12.5px; flex: none; }
  .brand-text { font-size: 17px; }
  .quiz-card .btn, .signup .btn { width: 100%; }
  .write-card input[type="text"], .write-card select { min-width: 100%; }
  .post-card { padding: 14px 16px; gap: 12px; }
  .post-arrow { display: none; }
  .media-actions .spacer { display: none; }
}
