/* Sportv US — "prime time" theme: navy, red and white, scoreboard type. */

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/oswald-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #0a1a33;
  --navy-2: #122a52;
  --navy-3: #1b3a6b;
  --red: #d61f3a;
  --red-2: #b0142c;
  --white: #ffffff;
  --gold: #f4b400;

  --bg: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f5f7fb;
  --ink: #0b1526;
  --ink-2: #4b5870;
  --ink-3: #7a879c;
  --line: #dbe2ec;
  --line-2: #c8d2e0;
  --link: #1a4fd6;
  --live: #e0193a;
  --win: #0b1526;
  --lose: #8592a7;
  --ok: #0f8a4b;
  --shadow: 0 1px 2px rgba(10, 26, 51, .06), 0 4px 14px rgba(10, 26, 51, .06);
  --shadow-lg: 0 10px 40px rgba(10, 26, 51, .18);

  --display: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 12px;
  --r-sm: 8px;
  --gap: 16px;
  --gutter: 16px;
  --mast-h: 60px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #060c17;
  --surface: #0e1829;
  --surface-2: #132036;
  --ink: #e9eef7;
  --ink-2: #a3b0c6;
  --ink-3: #74829a;
  --line: #1d2b44;
  --line-2: #2a3b59;
  --link: #7aa7ff;
  --live: #ff4562;
  --win: #ffffff;
  --lose: #7f8ca3;
  --ok: #3ccf86;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060c17;
    --surface: #0e1829;
    --surface-2: #132036;
    --ink: #e9eef7;
    --ink-2: #a3b0c6;
    --ink-3: #74829a;
    --line: #1d2b44;
    --line-2: #2a3b59;
    --link: #7aa7ff;
    --live: #ff4562;
    --win: #ffffff;
    --lose: #7f8ca3;
    --ok: #3ccf86;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.is-off { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); font-weight: 700; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-2); }
.logo { display: inline-block; flex: none; object-fit: contain; aspect-ratio: 1; height: auto; }
.headshot { aspect-ratio: 1; height: auto; }

/* ---------- Pulse / badges / tags ---------- */
.pulse {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--live); margin-right: 6px; vertical-align: middle; flex: none;
  box-shadow: 0 0 0 0 rgba(224, 25, 58, .6);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(224, 25, 58, .55); }
  70% { box-shadow: 0 0 0 7px rgba(224, 25, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 25, 58, 0); }
}
.count-badge {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--live); color: #fff; font: 700 11px/1 var(--text); font-style: normal;
}
.tag {
  display: inline-flex; align-items: center; gap: 4px; margin: 0;
  padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-2); font: 600 12px/1.4 var(--text); white-space: nowrap;
}
.tag-live { background: rgba(224, 25, 58, .1); border-color: rgba(224, 25, 58, .35); color: var(--live); }
.tag-soft { background: transparent; }

/* ---------- Buttons / pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--red); color: #fff; font: 600 14px/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
}
.btn:hover { background: var(--red-2); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-xs { min-height: 32px; padding: 0 12px; font-size: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.pill-row::-webkit-scrollbar { display: none; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 34px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 600 13px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; cursor: pointer;
}
.pill span { color: var(--ink-3); }
.pill:hover { text-decoration: none; border-color: var(--line-2); }
.pill[aria-pressed="true"], .pill[aria-current] { background: var(--lg, var(--navy)); border-color: var(--lg, var(--navy)); color: #fff; }
.pill[aria-pressed="true"] span { color: rgba(255, 255, 255, .75); }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: transparent; color: inherit; cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.i-light { display: none; }
:root[data-theme="dark"] .i-dark { display: none; }
:root[data-theme="dark"] .i-light { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-dark { display: none; }
  :root:not([data-theme="light"]) .i-light { display: block; }
}

/* ---------- Masthead ---------- */
.mast { position: sticky; top: 0; z-index: 40; background: var(--navy); color: #fff; box-shadow: 0 2px 18px rgba(4, 12, 28, .35); }
.mast-bar { display: flex; align-items: center; gap: 12px; min-height: var(--mast-h); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: inherit; flex: none; }
.brand:hover { text-decoration: none; }
.mark { flex: none; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.wordmark { font: 700 23px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.wordmark b { color: var(--red); margin-left: 2px; font-weight: 700; }
.mast .wordmark b, .drawer .wordmark b, .foot .wordmark b { color: #ff4a62; }
.menu-btn { display: none; }
.mast-nav { display: flex; align-items: stretch; gap: 2px; margin-left: 18px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.mast-nav::-webkit-scrollbar { display: none; }
.mast-nav a {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; min-height: var(--mast-h);
  color: rgba(255, 255, 255, .78); font: 600 15px/1 var(--display); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
}
.mast-nav a:hover { color: #fff; text-decoration: none; }
.mast-nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.mast-nav a[aria-current]::after { background: var(--red); }
.mast-nav a[aria-current] { color: #fff; }
.mast-nav .dot-live { width: 7px; height: 7px; border-radius: 50%; background: #ff4a62; box-shadow: 0 0 0 3px rgba(255, 74, 98, .25); }
.mast-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
.live-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); color: #fff; font: 600 13px/1 var(--display); letter-spacing: .08em; text-transform: uppercase;
}
.live-chip:hover { text-decoration: none; background: rgba(255, 255, 255, .14); }
.live-chip .pulse { background: #8796b0; animation: none; box-shadow: none; margin: 0; }
.live-chip.is-on { background: var(--red); }
.live-chip.is-on .pulse { background: #fff; animation: pulse 1.6s infinite; }
.live-chip b { font-weight: 700; }

/* Stars & stripes band */
.stripes {
  height: 6px;
  background:
    radial-gradient(circle at 3px 3px, #fff 0.9px, transparent 1.2px) 0 0 / 7px 6px,
    linear-gradient(var(--navy-3), var(--navy-3));
  background-repeat: repeat-x, no-repeat;
  background-size: 7px 6px, 100% 100%;
  position: relative;
}
.stripes::after {
  content: ""; position: absolute; inset: 0 0 0 min(28%, 320px);
  background: repeating-linear-gradient(180deg, var(--red) 0 2px, #fff 2px 4px);
}

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer-panel {
  position: absolute; inset: 0 auto 0 0; width: min(330px, 88vw); overflow-y: auto;
  background: var(--navy); color: #fff; padding: 12px 16px 32px; box-shadow: var(--shadow-lg);
  animation: slide-in .18s ease-out;
}
@keyframes slide-in { from { transform: translateX(-100%); } to { transform: none; } }
.scrim { position: absolute; inset: 0; background: rgba(3, 8, 18, .6); }
.drawer-panel { z-index: 1; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin-bottom: 12px; }
.drawer-nav { display: grid; gap: 2px; }
.drawer-nav a, .drawer-leagues a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r-sm); color: rgba(255, 255, 255, .88);
  font: 600 16px/1.2 var(--display); letter-spacing: .05em; text-transform: uppercase;
}
.drawer-nav a:hover, .drawer-leagues a:hover, .drawer-nav a[aria-current] { background: rgba(255, 255, 255, .08); text-decoration: none; color: #fff; }
.drawer-h { margin: 22px 12px 8px; font: 600 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.drawer-leagues a span { display: grid; flex: 1; }
.drawer-leagues small { font: 400 12px/1.3 var(--text); text-transform: none; letter-spacing: 0; color: rgba(255, 255, 255, .55); }
.drawer-leagues .logo { background: #fff; border-radius: 6px; padding: 2px; }
html.drawer-open { overflow: hidden; }

/* ---------- Main / sections ---------- */
.main { padding-top: 20px; padding-bottom: 40px; min-height: 60vh; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px;
  color: var(--red); font: 600 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow a { color: inherit; }
.page-head { margin: 8px 0 20px; }
.page-title { font: 700 clamp(28px, 4.4vw, 44px)/1.05 var(--display); letter-spacing: .01em; text-transform: uppercase; margin-bottom: 8px; }
.page-dek { margin: 0 0 10px; color: var(--ink-2); font-size: 16px; max-width: 70ch; }
.sec-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 12px; }
.sec-head h2 { display: inline-flex; align-items: center; font: 700 20px/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.sec-head h2::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--red); margin-right: 10px; }
.sec-sub { color: var(--ink-2); font-size: 14px; }
.more { margin-left: auto; font: 600 13px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--link); }
.band { margin: 28px 0; }
.band-empty { color: var(--ink-2); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r); padding: 18px; margin: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 16px; }
.panel .sec-head h2 { font-size: 17px; }
.panel-ink { background: var(--navy); border-color: var(--navy); color: #fff; }
.panel-ink .sec-head h2::before { background: #ff4a62; }
.panel-ink a { color: #fff; }
.split { display: grid; gap: 24px; margin-top: 8px; }
.split-main, .split-side { min-width: 0; }
@media (min-width: 1000px) {
  .split { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .split-side { position: sticky; top: calc(var(--mast-h) + 20px); }
}
.tz { color: var(--ink-3); font-size: 13px; margin: 14px 0 0; }
.note { padding: 10px 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.note.is-ok { border-color: var(--ok); color: var(--ok); }
.note.is-err { border-color: var(--red); color: var(--red); }
.blank { display: grid; justify-items: center; gap: 10px; padding: 34px 16px; text-align: center; color: var(--ink-2); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r); }
.blank p { margin: 0; max-width: 46ch; }
.empty-inline { text-align: center; color: var(--ink-2); padding: 20px; }

/* Breadcrumbs */
.trail ol { display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--ink-3); }
.trail li + li::before { content: "›"; margin-right: 4px; color: var(--ink-3); }
.trail a { color: var(--ink-2); }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: grid; gap: 22px; padding: 28px 22px; border-radius: 18px; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 12px 12px, rgba(255, 255, 255, .16) 1.4px, transparent 1.8px) 0 0 / 26px 26px,
    linear-gradient(125deg, var(--navy) 0%, var(--navy-2) 55%, #1d3f78 100%);
  box-shadow: var(--shadow-lg);
}
.hero::after {
  content: ""; position: absolute; right: -60px; bottom: -40px; width: 380px; height: 140px; transform: rotate(-12deg); opacity: .9;
  background: repeating-linear-gradient(180deg, var(--red) 0 16px, transparent 16px 32px);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { color: #ff6b80; }
.hero-h { font: 700 clamp(30px, 5.2vw, 54px)/1.02 var(--display); text-transform: uppercase; letter-spacing: .005em; max-width: 15ch; margin-bottom: 12px; }
.hero-dek { color: rgba(255, 255, 255, .8); font-size: 16px; max-width: 52ch; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.hero-stats div { min-width: 104px; padding: 10px 14px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.hero-stats dt { font: 600 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.hero-stats dd { margin: 6px 0 0; font: 700 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.hero-stats .hs-live dd { color: #ff6b80; }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; padding: 40px 36px; }
}

/* Spotlight */
.spot {
  display: grid; gap: 14px; padding: 18px; border-radius: 16px; color: #fff;
  background: rgba(6, 14, 30, .55); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px);
  box-shadow: inset 0 3px 0 var(--lg, var(--red));
}
.spot:hover { text-decoration: none; background: rgba(6, 14, 30, .7); }
.spot-label { display: flex; align-items: center; gap: 8px; font: 600 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.spot-lg { padding: 4px 8px; border-radius: 4px; background: var(--lg); color: #fff; letter-spacing: .08em; }
.spot-teams { display: grid; gap: 8px; }
.spot-team { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 14px; }
.spot-team .logo { background: #fff; border-radius: 12px; padding: 6px; }
.spot-name { font: 600 clamp(18px, 2.4vw, 23px)/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.spot-sc { font: 700 44px/1 var(--display); font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.spot-team.is-lose { opacity: .6; }
.spot-at { font: 600 12px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .5); padding-left: 78px; }
.spot-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; color: rgba(255, 255, 255, .8); }
.spot .gc-status { color: #fff; }
.spot.is-live .gc-status { color: #ff6b80; }
.spot-venue { color: rgba(255, 255, 255, .6); }

/* League rail */
.league-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 10px; margin: 18px 0 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.league-rail::-webkit-scrollbar { display: none; }
.league-rail a {
  display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; gap: 2px 10px; align-items: center;
  padding: 12px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--lg), var(--shadow);
}
.league-rail a:hover { text-decoration: none; transform: translateY(-1px); }
.league-rail .logo { grid-row: span 2; }
.lr-name { display: flex; align-items: baseline; gap: 6px; }
.lr-name b { font: 700 17px/1 var(--display); letter-spacing: .04em; }
.lr-name small { color: var(--ink-3); font-size: 12px; }
.lr-count { display: flex; align-items: center; font-size: 12.5px; color: var(--ink-2); }

/* ---------- Game cards ---------- */
.gc-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.gc-grid-1 { grid-template-columns: 1fr; max-width: 520px; }
.gc-stack { display: grid; gap: 10px; }
.tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 270px); gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 8px; scrollbar-width: thin; }
.tiles > li { scroll-snap-align: start; }

.gc { position: relative; }
.gc-a {
  display: grid; gap: 6px; height: 100%; padding: 12px 14px 12px 16px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow);
  position: relative; overflow: hidden; transition: border-color .15s, transform .15s;
}
.gc-a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--lg, var(--navy)); }
.gc-a:hover { text-decoration: none; border-color: var(--line-2); transform: translateY(-1px); }
.gc.is-live .gc-a { border-color: rgba(224, 25, 58, .45); box-shadow: 0 0 0 1px rgba(224, 25, 58, .18), var(--shadow); }
.gc-top { display: flex; align-items: center; gap: 8px; min-height: 20px; font-size: 12.5px; color: var(--ink-2); }
.gc-lg { padding: 3px 7px; border-radius: 4px; background: var(--lg, var(--navy)); color: #fff; font: 600 11px/1 var(--display); letter-spacing: .08em; }
a.gc-lg:hover { text-decoration: none; }
.gc-status { display: inline-flex; align-items: center; font: 600 12.5px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.gc.is-live .gc-status, .game-head.is-live .gc-status { color: var(--live); }
.gc.is-finished .gc-status { color: var(--ink); }
.gc.is-postponed .gc-status, .gc.is-cancelled .gc-status { color: var(--gold); }
.gc-when { display: inline-flex; gap: 8px; margin-left: auto; font: 600 13px/1 var(--display); letter-spacing: .05em; color: var(--ink); }
.gc-date { color: var(--ink-2); }
.gc-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-height: 34px; }
.gc-name { font-weight: 600; font-size: 15px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-sc { font: 700 24px/1 var(--display); font-variant-numeric: tabular-nums; min-width: 2.2ch; text-align: right; color: var(--win); }
.gc-row.is-lose .gc-name, .gc-row.is-lose .gc-sc { color: var(--lose); font-weight: 500; }
.gc-row.is-win .gc-sc::after { content: "◂"; font-size: 13px; margin-left: 4px; color: var(--red); vertical-align: middle; }
.gc-meta { font-size: 12px; color: var(--ink-3); border-top: 1px dashed var(--line); padding-top: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-tile .gc-a { padding: 10px 12px 10px 14px; gap: 4px; }
.gc-tile .gc-row { min-height: 30px; }
.gc-tile .gc-name { font-size: 14px; }
.gc-tile .gc-sc { font-size: 21px; }
.is-flash .gc-a, .spot.is-flash, .game.is-flash .game-score { animation: flash 1.4s ease-out; }
@keyframes flash { 0% { background: rgba(244, 180, 0, .35); } 100% { background: var(--surface); } }
.spot.is-flash { animation-name: flash-dark; }
@keyframes flash-dark { 0% { background: rgba(244, 180, 0, .45); } 100% { background: rgba(6, 14, 30, .55); } }

/* Boards (league groups on a scoreboard) */
.boards { display: grid; gap: 26px; }
.board-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--lg, var(--navy)); }
.board-head h2, .board-head h3 { display: flex; align-items: baseline; gap: 10px; font: 700 21px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.board-head h2 a, .board-head h3 a { color: var(--ink); }
.board-head small { font: 400 13px/1.2 var(--text); color: var(--ink-2); letter-spacing: 0; text-transform: none; }
.board-count { margin-left: auto; font: 600 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.board-head .more { margin-left: auto; }

/* Filters */
.filterbar { display: grid; gap: 10px; margin: 0 0 18px; }
.seg { display: inline-flex; width: max-content; max-width: 100%; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; }
.seg button {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  color: var(--ink-2); font: 600 13px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .seg button[aria-pressed="true"] { background: var(--navy-3); }

/* Date strip */
.datebar { display: flex; align-items: center; gap: 6px; margin: 0 0 18px; padding: 6px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.db-step { display: grid; place-items: center; flex: none; width: 36px; height: 52px; border-radius: var(--r-sm); color: var(--ink-2); }
.db-step:hover { background: var(--surface-2); color: var(--ink); }
.db-days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(74px, 1fr); flex: 1; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.db-days::-webkit-scrollbar { display: none; }
.db-days a { display: grid; justify-items: center; gap: 4px; padding: 9px 4px; border-radius: var(--r-sm); color: var(--ink-2); }
.db-days a:hover { background: var(--surface-2); text-decoration: none; }
.db-days a[aria-current] { background: var(--navy); color: #fff; box-shadow: inset 0 -3px 0 var(--red); }
:root[data-theme="dark"] .db-days a[aria-current] { background: var(--navy-3); }
.db-name { font: 600 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.db-num { font-size: 13px; font-weight: 600; white-space: nowrap; }
.db-cal { display: flex; align-items: center; flex: none; }
.db-cal label { position: relative; display: grid; place-items: center; width: 40px; height: 52px; border-radius: var(--r-sm); color: var(--ink-2); cursor: pointer; }
.db-cal label:hover { background: var(--surface-2); }
.db-cal input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.js .db-go { display: none; }

/* ---------- Leagues ---------- */
.league-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.league-card {
  display: grid; grid-template-columns: 64px 1fr; gap: 6px 16px; align-items: center; height: 100%; padding: 18px;
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  box-shadow: inset 4px 0 0 var(--lg), var(--shadow);
}
.league-card:hover { text-decoration: none; border-color: var(--line-2); }
.lc-logo { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.lc-text { display: grid; gap: 2px; }
.lc-text strong { font: 700 24px/1 var(--display); letter-spacing: .04em; }
.lc-text span { font-weight: 600; }
.lc-text small { color: var(--ink-3); }
.lc-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

.league-head {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; margin: 12px 0 22px; padding: 20px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: inset 0 4px 0 var(--lg), var(--shadow);
}
.lh-logo { display: grid; place-items: center; padding: 8px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.lh-text .page-title { margin-bottom: 4px; }
.lh-text .page-dek { margin: 0; }
.lh-tabs { grid-column: 1 / -1; display: flex; gap: 4px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.lh-tabs a { padding: 9px 14px; border-radius: 999px; color: var(--ink-2); font: 600 14px/1 var(--display); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.lh-tabs a:hover { background: var(--surface-2); text-decoration: none; }
.lh-tabs a[aria-current] { background: var(--lg); color: #fff; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 0; }

.hub-list { display: grid; }
.hub-list a { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid rgba(255, 255, 255, .1); font-weight: 600; }
.hub-list li:last-child a { border-bottom: 0; }
.hub-list a span { flex: 1; }
.hub-list a:hover { text-decoration: none; color: #ff8fa0; }
.hub-list .logo { background: #fff; border-radius: 6px; padding: 2px; }
.hub-ico { flex: none !important; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--red); font-size: 13px; }

/* ---------- Teams ---------- */
.team-list { display: grid; gap: 2px; max-height: 520px; overflow-y: auto; }
.team-list a { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: var(--r-sm); color: var(--ink); font-size: 14px; font-weight: 500; }
.team-list a:hover { background: var(--surface-2); text-decoration: none; }
.team-block { margin: 0 0 30px; }
.jump-row { margin: 0 0 22px; }
.team-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.team-grid a {
  display: flex; align-items: center; gap: 12px; height: 100%; padding: 10px 12px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14.5px; line-height: 1.25;
}
.team-grid a:hover { text-decoration: none; border-color: var(--lg, var(--line-2)); box-shadow: inset 0 -3px 0 var(--lg, var(--navy)); }
.team-grid-lg { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.team-grid-lg a { padding: 14px; }

.team-head {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin: 12px 0 22px; padding: 22px; border-radius: 18px; color: #fff;
  background:
    radial-gradient(circle at 10px 10px, rgba(255, 255, 255, .12) 1.2px, transparent 1.6px) 0 0 / 22px 22px,
    linear-gradient(120deg, var(--navy) 0%, var(--lg) 160%);
  box-shadow: var(--shadow-lg);
}
.team-head .eyebrow { color: #ff8fa0; }
.th-logo { display: grid; place-items: center; padding: 10px; border-radius: 20px; background: #fff; }
.th-logo .logo { width: clamp(64px, 12vw, 96px); height: auto; }
.th-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 0; }
.th-rec { margin-right: 6px; color: rgba(255, 255, 255, .8); font-size: 14px; }
.form-pip {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px;
  font: 700 13px/1 var(--display); color: #fff; background: #5c6a82;
}
.form-pip:hover { text-decoration: none; }
.form-pip.is-w { background: var(--ok); }
.form-pip.is-l { background: var(--red); }
.form-pip.is-t { background: #8b95a7; }

.results-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: 14px; }
.results-table th { text-align: left; padding: 10px 12px; background: var(--surface-2); font: 600 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.results-table td { padding: 9px 12px; border-top: 1px solid var(--line); white-space: nowrap; }
.rt-opp { display: inline-flex; align-items: center; gap: 8px; white-space: normal; }
.rt-ha { width: 22px; color: var(--ink-3); font-weight: 600; }
.rt-res { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.rt-res b { display: inline-block; width: 18px; }
.rt-res.is-w b { color: var(--ok); }
.rt-res.is-l b { color: var(--red); }
.rt-res small { color: var(--ink-3); }

.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid rgba(127, 140, 160, .25); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font: 600 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; opacity: .65; }
.facts dd { margin: 0; font-weight: 600; }

/* ---------- Game page ---------- */
.game-head {
  margin: 12px 0 22px; padding: 18px 16px 24px; border-radius: 18px; color: #fff;
  background:
    radial-gradient(circle at 10px 10px, rgba(255, 255, 255, .1) 1.2px, transparent 1.6px) 0 0 / 22px 22px,
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, var(--lg) 180%);
  box-shadow: var(--shadow-lg);
}
.game-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; justify-content: center; margin: 0 0 18px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.game-head .gc-status { color: #fff; font-size: 14px; }
.game-head.is-live .gc-status { color: #ff6b80; }
.game-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.gt { display: grid; justify-items: center; gap: 8px; text-align: center; color: #fff; }
.gt:hover { text-decoration: none; }
.gt .logo { width: clamp(56px, 12vw, 88px); height: auto; background: #fff; border-radius: 18px; padding: 8px; }
.gt-name { font: 700 clamp(16px, 2.6vw, 24px)/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.gt-role { font: 600 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.gt.is-lose { opacity: .62; }
.game-mid { display: grid; justify-items: center; gap: 6px; min-width: 120px; }
.game-score { display: flex; align-items: center; gap: 12px; font: 700 clamp(40px, 8vw, 68px)/1 var(--display); font-variant-numeric: tabular-nums; }
.game-score span { color: rgba(255, 255, 255, .4); font-weight: 500; }
.game-when { display: grid; justify-items: center; gap: 6px; }
.game-time { font: 700 clamp(26px, 5vw, 38px)/1 var(--display); }
.game-date { color: rgba(255, 255, 255, .7); font-size: 14px; }

.linescore-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.linescore { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.linescore th, .linescore td { padding: 10px 8px; text-align: center; min-width: 34px; }
.linescore thead th { background: var(--navy); color: #fff; font: 600 13px/1 var(--display); letter-spacing: .08em; }
.linescore tbody tr + tr { border-top: 1px solid var(--line); }
.linescore .ls-team { text-align: left; min-width: 180px; }
.linescore tbody .ls-team { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.linescore td { font-size: 15px; }
.linescore .ls-total { font: 700 19px/1 var(--display); background: var(--surface-2); }
.linescore thead .ls-total { background: var(--red); }
.linescore tr.is-win .ls-total { color: var(--red); }
.linescore abbr { text-decoration: none; }

.game-summary { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--lg, var(--red)); border-radius: var(--r); padding: 16px 18px; }
.game-summary p:last-child { margin: 0; }
.form-cols { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.form-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.form-col h3 { margin-bottom: 10px; font: 600 16px/1.2 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.form-col h3 a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.form-list { display: grid; gap: 4px; }
.form-list a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 6px; color: var(--ink); font-size: 14px; }
.form-list a:hover { background: var(--surface-2); text-decoration: none; }
.fl-opp { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-sc { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Explainer ---------- */
.explainer { margin: 44px 0 10px; padding: 26px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.explainer > h2 { font: 700 24px/1.1 var(--display); letter-spacing: .03em; text-transform: uppercase; margin-bottom: 18px; }
.explainer-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.ex-card h3 { font: 600 18px/1.2 var(--display); letter-spacing: .03em; text-transform: uppercase; margin: 6px 0 8px; }
.ex-card p { color: var(--ink-2); font-size: 14.5px; }
.ex-num { font: 700 30px/1 var(--display); color: var(--red); }

/* ---------- News ---------- */
.news-grid, .story-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.story-stack { display: grid; gap: 14px; }
.story { display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.story-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.story-text { padding: 0 14px 14px; }
.story-row { grid-template-columns: 120px 1fr; }
.story-row .story-text { padding: 10px 12px 10px 0; }
.kicker { font: 600 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.story-h { margin: 6px 0; font-size: 17px; line-height: 1.3; }
.story-h a { color: var(--ink); }
.story-dek { color: var(--ink-2); font-size: 14px; }
.story-time { color: var(--ink-3); font-size: 12.5px; }
.read-head { margin: 10px 0 18px; }
.read-title { font: 700 clamp(28px, 4vw, 42px)/1.1 var(--display); text-transform: uppercase; }
.read-dek { color: var(--ink-2); font-size: 18px; }
.read-figure { margin: 0 0 18px; }
.read-figure img { border-radius: var(--r); }
.byline { color: var(--ink-3); font-size: 14px; }
.read-nav { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-top: 24px; }
.link-stack a { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.topics, .pill-nav { margin: 0 0 16px; }

/* ---------- Docs / forms ---------- */
.doc { max-width: 780px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; box-shadow: var(--shadow); }
.doc-head { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 3px solid var(--red); }
.prose { font-size: 16px; line-height: 1.7; }
.prose h2 { font: 700 21px/1.2 var(--display); letter-spacing: .03em; text-transform: uppercase; margin: 26px 0 10px; }
.prose ul { list-style: disc; padding-left: 22px; margin: 0 0 1em; }
.prose li { margin: 4px 0; }
.prose a { text-decoration: underline; }
.fine { color: var(--ink-3); font-size: 13px; margin-top: 18px; }
.form { display: grid; gap: 14px; margin-top: 18px; }
.form-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field textarea {
  width: 100%; padding: 11px 12px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); background: var(--surface-2);
  color: var(--ink); font: inherit;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--link); }
.field.has-err input, .field.has-err textarea { border-color: var(--red); }
.field-err { color: var(--red); }
.hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }

/* ---------- Errors ---------- */
.oops { max-width: 620px; margin: 40px auto; text-align: center; }
.oops-code { font: 700 120px/1 var(--display); color: var(--navy); margin: 0 0 8px; letter-spacing: .04em; }
.oops-code span { color: var(--red); }
:root[data-theme="dark"] .oops-code { color: #c9d6ee; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .oops-code { color: #c9d6ee; } }
.oops p { color: var(--ink-2); }

/* Loading skeleton */
.ghost { display: grid; gap: 10px; }
.ghost span { display: block; height: 82px; border-radius: var(--r); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: ghost 1.2s infinite; }
@keyframes ghost { to { background-position: -200% 0; } }
[aria-busy="true"] { opacity: .6; transition: opacity .2s; }

/* ---------- Footer ---------- */
.foot { margin-top: 40px; background: var(--navy); color: rgba(255, 255, 255, .78); }
.foot-grid { display: grid; gap: 24px 20px; padding-top: 32px; padding-bottom: 26px; grid-template-columns: 1fr 1fr; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: repeat(3, 1fr); } }
.foot-brand { grid-column: 1 / -1; max-width: 520px; }
.foot-brand .brand { color: #fff; margin-bottom: 12px; }
.foot-brand p { font-size: 14px; }
.foot-links { display: grid; align-content: start; gap: 8px; }
.foot-links h2 { color: #fff; font: 600 14px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.foot-links a { color: rgba(255, 255, 255, .72); font-size: 14px; }
.foot-links a:hover { color: #fff; }
.foot-legal { display: grid; gap: 4px; padding-top: 16px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; color: rgba(255, 255, 255, .55); }
.foot-legal p { margin: 0; }
@media (min-width: 1000px) {
  .foot-grid { grid-template-columns: 1.6fr repeat(4, 1fr); }
  .foot-brand { grid-column: auto; }
}

/* ---------- Mobile dock ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); background: var(--navy); border-top: 3px solid var(--red);
}
.dock a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; color: rgba(255, 255, 255, .62); }
.dock a:hover { text-decoration: none; color: #fff; }
.dock a[aria-current] { color: #fff; }
.dock a[aria-current] .dock-ico { background: rgba(255, 255, 255, .12); }
.dock-ico { position: relative; display: grid; place-items: center; width: 46px; height: 28px; border-radius: 14px; }
.dock-ico .count-badge { position: absolute; top: -4px; right: 2px; }
.dock-lbl { font: 600 11px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 959px) {
  .menu-btn { display: inline-grid; margin-left: -8px; }
  .mast-bar { flex-wrap: wrap; gap: 4px 8px; }
  .mast-nav { order: 3; flex-basis: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); padding: 0 8px; border-top: 1px solid rgba(255, 255, 255, .08); }
  .mast-nav a { min-height: 42px; font-size: 14px; padding: 0 11px; }
  .wordmark { font-size: 21px; }
  .mark { width: 30px; height: 30px; }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .dock { display: none; }
  .main { padding-top: 26px; }
}
@media (max-width: 560px) {
  :root { --gutter: 14px; }
  .hero { padding: 22px 16px; border-radius: 14px; }
  .hero::after { width: 220px; height: 90px; right: -70px; }
  .spot-team { grid-template-columns: 48px 1fr auto; }
  .spot-team .logo { width: 48px; height: 48px; padding: 4px; }
  .spot-at { padding-left: 62px; }
  .spot-sc { font-size: 36px; }
  .gc-grid { grid-template-columns: 1fr; }
  .db-days { grid-auto-columns: minmax(64px, 1fr); }
  .db-step { width: 28px; }
  .league-head, .team-head { grid-template-columns: auto 1fr; gap: 4px 14px; padding: 16px; text-align: left; }
  .lh-logo, .th-logo { align-self: start; padding: 6px; border-radius: 12px; }
  .lh-logo .logo, .th-logo .logo { width: 44px; height: 44px; object-fit: contain; }
  .league-head .page-title, .team-head .page-title { font-size: 28px; }
  .th-form, .th-links { grid-column: 1 / -1; }
  .game-teams { gap: 4px; }
  .game-mid { min-width: 92px; }
  .doc { padding: 20px 16px; }
  .live-chip { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .mast, .dock, .foot, .datebar, .filterbar { display: none !important; }
  body { background: #fff; color: #000; }
}
.spot .gc-when { color: rgba(255, 255, 255, .88); margin-left: 0; }
@media (max-width: 560px) {
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero-stats div { min-width: 0; padding: 8px 10px; }
  .hero-stats dd { font-size: 26px; }
}

/* ---------- Game center ---------- */
.game-nav { position: sticky; top: calc(var(--mast-h) + 4px); z-index: 5; display: flex; gap: 4px; margin: 0 0 8px; padding: 6px; overflow-x: auto; scrollbar-width: none; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.game-nav::-webkit-scrollbar { display: none; }
.game-nav a { flex: none; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font: 600 13px/1 var(--display); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.game-nav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.band[id] { scroll-margin-top: calc(var(--mast-h) + 70px); }

.cmp { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px 16px 10px; }
.cmp-head { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cmp-team { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1.2 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.cmp-team.is-home { text-align: right; }
.cmp-rows { margin: 0; }
.cmp-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4px 12px; padding: 9px 0 10px; border-bottom: 1px solid var(--line); }
.cmp-row:last-child { border-bottom: 0; }
.cmp-row dt { color: var(--ink-2); font-size: 13px; text-align: center; }
.cmp-v { margin: 0; font: 600 17px/1 var(--display); font-variant-numeric: tabular-nums; }
.cmp-v.is-home { text-align: right; }
.cmp-v.is-lead { color: var(--red); }
:root[data-theme="dark"] .cmp-v.is-lead { color: #ff6b80; }
.cmp-bar { grid-column: 1 / -1; display: flex; gap: 3px; height: 5px; }
.cmp-bar i { display: block; height: 100%; border-radius: 3px; background: var(--navy-3); }
.cmp-bar i + i { background: var(--red); }
.cmp-mini { margin-top: 10px; }
.cmp-mini .cmp-v { font-size: 14px; }

.st-wrap { overflow-x: auto; margin: 0 0 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.st { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.st caption { caption-side: top; text-align: left; padding: 11px 12px 9px; font: 700 15px/1.1 var(--display); letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.st caption small { color: var(--ink-3); font: 500 12px/1 var(--text); letter-spacing: 0; text-transform: none; margin-left: 6px; }
.st th, .st td { padding: 8px 9px; text-align: center; white-space: nowrap; }
.st thead th { background: var(--surface-2); color: var(--ink-2); font: 600 12px/1 var(--display); letter-spacing: .08em; }
.st thead abbr { text-decoration: none; cursor: help; }
.st tbody tr + tr { border-top: 1px solid var(--line); }
.st tbody tr:hover { background: var(--surface-2); }
.st .st-name { text-align: left; min-width: 170px; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.st thead .st-name { background: var(--surface-2); }
.st tbody tr:hover .st-name { background: var(--surface-2); }
.st tbody .st-name { font-weight: 600; }
.st .st-name a { color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.st .st-name small { margin-left: 6px; color: var(--ink-3); font-weight: 500; font-size: 12px; }
.st-c { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 4px; border-radius: 50%; background: var(--gold); color: #111; font-size: 10px; font-weight: 700; text-decoration: none; }
.st tr.is-dnp { color: var(--ink-3); }
.st .st-note { text-align: left; font-style: italic; }
.st .st-pos { width: 34px; color: var(--ink-3); font-weight: 600; }
.st .st-pos.is-q { box-shadow: inset 3px 0 0 var(--ok); color: var(--ink); }
.st .st-key { font-weight: 700; }
.st tr.is-me { background: rgba(214, 31, 58, .07); }
.st tr.is-me .st-name { background: inherit; }
.box-team + .box-team { margin-top: 18px; }
.box-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 600 16px/1.2 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.js [data-tabs] .box-h { display: none; }
.js [data-panel][hidden] { display: none; }

.plays { display: grid; gap: 14px; }
.plays-period h3 { margin: 0 0 8px; font: 600 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.plays-period > ol { display: grid; gap: 6px; }
.play { display: grid; grid-template-columns: 52px 26px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--line-2); }
.play.is-td, .play.is-goal, .play.is-pen { box-shadow: inset 3px 0 0 var(--red); }
.play.is-fg { box-shadow: inset 3px 0 0 var(--navy-3); }
.play.is-og { box-shadow: inset 3px 0 0 #8b95a7; }
.play.is-yellow { box-shadow: inset 3px 0 0 var(--gold); }
.play.is-red { box-shadow: inset 3px 0 0 #b0142c; }
.play-clock { font: 600 14px/1 var(--display); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.play-body { display: grid; gap: 2px; min-width: 0; }
.play-type { font: 600 13px/1.1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.play.is-sub .play-type, .play.is-var .play-type, .play.is-other .play-type { color: var(--ink-2); }
.play-who { font-weight: 600; font-size: 14px; }
.play-who small { color: var(--ink-3); font-weight: 500; }
.play-txt { color: var(--ink-2); font-size: 13.5px; }
.play-score { font: 700 17px/1 var(--display); font-variant-numeric: tabular-nums; }

.h2h { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; }
.h2h-sum { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.h2h-side { display: grid; justify-items: center; gap: 2px; min-width: 64px; }
.h2h-side b { font: 700 28px/1 var(--display); }
.h2h-side span { color: var(--ink-3); font: 600 11px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.h2h-mid { display: grid; gap: 6px; justify-items: center; text-align: center; }
.h2h-n { font: 600 14px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.h2h-bar { display: flex; width: 100%; height: 8px; gap: 2px; }
.h2h-bar i { display: block; height: 100%; border-radius: 4px; }
.h2h-bar .is-a { background: var(--navy-3); }
.h2h-bar .is-t { background: #9aa5b8; }
.h2h-bar .is-h { background: var(--red); }
.h2h-t { color: var(--ink-3); font-size: 12.5px; }
.h2h-list { display: grid; gap: 2px; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 8px; }
.h2h-list a, .h2h-row { display: grid; grid-template-columns: 92px 1fr auto 1fr; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 6px; color: var(--ink); font-size: 14px; }
.h2h-list a:hover { background: var(--surface-2); text-decoration: none; }
.h2h-list time { color: var(--ink-3); font-size: 12.5px; }
.h2h-list small { grid-column: 2 / -1; margin-top: -4px; color: var(--ink-3); font-size: 12px; text-align: center; }
.h2h-list small:empty { display: none; }
.h2h-t1, .h2h-t2 { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.h2h-t2 { justify-content: flex-end; text-align: right; }
.h2h-t1.is-win, .h2h-t2.is-win { font-weight: 700; }
.h2h-sc { font: 700 16px/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }

.lineups { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.lu { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; }
.lu-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font: 600 16px/1.2 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.lu-head .tag { margin-left: auto; }
.pitch { display: grid; gap: 12px; padding: 16px 8px; border-radius: 10px; background: repeating-linear-gradient(180deg, #0d7a43 0 36px, #0b6f3c 36px 72px); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.pitch-line { display: flex; justify-content: space-around; gap: 4px; }
.pp { display: grid; justify-items: center; gap: 4px; width: 72px; text-align: center; color: #fff; font-size: 11.5px; line-height: 1.15; }
.pp b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--navy); font: 700 14px/1 var(--display); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.pp a { color: #fff; }
.pp span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.lu-h { margin: 14px 0 6px; font: 600 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.lu-subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 4px 12px; font-size: 13.5px; }
.lu-subs li { display: flex; align-items: center; gap: 8px; }
.lu-subs b { width: 22px; color: var(--ink-3); font: 600 13px/1 var(--display); text-align: right; }
.lu-subs small { margin-left: auto; color: var(--ink-3); }
.lu-coach { margin: 12px 0 0; color: var(--ink-2); font-size: 13.5px; }

.form-mini { display: inline-flex; gap: 3px; vertical-align: middle; }
.form-mini i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: #8b95a7; color: #fff; font: 600 11px/1 var(--display); font-style: normal; }
.form-mini .is-w { background: var(--ok); }
.form-mini .is-l { background: var(--red); }
.form-pip.is-d { background: #8b95a7; }
.form-sum { margin: 0 0 8px; color: var(--ink-2); font-size: 13px; }
.fl-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 6px 4px; font-size: 14px; }
.fl-opp small { color: var(--ink-3); }

.pred { display: grid; gap: 8px; }
.pred-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 40px; align-items: center; gap: 10px; font-size: 14px; }
.pred-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pred-bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.pred-bar i { display: block; height: 100%; background: var(--red); }
.pred-bar .is-away { background: var(--navy-3); }
.pred-bar .is-draw { background: #9aa5b8; }
.pred-row b { text-align: right; font-family: var(--display); }

.inj-team { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; font: 600 14px/1.2 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.inj-list { display: grid; gap: 6px; }
.inj-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.inj-list li span { display: grid; gap: 1px; min-width: 0; }
.inj-list small { color: var(--ink-3); font-size: 12.5px; }
.headshot { flex: none; border-radius: 50%; background: var(--surface-2); object-fit: cover; }

/* ---------- Stats pages ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; margin: 0; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: var(--line); }
.stat-grid div { display: grid; gap: 4px; padding: 12px 14px; background: var(--surface); }
.stat-grid dt { color: var(--ink-3); font: 600 11px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.stat-grid dd { margin: 0; font: 600 18px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.stat-grid.is-big dd { font-size: 26px; }
.stat-sec + .stat-sec { margin-top: 18px; }
.stat-sec h3 { margin: 0 0 8px; font: 600 15px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.minute-chart { display: grid; grid-template-columns: repeat(auto-fit, minmax(54px, 1fr)); gap: 8px; align-items: end; padding: 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.minute-chart div { display: grid; gap: 4px; justify-items: center; font-size: 12px; color: var(--ink-3); }
.minute-chart .bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; }
.minute-chart .bars i { display: block; width: 12px; border-radius: 3px 3px 0 0; background: var(--ok); min-height: 2px; }
.minute-chart .bars i + i { background: var(--red); }
.minute-chart b { color: var(--ink); font-family: var(--display); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 0; color: var(--ink-3); font-size: 12.5px; }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 2px; vertical-align: -1px; }

.roster-group + .roster-group { margin-top: 22px; }
.person { display: flex; align-items: center; gap: 10px; }
.person-name { display: grid; gap: 1px; text-align: left; }
.person-name small { color: var(--ink-3); font-weight: 500; font-size: 12px; }

.profile-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: center; margin: 12px 0 22px; padding: 20px; border-radius: 16px; background: var(--navy); color: #fff; box-shadow: inset 0 -4px 0 var(--lg, var(--red)), var(--shadow-lg); }
.profile-head .page-title { color: #fff; margin: 0 0 6px; }
.profile-head .eyebrow, .profile-head .eyebrow a { color: rgba(255, 255, 255, .75); }
.profile-head .headshot { width: 96px; height: 96px; background: rgba(255, 255, 255, .1); border: 3px solid rgba(255, 255, 255, .2); }
.ph-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; color: rgba(255, 255, 255, .85); font-size: 14px; }
.ph-meta a { color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.ph-num { font: 700 46px/1 var(--display); color: rgba(255, 255, 255, .25); }

.leader-table .st-name { min-width: 200px; }
.leader-table .st-key { color: var(--red); font-size: 16px; }
.standing-card { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 1px; overflow: hidden; border-radius: var(--r-sm); background: rgba(255, 255, 255, .12); }
.standing-card div { padding: 9px 10px; background: var(--navy-2); }
.standing-card dt { font: 600 10.5px/1 var(--display); letter-spacing: .1em; opacity: .7; }
.standing-card dd { margin: 4px 0 0; font: 700 17px/1 var(--display); }

/* ---------- F1 ---------- */
.f1-hero { display: grid; gap: 16px; margin: 12px 0 22px; padding: 22px; border-radius: 16px; color: #fff; background: linear-gradient(120deg, #15151e 0%, #1f1f2b 60%, #2a0c10 100%); box-shadow: inset 0 -4px 0 #e10600, var(--shadow-lg); }
.f1-hero .eyebrow { color: rgba(255, 255, 255, .7); }
.f1-hero .page-title { color: #fff; margin: 0; }
.f1-next { display: grid; gap: 10px 20px; grid-template-columns: 1fr; padding: 16px; border-radius: var(--r); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #fff; }
.f1-next:hover { text-decoration: none; background: rgba(255, 255, 255, .09); }
.f1-next h2 { margin: 0; font: 700 26px/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.f1-next p { margin: 0; color: rgba(255, 255, 255, .78); }
.f1-next img { max-width: 100%; height: auto; filter: invert(1) brightness(1.4); opacity: .85; }
.f1-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.f1-tabs a { padding: 9px 14px; border-radius: 999px; color: rgba(255, 255, 255, .78); font: 600 14px/1 var(--display); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.f1-tabs a:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
.f1-tabs a[aria-current] { background: #e10600; color: #fff; }
.cal { display: grid; gap: 8px; }
.cal a { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow); }
.cal a:hover { text-decoration: none; border-color: var(--line-2); }
.cal .is-next a { box-shadow: inset 4px 0 0 #e10600, var(--shadow); }
.cal .is-done a { opacity: .85; }
.cal .is-cancelled a { opacity: .5; }
.cal-rd { display: grid; justify-items: center; gap: 2px; font: 600 11px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.cal-rd b { font-size: 22px; color: var(--ink); }
.cal-name { display: grid; gap: 3px; min-width: 0; }
.cal-name b { font: 600 17px/1.15 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.cal-name small { color: var(--ink-3); font-size: 13px; }
.cal-side { display: grid; justify-items: end; gap: 3px; font-size: 13px; text-align: right; }
.cal-side .tag { font-size: 11px; }
.f1-num { display: inline-grid; place-items: center; min-width: 26px; padding: 0 4px; height: 20px; border-radius: 4px; background: var(--surface-2); font: 700 12px/1 var(--display); color: var(--ink-2); }
.f1-team-bar { display: inline-block; width: 3px; height: 18px; border-radius: 2px; background: var(--lg, #e10600); }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 16px; }
.podium a { display: grid; justify-items: center; gap: 6px; padding: 14px 8px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-align: center; box-shadow: var(--shadow); }
.podium a:hover { text-decoration: none; border-color: var(--line-2); }
.podium .p1 { box-shadow: inset 0 4px 0 var(--gold), var(--shadow); }
.podium .p2 { box-shadow: inset 0 4px 0 #b9c2d0, var(--shadow); }
.podium .p3 { box-shadow: inset 0 4px 0 #c27c45, var(--shadow); }
.podium b { font: 700 22px/1 var(--display); }
.podium span { font-weight: 600; font-size: 14px; }
.podium small { color: var(--ink-3); font-size: 12px; }
.circuit-map { margin: 0 0 16px; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.circuit-map img { max-width: 100%; height: auto; }
:root[data-theme="dark"] .circuit-map img { filter: invert(1) hue-rotate(180deg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .circuit-map img { filter: invert(1) hue-rotate(180deg); } }
.f1-teams { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.f1-team { display: grid; gap: 10px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: inset 4px 0 0 #e10600, var(--shadow); }
.f1-team:hover { text-decoration: none; border-color: var(--line-2); }
.f1-team header { display: flex; align-items: center; gap: 12px; }
.f1-team header b { font: 700 18px/1.1 var(--display); text-transform: uppercase; }
.f1-team .facts div { padding: 6px 0; }

@media (min-width: 760px) {
  .f1-next { grid-template-columns: 1.3fr 1fr; align-items: center; }
}
@media (max-width: 560px) {
  .play { grid-template-columns: 44px 22px 1fr; }
  .play-score { grid-column: 3; font-size: 15px; }
  .h2h-list a, .h2h-row { grid-template-columns: 1fr auto 1fr; }
  .h2h-list time { grid-column: 1 / -1; }
  .h2h-list small { grid-column: 1 / -1; }
  .h2h-sum { gap: 8px; }
  .profile-head { grid-template-columns: 1fr; }
  .cal a { grid-template-columns: 44px 1fr; }
  .cal-side { grid-column: 2; justify-items: start; text-align: left; }
  .podium { gap: 6px; }
  .pp { width: 58px; font-size: 10.5px; }
}
.stand-grid { display: grid; gap: 4px 16px; }
@media (min-width: 1100px) { .stand-grid.is-two { grid-template-columns: 1fr 1fr; } }
.pill-row + .st-wrap { margin-top: 14px; }
.ld-n { margin-left: auto; font: 700 20px/1 var(--display); color: var(--red); }
.panel .st-wrap { box-shadow: none; }
.panel .st .st-name { min-width: 140px; }
.st .st-name { padding-right: 16px; }
.st .st-name a span { white-space: nowrap; }
.roster-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.roster-chips .person { padding: 8px 10px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 600; height: 100%; }
.roster-chips a.person:hover { border-color: var(--line-2); text-decoration: none; }
.sr-pos { margin: 0 0 10px; color: rgba(255, 255, 255, .8); }
.sr-pos b { font: 700 26px/1 var(--display); color: #fff; margin-right: 6px; }
.sr-form { margin: 10px 0 0; }
.th-links { display: flex; gap: 8px; margin: 4px 0 8px; }
.th-links a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font: 600 13px/1 var(--display); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.th-links a:hover { text-decoration: none; border-color: var(--lg, var(--line-2)); color: var(--ink); }
.hub-list-light a { color: var(--ink); border-bottom-color: var(--line); }
.hub-list-light a:hover { color: var(--red); }
.team-head .th-links a { color: rgba(255, 255, 255, .88); border-color: rgba(255, 255, 255, .3); }
.team-head .th-links a:hover { color: #fff; border-color: #fff; }
.gl-date { width: 48px; color: var(--ink-3); font-weight: 500; font-size: 13px; }
.f1-badge { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: #15151e; color: #fff; font: 700 italic 20px/1 var(--display); box-shadow: inset 0 -4px 0 #e10600; }
.f1-mini { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.f1-mini:hover { text-decoration: none; }
.f1-mini:hover b { color: var(--red); }
.f1-tabs { flex-wrap: wrap; }
@media (max-width: 599px) {
  .st .tm-name { display: none; }
  .st .st-name { min-width: 150px; }
  .f1-hero { padding: 18px 16px; }
  .f1-next h2 { font-size: 22px; }
}
/* Dark mode: light chip behind logos so dark marks stay visible. */
:root[data-theme="dark"] img.logo { background: rgba(255, 255, 255, .9); border-radius: 6px; padding: 2px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) img.logo { background: rgba(255, 255, 255, .9); border-radius: 6px; padding: 2px; } }
