/* ============================================================================
   tr3dio · The Home of Local Sports Content
   Design System  —  premium, cinematic, content-first streaming aesthetic
   ----------------------------------------------------------------------------
   Theme:  near-black base · electric-blue primary (trust) · warm-gold premium
   Inspiration: Apple TV+ · Netflix · MLB.TV · ESPN · YouTube
   ========================================================================== */

/* ---- Tokens --------------------------------------------------------------- */
:root {
  --bg:        #08090c;
  --bg-2:      #0c0e13;
  --panel:     #13161d;
  --panel-2:   #1a1e27;
  --panel-3:   #232934;
  --line:      rgba(255,255,255,.07);
  --line-2:    rgba(255,255,255,.13);

  --ink:       #eef1f6;
  --ink-dim:   #98a1b0;
  --ink-faint: #616a7a;

  --blue:      #2f8bff;
  --blue-2:    #5aa9ff;
  --blue-deep: #1768d8;
  --blue-glow: rgba(47,139,255,.50);
  --gold:      #e9b85f;
  --gold-2:    #f4d188;
  --gold-deep: #b3823a;
  --live:      #ff3b46;
  --green:     #36d399;

  --font-display: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius:    10px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  --shadow:    0 18px 50px -12px rgba(0,0,0,.7);
  --shadow-lg: 0 40px 90px -20px rgba(0,0,0,.85);
  --shadow-blue: 0 14px 40px -10px var(--blue-glow);

  --ease: cubic-bezier(.22,.61,.36,1);
  --nav-h: 68px;
  --maxw: 1680px;
  --gutter: clamp(18px, 4vw, 64px);
}

/* ---- Reset / base --------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before { /* ambient vertical wash */
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 78% -8%, rgba(47,139,255,.10), transparent 60%),
    radial-gradient(900px 600px at 0% 4%, rgba(47,139,255,.06), transparent 55%),
    linear-gradient(180deg, #0a0c11 0%, var(--bg) 38%);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; margin: 0; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }

/* scrollbars */
.rail-track::-webkit-scrollbar, .scroll-x::-webkit-scrollbar { height: 0; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #20242d; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---- Layout --------------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.page { padding-bottom: 80px; }
.section { margin-top: clamp(34px, 4vw, 56px); }
.eyebrow {
  font: 600 12px/1 var(--font-sans); letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue-2); display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before { content:""; width: 22px; height: 2px; background: var(--blue); border-radius: 2px; }

/* ---- Header / Nav --------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; gap: 26px; padding-inline: var(--gutter);
  transition: background .35s var(--ease), border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: rgba(8,9,12,.82); backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--line);
}
.nav__logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; padding: 9px 0; }
.nav__logo img { height: 26px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; padding: 9px 13px; border-radius: 9px; font-size: 14px; font-weight: 500;
  color: var(--ink-dim); transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after {
  content:""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px;
  background: var(--blue); border-radius: 2px;
}
.nav__spacer { flex: 1; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__search {
  display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-dim); width: 230px; transition: width .3s var(--ease), border-color .2s, background .2s;
}
.nav__search:hover, .nav__search:focus-within { border-color: var(--line-2); background: rgba(255,255,255,.09); width: 300px; }
.nav__search input { background: none; border: none; color: var(--ink); font-size: 14px; width: 100%; outline: none; }
.nav__search input::placeholder { color: var(--ink-faint); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--blue-deep), #6a3df0);
  display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff;
  border: 1px solid rgba(255,255,255,.18); cursor: pointer;
}
.nav__burger.iconbtn { display: none; }   /* two classes: must outrank .iconbtn's display:grid below */

/* mega dropdown for Sports */
.has-menu { position: relative; }
.megamenu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: 540px; background: rgba(15,17,23,.96); backdrop-filter: blur(20px);
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: 14px;
  box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  opacity: 0; visibility: hidden; transition: .25s var(--ease); z-index: 120;
}
.has-menu:hover .megamenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.megamenu a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
  color: var(--ink-dim); transition: .18s;
}
.megamenu a:hover { background: rgba(255,255,255,.06); color: var(--ink); }
.megamenu .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 17px; background: rgba(47,139,255,.13); }
.megamenu .ic--img { background: rgba(255,255,255,.09); padding: 4px; }
.megamenu .ic--img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.megamenu small { display: block; color: var(--ink-faint); font-size: 12px; }

/* Dark-dominant crest art (black logotypes) needs a light plate to read on
   the dark theme — opt-in per program via lightChip in the roster. */
.crestchip { background: #f2f4f7; border-radius: 14px; padding: 9%; box-sizing: border-box;
  display: grid; place-items: center; }
/* Organization crest on a card: centred in the thumb, not pinned by the
   card's absolute-fill image rule. */
.orgcrest { position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important;
  object-fit: contain !important; opacity: 1 !important;
  padding: 8%; box-sizing: border-box; }
.crestchip img { width: 100%; height: 100%; object-fit: contain; opacity: 1; }   /* chip art is never a lazy card photo */
.tlogo--chip { background: #f2f4f7; border-radius: 12px; padding: 7px; box-sizing: border-box; }
.ic--img.tlogo--chip { padding: 4px; border-radius: 8px; }

/* ---- Quick Find strip (persistent, under the nav) ------------------------ */
.quickfind { background: var(--bg-2); border-bottom: 1px solid var(--line); position: relative; z-index: 40; margin-top: var(--nav-h); }
.quickfind__row { display: flex; gap: 10px; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.quickfind__row::-webkit-scrollbar { display: none; }
.qf { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
      border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel);
      color: var(--ink); font-size: 13.5px; font-weight: 600; transition: border-color .18s var(--ease), background .18s var(--ease); }
.qf:hover { border-color: var(--blue); background: var(--panel-2); }
.qf--live { border-color: rgba(255,59,70,.45); }
.qf--live:hover { border-color: var(--live); }

/* ---- Home sports filter strip --------------------------------------------- */
.sportstrip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 26px 0 4px; }
.sportstrip .chip { text-decoration: none; }
.sportstrip__label { color: var(--ink-faint); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-right: 4px; }
@media (max-width: 640px) {
  .sportstrip { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .sportstrip::-webkit-scrollbar { display: none; }
  .sportstrip .chip { flex: 0 0 auto; }
}

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  transition: transform .18s var(--ease), background .2s, box-shadow .25s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn--primary:hover { background: var(--blue-2); box-shadow: 0 16px 46px -8px var(--blue-glow); }
.btn--glass { background: rgba(255,255,255,.10); color: var(--ink); border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255,255,255,.18); }
.btn--gold { background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); color: #1c1407; box-shadow: 0 14px 40px -10px rgba(233,184,95,.5); }
.btn--gold:hover { filter: brightness(1.07); }
.btn--ghost { color: var(--ink-dim); }
.btn--ghost:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn--icon { width: 46px; padding: 0; }
.btn--lg { height: 54px; padding: 0 30px; font-size: 16px; }

.iconbtn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid var(--line-2); color: var(--ink);
  transition: .2s; font-size: 18px;
}
.iconbtn:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }

/* ---- Badges / chips ------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; white-space: nowrap;
  border-radius: 7px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; backdrop-filter: blur(6px);
}
.badge--live { background: var(--live); color: #fff; }
.badge--live .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
.badge--sport { background: rgba(0,0,0,.55); color: var(--ink); border: 1px solid var(--line-2); }
.badge--new { background: var(--blue); color: #fff; }
.badge--4k { background: rgba(0,0,0,.55); border: 1px solid var(--line-2); color: var(--ink); }
.badge--premium { background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); color: #1c1407; }
.badge--dur { background: rgba(0,0,0,.74); color: #fff; font-weight: 600; letter-spacing: 0; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.35;transform:scale(.7)} }

.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 17px;
  border-radius: 999px; background: var(--panel); border: 1px solid var(--line);
  color: var(--ink-dim); font-size: 13.5px; font-weight: 500; transition: .2s; white-space: nowrap;
}
.chip:hover { color: var(--ink); border-color: var(--line-2); background: var(--panel-2); }
.chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }
.scroll-x { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }

/* ---- Hero ----------------------------------------------------------------- */
.hero {
  position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end;
  padding: 0 0 clamp(40px, 6vw, 80px); margin-top: 0; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media .scene, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media img { z-index: 1; opacity: 0; transition: opacity .8s ease; }
.hero__media img.loaded { opacity: 1; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(90deg, rgba(8,9,12,.94) 0%, rgba(8,9,12,.72) 32%, rgba(8,9,12,.15) 62%, transparent 100%),
    linear-gradient(0deg, var(--bg) 2%, rgba(8,9,12,.5) 24%, transparent 60%);
}
.hero__inner { position: relative; z-index: 3; max-width: 680px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 6vw, 78px); font-weight: 800; line-height: .98; letter-spacing: -.035em; }
.hero__meta { display: flex; align-items: center; gap: 14px; margin: 16px 0; color: var(--ink-dim); font-size: 14px; font-weight: 500; flex-wrap: wrap; }
.hero__meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-faint); }
.hero__desc { font-size: clamp(15px, 1.4vw, 18px); color: #cbd2dd; max-width: 560px; margin-bottom: 26px; }
.hero__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* home hero: play chips from the featured game (theater playcards, compact) */
.hero__plays-wrap { margin-top: 28px; }
.hero__plays { padding-bottom: 4px; }
.hero__plays .playcard { width: 200px; background: rgba(13,18,26,.72); backdrop-filter: blur(8px); }
.hero__plays .playcard__cap { padding: 9px 11px 11px; }
.hero__plays .playcard__cap .t { font-size: 12.5px; }
.hero__plays .playcard__play span { width: 40px; height: 40px; font-size: 15px; }

/* hero "switch" thumbnails (featured carousel-style) */
.hero__feature { position: absolute; right: var(--gutter); bottom: clamp(40px,6vw,80px); z-index: 3; display: flex; gap: 12px; }
.hero__feature button { width: 116px; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; position: relative; border: 2px solid transparent; opacity: .55; transition: .25s; }
.hero__feature button .scene { width: 100%; height: 100%; }
.hero__feature button.is-active { opacity: 1; border-color: #fff; }
.hero__feature button:hover { opacity: .9; }

/* ---- Rails ---------------------------------------------------------------- */
.rail { position: relative; margin-top: clamp(30px, 3.4vw, 48px); }
.rail__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; gap: 16px; flex-wrap: wrap; }
/* A long title + subtitle + "See all" + arrows cannot fit a phone: let the
   head wrap and the title shrink, or the row pushes the whole page into a
   horizontal scroll (caught on sport.html "More Baseball Broadcasts"). */
.rail__title { font-size: clamp(19px, 2vw, 24px); font-weight: 700; display: flex; align-items: center; gap: 11px; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }
.rail__nav { flex: 0 0 auto; }
.rail__title .emoji { font-size: .92em; filter: saturate(1.1); }
.rail__more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-dim); transition: .2s; padding: 7px 2px; }
.rail__more:hover { color: var(--blue-2); gap: 9px; }
.rail__nav { display: flex; gap: 8px; }
.rail__arrow { width: 38px; height: 38px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink); display: grid; place-items: center; transition: .2s; }
.rail__arrow:hover { background: var(--panel-3); border-color: var(--line-2); }
.rail__arrow:disabled { opacity: .3; cursor: default; }
.rail-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity;
  scroll-behavior: smooth; scrollbar-width: none; padding: 4px 0 8px;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);   /* keep snap aligned to the content edge */
}
.rail-track > * { scroll-snap-align: start; flex: 0 0 auto; }

/* ---- Cards ---------------------------------------------------------------- */
.card { width: 300px; cursor: pointer; }
.card--lg { width: 380px; }
.card--sm { width: 232px; }
.card__thumb {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  transition: transform .32s var(--ease), box-shadow .32s, border-color .25s;
}
.card__thumb .scene, .card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__thumb img { z-index: 1; opacity: 0; transition: opacity .5s; }
.card__thumb img.loaded { opacity: 1; }
.card__shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, rgba(0,0,0,.6) 0%, transparent 42%); }
.card:hover .card__thumb { transform: translateY(-5px) scale(1.012); box-shadow: var(--shadow); border-color: var(--line-2); }
.card__top { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 3; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.card__bottom { position: absolute; bottom: 10px; left: 10px; right: 10px; z-index: 3; display: flex; justify-content: space-between; align-items: flex-end; }
.card__play {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; opacity: 0; transition: .25s;
}
.card__play span {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.16);
  border: 1.5px solid rgba(255,255,255,.7); backdrop-filter: blur(6px); display: grid; place-items: center;
  transform: scale(.8); transition: .25s var(--ease); color: #fff; font-size: 20px; padding-left: 3px;
}
.card:hover .card__play { opacity: 1; }
.card:hover .card__play span { transform: scale(1); background: var(--blue); border-color: var(--blue); }
.card__meta { padding: 11px 2px 0; }
.card__name { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .card__name { color: #fff; }
.card__sub { font-size: 12.5px; color: var(--ink-faint); margin-top: 3px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.card__sub .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-faint); }
/* Grade badge on NTFL cards — the one thing a parent scans a youth rail for,
   so it outranks the surrounding meta text rather than hiding in it. */
.card__grade {
  font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink); background: rgba(255,255,255,.11); border: 1px solid var(--line-2);
  border-radius: 7px; padding: 4px 9px; white-space: nowrap; line-height: 1.2;
}

/* progress bar (continue watching) */
.card__progress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,.2); z-index: 4; }
.card__progress i { display: block; height: 100%; background: var(--blue); }

/* portrait (athlete) card */
.card--portrait { width: 220px; }
.card--portrait .card__thumb { aspect-ratio: 2/3; border-radius: var(--radius); }
.card--portrait .card__pinfo { position: absolute; bottom: 12px; left: 12px; right: 12px; z-index: 3; }
.card--portrait .card__pinfo .nm { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.card--portrait .card__pinfo .role { font-size: 12px; color: var(--ink-dim); margin-top: 2px; }

/* vertical short card */
.card--short { width: 188px; }
.card--short .card__thumb { aspect-ratio: 9/16; }

/* top-play (ranked) card */
.card--rank { width: 360px; display: flex; align-items: center; gap: 0; }
.card--rank .rank-num {
  font-family: var(--font-display); font-weight: 800; font-size: 120px; line-height: .7;
  color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.28); margin-right: -14px; flex: 0 0 auto;
  transition: .3s;
}
.card--rank:hover .rank-num { -webkit-text-stroke-color: var(--blue); }
.card--rank .card__thumb { width: 240px; aspect-ratio: 16/10; }

/* live card */
.card--live .card__thumb { border-color: rgba(255,59,70,.35); }
.viewers { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-dim); }

/* Live · "Starting Soon" rows (thumbnail + when + matchup + YouTube reminder) */
.upnext { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 12px; transition: background .2s var(--ease); }
.upnext:hover { background: rgba(255,255,255,.04); }
.upnext__when { text-align: center; min-width: 104px; flex: 0 0 auto; }
.upnext__when .d { font-weight: 700; font-size: 14px; }
.upnext__when .t { color: var(--ink-faint); font-size: 12px; }
.upnext__rule { width: 1px; height: 34px; background: var(--line); flex: 0 0 auto; }
.upnext__thumb { position: relative; width: 132px; aspect-ratio: 16/9; border-radius: 9px; overflow: hidden; flex: 0 0 auto; background: #000; }
.upnext__thumb .scene, .upnext__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Ordered crest pair on an NTFL slate row — away, then home. Fixed slots so
   every row's matchup text starts at the same x; an unresolved side leaves its
   slot empty rather than collapsing and shifting the row. */
.upnext__crests { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.upnext__crest { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; }
.upnext__crest img { max-width: 100%; max-height: 100%; object-fit: contain; }
.upnext__meta { flex: 1; min-width: 0; }
.upnext__meta .m { font-weight: 600; }
.upnext__meta .s { color: var(--ink-faint); font-size: 13px; }
/* Grade sits directly under the kickoff time on an NTFL slate row, where the
   day used to be — matches .card__grade and .livepanel__grade so the same fact
   reads the same way on every surface. */
.upnext__grade {
  display: inline-block; margin-top: 5px;
  font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink); background: rgba(255,255,255,.11); border: 1px solid var(--line-2);
  border-radius: 7px; padding: 3px 8px; white-space: nowrap; line-height: 1.2;
}
.upnext__when .d { font-size: 15px; }
  .upnext__crest { width: 28px; height: 28px; }
  .upnext__crests { gap: 4px; }
.upnext__cta { flex: 0 0 auto; }
@media (max-width: 760px) {
  /* let it size to content — see the aspect-ratio note above */
  .featureblock { aspect-ratio: auto; }
  .upnext { gap: 12px; padding: 12px; flex-wrap: wrap; }
  .upnext__rule { display: none; }
  .upnext__thumb { width: 104px; }
  .upnext__meta { flex: 1 1 40%; }
  .upnext__cta { width: 100%; justify-content: center; margin-top: 4px; }
}

/* program crest card */
.crestcard { width: 300px; }
.crestcard .card__thumb { aspect-ratio: 16/10; display: grid; place-items: center; }
.crest {
  width: 76px; height: 76px; border-radius: 18px; display: grid; place-items: center; z-index: 3; position: relative;
  font-family: var(--font-display); font-weight: 800; font-size: 30px; color: #fff;
  border: 1px solid rgba(255,255,255,.25); box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
/* Browse Programs: bare clickable crest tiles */
.logotile {
  flex: 0 0 auto; width: 116px; height: 116px; border-radius: 22px; display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--line); transition: .25s var(--ease);
}
.logotile:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.logotile img { width: 72%; height: 72%; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.45)); }
.logotile--letter { font-family: var(--font-display); font-weight: 800; font-size: 34px; color: #fff; border-color: rgba(255,255,255,.18); }
/* hub sport sections: all render, chips anchor to them (offset clears the sticky nav) */
.hub-sport { scroll-margin-top: 84px; }
.hub-sport + .hub-sport { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 26px; }
.hub-sport__head {
  font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -.01em;
  display: flex; align-items: center; gap: 10px; margin: 0 0 2px;
}
.hub-sport__head .emoji { font-size: 22px; }
/* logotiles laid out on the page rather than in a scrolling rail */
.orggrid { display: flex; flex-wrap: wrap; gap: 14px; }

/* game-score card */
.scorecard {
  width: 340px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: .25s var(--ease);
}
.scorecard:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.scorecard__media { position: relative; aspect-ratio: 16/8; }
.scorecard__media .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.scorecard__body { padding: 14px 16px; }
.scorecard__teams { display: flex; flex-direction: column; gap: 9px; }
.scorecard__team { display: flex; align-items: center; gap: 11px; }
.scorecard__team .tlogo { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: 0 0 auto; font-family: var(--font-display); }
.scorecard__team .tname { font-weight: 600; font-size: 14.5px; flex: 1; }
.scorecard__team .tscore { font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.scorecard__team.win .tname { color: #fff; }
.scorecard__team.lose { color: var(--ink-dim); }
.scorecard__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-faint); }

/* ---- Scoreboard (game hero) ---------------------------------------------- */
.scoreboard {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(20px,4vw,60px);
  background: rgba(15,17,23,.55); backdrop-filter: blur(14px); border: 1px solid var(--line-2);
  border-radius: var(--radius-lg); padding: clamp(20px,3vw,34px) clamp(24px,4vw,48px); max-width: 760px;
}
.scoreboard__team { text-align: center; }
.scoreboard__team .tlogo { width: 70px; height: 70px; border-radius: 18px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 26px; margin: 0 auto 12px; border: 1px solid rgba(255,255,255,.18); }
/* floating score strip on the game hero — no panel backing */
.scorefloat { display: flex; align-items: center; gap: 26px; margin: 22px 0 12px; }
.scorefloat .tlogo { width: 68px; height: 68px; border-radius: 16px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 22px; border: 1px solid rgba(255,255,255,.18); }
.scorefloat .tlogo--img { background: rgba(8,10,14,.35); backdrop-filter: blur(3px); padding: 8px; }
.scorefloat .tlogo--img img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
.scorefloat__final { font-family: var(--font-display); font-weight: 800; font-size: 13.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-dim); }
.scorefloat__season { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; letter-spacing: .05em; color: #dde4ee; margin-bottom: 8px; }
.scoreboard__team .tlogo--img { width: 84px; height: 84px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid var(--line-2); padding: 9px; }
.scoreboard__team .tlogo--img img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.scoreboard__team .tn { font-weight: 600; font-size: 15px; color: var(--ink); }
.scoreboard__team .tr { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }
.scoreboard__center { text-align: center; }
.scoreboard__score { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px,6vw,64px); letter-spacing: -.02em; display: flex; align-items: center; gap: 16px; }
.scoreboard__score .dash { color: var(--ink-faint); font-weight: 400; }
.scoreboard__status { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--live); margin-bottom: 6px; }
.scoreboard__status.final { color: var(--ink-dim); }

/* ---- Video player mock ---------------------------------------------------- */
.player {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden;
  background: #000; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
}
.player .scene, .player img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player__scrim { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, transparent 30%, rgba(0,0,0,.45)); z-index: 2; }
.player__big { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; }
.player__big button { width: 84px; height: 84px; border-radius: 50%; background: rgba(47,139,255,.92); display: grid; place-items: center; color: #fff; font-size: 30px; padding-left: 5px; box-shadow: var(--shadow-blue); transition: .25s; }
.player__big button:hover { transform: scale(1.08); }
.player__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 14px 18px; display: flex; align-items: center; gap: 14px; background: linear-gradient(0deg, rgba(0,0,0,.8), transparent); }
.player__bar .track { flex: 1; height: 4px; border-radius: 3px; background: rgba(255,255,255,.25); position: relative; }
.player__bar .track i { position: absolute; left: 0; top: 0; bottom: 0; width: 34%; background: var(--blue); border-radius: 3px; }
.player__bar .track i::after { content:""; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.player__bar .t { font-size: 12px; color: #fff; font-variant-numeric: tabular-nums; }
.player__src { position: absolute; top: 14px; right: 16px; z-index: 4; font-size: 11px; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 6px; }

/* ---- Panels / stats ------------------------------------------------------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px,1fr)); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.stat { background: var(--panel); padding: 18px 20px; text-align: center; }
.stat .v { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px,3vw,34px); color: #fff; }
.stat .l { font-size: 11.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.stat .v.blue { color: var(--blue-2); }
.stat .v.gold { color: var(--gold-2); }

/* ---- Search page ---------------------------------------------------------- */
.searchhero { padding-top: calc(var(--nav-h) + 50px); }
.bigsearch {
  display: flex; align-items: center; gap: 16px; height: 72px; padding: 0 26px; max-width: 880px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 20px; transition: .25s;
}
.bigsearch:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,139,255,.15); }
.bigsearch input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--ink); font-size: 22px; font-family: var(--font-display); font-weight: 600; }
.bigsearch input::placeholder { color: var(--ink-faint); }
.bigsearch .ic { font-size: 24px; color: var(--ink-dim); }
.result-group { margin-top: 40px; }
.result-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.result-head h3 { font-size: 17px; }
.result-head .count { font-size: 12px; color: var(--ink-faint); background: var(--panel-2); padding: 3px 9px; border-radius: 999px; }
.result-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* person row result */
.personrow { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); width: 320px; transition: .2s; cursor: pointer; }
.personrow:hover { border-color: var(--line-2); background: var(--panel-2); }
.personrow .pa { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; position: relative; }
.personrow .pa .scene { width: 100%; height: 100%; }
.personrow .nm { font-weight: 600; font-size: 14.5px; }
.personrow .rl { font-size: 12.5px; color: var(--ink-faint); }

/* ---- Program hub sub-nav -------------------------------------------------- */
.sportbar { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.sportbar a { padding: 14px 18px; font-weight: 600; font-size: 14.5px; color: var(--ink-dim); position: relative; transition: .2s; }
.sportbar a:hover { color: var(--ink); }
.sportbar a.is-active { color: #fff; }
.sportbar a.is-active::after { content:""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px; background: var(--blue); }

/* ---- Archive / vault ------------------------------------------------------ */
.vault { position: relative; }
.vault--gold .card__thumb { border-color: rgba(233,184,95,.3); }
.lockcard { position: relative; }
.lockcard .lock { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: linear-gradient(0deg, rgba(8,9,12,.7), rgba(8,9,12,.2)); backdrop-filter: blur(2px); border-radius: var(--radius); opacity: 0; transition: .25s; }
.lockcard:hover .lock { opacity: 1; }
.lockcard .lock .l { text-align: center; }
.lockcard .lock .l i { font-size: 22px; color: var(--gold-2); }
.lockcard .lock .l p { font-size: 12px; color: var(--ink); margin: 6px 0 0; font-weight: 600; }
.goldwash {
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(233,184,95,.14), transparent 60%),
    linear-gradient(135deg, rgba(233,184,95,.06), transparent 50%);
}

/* ---- Promo / CTA banner --------------------------------------------------- */
.promo {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(34px,5vw,64px);
  border: 1px solid var(--line-2);
  background: linear-gradient(120deg, rgba(47,139,255,.14), rgba(106,61,240,.10) 60%, transparent), var(--panel);
}
.promo h2 { font-size: clamp(26px,3.4vw,42px); max-width: 620px; }
.promo p { color: var(--ink-dim); max-width: 520px; margin: 14px 0 26px; font-size: 16px; }

/* ---- Footer --------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); margin-top: 90px; padding: 56px 0 40px; background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; }
.footer__brand img { height: 30px; margin-bottom: 16px; }
.footer__brand p { color: var(--ink-faint); font-size: 13.5px; max-width: 260px; }
.footer__col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-dim); margin: 0 0 16px; font-family: var(--font-sans); font-weight: 700; }
.footer__col a { display: block; color: var(--ink-faint); font-size: 13.5px; padding: 5px 0; transition: .2s; }
.footer__col a:hover { color: var(--ink); }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; background: var(--panel-2); display: grid; place-items: center; color: var(--ink-dim); transition: .2s; }
.footer__social a:hover { background: var(--blue); color: #fff; }
/* 15px-tall text links miss on touch; padding buys a 30px+ target without
   changing the visual line. */
.footer__bottom a { display: inline-block; padding: 8px 2px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 12.5px; flex-wrap: wrap; gap: 12px; }

/* ---- Animations ----------------------------------------------------------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; }
.reveal.in { animation: fadeUp .7s var(--ease) forwards; }

/* ---- Home hero rotation ---------------------------------------------------
   All slides sit in ONE grid cell, so the container takes the height of the
   tallest and nothing shifts under the reader when it advances. Inactive
   slides keep visibility:hidden rather than display:none — they stay in the
   layout (that is what holds the height) but drop out of hit-testing and the
   tab order.                                                                */
/* grid-template-columns is NOT optional here: an implicit `auto` track sizes to
   MAX-CONTENT, and the hero's plays rail is ~668px wide, so at a 390px viewport
   the track dragged the entire page out to 668 and every page-width element with
   it. minmax(0,1fr) + min-width:0 caps the track at the container. */
.herorot { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.herorot__slide {
  grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden;
  transition: opacity .55s var(--ease), visibility .55s var(--ease);
}
.herorot__slide.is-on { opacity: 1; visibility: visible; }
.herorot__dots {
  position: absolute; z-index: 6; right: var(--gutter); bottom: clamp(18px, 2.6vw, 30px);
  display: flex; align-items: center; gap: 9px;
}
.herorot__dot {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.32); transition: background .25s, width .3s var(--ease); position: relative;
}
/* The dot LOOKS 9px but must be TAPPABLE: 9x9 is unusable on a phone (Apple
   asks 44, Android 48), so ::after extends the hit area to 44x44 without
   changing the visual. Do not move the size onto the button itself. */
.herorot__dot::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 44px; height: 44px; transform: translate(-50%, -50%);
}
.herorot__dot:hover { background: rgba(255,255,255,.6); }
.herorot__dot.is-on { background: var(--blue); width: 26px; }
.herorot__dot:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .herorot__slide { transition: none; }
}

/* ---- NTFL live, grouped by location ---------------------------------------
   A Saturday slate is ~28 broadcasts over 7 venues, so it is grouped by where
   it is played and collapsed behind a <details> on the hubs.               */
.venue { margin-bottom: 18px; }
.venue__head { display: flex; align-items: center; gap: 9px; margin: 0 0 8px 2px; }
.venue__pin { font-size: 13px; }
.venue__name { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); }
.venue__count {
  font-size: 12px; font-weight: 600; color: var(--ink-faint);
  background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px;
}
.livedrop { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.03); overflow: hidden; }
.livedrop__sum {
  display: flex; align-items: center; gap: 12px; padding: 15px 18px; cursor: pointer;
  list-style: none; user-select: none;
}
.livedrop__sum::-webkit-details-marker { display: none; }
.livedrop__sum:hover { background: rgba(255,255,255,.04); }
.livedrop__sum:focus-visible { outline: 2px solid var(--blue-2); outline-offset: -2px; }
.livedrop__title { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink);
  display: inline-flex; align-items: center; gap: 9px; }
/* YouTube red on its own mark, not inherited from the title — the SVG is
   fill="currentColor", so this span is what colours it. font-size sets the
   glyph box (the icon is 1em) and line-height:0 stops it adding leading. */
.livedrop__yt { color: #ff0000; font-size: 22px; line-height: 0; display: inline-flex; }
.livedrop__meta { color: var(--ink-faint); font-size: 13px; }
/* Reads as the affordance it is — the whole <summary> row is already the
   click target, so this is styled as a cue, not as a nested link. */
.livedrop__cta { color: var(--blue-2); font-weight: 600; }
.livedrop:not([open]) .livedrop__cta { text-decoration: underline; text-underline-offset: 2px; }
.livedrop[open] .livedrop__cta { opacity: .65; }
.livedrop__on { color: #ff4d4d; font-weight: 800; letter-spacing: .04em; }
.livedrop__chev { margin-left: auto; color: var(--ink-faint); transition: transform .25s var(--ease); }
.livedrop[open] .livedrop__chev { transform: rotate(180deg); }
.livedrop__body { padding: 4px 14px 14px; }
@media (max-width: 560px) {
  .livedrop__sum { flex-wrap: wrap; gap: 6px 10px; padding: 13px 14px; }
  .livedrop__chev { margin-left: auto; }
  .livedrop__body { padding: 4px 8px 10px; }
}

/* ---- Live broadcast panel (hub Next Live + NTFL org list) ------------------
   The row is exactly as tall as its thumbnail (Trey, 2026-09-06): the thumb
   sets the height and the text column is capped to it, so a long matchup
   ellipses rather than growing the row. Grade and kickoff are what someone
   scans a slate for, so both are sized up; date and venue trail behind muted. */
.livepanel {
  --lp-thumb: 232px;
  display: flex; gap: 16px; align-items: center;
  padding: 10px; margin-bottom: 10px; text-decoration: none; color: inherit;
  border: 1px solid var(--line); transition: border-color .2s, background .2s;
}
.livepanel:hover { border-color: var(--line-2); background: rgba(255,255,255,.05); }
.livepanel__thumb {
  flex: 0 0 var(--lp-thumb); width: var(--lp-thumb); aspect-ratio: 16/9;
  border-radius: 9px; overflow: hidden; background: rgba(255,255,255,.04); position: relative;
}
.livepanel__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.livepanel__play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.livepanel__play svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: rgba(0,0,0,.5); }
.livepanel__meta { flex: 1 1 auto; min-width: 0; }
.livepanel__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(17px, 1.9vw, 22px); line-height: 1.2; margin-bottom: 9px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.livepanel__when { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.livepanel__grade {
  font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink); background: rgba(255,255,255,.09);
  border: 1px solid var(--line-2); border-radius: 7px; padding: 4px 10px; white-space: nowrap;
}
.livepanel__kick {
  font-family: var(--font-display); font-weight: 800; font-size: 19px;
  color: var(--ink); white-space: nowrap;
}
.livepanel__trail {
  color: var(--ink-faint); font-size: 13.5px; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.livepanel__cta { flex: 0 0 auto; }
@media (max-width: 860px) { .livepanel { --lp-thumb: 180px; } }
@media (max-width: 760px) {
  /* stacked: the thumbnail no longer sets the height, so let it breathe */
  .livepanel { flex-wrap: wrap; gap: 12px; padding: 12px; }
  .livepanel__thumb { --lp-thumb: 100%; flex-basis: 100%; }
  .livepanel__title { white-space: normal; }
  .livepanel__cta { width: 100%; justify-content: center; }
}

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .hero__feature { display: none; }
}
@media (max-width: 860px) {
  :root { --nav-h: 60px; }
  .nav__links, .nav__search { display: none; }
  .nav__burger.iconbtn { display: grid; }
  .scoreboard { grid-template-columns: 1fr; gap: 18px; }
  .scoreboard__center { order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .megamenu { display: none; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================================
   GAME PAGE — real-data sections (recap / trending plays / trio / debate / overlay)
   ========================================================================== */

/* ---- Game Story / editorial recap ---------------------------------------- */
.gamestory { display: grid; grid-template-columns: 1.25fr .95fr; gap: 26px; align-items: stretch; }
.gamestory__graphic { position: relative; display: flex; align-items: center; justify-content: center; }
.gamestory__graphic img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); filter: drop-shadow(0 22px 55px rgba(0,0,0,.55)); }
.gamestory__story { display: flex; flex-direction: column; justify-content: center; }
.gamestory__story h2 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.04; }
.gamestory__story p { color: #cbd2dd; font-size: 16px; margin: 16px 0 0; }
.outcome-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ochip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; background: var(--panel-2); border: 1px solid var(--line);
}
.ochip--play { background: var(--blue); border-color: transparent; color: #fff; cursor: pointer; box-shadow: var(--shadow-blue); transition: transform .2s var(--ease); }
.ochip--play:hover { transform: translateY(-1px); }
.ochip svg { color: var(--green); }
.ochip--gold { background: linear-gradient(135deg, rgba(233,184,95,.16), rgba(233,184,95,.05)); border-color: rgba(233,184,95,.4); color: var(--gold-2); }
.ochip--gold svg { color: var(--gold-2); }

/* ---- Trending Play cards (click → video overlay) ------------------------- */
.playcard {
  width: 300px; cursor: pointer; border-radius: var(--radius); overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .25s;
}
.playcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-2); }
.playcard__thumb { position: relative; aspect-ratio: 16/9; background: #000; }
.playcard__thumb .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.playcard__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.4) 4%, rgba(0,0,0,.05) 50%, rgba(0,0,0,.35)); }
.playcard__top { position: absolute; top: 11px; left: 11px; right: 11px; z-index: 2; display: flex; justify-content: space-between; gap: 8px; }
.playcard__inning { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: rgba(143,31,42,.85); border: 1px solid rgba(255,255,255,.18); padding: 4px 9px; border-radius: 7px; }
.playcard__rank { font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--gold-2); }
.playcard__play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; }
.playcard__play span { width: 52px; height: 52px; border-radius: 50%; background: rgba(47,139,255,.92); display: grid; place-items: center; color: #fff; font-size: 19px; padding-left: 3px; box-shadow: var(--shadow-blue); transition: transform .25s var(--ease); }
.playcard:hover .playcard__play span { transform: scale(1.1); }
.playcard__cap { padding: 11px 14px 13px; }
.playcard__cap .t { font-weight: 700; font-size: 14.5px; color: #fff; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.playcard__cap .d { font-size: 12.5px; color: #c2c9d4; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- Featured trio / key contributors ------------------------------------ */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.triocard {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(143,31,42,.22), var(--panel) 60%);
}
.triocard__role { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); padding: 16px 20px 0; }
.triocard__head { display: flex; align-items: baseline; gap: 10px; padding: 6px 20px 0; }
.triocard__num { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: #fff; }
.triocard__name { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.triocard__class { padding: 2px 20px 0; color: var(--ink-faint); font-size: 12.5px; }
.triocard__line { margin: 16px 20px 0; padding: 14px 16px; background: rgba(0,0,0,.28); border: 1px solid var(--line); border-radius: 11px; }
.triocard__line .lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); }
.triocard__line .val { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #fff; margin-top: 3px; font-variant-numeric: tabular-nums; }
.triocard__season { padding: 12px 20px 18px; font-size: 12.5px; color: var(--ink-dim); }
.triocard__season b { color: var(--gold-2); font-weight: 700; }
/* compact contributor card — sits beside the box score, sized to match it */
.kcard { border-radius: var(--radius); border: 1px solid var(--line); padding: 13px 16px 14px;
  background: linear-gradient(180deg, rgba(143,31,42,.20), var(--panel) 65%); }
.kcard__top { display: flex; justify-content: space-between; align-items: baseline; }
.kcard__role { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); }
.kcard__class { font-size: 11.5px; color: var(--ink-faint); }
.kcard__name { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-top: 5px; }
.kcard__num { font-weight: 800; color: var(--ink-dim); font-size: 15px; }
.kcard__line { margin-top: 7px; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: #fff; font-variant-numeric: tabular-nums; }

/* ---- Analyst note / pitcher debate --------------------------------------- */
.analyst { border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--panel); overflow: hidden; }
.analyst__head { display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.analyst__head .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(47,139,255,.14); color: var(--blue-2); font-size: 18px; flex: 0 0 auto; }
.analyst__head .l { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-2); }
.analyst__head .s { font-size: 12.5px; color: var(--ink-faint); }
.analyst__body { padding: 20px 24px; color: #cbd2dd; font-size: 15px; line-height: 1.6; }
.vscards { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 16px; padding: 0 24px 24px; }
.vscard { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.vscard.win { border-color: rgba(233,184,95,.35); }
.vscard .nm { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.vscard .role { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; color: var(--ink-dim); }
.vscard.win .role { color: var(--gold-2); }
.vscard .line { margin-top: 12px; font-size: 14px; color: #d7dce4; font-variant-numeric: tabular-nums; }
.vscard .era { margin-top: 10px; font-size: 13px; color: var(--ink-dim); }
.vscard .era b { color: #fff; font-family: var(--font-display); }
.vscard .era.low b { color: var(--green); }
.vsdiv { display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: var(--ink-faint); font-size: 14px; }

/* ---- Big feature block (interview / replay / highlights) ----------------- */
/* aspect-ratio combined with min-height sets a FLOOR ON WIDTH: 200px tall at
   21/8 is 525px wide, which overflowed every phone viewport. Below 760px the
   ratio is dropped so the block sizes to its content instead. */
.featureblock {
  position: relative; aspect-ratio: 21/8; min-height: 200px; max-width: 100%;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-2); cursor: pointer; display: flex; align-items: flex-end; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.featureblock:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.featureblock.is-playing { aspect-ratio: 16/9; cursor: default; }
.featureblock.is-playing:hover { transform: none; box-shadow: var(--shadow); }
@keyframes nextIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* pregame hero chips — home-hero feature-chip model, deep links to YouTube */
.pregame-chips { position: absolute; right: var(--gutter); bottom: clamp(40px,6vw,80px); z-index: 3; display: flex; align-items: flex-end; gap: 12px; }
.pregame-chips__label { font-family: var(--font-display); font-weight: 800; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-dim); margin: 0 4px 8px 0; }
.pregame-chips .pc { display: block; width: 138px; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; position: relative; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: var(--panel); transition: transform .22s var(--ease), border-color .22s; }
.pregame-chips .pc:hover { transform: translateY(-4px); border-color: var(--blue); }
.pregame-chips .pc .scene, .pregame-chips .pc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pregame-chips .pc .pc__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px 8px 6px; font-size: 10.5px; font-weight: 700; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.88), transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* chips on desktop, rail on small screens — one or the other, never both */
@media (min-width: 861px) { .pregame-rail { display: none; } }
@media (max-width: 860px) { .pregame-chips { display: none; } }
/* clip-transition wipe: masks the seekTo rebuffer with a broadcast-style slide */
.vid__wipe { position: absolute; inset: 0; z-index: 5; background: #07090c; overflow: hidden; pointer-events: none;
  transform: translateX(-103%); transition: transform .32s var(--ease); }
.vid__wipe.in { transform: none; }
.vid__wipe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; filter: blur(3px) saturate(1.15); transform: scale(1.06); }
.vid__wipe .grad { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,9,12,.94), rgba(7,9,12,.45) 65%, rgba(7,9,12,.2)); }
.vid__wipe .meta { position: absolute; left: clamp(20px,4vw,44px); bottom: clamp(20px,4vw,40px); z-index: 2; max-width: 70%; }
.vid__wipe .meta .eyebrow { margin-bottom: 8px; }
.vid__wipe .meta .t { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px,2.6vw,32px); color: #fff; line-height: 1.1; }
.boxgrid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: 34px; align-items: start; }
@media (max-width: 940px) { .boxgrid { grid-template-columns: 1fr; } }
.featureblock .scene, .featureblock img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.featureblock__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8,9,12,.9), rgba(8,9,12,.4) 60%, transparent), linear-gradient(0deg, rgba(8,9,12,.7), transparent 50%); }
.featureblock__in { position: relative; z-index: 2; padding: clamp(20px,3vw,34px); max-width: 620px; }
.featureblock__in .eyebrow { margin-bottom: 12px; }
.featureblock__in h3 { font-size: clamp(20px,2.4vw,30px); }
.featureblock__in p { color: var(--ink-dim); font-size: 14.5px; margin: 8px 0 16px; }
.featureblock__pill { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 22px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-blue); }
.featureblock--gold .featureblock__pill { background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); color: #1c1407; box-shadow: 0 14px 40px -10px rgba(233,184,95,.5); }

/* ---- Fullscreen video overlay -------------------------------------------- */
.vid { position: fixed; inset: 0; z-index: 400; display: none; place-items: center; padding: clamp(14px, 4vw, 48px);
  background: rgba(4,5,7,.92); backdrop-filter: blur(14px); }
.vid.open { display: grid; animation: vidIn .25s var(--ease); }
@keyframes vidIn { from { opacity: 0; } to { opacity: 1; } }
.vid__frame { position: relative; width: min(1180px, 100%); aspect-ratio: 16/9; border-radius: 16px; overflow: hidden;
  background: #000; box-shadow: var(--shadow-lg); border: 1px solid var(--line-2); }
.vid__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Shorts: vertical 9:16 viewer instead of the letterboxed 16:9 stage */
.vid--vertical .vid__frame { aspect-ratio: 9/16; width: auto; height: min(86vh, 780px); max-width: 96vw; }
@media (max-width: 760px) {
  .vid--vertical { padding: 10px; }
  .vid--vertical .vid__frame { height: min(92vh, calc(96vw * 16 / 9)); }
  .vid--vertical #vidNext { width: 150px; }
}
.vid__close { position: absolute; top: -2px; right: 0; transform: translateY(-120%); display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-size: 14px; font-weight: 600; background: rgba(255,255,255,.1); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: .2s; }
.vid__close:hover { background: rgba(255,255,255,.2); }
.vid__cap { position: absolute; left: 2px; bottom: -2px; transform: translateY(130%); color: var(--ink-dim); font-size: 13px; max-width: 80%; }
@media (max-width: 760px) {
  .vscards { grid-template-columns: 1fr; } .vsdiv { padding: 4px; }
  .trio { grid-template-columns: 1fr; } .gamestory { grid-template-columns: 1fr; }
  .vid__close { transform: none; top: 8px; right: 8px; z-index: 3; }
}

/* nav mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; background: rgba(8,9,12,.97); backdrop-filter: blur(14px); transform: translateX(100%); transition: transform .35s var(--ease); padding: 80px var(--gutter) 40px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.drawer.open { transform: none; }
.drawer a { font-family: var(--font-display); font-size: 26px; font-weight: 700; padding: 12px 0; color: var(--ink-dim); border-bottom: 1px solid var(--line); }
.drawer a:hover { color: var(--ink); }
.drawer__sect { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); margin: 22px 0 2px; }
.drawer a.drawer__item { display: flex; align-items: center; gap: 13px; font-family: inherit; font-size: 17px; font-weight: 600; padding: 10px 0; color: var(--ink-dim); border-bottom: 1px solid rgba(255,255,255,.05); }
.drawer a.drawer__item:active, .drawer a.drawer__item:hover { color: var(--ink); }
.drawer__item .di { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; font-size: 17px; color: #fff; background: rgba(255,255,255,.06); flex: 0 0 auto; }
.drawer__item .di--img { background: rgba(255,255,255,.09); padding: 4px; }
.drawer__item .di--img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.drawer__close { position: absolute; top: 22px; right: var(--gutter); font-size: 26px; color: var(--ink); }

/* season picker: years hold one row on mobile; Archive (when present) wraps under */
#season-picker { flex-wrap: wrap; align-items: center; }
#season-picker .season-years { display: flex; gap: 8px; flex-wrap: nowrap; }
@media (max-width: 640px) {
  #season-picker .season-years { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  #season-picker .season-years::-webkit-scrollbar { height: 0; }
  #season-picker .season-years .chip { padding: 8px 14px; font-size: 13px; flex: 0 0 auto; }
  #season-picker .chip--archive { margin-top: 8px; }
}

/* ===== THE VAULT ========================================================== */
.vaultbar { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.vaultbar .bigsearch { background: rgba(10,14,20,.72); backdrop-filter: blur(10px); }
.vaultbar .bigsearch:focus-within { border-color: var(--gold-2); box-shadow: 0 0 0 4px rgba(233,184,95,.14); }
.vaultbar .bigsearch input { font-size: 18px; }
.facetrow { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.facetrow__lbl { flex: 0 0 64px; color: var(--ink-faint); font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.facetrow .scroll-x { flex: 1; min-width: 0; }
.chip--facet { display: inline-flex; align-items: center; gap: 7px; }
.chip--facet .fc-logo { width: 18px; height: 18px; object-fit: contain; }
.chip--facet .fc-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.chip--facet .x { color: var(--gold-2); font-size: 11px; }
.vplayer {
  position: relative; overflow: hidden; padding: 36px 38px 40px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(233,184,95,.12), rgba(12,17,24,.55) 55%);
  border: 1px solid rgba(233,184,95,.3);
}
.vplayer::after { content: '🏆'; position: absolute; right: -14px; bottom: -26px; font-size: 150px; opacity: .05; pointer-events: none; }
.vplayer__title { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(30px, 4.4vw, 52px); margin-top: 12px; }
.vplayer__title span { color: var(--gold-2); }
@media (max-width: 640px) {
  .vplayer { padding: 24px 20px 28px; }
  .vaultbar .bigsearch input { font-size: 15.5px; }
}

/* Vault rail heads: clickable game titles + prominent Game Replay button */
.rail__gamelink { color: inherit; text-decoration: none; transition: color .2s; }
.rail__gamelink:hover { color: var(--blue-2); text-decoration: underline; text-underline-offset: 4px; }
.rail__title .rail__replay { margin-left: 14px; font-size: 12px; padding: 7px 14px; vertical-align: middle; text-decoration: none; white-space: nowrap; }

/* Vault Full Broadcast cards: dense vertical container, but the thumb stays
   16:9 so the broadcast frame is recognizable (center-cropping a wide frame
   into 9:16 reads as noise). Shorts keep full-bleed 9:16 (true verticals). */
.card--broadcast { width: 188px; }
.card--broadcast .card__thumb { aspect-ratio: 16/9; }
.card--broadcast .card__name { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card--broadcast .card__sub { font-size: 11.5px; }

/* Vault rails on mobile: stack the head — full-width title, date and
   Game Replay on their own lines, no arrows (touch scrolls the rail) */
@media (max-width: 740px) {
  #vaultResults .rail__head { flex-wrap: wrap; }
  #vaultResults .rail__title { font-size: 17.5px; line-height: 1.3; width: 100%; }
  #vaultResults .rail__gamesub { display: block; margin: 6px 0 0; }
  #vaultResults .rail__title .rail__replay { display: inline-flex; margin: 10px 0 0; }
  #vaultResults .rail__nav { display: none; }
}
