/* =============================================================
   AABL — design tokens
   Brand: navy #013369, red #D50A0A, blue #0A4A8F (from branding/)
   ============================================================= */
:root {
  --bg: #04142b;          /* page background — deep navy */
  --bg-deep: #020d1d;     /* utility bar, footer */
  --header: #013369;      /* brand navy */
  --surface: #0a2147;     /* cards */
  --surface-2: #0f2b5a;   /* raised / hover */
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);

  --text: #ffffff;
  --text-muted: #a9b9d3;  /* 9:1 on --bg */
  --text-dim: #8399bb;    /* 6:1 on --bg */

  --red: #d50a0a;
  --red-hover: #b30808;
  --blue: #0a4a8f;
  --link: #6cb4ff;        /* 8:1 on --bg */
  --win: #4ade80;
  --loss: #ff7a7a;

  --font-display: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --container: 1320px;
  --gutter: clamp(16px, 3vw, 32px);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 180ms;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: #fff; color: var(--header); font-weight: 700;
  padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

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

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- display type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.eyebrow {
  font: 700 13px/1 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- utility bar ---------- */
.utility { background: var(--bg-deep); font-size: 13px; }
.utility .container { display: flex; align-items: center; gap: 4px; min-height: 36px; }
.utility a {
  color: var(--text-muted); padding: 8px 10px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--dur) var(--ease);
}
.utility a:hover { color: #fff; }
.utility .spacer { flex: 1; }
.utility svg { width: 15px; height: 15px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header);
  box-shadow: 0 3px 0 var(--red);
}
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 52px; height: 52px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .display { font-size: 26px; }
.brand-text small { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #c9d6ea; margin-top: 3px; }

.main-nav { flex: 1; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav a {
  display: block; position: relative;
  padding: 24px 14px;
  font: 700 17px/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.04em;
  color: #dbe5f4;
  transition: color var(--dur) var(--ease);
}
.main-nav a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 4px;
  background: #fff; border-radius: 4px 4px 0 0;
  transform: scaleX(0); transition: transform var(--dur) var(--ease);
}
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a[aria-current='page'] { color: #fff; }
.main-nav a[aria-current='page']::after { transform: scaleX(1); background: var(--red); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 15px/1 var(--font-body); letter-spacing: 0.02em;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); }
.btn-outline { border-color: var(--line-strong); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn-white { background: #fff; color: var(--header); }
.btn-white:hover { background: #e4ecf7; }

.menu-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 8px;
  background: transparent; border: 1px solid var(--line-strong);
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- ticker ---------- */
.ticker { border-bottom: 1px solid var(--line); }
.ticker ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none;
}
.ticker ul::-webkit-scrollbar { display: none; }
.ticker li { flex-shrink: 0; }
.ticker a {
  display: flex; align-items: center; gap: 10px; padding: 12px 0;
  font-size: 14px; color: var(--text-muted);
  transition: color var(--dur) var(--ease);
}
.ticker a:hover { color: #fff; }
.ticker .badge { width: 22px; height: 22px; }

/* ---------- sections ---------- */
main { display: block; padding-bottom: 72px; }
.section { margin-top: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-title { font-size: clamp(28px, 3.2vw, 40px); }
.more-link {
  color: var(--link); font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
}
.more-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.more-link svg { width: 16px; height: 16px; }

.page-hero {
  background:
    radial-gradient(ellipse at 85% 30%, rgba(10, 74, 143, 0.55), transparent 60%),
    linear-gradient(180deg, #06204a, var(--bg));
  border-bottom: 1px solid var(--line);
  padding-block: 48px 36px;
  position: relative; overflow: hidden;
}
.page-hero h1 { font-size: clamp(44px, 7vw, 84px); }
.page-hero p { color: var(--text-muted); margin-top: 10px; max-width: 60ch; font-size: 18px; }
.page-hero .court-lines { position: absolute; right: -120px; top: 50%; transform: translateY(-50%); width: 520px; opacity: 0.12; pointer-events: none; }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* ---------- home hero ---------- */
.hero-grid {
  display: grid; gap: 20px; margin-top: 28px;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr) 360px;
}
/* No news yet: the week's games fill the top, with game days side by side. */
.hero-grid.games-only { grid-template-columns: minmax(0, 1fr); }
.games-only .match-panel { padding: 22px 24px; }
.games-only .match-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); column-gap: 32px; }
/* Only one story: lead story + games, no middle column. */
@media (min-width: 1181px) {
  .hero-grid.no-stack { grid-template-columns: minmax(0, 1fr) 360px; }
}
.lead-story { display: flex; flex-direction: column; overflow: hidden; }
.lead-story .art { aspect-ratio: 16 / 9; flex: 1 0 auto; }
.lead-story .body { padding: 22px 24px 26px; }
.lead-story h2 { font-size: clamp(30px, 3.2vw, 44px); margin-top: 10px; }
.lead-story p { color: var(--text-muted); margin-top: 10px; font-size: 17px; }
.lead-story:hover h2 { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }

.story-stack { display: flex; flex-direction: column; gap: 12px; }
.story-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 14px; align-items: center;
  padding: 12px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: background var(--dur) var(--ease);
}
.story-row:hover { background: var(--surface-2); }
.story-row h3 { font: 600 16px/1.3 var(--font-body); }
.story-row .eyebrow { font-size: 11px; margin-top: 8px; display: block; }
.story-row .art { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }

/* ---------- story art (generated thumbnails) ---------- */
.art {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--c1, var(--blue)) 0%, var(--c1, var(--blue)) 48%, var(--c2, var(--header)) 48.2%, var(--c2, var(--header)) 100%);
}
.art img.photo { width: 100%; height: 100%; object-fit: cover; }
.art .court-lines { position: absolute; inset: -10% -10% auto auto; width: 75%; opacity: 0.22; }
.art .art-badges { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6%; }
.art .art-badges .badge { width: 34%; max-width: 170px; height: auto; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35)); }
.art .art-tag {
  position: absolute; left: 12px; bottom: 12px;
  background: var(--red); color: #fff;
  font: 700 12px/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.08em;
  padding: 6px 9px; border-radius: 4px;
}
.story-row .art .art-badges .badge { width: 46%; }

/* ---------- match panel ---------- */
.match-panel { padding: 18px; align-self: start; }
.match-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.match-panel-head h2 { font-size: 26px; }
.match-day { font: 700 13px/1 var(--font-body); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; padding: 16px 0 8px; }

.match {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 10px;
  padding: 12px 10px; border-radius: var(--radius-sm);
  transition: background var(--dur) var(--ease);
}
.match + .match { border-top: 1px solid var(--line); }
.match:hover { background: rgba(255, 255, 255, 0.04); }
.match .side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.match .side.home { justify-content: flex-end; text-align: right; }
.match .side .badge { width: 34px; height: 34px; flex-shrink: 0; }
.match .tname { font: 700 18px/1 var(--font-display); text-transform: uppercase; }
.match .tname.lost { color: var(--text-dim); }
.match .center { text-align: center; min-width: 84px; }
.score {
  display: inline-flex; gap: 2px;
  font: 800 20px/1 var(--font-display); font-variant-numeric: tabular-nums;
}
.score span { background: var(--header); padding: 6px 8px; border-radius: 6px; min-width: 40px; }
.score span.won { background: #fff; color: var(--header); }
.match .time { display: inline-block; background: var(--surface-2); border: 1px solid var(--line-strong); padding: 6px 10px; border-radius: 6px; font-weight: 700; font-size: 14px; }
.match .status { display: block; font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 5px; font-weight: 700; }

/* ---------- news grid ---------- */
.news-grid { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.news-card { overflow: hidden; display: flex; flex-direction: column; transition: background var(--dur) var(--ease), transform var(--dur) var(--ease); }
.news-card:hover { background: var(--surface-2); transform: translateY(-2px); }
.news-card .art { aspect-ratio: 16 / 10; }
.news-card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card h3 { font: 700 18px/1.3 var(--font-body); }
.news-card p { color: var(--text-muted); font-size: 15px; }
.news-card .meta { margin-top: auto; font-size: 13px; color: var(--text-dim); }

/* ---------- table + leaders ---------- */
.split { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
@media (min-width: 961px) { .split.even { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.table-wrap { overflow-x: auto; }
.data-table { font-size: 15px; }
.data-table th, .data-table td { padding: 12px 10px; text-align: right; white-space: nowrap; }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table thead th {
  font: 700 12px/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); border-bottom: 1px solid var(--line-strong);
}
.data-table tbody tr { border-bottom: 1px solid var(--line); transition: background var(--dur) var(--ease); }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.04); }
.data-table td.team-cell, .data-table th.team-cell { text-align: left; }
.team-cell a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.team-cell a:hover { text-decoration: underline; text-underline-offset: 3px; }
.team-cell .badge { width: 28px; height: 28px; flex-shrink: 0; }
.pos { display: inline-block; width: 28px; color: var(--text-muted); font-weight: 700; }
.pos.playoff { color: #fff; }
.playoff-row td:first-child { box-shadow: inset 4px 0 0 var(--red); }
.cut-line td { border-bottom: 2px dashed var(--line-strong); }
.data-table .hl { font-weight: 800; color: #fff; }
.form { display: inline-flex; gap: 4px; }
.form span {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-size: 11px; font-weight: 800; color: #04142b;
}
.form .W { background: var(--win); }
.form .L { background: var(--loss); }

.table-card { padding: 8px 18px 14px; }
.table-card h3 { font-size: 24px; padding: 14px 0 6px; }
.table-note { font-size: 13px; color: var(--text-dim); margin-top: 12px; display: flex; align-items: center; gap: 8px; }
.table-note i { width: 14px; height: 14px; background: var(--red); border-radius: 2px; display: inline-block; }

.leaders { display: grid; gap: 14px; }
.leader-card { padding: 18px; }
.leader-card h3 { font: 700 13px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.leader-top { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.leader-top .badge { width: 48px; height: 48px; }
.leader-top .who { flex: 1; min-width: 0; }
.leader-top .who strong { display: block; font: 800 22px/1.1 var(--font-display); text-transform: uppercase; overflow-wrap: anywhere; }
.leader-top .who span { font-size: 14px; color: var(--text-muted); }
.leader-top .val { font: 800 44px/1 var(--font-display); }
.news-grid .leader-top { gap: 10px; }
.news-grid .leader-top .badge { width: 40px; height: 40px; }
.news-grid .leader-top .who strong { font-size: 17px; text-transform: none; overflow-wrap: anywhere; }
.news-grid .leader-top .val { font-size: 30px; }
.leader-rest { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.leader-rest li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 15px; color: var(--text-muted); }
.leader-rest li + li { border-top: 1px solid var(--line); }
.leader-rest b { color: #fff; font-variant-numeric: tabular-nums; }

/* ---------- watch ---------- */
.watch-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.watch-card { overflow: hidden; }
.watch-card .art { aspect-ratio: 16 / 9; }
.watch-card .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; background: rgba(2, 13, 29, 0.75);
  display: grid; place-items: center; border: 2px solid rgba(255, 255, 255, 0.7);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.watch-card .play svg { width: 26px; height: 26px; margin-left: 4px; }
.watch-card:hover .play { transform: translate(-50%, -50%) scale(1.06); background: var(--red); }
.watch-card .body { padding: 16px 18px 18px; }
.watch-card h3 { font: 700 18px/1.3 var(--font-body); }
.watch-card .meta { color: var(--text-dim); font-size: 13px; margin-top: 6px; }

/* ---------- discord CTA ---------- */
.cta-band {
  margin-top: 72px; position: relative; overflow: hidden;
  background: linear-gradient(100deg, var(--header) 0%, var(--blue) 100%);
  border-radius: var(--radius);
  display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center;
  padding: 36px 40px;
}
.cta-band img { width: 120px; height: 120px; }
.cta-band h2 { font-size: clamp(30px, 3.6vw, 48px); }
.cta-band p { color: #d6e2f3; margin-top: 8px; font-size: 17px; max-width: 56ch; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .court-lines { position: absolute; right: -60px; top: -80px; width: 420px; opacity: 0.12; pointer-events: none; }

/* ---------- filters / tabs ---------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 28px 0 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong);
  font-weight: 600; font-size: 15px;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.chip:hover { border-color: #fff; }
.chip[aria-pressed='true'] { background: #fff; color: var(--header); border-color: #fff; }

.week-nav { display: flex; align-items: center; gap: 12px; }
.week-nav button {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line-strong);
  display: grid; place-items: center;
}
.week-nav button:disabled { opacity: 0.4; cursor: not-allowed; }
.week-nav button svg { width: 20px; height: 20px; }
.week-nav select {
  min-height: 44px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); color: #fff; border: 1px solid var(--line-strong);
  font: 700 16px var(--font-body);
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.field input, .field select {
  min-height: 44px; padding: 0 14px; border-radius: var(--radius-sm);
  background: var(--surface); color: #fff; border: 1px solid var(--line-strong);
  font: 16px var(--font-body); min-width: 0;
}

/* ---------- schedule page ---------- */
.schedule-day { margin-top: 28px; }
.schedule-day h2 { font-size: 26px; margin-bottom: 10px; }
.schedule-day .card { padding: 6px 14px; }
.schedule-day .match { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; }
.schedule-day .match .extra { font-size: 14px; color: var(--link); font-weight: 600; min-width: 92px; display: inline-flex; align-items: center; justify-content: flex-end; gap: 2px; }
.match .extra svg { width: 14px; height: 14px; }
a.match:hover .extra { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- teams ---------- */
.teams-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.team-card {
  overflow: hidden; position: relative;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.team-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.team-card .stripe { height: 96px; position: relative; overflow: hidden; background: linear-gradient(120deg, var(--c1) 60%, var(--c2) 60.3%); }
.team-card .stripe .court-lines { position: absolute; right: -20px; top: -40px; width: 200px; opacity: 0.25; }
.team-card .badge { width: 88px; height: 88px; position: absolute; left: 18px; top: 48px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4)); }
.team-card .body { padding: 48px 18px 18px; }
.team-card .city { color: var(--text-muted); font-weight: 600; font-size: 14px; }
.team-card h3 { font-size: 30px; }
.team-card .rec { display: flex; gap: 18px; margin-top: 12px; font-size: 14px; color: var(--text-muted); }
.team-card .rec b { display: block; font: 800 22px/1 var(--font-display); color: #fff; }

.team-hero { padding-block: 40px; position: relative; overflow: hidden; background: linear-gradient(120deg, var(--c1) 0%, var(--c1) 55%, var(--c2) 55.2%); }
.team-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 13, 29, 0.55), rgba(2, 13, 29, 0.1)); }
.team-hero .container { position: relative; z-index: 1; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.team-hero .badge { width: 140px; height: 140px; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.4)); }
.team-hero h1 { font-size: clamp(44px, 7vw, 80px); text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35); }
.team-hero .sub { font-weight: 700; font-size: 18px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4); }
.team-stats { display: flex; gap: 28px; margin-top: 16px; flex-wrap: wrap; }
.team-stats div { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }
.team-stats b { display: block; font: 800 34px/1 var(--font-display); letter-spacing: 0; }

/* ---------- team lineup (half court) ---------- */
.lineup { overflow: hidden; max-width: 760px; }
.lineup-body { display: grid; grid-template-columns: minmax(0, 1fr) 220px; }
.court-box {
  position: relative; aspect-ratio: 500 / 470; max-width: 520px; width: 100%; margin: 0 auto;
}
.court-box .court { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(255, 255, 255, 0.2); }
.spots { list-style: none; margin: 0; padding: 0; }
.spot {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  width: 30%; max-width: 150px;
}
.spot .avatar {
  position: relative; width: clamp(48px, 11vw, 68px); aspect-ratio: 1;
  border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--surface-2), #0b1d3d);
  border: 1px solid var(--line-strong);
}
.spot .jersey { width: 78%; height: auto; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35)); }
.stat-pill {
  position: absolute; top: -12px; left: -22px;
  background: var(--bg-deep); border: 1px solid var(--line-strong);
  padding: 4px 8px; border-radius: 999px;
  font: 800 12px/1 var(--font-display); white-space: nowrap;
}
.stat-pill small { font-size: 10px; color: var(--text-muted); letter-spacing: 0.06em; }
.pname { margin-top: 6px; font-weight: 700; font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
.pnum { color: var(--text-dim); font-weight: 500; margin-right: 2px; }
.ppos { margin-top: 2px; font: 700 12px/1 var(--font-body); letter-spacing: 0.1em; color: var(--text-muted); }
.ppos .oop { color: #ffd166; letter-spacing: 0.04em; font-weight: 600; white-space: nowrap; }
.spot.open .avatar { background: transparent; border: 2px dashed var(--line-strong); }
.spot.open .pname { color: var(--text-dim); }

.bench { border-left: 1px solid var(--line); padding: 20px; }
.bench h3 { font: 700 13px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.bench ul { list-style: none; margin: 0; padding: 0; }
.bench li { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.bench li + li { border-top: 1px solid var(--line); }
.bench .jersey { width: 40px; height: 40px; flex-shrink: 0; }
.bench strong { display: block; font-weight: 700; overflow-wrap: anywhere; }
.bench small { color: var(--text-muted); font-size: 13px; }

@media (max-width: 680px) {
  .lineup-body { grid-template-columns: minmax(0, 1fr); }
  .bench { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .pname { font-size: 12px; margin-top: 6px; }
  .ppos { font-size: 10px; }
  .stat-pill { font-size: 11px; padding: 3px 6px; left: -16px; top: -10px; }
  .stat-pill small { display: none; }
}

/* ---------- staff data check ---------- */
.check-summary { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 28px; }
.check-summary .card { padding: 16px 18px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.check-summary b { display: block; font: 800 34px/1 var(--font-display); color: #fff; letter-spacing: 0; margin-bottom: 6px; }
.check-status { font-weight: 700; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-strong); }
.check-status.bad { color: var(--loss); border-color: var(--loss); }
.check-status.meh { color: #ffd166; border-color: #ffd166; }
.check-status.good { color: var(--win); border-color: var(--win); }
.check-help { color: var(--text-muted); margin-top: -8px; }
.check-tab { font-size: 22px; margin: 24px 0 8px; }
.check-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.check-list li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 12px 16px; font-size: 15px; }
.check-list li + li { border-top: 1px solid var(--line); }
.check-list li.error { box-shadow: inset 4px 0 0 var(--loss); }
.check-list li.warning { box-shadow: inset 4px 0 0 #ffd166; }
.check-row { color: var(--text-muted); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- game page ---------- */
.game-hero {
  position: relative; overflow: hidden; padding-block: 8px 32px;
  background: linear-gradient(110deg, var(--c1) 0%, var(--c1) 49.8%, var(--c2) 50.2%, var(--c2) 100%);
}
.game-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2, 13, 29, 0.55), rgba(2, 13, 29, 0.75)); }
.game-hero .container { position: relative; z-index: 1; }
.game-hero .back-link { color: #fff; margin-top: 12px; }
.gh-board { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; margin-top: 12px; }
.gh-team { display: flex; align-items: center; gap: 18px; min-width: 0; }
.gh-team.home { flex-direction: row-reverse; text-align: right; }
.gh-team .badge { width: clamp(64px, 9vw, 112px); height: auto; flex-shrink: 0; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4)); }
.gh-name { display: flex; flex-direction: column; min-width: 0; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
.gh-name b { font: 800 clamp(22px, 3vw, 36px)/1.05 var(--font-display); text-transform: uppercase; }
.gh-name small { font-size: 14px; font-weight: 600; color: #dbe5f4; }
.gh-team:hover b { text-decoration: underline; text-underline-offset: 4px; }
.gh-score { font: 800 clamp(44px, 7vw, 88px)/1 var(--font-display); margin-left: auto; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45); }
.gh-team.home .gh-score { margin-left: 0; margin-right: auto; }
.gh-score.lost { opacity: 0.6; }
.gh-center { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
.gh-status { background: #fff; color: var(--header); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; font-size: 14px; padding: 6px 12px; border-radius: 6px; text-shadow: none; }
.gh-time { font: 800 30px/1 var(--font-display); }
.gh-date { font-weight: 600; font-size: 15px; }
.gh-at { font-size: 13px; color: #c9d6ea; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.gh-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

.potg {
  position: relative; overflow: hidden; border-radius: var(--radius);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 36px; align-items: center;
  padding: 36px 44px;
  background: linear-gradient(120deg, var(--c1) 0%, var(--c1) 58%, var(--c2) 58.2%, var(--c2) 100%);
}
.potg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 13, 29, 0.35), rgba(2, 13, 29, 0.6)); }
.potg > * { position: relative; z-index: 1; }
.potg > .court-lines { position: absolute; z-index: 0; right: -80px; top: 50%; transform: translateY(-50%); width: 460px; opacity: 0.18; }
.potg-jersey { width: clamp(120px, 16vw, 200px); filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.45)); }
.potg-jersey .jersey { width: 100%; height: auto; display: block; }
.potg .eyebrow { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }
.potg h2 { font-size: clamp(36px, 6vw, 72px); margin-top: 6px; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45); overflow-wrap: anywhere; }
.potg-team { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }
.potg-team .badge { width: 28px; height: 28px; }
.potg-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.potg-stats div { background: rgba(2, 13, 29, 0.55); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius-sm); padding: 10px 14px; min-width: 84px; display: flex; flex-direction: column; gap: 4px; }
.potg-stats b { font: 800 30px/1 var(--font-display); }
.potg-stats span { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #dbe5f4; }

.game-court-card { padding: 18px 20px; }
.court-legend { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; margin-bottom: 12px; }
.court-legend span { display: inline-flex; align-items: center; gap: 8px; }
.court-legend .badge { width: 30px; height: 30px; }
.game-court { position: relative; aspect-ratio: 940 / 500; width: 100%; max-width: 1100px; margin: 0 auto; }
.game-court .court { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(255, 255, 255, 0.2); }
.game-court .court-tall { display: none; }
.game-court .spot { left: var(--wx); top: var(--wy); width: 18%; max-width: 210px; }
.box-grid { display: grid; gap: 20px; }
.box-score h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.box-score h3 .badge { width: 30px; height: 30px; }
.box-score tfoot th, .box-score tfoot td { font-weight: 800; border-top: 2px solid var(--line-strong); padding-top: 12px; }
.bx-player { display: flex; flex-direction: column; font-weight: 700; }
.bx-player small { font-weight: 500; font-size: 12px; color: var(--text-dim); }
.bx-star { color: #ffd166; }
.data-table tr.hl-row { background: rgba(255, 255, 255, 0.07); }
.data-table tr.hl-row .team-cell a { color: #fff; font-weight: 800; }

@media (max-width: 760px) {
  .gh-board { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .gh-team, .gh-team.home { flex-direction: row; text-align: left; }
  .gh-team.home .gh-score { margin-left: auto; margin-right: 0; }
  .gh-center { order: -1; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .potg { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; gap: 14px; }
  .potg-jersey { width: 110px; }
  .potg-stats div { min-width: 0; flex: 1 1 calc(33% - 10px); }
  .game-court { aspect-ratio: 500 / 940; max-width: 460px; }
  .game-court .court-wide { display: none; }
  .game-court .court-tall { display: block; }
  .game-court .spot { left: var(--tx); top: var(--ty); width: 30%; }
  .game-court .spot .avatar { width: 44px; }
  .game-court .pname { font-size: 11px; margin-top: 4px; }
  .game-court .pnum { display: none; }
  .game-court .ppos { font-size: 9px; }
  .game-court .stat-pill { font-size: 10px; padding: 2px 5px; top: -8px; left: -12px; }
  .game-court-card { padding: 14px 12px; }
}

/* ---------- players page ---------- */
.data-table th button {
  background: none; border: 0; padding: 6px 4px; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit;
  display: inline-flex; align-items: center; gap: 4px; min-height: 32px;
}
.data-table th button:hover { color: #fff; }
.data-table th[aria-sort] button { color: #fff; }
.data-table th button .arrow { width: 10px; opacity: 0; }
.data-table th[aria-sort] button .arrow { opacity: 1; }
.data-table th[aria-sort='ascending'] .arrow { transform: rotate(180deg); }
.player-cell { display: flex; align-items: center; gap: 10px; }
.player-cell .badge { width: 26px; height: 26px; }
.player-cell strong { font-weight: 700; }
.player-cell small { display: block; color: var(--text-dim); font-size: 12px; }
.empty-state { padding: 40px 16px; text-align: center; color: var(--text-muted); }

/* ---------- article ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article .art { aspect-ratio: 16 / 9; border-radius: var(--radius); margin-top: 28px; }
.article h1 { font-size: clamp(38px, 5.4vw, 64px); margin-top: 32px; }
.article .meta { color: var(--text-muted); margin-top: 14px; font-size: 15px; }
.article .content { margin-top: 28px; font-size: 19px; line-height: 1.7; color: #dde6f3; }
.article .content p + p { margin-top: 1.1em; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--link); font-weight: 600; margin-top: 28px; min-height: 44px; }
.back-link svg { width: 16px; height: 16px; transform: rotate(180deg); }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-deep); border-top: 3px solid var(--red); padding-block: 40px 28px; }
.footer-teams { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer-teams a { padding: 6px; border-radius: 8px; transition: background var(--dur) var(--ease); }
.footer-teams a:hover { background: var(--surface); }
.footer-teams .badge { width: 40px; height: 40px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-top: 32px; }
.footer-cols h2 { font: 700 13px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li a { display: inline-block; padding: 6px 0; color: #dbe5f4; }
.footer-cols li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-brand img { width: 72px; height: 72px; }
.footer-brand p { color: var(--text-muted); margin-top: 12px; font-size: 15px; max-width: 34ch; }
.footer-legal { margin-top: 32px; font-size: 13px; color: var(--text-dim); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.stars { color: var(--red); letter-spacing: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lead-story { grid-column: 1 / -1; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav a { padding-inline: 10px; font-size: 16px; }
}
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .site-header .header-cta { display: none; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--header); border-top: 1px solid var(--line);
    box-shadow: 0 3px 0 var(--red), 0 18px 30px rgba(0, 0, 0, 0.4);
  }
  .main-nav[hidden] { display: none; }
  .main-nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .main-nav a { padding: 14px 4px; font-size: 20px; }
  .main-nav a::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 4px; height: auto; border-radius: 0 4px 4px 0; transform: scaleY(0); }
  .main-nav a:hover::after, .main-nav a[aria-current='page']::after { transform: scaleY(1); }
  .main-nav a[aria-current='page'] { padding-left: 16px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .watch-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; text-align: left; padding: 28px; }
  .cta-band img { width: 88px; height: 88px; }
}
@media (min-width: 961px) {
  .main-nav[hidden] { display: block; }
}
@media (max-width: 700px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .news-grid, .watch-grid { grid-template-columns: minmax(0, 1fr); }
  .utility .hide-sm { display: none; }
  .brand-text small { display: none; }
  .brand img { width: 44px; height: 44px; }
  .site-header .container { min-height: 64px; }
  .lead-story .body { padding: 18px; }
  .match .tname { font-size: 16px; }
  .match .side .badge { width: 28px; height: 28px; }
  .match .center { min-width: 72px; }
  .score span { min-width: 34px; padding: 5px 6px; font-size: 18px; }
  .schedule-day .match { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .schedule-day .match .extra { grid-column: 1 / -1; text-align: center; min-width: 0; }
  .footer-cols { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
}
@media (max-width: 420px) {
  .match .tname .full { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .news-card:hover, .team-card:hover { transform: none; }
}
