/* =============================================================
   AABL public site (league + Legacy): app-style design with light and dark themes.
   Compact cards, stacked score rows and a three-column layout on wide screens.
   The admin panels use styles.css (and legacy.css) instead, so they are not affected by this file.
   ============================================================= */

/* ---------- design tokens ---------- */
:root {
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --container: 1400px;
  --gutter: clamp(12px, 2.4vw, 24px);
  --gap: 16px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 160ms;

  --red: #e5262e;          /* live / highlights / brand red */
  --red-hover: #c81e25;
  --header-bg: #0b1f45;    /* brand navy app bar */
  --header-text: #ffffff;
  --header-muted: #b9c6e0;
  --header-line: rgba(255, 255, 255, 0.12);

  /* Light theme (default) */
  --bg: #f7f8fa;          /* just off-white, so the white cards still stand out */
  --surface: #ffffff;
  --surface-2: #f4f6fa;
  --surface-3: #e8ecf3;
  --line: #e2e7ef;
  --line-strong: #cbd3df;
  --text: #0f1726;         /* 16:1 on white */
  --text-muted: #4e5b70;   /* 7:1 on white */
  --text-dim: #64718a;     /* 4.8:1 on white */
  --accent: #cc1d25;       /* AABL red, 5.6:1 on white */
  --accent-hover: #a9151c;
  --accent-fill: #cc1d25;  /* buttons, selected tabs, badges (white text on top) */
  --accent-fill-hover: #a9151c;
  --accent-soft: rgba(204, 29, 37, 0.09);
  --on-accent: #ffffff;
  --link: #c41a22;
  --win: #0b8a4c;
  --loss: #d93338;
  --gold: #a8690c;
  --warn-bg: #fff6e0;
  --warn-line: #f1d48a;
  --warn-text: #6b4a00;
  --shadow: 0 1px 2px rgba(15, 23, 38, 0.06), 0 1px 3px rgba(15, 23, 38, 0.04);
  --shadow-lg: 0 14px 34px rgba(15, 23, 38, 0.18);
  --court-floor: #f4ede1;
  --court-line: rgba(11, 31, 69, 0.3);
  color-scheme: light;
}
/* Dark theme: picked with the header button, or the device setting when nothing was picked. */
:root[data-theme='dark'] {
  --header-bg: #0e141f;
  --header-line: rgba(255, 255, 255, 0.08);
  --bg: #0a0e15;
  --surface: #131924;
  --surface-2: #1a2130;
  --surface-3: #222b3b;
  --line: #222b3a;
  --line-strong: #334054;
  --text: #eef2f8;
  --text-muted: #a9b4c7;   /* 8:1 on surface */
  --text-dim: #8794aa;     /* 5.3:1 on surface */
  --accent: #ff5c63;       /* 5.7:1 on dark cards */
  --accent-hover: #ff7a80;
  --accent-fill: #d8232b;
  --accent-fill-hover: #ee2d35;
  --accent-soft: rgba(255, 92, 99, 0.14);
  --on-accent: #ffffff;
  --link: #ff7076;
  --win: #34c77b;
  --loss: #ff6166;
  --gold: #f2b94a;
  --warn-bg: rgba(242, 185, 74, 0.1);
  --warn-line: rgba(242, 185, 74, 0.4);
  --warn-text: #f6d58f;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.55);
  --court-floor: #171f2c;
  --court-line: rgba(255, 255, 255, 0.2);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 400 15px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
main { display: block; flex: 1; padding-bottom: 48px; }
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.15; text-wrap: balance; }
p { margin: 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--surface); color: var(--text); font-weight: 700; padding: 10px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.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 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.005em; }
.eyebrow { font: 700 12px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.help { display: block; color: var(--text-muted); font-size: 13px; }
.empty-state { padding: 32px 16px; text-align: center; color: var(--text-muted); }
.court-lines { display: none; } /* decorative circles from the old design */

/* ---------- buttons, chips, form controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent;
  font: 700 14px/1 var(--font-body); white-space: nowrap;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn-red, .btn-accent { background: var(--accent-fill); color: var(--on-accent); }
.btn-red:hover, .btn-accent:hover { background: var(--accent-fill-hover); }
.btn-outline { border-color: var(--line-strong); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-white { background: #fff; color: #0b1f45; }
.btn-white:hover { background: #e7edf8; }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  min-height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-muted);
  font-weight: 700; font-size: 13px; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip[aria-pressed='true'] { background: var(--accent-fill); color: var(--on-accent); border-color: var(--accent-fill); }

select, input[type='search'], input[type='text'] {
  min-height: 40px; padding: 0 12px; border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  font: 600 14px var(--font-body); min-width: 0;
}
select:hover, input:hover { border-color: var(--line-strong); }
select:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: var(--gap); }

.week-nav { display: flex; align-items: center; gap: 8px; }
.week-nav button { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; }
.week-nav button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.week-nav button:disabled { opacity: 0.4; cursor: not-allowed; }
.week-nav button svg { width: 18px; height: 18px; }
.week-nav select { border-radius: 999px; font-weight: 800; }

.season-pick { display: flex; align-items: center; gap: 8px; }
.season-pick label { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
.season-pick select { border-radius: 999px; }
.hero-pickers { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.past-tag { display: inline-block; background: var(--gold); color: #fff; font: 800 11px/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 7px; border-radius: 4px; vertical-align: middle; }
:root[data-theme='dark'] .past-tag { color: #2a1d00; }
.past-note { margin-bottom: var(--gap); padding: 12px 16px; border-radius: var(--radius-sm); background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-text); font-size: 14px; }
.past-note a { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- app header ---------- */
.app-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); color: var(--header-text); border-bottom: 1px solid var(--header-line); }
.app-header .container { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font: 800 22px/1 var(--font-display); letter-spacing: 0.02em; }
.brand-home, .brand-name { display: flex; color: inherit; }
.brand-text small a { color: inherit; }
.brand-text small a:hover { color: var(--header-text); text-decoration: underline; }
.tm-seasons li a { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.tm-seasons li:hover { border-color: var(--line-strong); }
.brand-text small { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--header-muted); margin-top: 3px; }
/* League / Legacy switch */
.site-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--header-line); flex-shrink: 0; }
.site-switch a { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--header-muted); }
.site-switch a:hover { color: #fff; }
.site-switch a[aria-current='true'] { background: #fff; color: #0b1f45; }
.main-nav { flex: 1; min-width: 0; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav > ul > li > a { display: block; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--header-muted); transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.main-nav > ul > li > a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.main-nav > ul > li > a[aria-current='page'] { color: #fff; background: rgba(255, 255, 255, 0.14); }
.nav-group { position: relative; }
.nav-chev { margin-left: 3px; transition: transform 0.2s ease; }
.nav-group-link { display: flex; align-items: center; gap: 0; }
.nav-dropdown { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); list-style: none; margin: 0; padding: 12px 6px 6px; background: var(--header-bg); border: 1px solid var(--header-line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); min-width: 160px; z-index: 60; }
.nav-group::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.nav-group:hover .nav-dropdown { display: block; }
.nav-dropdown a { display: block; padding: 8px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--header-muted); white-space: nowrap; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.nav-dropdown a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-dropdown .nav-dd-current { color: #fff; background: rgba(255, 255, 255, 0.1); }
.nav-group:hover .nav-chev { transform: rotate(180deg); }
.nav-active > a { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; background: transparent; border: 1px solid var(--header-line); color: var(--header-text); }
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
:root[data-theme='dark'] .theme-toggle .moon { display: block; }
:root[data-theme='dark'] .theme-toggle .sun { display: none; }
.header-cta { background: var(--red); color: #fff; }
.header-cta:hover { background: var(--red-hover); }
.menu-toggle { display: none; }

@media (min-width: 769px) { .main-nav[hidden] { display: block; } .main-nav > ul > li > a { white-space: nowrap; } }
@media (max-width: 768px) {
  .menu-toggle { display: inline-grid; }
  .header-cta { display: none; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--header-bg); border-bottom: 1px solid var(--header-line); box-shadow: var(--shadow-lg); }
  .main-nav[hidden] { display: none; }
  .main-nav > ul { flex-direction: column; padding: 8px var(--gutter) 14px; gap: 2px; }
  .main-nav > ul > li > a { padding: 12px 14px; font-size: 16px; border-radius: var(--radius-sm); }
  .nav-dropdown { display: none; position: static; transform: none; border: none; box-shadow: none; margin: 0; padding: 0 0 0 16px; background: transparent; min-width: 0; }
  .nav-group:hover .nav-dropdown { display: none; }
  .nav-group.open .nav-dropdown { display: block; }
  .nav-group.open .nav-chev { transform: rotate(180deg); }
  .nav-dropdown a { padding: 10px 14px; font-size: 15px; }
}
@media (max-width: 560px) {
  .brand-text small { display: none; }
  .site-switch a { padding: 6px 9px; }
  .app-header .container { gap: 10px; }
}
@media (max-width: 380px) { .brand-text { display: none; } }

/* ---------- page head (title bar under the header) ---------- */
.page-head { padding-block: 22px 18px; }
.page-head .hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.page-head .eyebrow { color: var(--accent); }
.page-head h1 { font: 800 clamp(26px, 3.4vw, 36px)/1.1 var(--font-display); text-transform: uppercase; margin-top: 6px; letter-spacing: -0.01em; }
.page-head p:not(.eyebrow) { color: var(--text-muted); margin-top: 6px; max-width: 70ch; }
.page-head .more-link { min-height: 0; }

/* ---------- layout: three columns on wide screens ---------- */
.layout { display: grid; gap: var(--gap); align-items: start; grid-template-columns: minmax(0, 1fr); }
.layout > * { min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.col-main { order: 1; }
.col-right { order: 2; }
.col-left { order: 3; }
@media (min-width: 900px) {
  .layout.has-right, .layout.three { grid-template-columns: minmax(0, 1fr) 320px; }
  .layout.has-left { grid-template-columns: 300px minmax(0, 1fr); }
  .layout.has-left .col-left { order: 0; }
  .layout.three .col-left { grid-column: 1 / -1; order: 3; }
  .layout .sticky { position: sticky; top: 76px; }
}
@media (min-width: 1240px) {
  .layout.three { grid-template-columns: 290px minmax(0, 1fr) 320px; }
  .layout.three .col-left { grid-column: auto; order: 0; }
}
.section { display: flex; flex-direction: column; gap: 10px; }
.section + .section { margin-top: 6px; }
.layout .section + .section { margin-top: 0; }

/* Section heading above a card */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-inline: 2px; }
.section-title, .section-title.display { font: 800 17px/1.25 var(--font-body); text-transform: none; letter-spacing: 0; }
.more-link { color: var(--link); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 2px; min-height: 32px; }
.more-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.more-link svg { width: 14px; height: 14px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--link); font-weight: 700; font-size: 14px; min-height: 36px; }
.back-link svg { width: 16px; height: 16px; transform: rotate(180deg); }

/* ---------- cards ---------- */
.card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 6px; }
.card-head h2, .card-head h3 { font: 800 15px/1.2 var(--font-body); }
.card-pad { padding: 14px 16px; }
.table-card { padding: 4px 0 8px; overflow: hidden; }
.table-card > h3, .table-card > .card-sub { font: 800 13px/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); padding: 14px 16px 6px; }
.table-note { font-size: 12px; color: var(--text-dim); padding: 10px 16px 6px; display: flex; align-items: center; gap: 8px; }
.table-note i { width: 10px; height: 10px; background: var(--accent-fill); border-radius: 2px; display: inline-block; flex: none; }

/* ---------- score rows (stacked, like the big score apps) ---------- */
.match-list { padding: 4px 0; overflow: hidden; }
.match-day { font: 800 12px/1 var(--font-body); color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; padding: 14px 16px 8px; background: var(--surface-2); border-block: 1px solid var(--line); }
.match-list > .match-day:first-child, .card > .match-day:first-child { border-top: 0; }
.match {
  display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 10px 16px; min-height: 64px; transition: background var(--dur) var(--ease);
}
.match + .match { border-top: 1px solid var(--line); }
a.match:hover { background: var(--surface-2); }
.m-status { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--text-muted); text-align: center; line-height: 1.15; }
.m-status b { font-size: 13px; color: var(--text); }
.m-status .ft { color: var(--text-dim); font-weight: 800; letter-spacing: 0.04em; }
.m-teams { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.m-team { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; font-size: 15px; }
.m-team .badge, .m-team .pfp-wrap { width: 24px; height: 24px; flex: none; }
.m-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-score { font: 700 22px/1 var(--font-display); min-width: 30px; text-align: right; font-variant-numeric: tabular-nums; }
.m-team.lost { color: var(--text-muted); }
.m-team.won { font-weight: 800; }
.m-team.won .m-score::after { content: ''; display: inline-block; width: 0; height: 0; margin-left: 5px; border: 5px solid transparent; border-right-color: var(--text); vertical-align: 3px; margin-right: -14px; }
.m-aside { display: flex; align-items: center; gap: 8px; justify-content: flex-end; min-width: 0; padding-left: 14px; border-left: 1px solid var(--line); align-self: stretch; }
.m-aside .more { display: inline-flex; align-items: center; color: var(--link); font-size: 13px; font-weight: 700; }
.m-aside svg { width: 16px; height: 16px; }
.m-potg { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 170px; }
.m-potg .pfp-wrap { width: 30px; height: 30px; }
.m-potg > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.m-potg small { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.m-potg b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) {
  .match { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; }
  .m-aside { padding-left: 10px; }
  .m-aside .more span, .m-potg > span:last-child { display: none; }
  .m-team { font-size: 14px; }
}

/* ---------- news ---------- */
.news-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.news-card { overflow: hidden; display: flex; flex-direction: column; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.news-card .art { aspect-ratio: 16 / 9; }
.news-card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-card h3 { font: 800 15px/1.3 var(--font-body); }
.news-card p { color: var(--text-muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .meta { margin-top: auto; font-size: 12px; color: var(--text-dim); display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; }
.byline { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text-muted); }
.byline-pfp { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; background: var(--surface-2, #22283a); flex: none; }
.byline-pfp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-by { display: block; margin-top: 6px; font-size: 13px; }
.feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); overflow: hidden; }
.feature .art { min-height: 220px; }
.feature .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.feature h2 { font: 700 clamp(24px, 2.6vw, 32px)/1.05 var(--font-display); text-transform: uppercase; }
.feature p { color: var(--text-muted); font-size: 14px; }
.feature:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 640px) { .feature { grid-template-columns: 1fr; } .feature .art { min-height: 0; aspect-ratio: 16 / 9; } }
.story-list a { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 16px; }
.story-list a + a { border-top: 1px solid var(--line); }
.story-list a:hover { background: var(--surface-2); }
.story-list .art { aspect-ratio: 4 / 3; border-radius: var(--radius-xs); }
.story-list .art .art-badges .badge { width: 44%; }
.story-list h3 { font: 700 14px/1.3 var(--font-body); }
.story-list small { font-size: 11px; color: var(--text-dim); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

/* Generated story art: two team colours split on the diagonal, with their badges. */
.art { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--c1, #cc1d25) 0 48%, var(--c2, #0b1f45) 48.2% 100%); }
.art img.photo { width: 100%; height: 100%; object-fit: cover; }
.art .art-badges { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6%; }
.art .art-badges .badge { width: 30%; max-width: 140px; height: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35)); }
.art .art-tag { position: absolute; left: 10px; bottom: 10px; background: rgba(10, 14, 21, 0.75); color: #fff; font: 800 11px/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.06em; padding: 5px 8px; border-radius: 4px; backdrop-filter: blur(4px); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
/* Side-column standings: always fit the card (no sideways scroll). The team name takes what's left and shortens
   with "…"; the number columns stay narrow. */
.mini-standings { overflow: hidden; }
.mini-standings .data-table { width: 100%; table-layout: fixed; }
.mini-standings .data-table th, .mini-standings .data-table td { padding-inline: 4px; }
.mini-standings .data-table th:first-child, .mini-standings .data-table td:first-child { width: 40px; padding-left: 12px; }
.mini-standings .data-table th:nth-child(n+3), .mini-standings .data-table td:nth-child(n+3) { width: 28px; }
.mini-standings .data-table th:last-child, .mini-standings .data-table td:last-child { width: 42px; padding-right: 12px; }
.mini-standings .team-cell a { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mini-standings .team-cell a > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.data-table { font-size: 14px; }
.data-table th, .data-table td { padding: 10px 10px; text-align: right; white-space: nowrap; }
.data-table th:first-child, .data-table td:first-child { text-align: left; padding-left: 16px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 16px; }
.data-table thead th { font: 700 11px/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); border-bottom: 1px solid var(--line); padding-block: 12px; }
.data-table tbody tr { border-bottom: 1px solid var(--line); transition: background var(--dur) var(--ease); }
.data-table tbody tr:last-child { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table td.team-cell, .data-table th.team-cell { text-align: left; }
.data-table tfoot th, .data-table tfoot td { font-weight: 800; border-top: 1px solid var(--line-strong); background: var(--surface-2); }
.data-table .hl { font-weight: 800; color: var(--text); }
.data-table tr.hl-row { background: var(--accent-soft); }
.data-table tr.hl-row .team-cell a { font-weight: 800; }
.team-cell a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.team-cell a:hover span, .team-cell a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.team-cell .badge { width: 24px; height: 24px; flex-shrink: 0; }
.pos { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: var(--text-muted); font-weight: 800; font-size: 13px; }
.pos.playoff { background: var(--accent-fill); color: var(--on-accent); }
.playoff-row td:first-child { box-shadow: none; }
.cut-line td { border-bottom: 2px dashed var(--line-strong); }
.form { display: inline-flex; gap: 3px; }
.form span { width: 20px; height: 20px; border-radius: 5px; display: inline-grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; }
.form .W { background: var(--win); }
.form .L { background: var(--loss); }
.data-table th button { background: none; border: 0; padding: 4px 2px; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; display: inline-flex; align-items: center; gap: 3px; min-height: 28px; }
.data-table th button:hover { color: var(--accent); }
/* The column a table is sorted by: a soft red band from header to last row. */
.data-table th[aria-sort], .data-table td.sorted { background: var(--accent-soft); }
.data-table th[aria-sort] button, .data-table td.sorted { color: var(--accent); }
.data-table td.sorted { font-weight: 700; }
.data-table th button .arrow { width: 9px; opacity: 0; }
.data-table th[aria-sort] button .arrow { opacity: 1; }
.data-table th[aria-sort='ascending'] .arrow { transform: rotate(180deg); }
.player-cell { display: inline-flex; align-items: center; gap: 10px; }
.player-cell strong { font-weight: 700; }
.player-cell small { display: block; color: var(--text-dim); font-size: 12px; font-weight: 500; }
.player-cell:hover strong, .player-cell:hover .bx-player > span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.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: var(--gold); }
.box-grid { display: grid; gap: var(--gap); }
.box-grid > * { min-width: 0; }
.box-score > h3 { display: flex; align-items: center; gap: 10px; font: 800 15px/1.2 var(--font-body); text-transform: none; letter-spacing: 0; color: var(--text); padding: 14px 16px 8px; }
.box-score h3 .badge { width: 26px; height: 26px; }
.career-row th, .career-row td { font-weight: 800; }
.pl-team { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.pl-team .badge { width: 22px; height: 22px; }
.pl-at { color: var(--text-dim); font-size: 12px; width: 18px; }
.pl-sub { display: block; color: var(--text-dim); font-size: 12px; }
.pl-result { font-weight: 700; white-space: nowrap; }
.pl-result b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; font-size: 10px; color: #fff; margin-right: 6px; }
.pl-result.W b { background: var(--win); }
.pl-result.L b { background: var(--loss); }
a.pl-result:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- leaders ---------- */
.leaders { display: grid; gap: var(--gap); }
.leader-card { padding: 14px 16px; }
.leader-card h3 { font: 800 12px/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.leader-top { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.leader-top .who { flex: 1; min-width: 0; }
.leader-top .who strong { display: block; font: 800 16px/1.2 var(--font-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader-top .who span { font-size: 12px; color: var(--text-muted); }
.leader-top .val { font: 700 38px/1 var(--font-display); }
.leader-rest { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.leader-rest li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; color: var(--text-muted); }
.leader-rest li + li { border-top: 1px solid var(--line); }
.leader-rest b { color: var(--text); font-variant-numeric: tabular-nums; }
.leader-top .who a, .leader-rest a, .bench a { color: inherit; }
.leader-top .who a:hover, .leader-rest a:hover, .bench a:hover { text-decoration: underline; text-underline-offset: 3px; }
.news-grid .leader-top .val { font-size: 32px; }

/* Leader list in a single card (home side columns) */
.mini-leaders .leader-card { border: 0; border-radius: 0; box-shadow: none; background: none; }
.mini-leaders .leader-card + .leader-card { border-top: 1px solid var(--line); }

/* ---------- entity headers (team, player, game): a card tinted with the team colour ---------- */
.ent-head { margin-top: 16px; }
.team-hero, .player-hero, .game-hero, .potg {
  position: relative; overflow: hidden; border-radius: var(--radius); color: #fff;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--c1) 92%, #fff 8%) 0%, transparent 60%),
    linear-gradient(115deg, var(--c1) 0%, color-mix(in srgb, var(--c1) 55%, #05080f) 62%, color-mix(in srgb, var(--c2) 70%, #05080f) 100%);
  box-shadow: var(--shadow);
}
.team-hero::after, .player-hero::after, .game-hero::after, .potg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 8, 15, 0.15), rgba(5, 8, 15, 0.45)); pointer-events: none; }
.team-hero > *, .player-hero > *, .game-hero > *, .potg > * { position: relative; z-index: 1; }
.team-hero .container, .player-hero .container, .game-hero .container { max-width: none; padding-inline: clamp(16px, 3vw, 28px); }

.team-hero { padding-block: 24px; }
.team-hero .container { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.team-hero .badge { width: 104px; height: 104px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4)); }
.team-hero h1 { font: 700 clamp(36px, 5.5vw, 60px)/1 var(--font-display); text-transform: uppercase; }
.team-hero .sub { font-weight: 700; font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.team-stats { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.team-stats div { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; background: rgba(5, 8, 15, 0.35); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: var(--radius-sm); padding: 8px 12px; min-width: 76px; color: rgba(255, 255, 255, 0.8); }
.team-stats b { display: block; font: 700 26px/1 var(--font-display); letter-spacing: 0; color: #fff; margin-bottom: 3px; }
.team-hero .season-pick { margin-left: auto; align-self: flex-end; }
.team-hero .season-pick label, .player-hero .season-pick label { color: rgba(255, 255, 255, 0.85); }
.team-hero select, .game-hero select { background: rgba(5, 8, 15, 0.4); color: #fff; border-color: rgba(255, 255, 255, 0.25); }

.player-hero { padding-block: 24px; }
.player-hero .container { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ph-body { min-width: 0; }
.ph-team { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: rgba(255, 255, 255, 0.9); }
.ph-team .badge { width: 24px; height: 24px; }
a.ph-team:hover { text-decoration: underline; text-underline-offset: 3px; }
.player-hero h1 { font: 700 clamp(36px, 6vw, 64px)/1 var(--font-display); text-transform: uppercase; margin-top: 4px; overflow-wrap: anywhere; }
.ph-meta { font-weight: 600; font-size: 15px; margin-top: 4px; color: rgba(255, 255, 255, 0.85); }
.ph-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.ph-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: rgba(5, 8, 15, 0.35); border: 1px solid rgba(255, 255, 255, 0.2); font-weight: 700; font-size: 14px; }
.ph-chip svg { width: 18px; height: 18px; }

.game-hero { padding-block: 10px 22px; }
.game-hero .back-link { color: #fff; }
.gh-board { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; margin-top: 8px; }
.gh-team { display: flex; align-items: center; gap: 14px; min-width: 0; color: #fff; }
.gh-team.home { flex-direction: row-reverse; text-align: right; }
.gh-team .badge { width: clamp(56px, 7vw, 88px); height: auto; flex-shrink: 0; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4)); }
.gh-name { display: flex; flex-direction: column; min-width: 0; }
.gh-name b { font: 700 clamp(20px, 2.6vw, 30px)/1.05 var(--font-display); text-transform: uppercase; }
.gh-name small { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.78); }
a.gh-team:hover b { text-decoration: underline; text-underline-offset: 4px; }
.gh-score { font: 700 clamp(48px, 7vw, 84px)/1 var(--font-display); margin-left: auto; }
.gh-team.home .gh-score { margin-left: 0; margin-right: auto; }
.gh-score.lost { opacity: 0.55; }
.gh-center { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.gh-status { background: rgba(255, 255, 255, 0.95); color: #0b1f45; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 12px; padding: 5px 10px; border-radius: 999px; }
.gh-time { font: 700 30px/1 var(--font-display); }
.gh-date { font-weight: 700; font-size: 14px; }
.gh-at { font-size: 12px; color: rgba(255, 255, 255, 0.75); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
.gh-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.gh-actions .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.gh-actions .btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.1); }
@media (max-width: 760px) {
  .gh-board { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .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; }
}

/* Player of the Game / Week */
.potg { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; padding: 22px 24px; }
.potg-jersey { position: relative; display: block; width: clamp(96px, 11vw, 132px); filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.45)); }
.potg-jersey .jersey { width: 100%; height: auto; display: block; }
.potg-pfp { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px var(--c2); }
.potg-pfp img { width: 100%; height: 100%; object-fit: cover; display: block; background: #dfe6ef; }
.potg-pfp:has(img) + .jersey { visibility: hidden; }
.potg-badge { position: absolute; right: -2%; bottom: -2%; width: 32%; height: 32%; z-index: 2; }
.potg-badge .badge { width: 100%; height: 100%; display: block; }
.potg .eyebrow { color: #ffd76a; }
.potg h2 { font: 700 clamp(30px, 4.4vw, 48px)/1 var(--font-display); text-transform: uppercase; margin-top: 4px; overflow-wrap: anywhere; }
.potg h2 a { color: inherit; }
.potg h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.potg-team { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; font-size: 14px; color: rgba(255, 255, 255, 0.88); }
.potg-team .badge { width: 22px; height: 22px; }
.potg-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; margin-top: 14px; }
.potg-stats div { background: rgba(5, 8, 15, 0.38); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius-sm); padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; }
.potg-stats b { font: 700 24px/1 var(--font-display); }
.potg-stats span { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); }
@media (max-width: 600px) { .potg { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 12px; } .potg-jersey { width: 88px; } }

/* ---------- teams ---------- */
.teams-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.team-card { overflow: hidden; position: relative; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.team-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.team-card .stripe { height: 64px; background: linear-gradient(115deg, var(--c1) 0 62%, var(--c2) 62.3%); }
.team-card .badge { width: 68px; height: 68px; position: absolute; left: 14px; top: 28px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3)); }
.team-card .body { padding: 38px 16px 14px; }
.team-card .city { color: var(--text-muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.team-card h3 { font: 700 26px/1.05 var(--font-display); text-transform: uppercase; }
.team-card .rec { display: flex; gap: 16px; margin-top: 10px; font-size: 11px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.team-card .rec b { display: block; font: 700 22px/1 var(--font-display); color: var(--text); letter-spacing: 0; }

/* ---------- courts: lineups, starting fives, Legacy 5v5 ---------- */
.lineup { overflow: hidden; }
.lineup-body { display: grid; grid-template-columns: minmax(0, 1fr) 230px; }
.court-box { position: relative; aspect-ratio: 500 / 470; width: 100%; max-width: 520px; margin: 0 auto; }
.court-box .court, .game-court .court { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--court-line); }
.court-box, .game-court { background: var(--court-floor); border-radius: var(--radius-sm); }
.lineup .court-box { margin: 14px auto; width: calc(100% - 28px); }
.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(46px, 10vw, 64px); aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.spot .jersey { width: 78%; height: auto; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25)); }
.court-pfp { position: absolute; inset: 5px; border-radius: 8px; overflow: hidden; }
.court-pfp img { width: 100%; height: 100%; object-fit: cover; display: block; background: #dfe6ef; }
.court-badge { position: absolute; right: -8px; bottom: -8px; width: 22px; height: 22px; z-index: 2; }
.court-badge .badge { width: 100%; height: 100%; display: block; }
.stat-pill { position: absolute; top: -10px; left: -20px; background: var(--accent-fill); color: var(--on-accent); padding: 3px 7px; border-radius: 999px; font: 700 13px/1 var(--font-display); white-space: nowrap; box-shadow: var(--shadow); }
.stat-pill small { font-size: 10px; opacity: 0.85; }
.spot-link { display: flex; flex-direction: column; align-items: center; color: inherit; }
.spot-link:hover .pname { text-decoration: underline; text-underline-offset: 3px; }
.pname { margin-top: 5px; font-weight: 800; font-size: 13px; line-height: 1.2; overflow-wrap: anywhere; }
.pnum { color: var(--text-dim); font-weight: 600; margin-right: 2px; }
.ppos { margin-top: 2px; font: 700 11px/1 var(--font-body); letter-spacing: 0.06em; color: var(--text-muted); }
.ppos .oop { color: var(--gold); letter-spacing: 0.02em; font-weight: 700; white-space: nowrap; }
.spot.open .avatar { background: transparent; border: 2px dashed var(--line-strong); box-shadow: none; }
.spot.open .pname { color: var(--text-dim); }
.bench { border-left: 1px solid var(--line); padding: 14px 16px; }
.bench h3 { font: 800 12px/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.bench ul { list-style: none; margin: 0; padding: 0; }
.bench li { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.bench li + li { border-top: 1px solid var(--line); }
.bench li > .pfp-wrap { width: 36px; height: 36px; }
.bench strong { display: block; font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.bench small { color: var(--text-muted); font-size: 12px; }
@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: 11px; }
  .court-box .pname { white-space: nowrap; overflow-wrap: normal; }
  .ppos { font-size: 9px; }
  .stat-pill { font-size: 11px; padding: 2px 5px; left: -14px; top: -8px; }
  .stat-pill small { display: none; }
}

.game-court-card { padding: 14px 16px; }
.court-legend { display: flex; justify-content: space-between; gap: 12px; font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.court-legend span { display: inline-flex; align-items: center; gap: 8px; }
.court-legend .badge { width: 26px; height: 26px; }
.game-court { position: relative; aspect-ratio: 940 / 500; width: 100%; margin: 0 auto; }
.game-court .court-tall { display: none; }
.game-court .spot { left: var(--wx); top: var(--wy); width: 18%; max-width: 210px; }
.game-court-card .table-note { padding: 10px 0 0; }
@media (max-width: 760px) {
  .game-court { aspect-ratio: 500 / 940; max-width: 440px; }
  .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: 42px; }
  .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: 12px; }
}

/* ---------- player avatars ---------- */
.pfp-wrap { position: relative; display: inline-block; flex-shrink: 0; width: 32px; height: 32px; vertical-align: middle; }
.pfp { position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center; border-radius: 50%; background: var(--c1); }
.pfp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #dfe6ef; }
.pfp-num { font: 700 13px/1 var(--font-display); color: #fff; }
.pfp-team { position: absolute; right: -10%; bottom: -10%; width: max(14px, 46%); height: max(14px, 46%); }
.pfp-wrap .pfp-team .badge { width: 100%; height: 100%; display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4)); }
.pfp-wrap.pfp-sm { width: 26px; height: 26px; }
.pfp-sm .pfp-num { font-size: 11px; }
.pfp-wrap.pfp-lg { width: 46px; height: 46px; }
.pfp-lg .pfp-num { font-size: 18px; }
.pfp-wrap.pfp-xl { width: clamp(96px, 12vw, 136px); height: clamp(96px, 12vw, 136px); }
.pfp-xl .pfp { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9), 0 12px 26px rgba(0, 0, 0, 0.4); }
.pfp-xl .pfp-num { font-size: 46px; }
.pfp-xl .pfp-team { width: 36%; height: 36%; right: -4%; bottom: -4%; }

/* ---------- player pages ---------- */
.pl-tiles { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); padding: 12px 16px 16px; }
.pl-tile { min-width: 0; background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.pl-tile b { font: 700 26px/1 var(--font-display); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-tile span { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; line-height: 1.3; text-transform: uppercase; color: var(--text-muted); }
.best-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.best-game { display: flex; flex-direction: column; gap: 10px; padding: 14px; color: inherit; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.best-game:hover { border-color: var(--accent); transform: translateY(-2px); }
.bg-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-muted); white-space: nowrap; font-weight: 600; }
.bg-rank { font: 700 15px/1 var(--font-display); color: var(--on-accent); background: var(--accent-fill); border-radius: 6px; padding: 4px 7px; }
.bg-result { display: flex; align-items: center; gap: 8px; font: 700 24px/1 var(--font-display); }
.bg-result .pl-result b { margin-right: 0; }
.bg-opp { display: flex; align-items: center; gap: 6px; height: 22px; margin-top: -4px; font-weight: 600; font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; }
.bg-opp > span { overflow: hidden; text-overflow: ellipsis; }
.bg-opp .badge { width: 22px; height: 22px; flex: none; }
.bg-big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px 0; border-block: 1px solid var(--line); }
.bg-big div { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.bg-big b { font: 700 28px/1 var(--font-display); }
.bg-big span, .bg-more dt { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.bg-more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 6px; margin: 0; }
.bg-more div { display: flex; flex-direction: column; gap: 2px; }
.bg-more dd { margin: 0; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bg-score { margin-top: auto; font-size: 11px; color: var(--text-dim); font-weight: 600; }
.best-game.worst .bg-rank { background: var(--surface-3); color: var(--text-muted); }
.bg-player { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bg-player strong { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- article ---------- */
.article { max-width: 760px; }
.article .art { aspect-ratio: 16 / 9; border-radius: var(--radius); margin-top: 18px; }
.article h1 { font: 700 clamp(34px, 5vw, 54px)/1.02 var(--font-display); text-transform: uppercase; margin-top: 12px; }
.article .meta { color: var(--text-muted); margin-top: 10px; font-size: 14px; }
.article .content { margin-top: 20px; font-size: 17px; line-height: 1.75; }
.article .content p + p { margin-top: 1.1em; }

/* ---------- watch + Discord ---------- */
.tt-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .tt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.tt-card { overflow: hidden; padding: 0; background: #000; }
.tt-card iframe { display: block; width: 100%; aspect-ratio: 9 / 16; height: auto; border: 0; }
.watch-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(220px, 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: 52px; height: 52px; border-radius: 50%; background: rgba(5, 8, 15, 0.7); display: grid; place-items: center; color: #fff; transition: transform var(--dur) var(--ease), background var(--dur) var(--ease); }
.watch-card .play svg { width: 22px; height: 22px; margin-left: 3px; }
.watch-card:hover .play { transform: translate(-50%, -50%) scale(1.08); background: var(--red); }
.watch-card .body { padding: 12px 14px 14px; }
.watch-card h3 { font: 800 14px/1.3 var(--font-body); }
.watch-card .meta { color: var(--text-dim); font-size: 12px; margin-top: 4px; }
.cta-card { position: relative; overflow: hidden; padding: 18px; color: #fff; background: linear-gradient(135deg, #cc1d25, #0b1f45); border: 0; }
.cta-card img { width: 56px; height: 56px; }
.cta-card h2 { font: 700 26px/1 var(--font-display); text-transform: uppercase; margin-top: 10px; }
.cta-card p { color: rgba(255, 255, 255, 0.85); font-size: 13px; margin-top: 6px; }
.cta-card .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* Quick links (side column) */
.quick-links { padding: 6px 0; }
.quick-links a { display: flex; align-items: center; gap: 12px; padding: 10px 16px; font-weight: 700; font-size: 14px; }
.quick-links a:hover { background: var(--surface-2); }
.quick-links a .badge { width: 24px; height: 24px; }
.quick-links a svg.chev { width: 14px; height: 14px; margin-left: auto; color: var(--text-dim); }
.quick-links small { margin-left: auto; color: var(--text-dim); font-weight: 700; font-variant-numeric: tabular-nums; }
.week-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; padding: 8px 16px 16px; }
.week-list button { min-height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); font-weight: 800; font-size: 13px; color: var(--text-muted); }
.week-list button:hover { color: var(--text); border-color: var(--line-strong); }
.week-list button[aria-pressed='true'] { background: var(--accent-fill); color: var(--on-accent); border-color: var(--accent-fill); }
.week-list-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 0; padding: 0 16px 16px; font-size: 12.5px; color: var(--text-muted); }
.week-list-actions { display: inline-flex; gap: 14px; }
.text-btn { background: none; border: 0; padding: 0; color: var(--link); font: inherit; font-weight: 700; cursor: pointer; }
.text-btn:hover { text-decoration: underline; }
.week-empty { margin: 0; padding: 12px 16px; }

/* Seasons page */
.sn-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; }
.sn-card { display: flex; flex-direction: column; overflow: hidden; }
.sn-current { box-shadow: inset 0 3px 0 var(--accent), var(--shadow); }
.sn-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 12px; }
.sn-head h2 { margin: 0; font: 800 20px/1.15 var(--font-display); letter-spacing: -0.01em; text-wrap: balance; }
.sn-status { white-space: nowrap; }
.pill.sn-completed { background: color-mix(in srgb, var(--win) 14%, transparent); color: var(--win); }
.pill.sn-not-started, .pill.sn-not-finished { background: var(--surface-2); color: var(--text-muted); }
.sn-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-block: 1px solid var(--line); }
.sn-facts div { padding: 10px 12px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.sn-facts div + div { border-left: 1px solid var(--line); }
.sn-facts dt { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.sn-facts dd { margin: 0; font-weight: 800; font-size: 17px; }
.sn-leaders, .sn-awards { list-style: none; margin: 0; padding: 8px 18px; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--line); }
.sn-leaders li, .sn-awards li { display: flex; align-items: center; gap: 10px; font-size: 14px; min-width: 0; }
.sn-leaders li > span:first-child, .sn-awards li > span { flex: 0 0 96px; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-dim); }
.sn-awards li > span { flex-basis: 140px; text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.sn-leaders a { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; color: var(--text); }
.sn-leaders a b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.sn-leaders .badge { width: 22px; height: 22px; flex: none; }
.sn-leaders .num { margin-left: auto; font-weight: 800; color: var(--text-muted); }
.sn-awards a, .sn-awards b { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sn-links { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 18px 16px; }
.sn-links a { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: 14px; color: var(--link); }
.sn-links a svg { width: 14px; height: 14px; }
.sn-empty { margin: 0; padding: 12px 18px 16px; font-size: 14px; }

/* Season page */
.season-link { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.season-link:hover { text-decoration-color: currentColor; }
.eyebrow a { color: inherit; }
.eyebrow a:hover { text-decoration: underline; }
.ss-jump { position: sticky; top: 61px; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.ss-jump ul { list-style: none; margin: 0; padding: 8px 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ss-jump ul::-webkit-scrollbar { display: none; }
.ss-jump a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--text-muted); white-space: nowrap; }
.ss-jump a:hover { color: var(--text); background: var(--surface-2); }
.ss-jump a[aria-current] { background: var(--accent-fill); color: var(--on-accent); }
.ss-body { display: flex; flex-direction: column; gap: 36px; padding-bottom: 40px; }
.ss-section { scroll-margin-top: 140px; }
.ss-pair { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); align-items: start; }
.ss-pair-wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 640px), 1fr)); }
.ss-table .card-head h3, .ss-card-title { margin: 0; font: 800 15px/1.25 var(--font-body); }
.ss-card-title { padding: 14px 16px 6px; }
.ss-empty { margin: 0; padding: 16px; }
.ss-sub { margin: 10px 0 0; font: 800 15px/1.25 var(--font-body); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-size: 12px; }
.ss-game { display: flex; flex-direction: column; gap: 2px; color: var(--text); white-space: nowrap; }
.ss-game span { font-weight: 700; font-size: 13px; }
.ss-game small { font-size: 11px; font-weight: 800; color: var(--text-muted); }
.ss-game small.W { color: var(--win); }
.ss-game small.L { color: var(--loss); }
.ss-confs { overflow: hidden; }
.ss-conf-grid { display: grid; gap: 0 var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.ss-conf-grid h4 { margin: 8px 16px 4px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.ss-league { margin-top: var(--gap); }
.ss-roster { border-top: 1px solid var(--line); }
.ss-roster .data-table { font-size: 13px; }
.ss-roster .data-table th, .ss-roster .data-table td { padding-block: 7px; }
.ss-roster .player-cell .pfp-wrap { width: 26px; height: 26px; }
.ss-roster-empty { margin: 0; padding: 12px 16px; font-size: 13px; border-top: 1px solid var(--line); }
.sn-head h2 a { color: inherit; }
.sn-head h2 a:hover { text-decoration: underline; }

/* Full-season schedule page */
.fs-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; margin: 0 0 var(--gap); }
.fs-field { display: flex; flex-direction: column; gap: 6px; min-width: 200px; flex: 0 1 260px; }
.fs-summary { margin: 0 0 0 auto; color: var(--text-muted); font-size: 14px; font-weight: 600; align-self: center; }
.fs-week { overflow: hidden; scroll-margin-top: 84px; }
.fs-week + .fs-week { margin-top: var(--gap); }
.fs-week-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.fs-week-head h2 { margin: 0; font: 800 16px/1.2 var(--font-display); letter-spacing: -0.01em; }
.fs-now { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 3px 8px; border-radius: 999px; }
.fs-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 24px minmax(0, 1fr) 90px; align-items: center; gap: 10px; padding: 10px 16px; color: var(--text); text-decoration: none; transition: background var(--dur) var(--ease); }
.fs-row + .fs-row { border-top: 1px solid var(--line); }
.fs-row:hover { background: var(--surface-2); }
.fs-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.fs-when { font-size: 13px; font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.fs-team { display: flex; align-items: center; gap: 9px; min-width: 0; font-weight: 600; font-size: 14.5px; }
.fs-team .badge { width: 24px; height: 24px; flex: none; }
.fs-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-mine .fs-name { font-weight: 800; }
.fs-at { color: var(--text-dim); font-weight: 700; font-size: 13px; text-align: center; }
.fs-res { text-align: right; font-size: 13px; font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.fs-res b { color: var(--text); font-size: 14px; }
@media (max-width: 640px) {
  .fs-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'when res' 'away away' 'home home'; gap: 6px 10px; }
  .fs-when { grid-area: when; }
  .fs-res { grid-area: res; }
  .fs-row > .fs-team:nth-of-type(1) { grid-area: away; }
  .fs-row > .fs-team:nth-of-type(2) { grid-area: home; }
  .fs-at { display: none; }
  .fs-summary { margin-left: 0; flex-basis: 100%; }
  .fs-field { flex: 1 1 100%; }
}

/* Facts list (game details, team info) */
.facts { list-style: none; margin: 0; padding: 4px 0 8px; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 16px; font-size: 14px; }
.facts li + li { border-top: 1px solid var(--line); }
.facts span { color: var(--text-muted); }
.facts b { font-weight: 700; text-align: right; }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 28px 22px; margin-top: 24px; }
.footer-teams { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; padding-bottom: 20px; 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-2); }
.footer-teams .badge { width: 32px; height: 32px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; padding-top: 22px; }
.footer-cols h2 { font: 800 12px/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li a { display: inline-block; padding: 5px 0; font-size: 14px; font-weight: 600; }
.footer-cols li a:hover { color: var(--accent); }
.footer-brand { display: flex; align-items: flex-start; gap: 12px; }
.footer-brand img { width: 48px; height: 48px; }
.footer-brand p { color: var(--text-muted); font-size: 13px; max-width: 34ch; }
.footer-legal { margin-top: 22px; font-size: 12px; color: var(--text-muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- misc ---------- */
img.badge-img { object-fit: contain; display: inline-block; }
@media (max-width: 700px) { .hide-sm { 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, .best-game:hover { transform: none; }
}

/* =============================================================
   Legacy pieces
   ============================================================= */
.side-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c1); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line-strong); vertical-align: middle; flex-shrink: 0; }
.cap-tag { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-fill); color: var(--on-accent); font: 800 10px/1 var(--font-body); vertical-align: middle; }
.pill { display: inline-block; font: 800 11px/1 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.gh-pfp { width: clamp(60px, 8vw, 92px) !important; height: clamp(60px, 8vw, 92px) !important; }
.gh-pfp .pfp { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 8px 18px rgba(0, 0, 0, 0.35); }
.gh-pfp .pfp-num { font-size: 30px; }
.lg-player-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.lg-player-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.lg-player-card:hover { border-color: var(--accent); }
.lg-player-card > span { min-width: 0; }
.lg-player-card strong { display: block; font-weight: 800; overflow-wrap: anywhere; line-height: 1.25; }
.lg-player-card small { display: block; color: var(--text-muted); font-size: 12px; }
.lg-rec-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.rec-card { display: flex; flex-direction: column; }
.rec-card h3 a { display: inline-flex; align-items: center; gap: 2px; }
.rec-card h3 a svg { width: 13px; height: 13px; }
.rec-card h3 a:hover { color: var(--accent); }
.rec-list li { align-items: center; }
.rec-list li > span { min-width: 0; display: flex; align-items: center; gap: 8px; }
.rec-list li > span > a:not(.rec-game) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 700; }
.rec-list .pfp-wrap, .rec-list .rec-game { flex: none; }
.rec-game { color: var(--text-dim); font-size: 12px; }
.rec-game:hover { text-decoration: underline; }
.rec-more { margin-top: auto; padding-top: 8px; }
.rec-table td:first-child, .rec-table th:first-child { width: 48px; color: var(--text-muted); }
.rec-others { color: var(--text-muted); line-height: 1.9; font-size: 14px; }
.rec-others a { color: var(--link); font-weight: 600; }
.rec-others a:hover { text-decoration: underline; }
.stat-view { margin-bottom: 4px; }

/* Home: the best 5 on 5 (hover/tap stat cards, bench) */
.ls-rating { color: var(--text-muted); font-weight: 600; font-size: 12px; white-space: nowrap; }
.ls-pic { all: unset; cursor: pointer; display: block; border-radius: 12px; }
.ls-pic:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.ls-spot .avatar { width: clamp(52px, 6.5vw, 76px); transition: transform 0.15s; }
.ls-spot:hover .avatar, .ls-spot.show .avatar { transform: scale(1.06); border-color: var(--accent); }
.ls-spot .pname { color: inherit; }
.ls-spot .pname:hover { text-decoration: underline; text-underline-offset: 3px; }
.ls-bench-item { position: relative; }
.ls-card {
  position: absolute; z-index: 20; width: 200px; padding: 12px 14px; text-align: left; transform: translateX(var(--nudge, 0px));
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: opacity 0.15s, visibility 0.15s; pointer-events: none;
}
.ls-spot:hover .ls-card, .ls-spot:focus-within .ls-card, .ls-spot.show .ls-card,
.ls-bench-item:hover .ls-card, .ls-bench-item:focus-within .ls-card, .ls-bench-item.show .ls-card { opacity: 1; visibility: visible; }
.ls-card strong { display: block; font-weight: 800; font-size: 15px; overflow-wrap: anywhere; }
.ls-card small { display: block; color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.ls-card dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 0; }
.ls-card dl div { display: flex; flex-direction: column; gap: 3px; }
.ls-card dt { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; color: var(--text-muted); }
.ls-card dd { margin: 0; font: 700 20px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.ls-spot.side-A .ls-card { top: 0; left: calc(50% + clamp(34px, 4.2vw, 46px)); }
.ls-spot.side-B .ls-card { top: 0; right: calc(50% + clamp(34px, 4.2vw, 46px)); }
.ls-bench { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.ls-bench h3 { font: 800 12px/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 12px; }
.ls-bench ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.ls-bench-item { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.ls-bench-item .ls-pic { border-radius: 50%; }
.ls-bench-item:hover .pfp, .ls-bench-item.show .pfp { outline: 2px solid var(--accent); outline-offset: 2px; }
.ls-bench-item a { color: inherit; font-weight: 700; font-size: 13px; max-width: 100%; overflow-wrap: anywhere; line-height: 1.2; }
.ls-bench-item a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ls-bench-item small { color: var(--text-muted); font-size: 12px; }
.ls-bench-item .ls-card { bottom: calc(100% + 6px); left: 50%; margin-left: -100px; }
.ls-spot:hover, .ls-spot:focus-within, .ls-spot.show, .ls-bench-item:hover, .ls-bench-item:focus-within, .ls-bench-item.show { z-index: 10; }
.ls-card-wrap .court-legend span { flex-wrap: wrap; min-width: 0; row-gap: 2px; }
.ls-tap-hint { display: none; margin-top: 8px; font-style: normal; font-size: 11px; color: var(--text-muted); }
@media (hover: none) { .ls-tap-hint { display: block; } }
@media (max-width: 760px) {
  .ls-spot .avatar { width: 48px; }
  .ls-spot.side-A .ls-card, .ls-spot.side-B .ls-card { top: auto; bottom: calc(100% + 4px); left: 50%; right: auto; margin-left: -95px; }
  .ls-card { width: 190px; }
  .ls-card-wrap .court-legend { font-size: 13px; }
  .ls-card-wrap .court-legend > span:last-child { justify-content: flex-end; text-align: right; }
}
.page-top { padding-top: 16px; }
.page-head + .container > .layout, .page-head + .container { margin-top: 0; }
.container > .section + .section { margin-top: 24px; }
.leader-top .who span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-grid .leader-top .who strong { font-size: 15px; }
/* Hidden hover cards near the court's edge mustn't widen the page on phones. */
.ls-card-wrap { overflow-x: clip; }
/* Room for the winner's arrow beside the score. */
.m-teams { padding-right: 12px; }
.m-team.won .m-score::after { margin-right: -12px; }

/* ---------- page transitions (assets/js/transitions.js) ----------
   "right" = going to a header tab further right: the page leaves to the left and the new one comes in from the right. */
@keyframes pt-in-fade { from { opacity: 0; } }
@keyframes pt-in-right { from { opacity: 0; transform: translateX(28px); } }
@keyframes pt-in-left { from { opacity: 0; transform: translateX(-28px); } }
@keyframes pt-out-fade { to { opacity: 0; } }
@keyframes pt-out-right { to { opacity: 0; transform: translateX(-28px); } }
@keyframes pt-out-left { to { opacity: 0; transform: translateX(28px); } }
main { overflow-x: clip; }
.pt-enter-fade { animation: pt-in-fade 220ms var(--ease) both; }
.pt-enter-right { animation: pt-in-right 260ms var(--ease) both; }
.pt-enter-left { animation: pt-in-left 260ms var(--ease) both; }
.pt-leave-fade { animation: pt-out-fade 140ms ease-in both; pointer-events: none; }
.pt-leave-right { animation: pt-out-right 160ms ease-in both; pointer-events: none; }
.pt-leave-left { animation: pt-out-left 160ms ease-in both; pointer-events: none; }

/* ---------- stat leaders panel (side columns): stat tabs, top five with bars against the leader ---------- */
.lb-tabs { display: flex; gap: 2px; margin: 6px 16px 6px; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; }
.lb-tabs button { flex: 1; min-height: 32px; border: 0; border-radius: 999px; background: none; font-weight: 800; font-size: 12px; color: var(--text-muted); transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.lb-tabs button:hover { color: var(--text); }
.lb-tabs button[aria-selected='true'] { background: var(--accent-fill); color: var(--on-accent); }
.lb-panel { padding-bottom: 8px; animation: lb-in 200ms var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: translateY(4px); } }
.lb-list { list-style: none; margin: 0; padding: 0; }
.lb-row { display: grid; grid-template-columns: 16px auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 16px; transition: background var(--dur) var(--ease); }
.lb-row:hover { background: var(--surface-2); }
.lb-row .pfp-team { display: none; } /* the team is in the text; no badge over the picture */
.lb-rank { font-weight: 800; font-size: 12px; color: var(--text-dim); text-align: center; font-variant-numeric: tabular-nums; }
.lb-who { min-width: 0; }
.lb-who b { display: block; font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-who small { display: block; font-size: 12px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-val { display: flex; flex-direction: column; align-items: flex-end; }
.lb-val b { font-weight: 800; font-size: 15px; }
.lb-val small { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; color: var(--text-dim); }
.lb-row .pfp-wrap { width: 36px; height: 36px; }
.lb-val b { font-size: 18px; }
/* The leader keeps the same size as the others; a tint and red number mark them out. */
.lb-row.lead { background: var(--accent-soft); }
.lb-row.lead:hover { background: var(--accent-soft); }
.lb-row.lead .lb-rank, .lb-row.lead .lb-val b { color: var(--accent); }
.lb-row + .lb-row, .lb-list li + li { border-top: 1px solid var(--line); }
.lb-list li:first-child .lb-row.lead { border-top: 0; }
@media (prefers-reduced-motion: reduce) { .lb-panel { animation: none; } }

/* ---------- Teams page panels: up to four across, sized to the conference's team count (--cols) ---------- */
.tm-grid { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .tm-grid { grid-template-columns: repeat(min(var(--cols, 4), 2), minmax(0, 1fr)); } }
@media (min-width: 960px) { .tm-grid[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) {
  .tm-grid { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
  .tm-grid .tm-top { gap: 10px; }
  .tm-grid .tm-top .badge { width: 46px; height: 46px; }
  .tm-grid .tm-name b { font-size: 20px; }
  .tm-grid .tm-rank { min-width: 44px; padding: 5px 6px; font-size: 17px; }
}
.tm-card { display: flex; flex-direction: column; overflow: hidden; }
.tm-top {
  display: flex; align-items: center; gap: 14px; padding: 16px; color: #fff; position: relative;
  background: linear-gradient(115deg, var(--c1) 0%, color-mix(in srgb, var(--c1) 60%, #05080f) 70%, color-mix(in srgb, var(--c2) 65%, #05080f) 100%);
}
.tm-top .badge { width: 60px; height: 60px; flex: none; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35)); }
.tm-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tm-name small { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }
.tm-name b { font: 800 24px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-top:hover .tm-name b { text-decoration: underline; text-underline-offset: 4px; }
.tm-rank { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 52px; padding: 6px 8px; border-radius: var(--radius-sm); background: rgba(5, 8, 15, 0.35); border: 1px solid rgba(255, 255, 255, 0.18); font: 800 20px/1 var(--font-display); }
.tm-rank small { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); margin-top: 3px; }
.tm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.tm-stats div { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 4px; }
.tm-stats div + div { border-left: 1px solid var(--line); }
.tm-stats b { font-weight: 800; font-size: 18px; white-space: nowrap; }
.tm-stats span { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.tm-form { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-muted); }
.tm-form b { color: var(--text); }
.tm-people { display: flex; flex-direction: column; }
.tm-person { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); transition: background var(--dur) var(--ease); }
.tm-person:hover { background: var(--surface-2); }
.tm-person .pfp-wrap { width: 36px; height: 36px; }
.tm-person .pfp-team { display: none; }
.tm-person .tm-who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.tm-person small { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.tm-person b { font-weight: 800; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-person:hover b { text-decoration: underline; text-underline-offset: 3px; }
.tm-person em { font-style: normal; font-weight: 800; font-size: 18px; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.tm-person em small { font-size: 10px; }
/* An owner with no player profile: their initials in the team colour (a dash when the spot is vacant). */
.tm-person-static:hover { background: none; }
.tm-person-static:hover b { text-decoration: none; }
.owner-init { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c1, var(--surface-3)); color: #fff; font: 800 13px/1 var(--font-display); letter-spacing: 0.02em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.owner-vacant { background: var(--surface-3); color: var(--text-dim); }
.owner-vacant + .tm-who b { color: var(--text-muted); }
.team-office .tm-person { border-bottom: 0; }
.tm-history { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.tm-alltime { display: flex; align-items: baseline; gap: 8px; font-size: 12px; color: var(--text-dim); font-weight: 700; }
.tm-alltime span:first-child { text-transform: uppercase; letter-spacing: 0.06em; font-size: 10px; font-weight: 800; }
.tm-alltime b { font-size: 16px; color: var(--text); font-weight: 800; }
.tm-alltime span:last-child { margin-left: auto; }
.tm-seasons { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tm-seasons li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; }
.tm-seasons span { color: var(--text-dim); font-weight: 800; }
.tm-seasons b { font-weight: 800; }
.tm-titles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tm-titles li { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--gold); }
.tm-titles svg { width: 16px; height: 16px; flex: none; }
.tm-bio { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* Player of the Game / Week stat boxes: each box as wide as its number, so "15–19" stays on one line. */
.potg-stats { display: flex; flex-wrap: wrap; }
.potg-stats div { flex: 0 0 auto; min-width: 74px; }
.potg-stats b { white-space: nowrap; }
/* Team of the Week: a smaller half court. */
.totw-court .court-box { max-width: 380px; }
.totw-court .lineup-body { grid-template-columns: minmax(0, 1fr) 250px; align-items: center; }
@media (max-width: 680px) { .totw-court .lineup-body { grid-template-columns: minmax(0, 1fr); } }

/* =============================================================
   Coming Soon screen (coming-soon.html, assets/js/coming-soon.js)
   ============================================================= */
.cs-body main { padding-bottom: 0; }
.cs-hero { --cs-accent: #cc1d25; --cs-dim: 0.55; position: relative; overflow: hidden; min-height: min(92vh, 860px); display: flex; align-items: center; color: #fff;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--cs-accent) 55%, #0b1f45) 0%, #0b1f45 55%, #050a16 100%); }
.cs-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 8, 15, calc(var(--cs-dim) * 0.7)) 0%, rgba(5, 8, 15, var(--cs-dim)) 60%, rgba(5, 8, 15, calc(var(--cs-dim) + 0.15)) 100%); }
.cs-inner { position: relative; z-index: 1; width: 100%; padding-block: 72px; display: flex; flex-direction: column; gap: 14px; }
.cs-center .cs-inner { align-items: center; text-align: center; }
.cs-left .cs-inner { align-items: flex-start; text-align: left; }
.cs-logo { width: 96px; height: 96px; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45)); }
.cs-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: color-mix(in srgb, var(--cs-accent) 45%, #fff); }
.cs-hero h1 { font: 800 clamp(48px, 9vw, 112px)/0.95 var(--font-display); text-transform: uppercase; letter-spacing: -0.03em; text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35); }
.cs-msg { max-width: 60ch; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: rgba(255, 255, 255, 0.88); white-space: pre-line; }
.cs-count { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.cs-center .cs-count { justify-content: center; }
.cs-count div { min-width: 84px; padding: 14px 10px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cs-count b { font: 800 clamp(30px, 4.5vw, 44px)/1 var(--font-display); letter-spacing: -0.02em; }
.cs-count span { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.cs-when { font-size: 14px; color: rgba(255, 255, 255, 0.75); font-weight: 600; }
.cs-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.cs-center .cs-links { justify-content: center; }
.cs-links .btn { min-height: 46px; padding: 0 20px; font-size: 15px; }
.cs-primary { background: var(--cs-accent); color: #fff; box-shadow: 0 8px 24px color-mix(in srgb, var(--cs-accent) 40%, transparent); }
.cs-primary:hover { filter: brightness(1.08); }
.cs-ghost { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cs-ghost:hover { background: rgba(255, 255, 255, 0.18); border-color: #fff; }
.cs-pause { position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(5, 8, 15, 0.5); color: #fff; display: grid; place-items: center; }
.cs-pause svg { width: 16px; height: 16px; }
.cs-sections { display: flex; flex-direction: column; gap: 40px; padding-block: 44px 24px; }
.cs-title { font: 800 clamp(26px, 3vw, 34px)/1.1 var(--font-display); text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 14px; }
.cs-sub { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin: 18px 0 10px; }
.cs-team-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .cs-team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cs-team-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } } /* six teams per conference: one even row */
.cs-team { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 12px 16px; }
.cs-team-band { align-self: stretch; height: 54px; margin: 0 -12px; background: linear-gradient(115deg, var(--c1) 0 62%, var(--c2) 62.3%); }
.cs-team .badge { width: 72px; height: 72px; margin-top: -36px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3)); }
.cs-team-name { display: flex; flex-direction: column; margin-top: 8px; }
.cs-team-name small { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.cs-team-name b { font: 800 20px/1.15 var(--font-display); text-transform: uppercase; }
/* Balanced rows (assets/js/coming-soon.js sets --cols); cards keep one width and the last row is centred. */
.cs-staff-grid { --cols: 4; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cs-staff-grid > .cs-staff { flex: 0 0 calc((100% - (var(--cols) - 1) * 12px) / var(--cols)); max-width: 280px; min-width: 0; }
.cs-staff { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 20px 14px 18px; }
.cs-avatar { position: relative; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; margin-bottom: 8px;
  background: linear-gradient(135deg, var(--accent-fill), #0b1f45); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--line-strong); }
.cs-avatar i { font: 800 26px/1 var(--font-display); font-style: normal; color: #fff; }
.cs-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #dfe6ef; }
.cs-staff b { font-weight: 800; font-size: 16px; overflow-wrap: anywhere; }
.cs-role { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 800; }
.cs-staff small { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.cs-staff small svg { width: 14px; height: 14px; }
.cs-foot { text-align: center; font-size: 12px; color: var(--text-muted); padding: 24px 16px 32px; }
@media (max-width: 560px) { .cs-count div { min-width: 0; flex: 1 1 calc(25% - 10px); padding: 10px 4px 8px; } .cs-inner { padding-block: 56px; } }

/* Shown to admins on the real site while Coming Soon is on. */
.cs-admin-note { background: var(--accent-fill); color: #fff; text-align: center; font-size: 13px; font-weight: 700; padding: 8px 16px; }
.cs-admin-note a { text-decoration: underline; text-underline-offset: 3px; }
/* Keeps the small hero text readable over bright backgrounds. */
.cs-eyebrow, .cs-msg, .cs-when { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.6); }

/* ---------- Transactions feed ---------- */
.tx-list { list-style: none; margin: 0; padding: 0; }
.tx-item { padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; }
.tx-item + .tx-item { border-top: 1px solid var(--line); }
.tx-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tx-type { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text-muted); }
.tx-trade .tx-type { background: var(--accent-soft); color: var(--accent); }
.tx-sign .tx-type { background: color-mix(in srgb, var(--win) 14%, transparent); color: var(--win); }
.tx-head time { font-size: 12px; color: var(--text-dim); font-weight: 600; }
.tx-item p { font-size: 14px; line-height: 1.5; }
.tx-item p a:not(.tx-team) { font-weight: 800; }
.tx-item p a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tx-item small { color: var(--text-dim); font-size: 12px; }
.tx-team { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; vertical-align: middle; }
.tx-team .badge { width: 20px; height: 20px; }
.tx-verb { color: var(--text-muted); }
.tx-note { color: var(--text-muted); font-size: 13px !important; font-style: italic; }

/* ---------- Players page: card grid ---------- */
.pc-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.pc-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 14px 12px; overflow: hidden; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.pc-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c1); }
.pc-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.pc-who { display: flex; flex-direction: column; min-width: 0; }
.pc-who b { font-weight: 800; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-who small { font-size: 12px; color: var(--text-dim); font-weight: 600; }
.pc-team { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-team .badge { width: 18px; height: 18px; flex: none; }
.pc-team em { font-style: normal; color: var(--accent); }
.pc-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: 10px; text-align: center; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; color: var(--text-dim); }
.pc-stats b { display: block; font-size: 17px; color: var(--text); letter-spacing: 0; }
.pc-stats .muted { grid-column: 1 / -1; font-size: 12px; font-weight: 600; letter-spacing: 0; }

/* ---------- Playoffs bracket ---------- */
.bracket-wrap { overflow-x: auto; padding-bottom: 8px; }
.bracket { display: flex; align-items: stretch; gap: 0; min-width: 1100px; }
.br-side { flex: 1; display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 0 12px; align-items: center; }
.br-right .br-round { order: var(--ord); }
.br-bye { cursor: default; }
.br-bye:hover { box-shadow: none; border-color: var(--border); z-index: 1; }
.br-bye-row .br-name { font-size: 12px; font-style: italic; }
.br-conf-title { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); text-align: center; margin: 0 0 12px; grid-column: 1 / -1; }
.br-round { display: flex; flex-direction: column; justify-content: center; gap: 20px; min-width: 0; }
.br-matchup { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: visible; display: flex; flex-direction: column; position: relative; cursor: pointer; z-index: 1; transition: box-shadow 0.18s ease, border-color 0.18s ease; }
.br-matchup:hover, .br-matchup.open { z-index: 30; box-shadow: var(--shadow-lg); border-color: var(--red); }
.br-semis .br-matchup { flex: 1; }
.br-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); padding: 8px 12px 4px; white-space: nowrap; }
.br-team { border-top: 1px solid var(--border); }
.br-team:first-of-type { border-top: none; }
.br-team a, .br-team.br-tbd { display: flex; align-items: center; gap: 8px; padding: 10px 12px; min-height: 48px; text-decoration: none; color: var(--text); transition: background var(--dur) var(--ease); }
.br-team a:hover { background: var(--hover); }
.br-seed { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--bg); font-size: 12px; font-weight: 800; color: var(--text-muted); flex-shrink: 0; }
.br-team .badge, .br-team .badge-img { width: 28px; height: 28px; flex-shrink: 0; }
.br-name { font-weight: 700; font-size: 14px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-rec { font-size: 12px; color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.br-tbd .br-name { color: var(--text-dim); font-weight: 600; }
.br-bo7 { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); text-align: center; padding: 6px 12px; border-top: 1px solid var(--border); margin-top: auto; }

.br-finals { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0 20px; flex-shrink: 0; }
.br-championship { min-width: 260px; border: 2px solid var(--red); }
.br-finals-label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--red); letter-spacing: 0.04em; }
.br-trophy { width: 28px; height: 28px; }

/* Bracket hover panels — hidden by default, shown on hover/click via JS positioning */
.br-hover-panel { display: none; position: fixed; z-index: 100; width: 340px; background: var(--surface); border: 1px solid var(--red); border-radius: var(--radius-sm); padding: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.br-hover-panel.visible { display: block; }
.br-hover-header { display: flex; align-items: center; justify-content: center; gap: 8px; }
.br-hover-team { display: flex; align-items: center; gap: 5px; font-size: 13px; min-width: 0; }
.br-hover-team .badge, .br-hover-team .badge-img { width: 22px; height: 22px; flex-shrink: 0; }
.br-hover-team b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-hover-score { font: 800 24px/1 var(--font-display); color: var(--text); min-width: 18px; text-align: center; flex-shrink: 0; }
.br-hover-dash { font: 700 16px/1 var(--font-display); color: var(--text-dim); flex-shrink: 0; }
@media (max-width: 960px) {
  .br-hover-panel.visible { left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important; min-width: 0; width: auto; max-width: none; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
}

/* Bracket connector lines */
.br-east .br-semis, .br-west .br-semis { position: relative; }
/* West: swap column order so semis are on the right */


@media (max-width: 960px) {
  .bracket { flex-direction: column; align-items: center; min-width: 0; gap: 24px; }
  .br-side { display: flex; flex-direction: column; align-items: stretch; width: 100%; max-width: 400px; gap: 16px; }
  .br-right .br-round { order: unset; }
  .br-round { padding: 0; width: 100%; }
  .br-matchup { min-width: 0; }
  .br-finals { padding: 0; width: 100%; max-width: 400px; }
  .br-championship { min-width: 0; width: 100%; }
}

/* ---------- Awards page ---------- */
/* Balanced, centred rows: app.js sets --cols so rows differ by at most one card (6 awards at 4 across = 3 + 3). */
.aw-grid { --cols: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.aw-grid > .aw-card { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); max-width: 380px; min-width: 0; }
.aw-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 22px 18px 20px; position: relative; overflow: hidden; }
.aw-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--gold), var(--accent-fill)); }
.aw-card h3 { font: 800 13px/1.2 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.aw-winner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.aw-winner .pfp-wrap.pfp-xl { width: 104px; height: 104px; }
.aw-winner .pfp-xl .pfp { box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--gold); }
.aw-winner span:last-child { display: flex; flex-direction: column; }
.aw-winner b { font: 800 22px/1.15 var(--font-display); }
.aw-winner small { font-size: 13px; color: var(--text-muted); font-weight: 600; }
a.aw-winner:hover b { text-decoration: underline; text-underline-offset: 3px; }
.aw-blank { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; font: 800 42px/1 var(--font-display); color: var(--gold); background: var(--surface-2); border: 2px dashed var(--line-strong); }
.is-tba .aw-winner b { color: var(--text-muted); }
.aw-desc { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.aw-finalists { font-size: 13px; color: var(--text-muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.aw-finalists span { width: 100%; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.aw-finalists a { font-weight: 700; color: var(--text); }
.aw-finalists a:hover { text-decoration: underline; }

/* ---------- Awards page: All-AABL Teams (half court + season stats) ---------- */
.aa-section { margin-top: 28px; }
.aa-section .aa-team + .aa-team { margin-top: var(--gap); }
.aa-team .card-head h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.aa-rank { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--gold), color-mix(in srgb, var(--gold) 60%, #000)); color: #fff; font-weight: 800; font-size: 14px; }
.aa-body { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 16px; align-items: center; padding: 8px 16px 4px; }
.aa-court { margin: 0; max-width: 360px; }
.aa-team .data-table td:first-child b { color: var(--text-muted); font-size: 12px; }
@media (max-width: 900px) { .aa-body { grid-template-columns: minmax(0, 1fr); } .aa-court { margin: 0 auto; width: 100%; } }

/* Award cards line up: titles take two lines' space (one-line titles are centred in it), so every picture and name sits at the same height. */
.aw-card h3 { min-height: 2.5em; display: flex; align-items: center; justify-content: center; line-height: 1.25; text-wrap: balance; }
.aw-winner b { font-size: 20px; }

/* Rulebook: a document with its outline down the side (a Contents menu at the top on phones). */
.rb { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 56px; align-items: start; padding-block: 28px 96px; }
.rb-side { position: sticky; top: 81px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; }
.rb-toggle { display: none; }
.rb-outline { display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 2px 6px 12px 2px; }
.rb-find { position: relative; flex-shrink: 0; }
.rb-find svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--text-dim); pointer-events: none; }
.rb-find input { width: 100%; height: 40px; padding: 0 12px 0 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
.rb-find input::placeholder { color: var(--text-dim); }
.rb-find input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.rb-o, .rb-o-rules { list-style: none; margin: 0; padding: 0; }
.rb-o { display: grid; gap: 2px; }
.rb-o a { display: flex; gap: 10px; align-items: baseline; color: var(--text-muted); text-decoration: none; border-radius: 8px; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.rb-o a:hover { background: var(--surface-2); color: var(--text); }
.rb-o a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rb-o-sec > a { padding: 9px 10px; font: 600 14px/1.35 var(--font-display); }
.rb-o-num { flex-shrink: 0; width: 1.3em; font-variant-numeric: tabular-nums; color: var(--text-dim); font-weight: 800; }
.rb-o-sec.is-active > a { color: var(--text); background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.rb-o-sec.is-active .rb-o-num { color: var(--accent); }
.rb-o-rules { display: none; margin: 4px 0 8px 21px; border-left: 1px solid var(--line); }
.rb-o-sec.is-active .rb-o-rules, .searching .rb-o-rules { display: block; }
.rb-o-rules a { padding: 5px 10px 5px 12px; margin-left: -1px; border-left: 2px solid transparent; border-radius: 0 6px 6px 0; font-size: 13px; line-height: 1.35; }
.rb-o-rnum { flex-shrink: 0; min-width: 2.2em; font-variant-numeric: tabular-nums; color: var(--text-dim); }
.rb-o-rules li.is-active a { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.rb-o-rules li.is-active .rb-o-rnum { color: inherit; }

.rb-doc { max-width: 780px; min-width: 0; }
.rb-head { padding-bottom: 4px; }
.rb-head h1 { font: 800 clamp(34px, 5vw, 56px)/0.98 var(--font-display); letter-spacing: -0.025em; text-transform: uppercase; text-wrap: balance; }
.rb-none:empty { display: none; }
.rb-none { margin-top: 20px; padding: 12px 16px; border-radius: 10px; background: var(--surface-2); color: var(--text-muted); font-size: 15px; }
.rb-section { padding-top: 44px; scroll-margin-top: 72px; }
.rb-section:focus, .rb-rule:focus { outline: none; }
.rb-section h2 { display: flex; align-items: flex-end; gap: 18px; margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rb-sec-num { flex-shrink: 0; font: 800 64px/0.8 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--accent); }
.rb-sec-title { font: 800 clamp(22px, 2.6vw, 30px)/1.12 var(--font-display); letter-spacing: -0.015em; text-wrap: balance; }
.rb-rules { list-style: none; margin: 0; padding: 0; }
.rb-rule { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 18px 12px 18px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; border-radius: 0 10px 10px 0; }
.rb-rule:last-child { border-bottom: 0; }
.rb-rnum { align-self: start; padding-top: 2px; color: var(--accent); font: 800 14px/1.4 var(--font-display); font-variant-numeric: tabular-nums; text-decoration: none; }
.rb-rnum:hover { text-decoration: underline; text-underline-offset: 3px; }
.rb-rnum:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.rb-rbody h3 { margin: 0 0 4px; font: 700 17px/1.35 var(--font-display); color: var(--text); }
.rb-rbody p { margin: 0; color: var(--text-muted); font-size: 16px; line-height: 1.65; max-width: 66ch; }
@keyframes rb-flash { from { background: var(--accent-soft); } to { background: transparent; } }
.rb-flash { animation: rb-flash 1.6s ease-out; }

@media (max-width: 959px) {
  .rb { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
  .rb-side { top: 61px; z-index: 30; max-height: none; margin-inline: calc(-1 * var(--gutter)); padding: 10px var(--gutter); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .rb-toggle { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
  .rb-toggle-label { font-weight: 800; font-size: 14px; }
  .rb-toggle-now { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); font-size: 14px; }
  .rb-toggle svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform var(--dur) var(--ease); }
  .rb-side.open .rb-toggle svg { transform: rotate(180deg); }
  .rb-outline { display: none; max-height: min(65vh, 520px); padding: 12px 2px 4px; }
  .rb-side.open .rb-outline { display: flex; }
  .rb-head { padding-top: 22px; }
  .rb-section { scroll-margin-top: 128px; padding-top: 36px; }
  .rb-rule { scroll-margin-top: 136px; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding-right: 0; }
  .rb-sec-num { font-size: 48px; }
  .rb-section h2 { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { .rb-flash { animation: none; } .rb-o a, .rb-toggle svg { transition: none; } }
@media print { .rb { display: block; } .rb-side { display: none; } .rb-section { break-inside: auto; } .rb-rule { break-inside: avoid; } }

/* ---------- home page banners (admin → Settings) ---------- */
/* Each banner fills the full width, never with bars at the sides: on "original" the whole image shows at its
   own shape however tall that makes it; the other shapes crop it to 4:1, 3:1, 2:1 or 16:9. In a slideshow the
   window takes the height of the banner showing (set in app.js). */
/* Home page livestream (admin → Settings) */
.livestream { margin-bottom: var(--gap); }
.live-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; min-width: 0; }
.live-head h2 { margin: 0; font-size: 18px; min-width: 0; overflow-wrap: anywhere; }
.live-tag { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--red); padding: 2px 8px; border-radius: 999px; flex: none; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; animation: live-pulse 1.6s ease-in-out infinite; }
@keyframes live-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* Live game scoreboard on the home page (fed by the in-game tracker) */
.live-score { margin-bottom: var(--gap); }
.live-score-card { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 18px; }
.ls-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ls-team.ls-home { flex-direction: row-reverse; }
.ls-team .badge, .ls-crest { width: 42px; height: 42px; flex: none; }
.ls-crest { display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 800; font-size: 13px; }
.ls-abbr { font-weight: 800; font-size: 19px; letter-spacing: .02em; white-space: nowrap; }
.ls-pts { margin-left: auto; font-size: 36px; font-weight: 800; line-height: 1; }
.ls-team.ls-home .ls-pts { margin-left: 0; margin-right: auto; }
.ls-mid { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: none; text-align: center; }
.ls-live { display: inline-flex; align-items: center; gap: 6px; }
.ls-clock { font-weight: 700; font-size: 14px; color: var(--text-muted); white-space: nowrap; }
@media (max-width: 520px) { .live-score-card { gap: 8px; padding: 10px 12px; } .ls-abbr { font-size: 15px; } .ls-pts { font-size: 27px; } .ls-team .badge, .ls-crest { width: 34px; height: 34px; } }
.live-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.live-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-game-link { margin-left: auto; flex: none; }
/* With a game picked: the away team's players, the stream, then the home team's. The stream takes the middle half. */
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.live-side { padding: 14px; border-top: 3px solid var(--team); min-width: 0; }
.live-team { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.live-team a { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.live-team .badge { width: 36px; height: 36px; flex: none; }
.live-team span { display: grid; min-width: 0; }
.live-team small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.live-team b { font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.live-team em { margin-left: auto; font-style: normal; font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
.live-stats { width: 100%; border-collapse: collapse; font-size: 13px; }
.live-stats thead th { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); text-align: right; padding: 0 0 6px 6px; white-space: nowrap; }
.live-stats thead th:first-child { text-align: left; padding-left: 0; }
.live-stats tbody th { text-align: left; font-weight: inherit; padding: 5px 0; min-width: 0; }
.live-stats tbody th a { display: flex; align-items: center; gap: 8px; min-width: 0; color: inherit; text-decoration: none; }
.live-stats tbody th a:hover b { text-decoration: underline; }
.live-stats .pfp-wrap { flex: none; transform: scale(.8); transform-origin: left center; margin-right: -6px; }
.live-name { display: grid; min-width: 0; }
.live-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-name small { color: var(--text-dim); font-size: 11px; }
.live-stats td { text-align: right; padding: 5px 0 5px 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.live-stats tbody tr + tr > * { border-top: 1px solid var(--line); }
.live-empty { margin: 0; font-size: 13px; }
/* Narrower screens: the stream across the top, both teams side by side under it; phones stack them. */
@media (max-width: 1100px) {
  .live-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .live-grid .live-frame { order: -1; grid-column: 1 / -1; }
}
@media (max-width: 640px) { .live-grid { grid-template-columns: minmax(0, 1fr); } }
.banners { position: relative; margin-bottom: var(--gap); }
.banner-view { overflow: hidden; border-radius: var(--radius); background: var(--surface-3); transition: height 400ms var(--ease); }
.banner-track { display: flex; align-items: flex-start; margin: 0; padding: 0; list-style: none; transition: transform 500ms var(--ease); }
.banner-slide { flex: 0 0 100%; min-width: 0; }
.banner-slide a { display: block; }
.banner-slide a:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.banner-slide img { display: block; width: 100%; height: auto; object-fit: cover; }
.banner-slide img[data-shape="4:1"] { aspect-ratio: 4 / 1; }
.banner-slide img[data-shape="3:1"] { aspect-ratio: 3 / 1; }
.banner-slide img[data-shape="2:1"] { aspect-ratio: 2 / 1; }
.banner-slide img[data-shape="16:9"] { aspect-ratio: 16 / 9; }
.banner-arrow, .banner-pause { display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(5, 8, 15, 0.55); color: #fff; cursor: pointer; }
.banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; opacity: 0; transition: opacity var(--dur) var(--ease); }
.banner-arrow svg { width: 18px; height: 18px; }
.banner-arrow.prev { left: 12px; }
.banner-arrow.next { right: 12px; }
.banners:hover .banner-arrow, .banner-arrow:focus-visible { opacity: 1; }
.banner-bar { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 2px 6px; border-radius: 999px; background: rgba(5, 8, 15, 0.45); }
.banner-pause { width: 28px; height: 28px; border-radius: 50%; border: 0; background: none; }
.banner-pause svg { width: 12px; height: 12px; }
.banner-dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.banner-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); transition: background var(--dur) var(--ease), transform var(--dur) var(--ease); }
.banner-dot[aria-current="true"]::before { background: #fff; transform: scale(1.25); }
.banner-dot:focus-visible, .banner-pause:focus-visible, .banner-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: none) { .banner-arrow { display: none; } }
@media (max-width: 600px) {
  .banner-view { border-radius: var(--radius-sm); }
  .banner-bar { position: static; transform: none; width: max-content; margin: 6px auto 0; background: var(--surface-3); }
  .banner-pause { color: var(--text); }
  .banner-dot::before { background: var(--text-dim); opacity: 0.6; }
  .banner-dot[aria-current="true"]::before { opacity: 1; }
  .banner-dot[aria-current="true"]::before { background: var(--text); }
}
@media (prefers-reduced-motion: reduce) { .banner-track, .banner-view { transition: none; } }
.aafl-link { color: inherit; text-decoration: none; }
.aafl-link:hover { text-decoration: underline; }

/* =============================================================
   Legacy team generator
   ============================================================= */
.tg-setup { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.tg-setup-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tg-setup-head h2, .tg-stage-head h2 { font: 800 17px/1.2 var(--font-body); }
.tg-size { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-3); }
.tg-size-btn { min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--text-muted); font: 800 14px/1 var(--font-body); cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.tg-size-btn:hover { color: var(--text); }
.tg-size-btn[aria-checked='true'] { background: var(--accent-fill); color: var(--on-accent); }
.tg-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.tg-add { display: flex; gap: 8px; }
.tg-field { flex: 1; min-width: 0; display: block; }
.tg-field input { width: 100%; min-height: 40px; font-size: 16px; }
.tg-err { color: var(--loss); font-size: 14px; font-weight: 700; margin: 0; }
.tg-guests:empty { display: none; }
.tg-guests { display: flex; flex-wrap: wrap; gap: 8px; }
.tg-guest { display: inline-flex; align-items: stretch; }
.tg-guest .tg-pick { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.tg-guest-x { display: grid; place-items: center; width: 36px; border: 1px solid var(--line); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--surface); color: var(--text-dim); cursor: pointer; }
.tg-guest-x:hover { color: var(--loss); }
.tg-guest-x svg { width: 15px; height: 15px; }
.tg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.tg-list li[hidden] { display: none; }
.tg-pick { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); text-align: left; font: inherit; cursor: pointer; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease); }
.tg-pick:hover { border-color: var(--line-strong); }
.tg-pick:active { transform: scale(0.98); }
.tg-pick[aria-pressed='true'] { border-color: var(--accent); background: var(--accent-soft); }
.tg-pick-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tg-pick-name b, .tg-card-name b, .tg-slot-name b { font-weight: 800; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-pick-name small, .tg-card-name small, .tg-slot-name small { font-size: 12px; color: var(--text-dim); }
.tg-check { flex: none; position: relative; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.tg-pick[aria-pressed='true'] .tg-check { background: var(--accent-fill); border-color: var(--accent-fill); }
.tg-pick[aria-pressed='true'] .tg-check::after { content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.tg-bar { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin: 4px -16px -16px; padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.tg-count { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); }
.tg-count b { color: var(--text); font-size: 16px; }
.tg-meter { position: relative; width: 110px; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.tg-meter > span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--accent-fill); transition: width 240ms var(--ease), background var(--dur) var(--ease); }
.tg-meter.full > span { background: var(--win); }
.tg-meter.over > span { background: var(--loss); }
.tg-bar-btns { display: flex; gap: 8px; }
.tg-bar .btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* The draft board: red team | the pool under the spotlight | blue team. */
.tg-stage-wrap { scroll-margin-top: 80px; }
.tg-stage-wrap[hidden] { display: none; }
.tg-stage { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.tg-stage-head { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.tg-status { margin: 0 auto 0 0; font-size: 14px; font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.tg-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.tg-team { border-radius: var(--radius-sm); background: var(--surface-2); border-top: 4px solid var(--c1); padding: 12px; }
.tg-team h3 { display: flex; align-items: center; gap: 8px; font: 800 15px/1.2 var(--font-body); margin-bottom: 10px; }
.tg-slots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tg-slot { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 10px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); }
.tg-slot.in { border-style: solid; border-color: var(--line); border-left: 4px solid var(--c1); background: color-mix(in srgb, var(--c1) 9%, var(--surface)); }
.tg-slot-n { flex: none; width: 18px; font: 800 12px/1 var(--font-body); color: var(--text-dim); text-align: center; font-variant-numeric: tabular-nums; }
.tg-slot-body { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.tg-slot-name { min-width: 0; display: flex; flex-direction: column; }
.tg-open { font-size: 13px; color: var(--text-dim); }
.tg-pool-wrap { order: 2; border-radius: var(--radius-sm); padding: 12px; color: #fff;
  background: radial-gradient(120% 70% at 50% -10%, rgba(255, 255, 255, 0.16), transparent 60%), var(--header-bg); }
.tg-pool-label { margin: 0 0 10px; text-align: center; font: 800 11px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--header-muted); }
.tg-pool { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.tg-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); text-align: center;
  transition: opacity 140ms var(--ease), transform 140ms var(--ease), box-shadow 140ms var(--ease), background 140ms var(--ease), filter 300ms var(--ease); }
.tg-card-name { min-width: 0; max-width: 100%; display: flex; flex-direction: column; }
.tg-card-name small { color: var(--header-muted); }
.tg-pool.rolling .tg-card:not(.lit):not(.gone) { opacity: 0.45; }
.tg-card.lit { background: rgba(255, 255, 255, 0.16); transform: scale(1.06); box-shadow: 0 0 0 2px #fff, 0 0 24px rgba(255, 255, 255, 0.35); }
.tg-card.landed { box-shadow: 0 0 0 3px var(--c2), 0 0 30px var(--c2); animation: tg-land 380ms var(--ease); }
.tg-card.gone { opacity: 0.2; transform: scale(0.94); filter: grayscale(1); border-style: dashed; box-shadow: none; }
@keyframes tg-land { 0% { transform: scale(1.06); } 45% { transform: scale(1.14); } 100% { transform: scale(1.06); } }
.tg-done { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tg-done[hidden], .tg-stage-head .btn[hidden] { display: none; }
.tg-stage.done .tg-team { animation: tg-set 600ms var(--ease); }
@keyframes tg-set { 0% { box-shadow: 0 0 0 0 transparent; } 40% { box-shadow: 0 0 0 3px var(--c1); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (max-width: 760px) {
  .tg-tools { grid-template-columns: 1fr; }
  .tg-board { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .tg-pool-wrap { order: 0 !important; grid-column: 1 / -1; }
  .tg-team { order: 1 !important; padding: 10px 8px; }
  .tg-slot { gap: 6px; padding: 6px; min-height: 48px; }
  .tg-slot-n { display: none; }
  .tg-slot-body { gap: 7px; }
  .tg-pool { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
  .tg-card .pfp-wrap.pfp-lg { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) { .tg-card, .tg-card.landed, .tg-stage.done .tg-team { animation: none; transition: none; } }

/* =============================================================
   Coming Soon roadmap: a vertical timeline of steps
   ============================================================= */
.cs-roadmap { max-width: 860px; }
.cs-rm-intro { margin: -4px 0 18px; color: var(--text-muted); font-size: 16px; line-height: 1.55; max-width: 62ch; }
.cs-rm { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cs-rm-step { position: relative; padding-left: 46px; }
.cs-rm-step:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 34px; bottom: -22px; width: 2px; border-radius: 2px; background: var(--line-strong); }
.cs-rm-step.is-done:not(:last-child)::before { background: var(--cs-accent); }
.cs-rm-dot { position: absolute; left: 4px; top: 18px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--line-strong); }
.is-done .cs-rm-dot { background: var(--cs-accent); border-color: var(--cs-accent); color: #fff; }
.is-done .cs-rm-dot svg { width: 14px; height: 14px; }
.is-now .cs-rm-dot { border: 3px solid var(--cs-accent); }
.is-now .cs-rm-dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--cs-accent); }
.is-now .cs-rm-dot::before { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--cs-accent); animation: cs-rm-pulse 1.8s ease-out infinite; }
@keyframes cs-rm-pulse { from { transform: scale(1); opacity: 0.7; } to { transform: scale(1.9); opacity: 0; } }
.cs-rm-card { padding: 16px 18px; }
.is-now .cs-rm-card { border-color: var(--cs-accent); box-shadow: 0 0 0 1px var(--cs-accent), 0 10px 30px color-mix(in srgb, var(--cs-accent) 18%, transparent); }
.cs-rm-meta { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; margin-bottom: 6px; }
.cs-rm-when { font: 800 12px/1.2 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, var(--cs-accent) 65%, var(--text)); }
.cs-rm-status { font: 800 11px/1 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text-muted); }
.is-done .cs-rm-status { background: color-mix(in srgb, var(--win) 16%, transparent); color: var(--win); }
.is-now .cs-rm-status { background: var(--cs-accent); color: #fff; }
.cs-rm-card h3 { font: 800 19px/1.25 var(--font-body); }
.cs-rm-card p { margin: 6px 0 0; color: var(--text-muted); line-height: 1.55; white-space: pre-line; }
.is-done .cs-rm-card h3 { color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) { .is-now .cs-rm-dot::before { animation: none; opacity: 0; } }

/* Coming Soon: roadmap and TikTok side by side (stacked on narrow screens) */
.cs-split { display: grid; gap: 28px; align-items: start; }
.cs-split.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cs-split.two .cs-roadmap { max-width: none; }
.cs-tiktok { min-width: 0; }
.cs-split:not(.two) .cs-tiktok { max-width: 520px; }
.cs-tt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; }
.cs-tt-handle { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--text-muted); }
.cs-tt-handle:hover { color: var(--text); }
.cs-tt-handle svg { width: 16px; height: 16px; }
.cs-tt-frame { overflow: hidden; display: flex; justify-content: center; padding: 12px; min-height: 200px; }
.cs-tt-profile { display: block; width: 100%; height: 500px; border: 0; border-radius: var(--radius-sm); background: #fff; }
.cs-tt-video { display: block; width: 100%; max-width: 340px; aspect-ratio: 9 / 16; height: auto; border: 0; border-radius: var(--radius-sm); background: #000; }
@media (max-width: 900px) {
  .cs-split.two { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Draft page: the Draft Night band (navy in both themes) and its countdown ---------- */
.draft-night { background: #0b1f45; color: #fff; border-bottom: 1px solid var(--line); }
.dn-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 32px; padding-block: 48px; }
.dn-copy { flex: 1 1 420px; min-width: 0; }
.dn-eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #b9c6e0; }
.draft-night h2 { margin: 0; font-size: clamp(40px, 6vw, 60px); line-height: 1; font-weight: 900; }
.dn-when { margin: 14px 0 22px; font-size: 18px; color: #d3dcef; }
.dn-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dn-actions .btn { min-height: 48px; padding-inline: 22px; }
.draft-night .dn-ghost, .otc .dn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.draft-night .dn-ghost:hover, .otc .dn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.dn-count { display: flex; gap: 12px; }
.dn-cell { width: 104px; padding: 16px 0; text-align: center; border-radius: var(--radius); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.dn-cell b { display: block; font-size: 44px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.dn-cell small { display: block; margin-top: 6px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #b9c6e0; }
.dn-counts { display: grid; gap: 8px; }
.dn-count-label { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #b9c6e0; }
.dn-count-label ~ .dn-count-label { margin-top: 8px; }
.dn-live { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; font-weight: 800; }
@media (max-width: 560px) {
  .dn-row { padding-block: 32px; }
  .dn-counts { width: 100%; }
  .dn-count { width: 100%; gap: 8px; }
  .dn-cell { flex: 1 1 0; width: auto; padding: 12px 0; }
  .dn-cell b { font-size: 32px; }
  .dn-cell small { font-size: 10px; letter-spacing: .08em; }
}

/* ---------- Combine page and combine games ---------- */
.cb-days { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.cb-days button { font: inherit; font-weight: 700; font-size: 15px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.cb-days button[aria-selected="true"] { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.cb-games { display: grid; gap: 12px; }
a.cb-game { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 14px 18px; color: inherit; text-decoration: none; }
a.cb-game:hover { border-color: var(--line-strong); }
a.cb-game:hover .cb-open { text-decoration: underline; }
.cb-status b { font-size: 13px; color: var(--text-muted); }
.cb-teams { display: grid; gap: 6px; min-width: 0; }
.cb-team { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.cb-team.lost { color: var(--text-muted); font-weight: 600; }
.cb-logo { width: 28px; height: 28px; flex: none; }
.cb-name { min-width: 0; overflow-wrap: anywhere; }
.cb-score { margin-left: auto; font-size: 20px; font-weight: 900; }
.cb-aside { display: grid; text-align: right; font-size: 13px; }
.cb-aside small { color: var(--text-dim); }
.cb-open { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 700; font-size: 14px; white-space: nowrap; }
.cb-open svg { width: 14px; height: 14px; }
.cb-table tfoot th, .cb-table tfoot td { font-weight: 800; border-top: 1px solid var(--line); }
.cb-table .player-cell small svg { width: 12px; height: 12px; vertical-align: -1px; margin-right: 3px; }
/* combine game page: the league game header, in AABL navy, with the AABL logo for both sides */
/* player page: their combine games, apart from league stats */
.pl-combine-note { margin: -4px 0 12px; color: var(--text-muted); font-size: 14px; }
.pl-combine-tiles { margin-bottom: 12px; }
@media (max-width: 640px) {
  a.cb-game { grid-template-columns: 56px minmax(0, 1fr); }
  .cb-aside { display: none; }
  .cb-open { grid-column: 2; }
}

/* Franchise owner pill (next to their name anywhere on the site) */
.fo-pill { display: inline-flex; align-items: center; vertical-align: middle; margin-left: 4px; padding: 1px 6px; border-radius: 999px; font: 800 10px/1.4 var(--font-body); letter-spacing: .06em; color: #3d2a00; background: linear-gradient(180deg, #ffe08a, #f2b632); box-shadow: inset 0 0 0 1px rgba(122, 82, 0, .35); white-space: nowrap; text-transform: none; position: relative; top: -1px; }
.player-hero h1 .fo-pill { font-size: clamp(12px, 1.6vw, 16px); padding: 2px 10px; top: -0.3em; margin-left: 10px; letter-spacing: .08em; }

.cb-day-title { margin: 0 0 10px; font-size: 18px; }
/* Sortable combine box scores: the headings are buttons */
.cb-sortable thead th button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; text-transform: inherit; letter-spacing: inherit; }
.cb-sortable thead th button svg { width: 10px; height: 10px; opacity: 0; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.cb-sortable thead th[aria-sort] button svg { opacity: 1; }
.cb-sortable thead th[aria-sort="ascending"] button svg { transform: rotate(180deg); }
.cb-sortable thead th button:hover, .cb-sortable thead th[aria-sort] button { color: var(--text); }
.cb-sortable td.sorted { background: var(--accent-soft); }
.cb-sortable .bx-player small svg { width: 12px; height: 12px; vertical-align: -1px; margin-right: 3px; }

/* Combine page: games two thirds, the draft stock one third (stacked on narrow screens) */
.cb-split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 36px; }
.cb-split > .section { margin-top: 0; }
@media (max-width: 960px) { .cb-split { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
/* game cards: fixed columns, so every card lines up the same whatever the names */
a.cb-game { grid-template-columns: 64px minmax(0, 1fr) 170px 112px; gap: 18px; min-height: 104px; }
.cb-aside { width: 100%; }
.cb-aside b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.cb-open { justify-content: flex-end; }
.cb-day-title { margin: 6px 0 12px; }
@media (max-width: 640px) { a.cb-game { grid-template-columns: 52px minmax(0, 1fr); min-height: 0; } }

/* Draft Stock panel: countdown + Big Board table */
.dsx { padding: 0; overflow: hidden; }
.dsx-count { display: grid; justify-items: center; gap: 10px; padding: 18px 14px 16px; background: #0b1f45; color: #fff; text-decoration: none; text-align: center; }
.dsx-count:hover .dsx-when { text-decoration: underline; }
.dsx-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #b9c6e0; }
.dsx-timer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: 100%; }
.dsx-timer span { display: grid; padding: 8px 0; border-radius: 10px; background: rgba(255, 255, 255, .08); }
.dsx-timer b { font-size: 24px; font-weight: 900; line-height: 1.1; }
.dsx-timer small { font-size: 10px; font-weight: 800; color: #b9c6e0; letter-spacing: .06em; }
.dsx-when { font-size: 12px; color: #d3dcef; }
.dsx-count + .dsx-count { border-top: 1px solid rgba(255, 255, 255, .12); }
.dsx-board { border-top: 1px solid var(--line); }
.dsx-head { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 14px 6px; }
.dsx-head h3 { margin: 0; font-size: 16px; }
.dsx-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; table-layout: fixed; }
.dsx-table th, .dsx-table td { padding: 9px 4px; text-align: right; }
.dsx-table thead th { font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--text-dim); text-transform: uppercase; }
.dsx-table thead th:first-child, .dsx-table td:first-child { width: 26px; padding-left: 14px; text-align: left; }
.dsx-table thead th:last-child, .dsx-table td:last-child { padding-right: 14px; }
.dsx-table .dsx-name { width: 40%; text-align: left; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dsx-table .dsx-name a { color: inherit; text-decoration: none; }
.dsx-table .dsx-name a:hover { text-decoration: underline; }
.dsx-table .dsx-name .fo-pill { margin-left: 3px; }
.dsx-table tbody tr { border-top: 1px solid var(--line); }
.dsx-rank { font-weight: 900; color: var(--text-dim); }
.dsx-rank.top { color: var(--gold); }
.dsx-rtg { font-weight: 900; }
.dsx-none { color: var(--text-dim); font-size: 12px; text-align: center !important; }
.dsx-legend { display: flex; align-items: center; gap: 6px; margin: 0; padding: 10px 14px 0; font-size: 11px; color: var(--text-dim); }
.dsx-legend i { width: 14px; height: 10px; border-radius: 3px; }
.dsx-legend .lo { background: rgba(255, 92, 99, .1); }
.dsx-legend .hi { background: rgba(255, 92, 99, .38); }
.dsx-note { margin: 0; padding: 8px 14px 14px; font-size: 12px; color: var(--text-dim); }

/* Signed up for the draft */
.ph-signup { background: rgba(52, 199, 123, .18); border-color: rgba(52, 199, 123, .5); }
.ph-signup svg { width: 16px; height: 16px; color: #46d98d; }
.signup-tag.signup-line { display: table; margin: 4px 0 0; white-space: nowrap; } /* its own line, under the team or "Prospect" */
.signup-tag { display: inline-block; margin-right: 6px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--win); background: color-mix(in srgb, var(--win) 14%, transparent); }

/* Combine page on the Scores page's three columns */
.cb-leaders { margin-bottom: 0; }
/* room between the leaders and the three columns (beats the page-head rule that zeroes a layout's top margin) */
.page-head + .container > .layout.cb-layout, .cb-layout { margin-top: 40px; }
.cb-stats-link { margin-left: auto; }
.cb-match .badge { width: 26px; height: 26px; }
.cb-match .m-aside { display: flex; align-items: center; gap: 18px; }
.cb-top { display: grid; text-align: left; font-size: 12px; min-width: 0; flex: 1; }
.cb-top small { color: var(--text-dim); }
.cb-top b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* fixed width so every row's divider and score line up, whatever the top scorer's name length */
.cb-top-wrap { display: flex; align-items: center; gap: 10px; width: 180px; flex: none; }
/* Player of the Game stacked above the top scorer */
.cb-people { display: flex; flex-direction: column; justify-content: center; gap: 6px; flex: none; margin-block: -4px; }
.cb-people .cb-top-wrap { gap: 8px; }
.cb-people abbr { text-decoration: none; }
.cb-people .pfp-wrap { width: 26px; height: 26px; }
.cb-people .cb-top { line-height: 1.15; }
.cb-people .cb-top small { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-people .cb-top b { font-size: 12px; }
.cb-top-wrap > .pfp-wrap, .cb-top-wrap > .badge { flex: none; }
@media (max-width: 1180px) { .cb-top-wrap, .cb-people { display: none; } }

/* ---------- draft lottery (Draft page) ---------- */
.lot-stage { background: #0a1630; color: #fff; padding-block: 36px 40px; border-bottom: 1px solid var(--line); }
.lot-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.lot-head h1, .lot-head h2 { margin: 0; font-size: clamp(34px, 5vw, 48px); line-height: 1; font-weight: 900; }
.lot-stats { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.lot-stats li { min-width: 104px; padding: 12px 16px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); text-align: center; }
.lot-stats b { display: block; font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.lot-stats small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #b9c6e0; }
/* Countdown to Draft Night, first in the row, in the gold of the draw */
.lot-stats .lot-count { border-color: rgba(242, 185, 74, .45); background: rgba(242, 185, 74, .08); }
.lot-count-cells { display: flex; gap: 10px; justify-content: center; }
.lot-count-cells span { display: flex; align-items: baseline; gap: 2px; }
.lot-count-cells b { display: inline; font-size: 22px; }
.lot-count-cells i { font-style: normal; font-size: 12px; font-weight: 800; color: #f2c97a; }
.lot-count-live b { display: inline-flex; align-items: center; gap: 8px; }
.lot-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; }
.lot-drum-card { position: sticky; top: 84px; padding: 22px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
/* The lottery machine: a capsule on a clear tube above the drum. */
.lot-rig { position: relative; width: 100%; max-width: 272px; padding-top: 150px; }
.lot-cap { position: absolute; left: 50%; top: 0; width: 100px; height: 76px; margin-left: -50px; border-radius: 50px 50px 18px 18px; background: rgba(255, 255, 255, .05); border: 2px solid rgba(185, 198, 224, .4); }
.lot-tube { position: absolute; left: 50%; top: 70px; width: 46px; height: 86px; margin-left: -23px; border-radius: 8px 8px 0 0; background: linear-gradient(90deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03) 40%, rgba(255, 255, 255, .1)); border: 2px solid rgba(185, 198, 224, .35); border-bottom: 0; }
.lot-drum { position: relative; z-index: 1; width: 100%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #22304a, #070c16 72%); border: 3px solid #2c3a55; box-shadow: inset 0 0 40px rgba(0, 0, 0, .6); transition: border-color .3s, box-shadow .3s; }
.lot-drum::after { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: radial-gradient(ellipse 45% 30% at 34% 22%, rgba(255, 255, 255, .22), transparent 70%); }
/* Each ball is a white lottery ball with the team's logo on it. */
.lot-ball { position: absolute; width: 16%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; padding: 2px; box-sizing: border-box; background: radial-gradient(circle at 32% 28%, #fff, #d9e0ea 72%); box-shadow: inset -3px -4px 6px rgba(0, 0, 0, .18), 0 4px 8px rgba(0, 0, 0, .45); }
.lot-ball .badge { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: contain; }
/* The draw: the air comes on and every ball bounces at its own height and speed. */
.lot-drum.is-air { border-color: #7fc3ff; box-shadow: inset 0 0 40px rgba(0, 0, 0, .6), inset 0 -40px 60px rgba(127, 195, 255, .2), 0 0 40px rgba(127, 195, 255, .3); }
.lot-drum.is-air .lot-ball { animation: lot-hop var(--d) ease-in-out infinite alternate; background: radial-gradient(circle at 32% 28%, #6c7a95, #39465e 72%); }
/* While the air is on every ball is a "?", so the one that goes up the tube could be anyone. */
.lot-ball::after { content: '?'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: clamp(12px, 1.4vw, 18px); opacity: 0; transition: opacity .3s; }
.lot-ball .badge { transition: opacity .3s; }
.lot-drum.is-air .lot-ball .badge { opacity: 0; }
.lot-drum.is-air .lot-ball::after { opacity: 1; }
.lot-picked.is-leaving { opacity: 0; transform: scale(.6); transition: opacity .6s ease, transform .6s ease; }
@keyframes lot-hop { 0% { transform: translate(-50%, -50%); } 50% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))); } 100% { transform: translate(calc(-50% - var(--x)), calc(-50% + var(--y) * .6)); } }
/* The drawn ball sits in the capsule; it rises up the tube showing "?", then turns over to the team. */
.lot-picked { position: absolute; left: 50%; top: 40px; width: 62px; height: 62px; margin: -31px 0 0 -31px; perspective: 400px; }
.lot-picked.is-rising { animation: lot-up 1s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes lot-up { from { transform: translateY(240px) scale(.6); } to { transform: none; } }
.lot-flipper { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.lot-picked.is-shown .lot-flipper { transform: rotateY(180deg); }
.lot-picked.is-turning .lot-flipper { animation: lot-turn .9s cubic-bezier(.3, 1.4, .4, 1) both; }
@keyframes lot-turn { from { transform: rotateY(0); } to { transform: rotateY(180deg); } }
.lot-face { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; display: grid; place-items: center; box-sizing: border-box; box-shadow: inset -6px -8px 12px rgba(0, 0, 0, .25), 0 6px 14px rgba(0, 0, 0, .5); }
.lot-back { background: radial-gradient(circle at 32% 28%, #6c7a95, #39465e 72%); color: #fff; font-size: 26px; font-weight: 900; border: 2px solid rgba(255, 255, 255, .6); }
.lot-front { transform: rotateY(180deg); padding: 3px; background: radial-gradient(circle at 32% 28%, #fff, #d9e0ea 72%); }
.lot-front .badge { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: contain; }
.lot-picked.is-turning::before { content: ''; position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 185, 74, .5), transparent 65%); animation: lot-glow 1.6s ease-out both; }
@keyframes lot-glow { from { transform: scale(.3); opacity: 0; } 40% { opacity: 1; } to { transform: scale(1); opacity: .35; } }
.lot-last { margin: 0; }
.lot-last small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #b9c6e0; }
.lot-last b { font-size: 22px; font-weight: 900; }
.lot-picks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lot-card { --team: #1d2a44; min-height: 196px; padding: 14px; border-radius: 16px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 8px; text-align: center; color: #fff;
  background: linear-gradient(160deg, color-mix(in srgb, var(--team) 78%, #000 22%), color-mix(in srgb, var(--team) 52%, #000 48%)); border: 2px solid color-mix(in srgb, var(--team) 70%, #fff 30%); box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
.lot-pick { align-self: stretch; text-align: left; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.lot-logo { display: block; width: 76px; height: 76px; }
.lot-logo .badge { width: 100%; height: 100%; }
.lot-who b { display: block; font-size: 15px; line-height: 1.2; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.lot-who small { font-size: 12px; font-weight: 700; opacity: .9; }
.lot-wait { background: rgba(255, 255, 255, .03); border: 2px solid rgba(255, 255, 255, .1); box-shadow: none; color: #8d9bb5; }
.lot-q { font-size: 56px; font-weight: 1000; line-height: 1; color: #3b4a66; }
.lot-wait .lot-who b, .lot-wait .lot-pick { text-shadow: none; }
.lot-next { border: 2px dashed #f2b94a; color: #f2c97a; }
.lot-next .lot-q { color: #f2b94a; }
.lot-card.is-new { animation: lot-pop .7s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes lot-pop { 0% { transform: scale(.6) rotateY(90deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.lot-below { display: flex; flex-direction: column; gap: 28px; padding-block: 28px 40px; }
.lot-table th[scope='row'] { text-align: left; }
.lot-table .team-cell { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.lot-table .team-cell .badge { width: 26px; height: 26px; }
.lot-row-in td b { color: var(--win); }
.lot-order-card { padding: 16px 18px; display: grid; grid-template-columns: 96px minmax(780px, 1fr); gap: 8px 12px; align-items: center; overflow-x: auto; }
.lot-round { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; color: var(--text-dim); }
.lot-order { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 16), minmax(0, 1fr)); gap: 4px; }
.lot-o { padding: 6px 2px; border-radius: var(--radius-xs); background: var(--surface-2); display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.lot-o small { font-size: 10px; font-weight: 800; color: var(--text-dim); }
.lot-o .badge { width: 22px; height: 22px; }
.lot-o b { font-size: 11px; }
.lot-o-wait b { color: var(--text-dim); }
@media (max-width: 1100px) { .lot-picks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .lot-grid { grid-template-columns: minmax(0, 1fr); }
  .lot-drum-card { position: static; }
  .lot-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lot-card { min-height: 170px; }
  .lot-logo { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) { .lot-card.is-new, .lot-picked, .lot-picked .lot-flipper, .lot-picked::before, .lot-drum.is-air .lot-ball { animation: none; } .lot-picked.is-turning .lot-flipper { transform: rotateY(180deg); } }

/* ---------- draft board (Draft page): the lottery's cards, with the player once they're picked ---------- */
/* The board sits on the site's own background; only its top bar keeps the navy. */
.lot-stage.dbd-stage { background: var(--bg); color: var(--text); border-top: 0; padding-top: 0; }
/* The bar at the top sticks under the site header while scrolling through the rounds. */
.dbd-bar { color: #fff; box-shadow: 0 0 0 100vmax color-mix(in srgb, #0a1630 92%, transparent); clip-path: inset(0 -100vmax); position: sticky; top: 61px; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 0 calc(var(--gutter) * -1) 8px; padding: 18px var(--gutter) 14px;
  background: color-mix(in srgb, #0a1630 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.dbd-bar-title h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1; font-weight: 900; }
.dbd-bar-title .dn-eyebrow { margin-bottom: 6px; }
.dbd-bar .lot-stats li { padding: 10px 14px; min-width: 96px; }
.dbd-bar .lot-stats b { font-size: 19px; }
.dbd-latest { display: flex; align-items: center; gap: 10px; text-align: left !important; }
.dbd-latest b { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbd-mini { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: rgba(255, 255, 255, .15); border: 2px solid rgba(255, 255, 255, .8); }
.dbd-mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.dbd-mini i { font-style: normal; font-weight: 900; }
.dbd-round-sec { scroll-margin-top: 170px; }
.dbd-round-h { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 12px; font-size: 20px; font-weight: 900; }
.dbd-round-h span { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.dbd-round-h small { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--text-dim); font-variant-numeric: tabular-nums; }
/* Picks waiting on the lottery: plain cards in the site's colours */
.dbd .lot-wait { background: var(--surface); border-color: var(--line); color: var(--text-dim); box-shadow: var(--shadow); }
.dbd .lot-wait .lot-q { color: var(--line-strong); }
.dbd-stage > .container { padding-bottom: 8px; }
.lot-picks.dbd-picks { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.dbd-card { min-height: 290px; padding: 12px 10px; }
.dbd-card .lot-logo { width: 64px; height: 64px; }
.dbd-card .lot-who b { font-size: 14px; }
.dbd-card .lot-pick { font-size: 11px; }
.dbd-top { align-self: stretch; display: flex; justify-content: space-between; align-items: center; }
.dbd-team { display: block; width: 28px; height: 28px; }
.dbd-team .badge { width: 100%; height: 100%; }
.dbd-player { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; text-decoration: none; min-width: 0; max-width: 100%; }
.dbd-player:hover b { text-decoration: underline; }
.dbd-pfp { position: relative; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .28), rgba(0, 0, 0, .25)); border: 3px solid rgba(255, 255, 255, .85); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.dbd-pfp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.dbd-pfp i { font-style: normal; font-size: 30px; font-weight: 900; color: rgba(255, 255, 255, .85); }
.dbd-player b { font-size: 14px; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.dbd-player small { font-size: 11px; font-weight: 700; opacity: .9; }
.dbd-stats { align-self: stretch; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 8px 0 0; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 9px; font-weight: 800; letter-spacing: .04em; }
.dbd-stats span { display: flex; flex-direction: column; align-items: center; }
.dbd-stats b { font-size: 15px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.dbd-stats small { grid-column: 1 / -1; text-align: center; font-size: 10px; font-weight: 700; opacity: .75; letter-spacing: .02em; }
.dbd-stats .dbd-none { grid-column: 1 / -1; text-align: center; font-size: 11px; font-weight: 700; opacity: .8; letter-spacing: 0; }
@media (max-width: 1180px) { .lot-picks.dbd-picks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .lot-picks.dbd-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dbd-card { min-height: 250px; }
  .dbd-bar { padding-block: 12px 10px; }
  .dbd-bar-title .dn-eyebrow { display: none; }
  .dbd-bar .lot-stats li { padding: 8px 10px; min-width: 0; }
  .dbd-latest b { max-width: 110px; }
}

/* ---------- live draft (Draft page): the intro, then the team on the clock ---------- */
.otc-wrap { position: relative; overflow: hidden; }
.otc { background: color-mix(in srgb, var(--tc, #0b1f45) 62%, #05070d 38%); border-bottom: 4px solid var(--tc2, #f2b94a); color: #fff; }
.otc-plain { --tc: #0b1f45; --tc2: #e5262e; }
.otc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 36px; padding-block: 40px; }
.otc-logo { flex: none; width: 168px; height: 168px; border-radius: 50%; display: grid; place-items: center; background: var(--tc); border: 8px solid var(--tc2); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.otc-logo .badge { width: 120px; height: 120px; }
.otc-aabl { flex: none; width: 120px; height: 120px; }
.otc-copy { flex: 1 1 380px; min-width: 0; }
.otc-live { margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--tc2) 70%, #fff 30%); }
.otc-live small { font-size: 12px; letter-spacing: .06em; opacity: .8; text-transform: none; }
.otc h1 { margin: 0; font-size: clamp(36px, 5.2vw, 64px); line-height: .98; font-weight: 900; letter-spacing: -.01em; }
.otc-sofar { margin: 14px 0 0; font-size: 17px; color: rgba(255, 255, 255, .82); }
.otc-sofar a { color: #fff; }
.otc-sofar b { color: #fff; }
.otc-side { flex: 0 1 auto; display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.otc-timer { min-width: 190px; text-align: center; padding: 22px 26px; border-radius: 18px; background: rgba(10, 14, 21, .55); border: 1px solid rgba(255, 255, 255, .14); display: flex; flex-direction: column; justify-content: center; }
.otc-time { font-size: 72px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.otc-time.is-low { color: #ffd166; }
.otc-time.is-out { color: #ff6b70; animation: otc-blink 1s steps(2, start) infinite; }
@keyframes otc-blink { to { visibility: hidden; } }
.otc-label { margin-top: 8px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.otc-bar { margin-top: 14px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.otc-bar span { display: block; height: 100%; background: var(--tc2); transition: width 1s linear; }
.otc-next { min-width: 250px; padding: 16px 18px; border-radius: 18px; background: rgba(10, 14, 21, .55); border: 1px solid rgba(255, 255, 255, .14); }
.otc-next h2 { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.otc-next ol { list-style: none; margin: 0; padding: 0; }
.otc-next li { display: grid; grid-template-columns: 38px 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.otc-next li:first-child { border-top: 0; }
.otc-next .badge { width: 30px; height: 30px; }
.otc-next b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.otc-next small { font-size: 12px; color: rgba(255, 255, 255, .7); white-space: nowrap; }
.otc-no { font-weight: 800; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.otc-last { margin: 6px 0 0; font-size: 14px; color: rgba(255, 255, 255, .8); }
/* The intro: the logo flashes three times with a glow, "AABL DRAFT" opens up under it, then it all fades away. */
.dintro { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #05070d; animation: dintro-out .7s 3.4s ease forwards; }
.dintro-glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(229, 38, 46, .45), transparent 55%); opacity: 0; animation: dintro-flash .5s .2s ease-out 3 alternate; }
.dintro-logo { position: relative; width: clamp(110px, 16vw, 170px); height: auto; filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)); animation: dintro-logo 2.4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes dintro-logo {
  0% { transform: scale(.4); opacity: 0; }
  15% { transform: scale(1.12); opacity: 1; filter: drop-shadow(0 0 30px rgba(255, 255, 255, .9)) brightness(1.6); }
  30% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)) brightness(1); }
  45% { filter: drop-shadow(0 0 34px rgba(229, 38, 46, .95)) brightness(1.5); }
  60% { filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)) brightness(1); }
  75% { filter: drop-shadow(0 0 40px rgba(255, 255, 255, .9)) brightness(1.6); transform: scale(1.06); }
  100% { transform: scale(1); filter: drop-shadow(0 0 18px rgba(229, 38, 46, .6)); }
}
@keyframes dintro-flash { to { opacity: 1; } }
.dintro-text { position: relative; margin: 0; font-size: clamp(30px, 5vw, 58px); font-weight: 1000; letter-spacing: .5em; text-transform: uppercase; color: #fff; opacity: 0; animation: dintro-text 1.2s 1s cubic-bezier(.2, .8, .2, 1) forwards; }
.dintro-text span { color: #e5262e; }
@keyframes dintro-text { from { opacity: 0; letter-spacing: 1.2em; } to { opacity: 1; letter-spacing: .14em; } }
@keyframes dintro-out { to { opacity: 0; visibility: hidden; } }
@media (max-width: 860px) {
  .otc-row { padding-block: 28px; }
  .otc-logo { width: 110px; height: 110px; border-width: 6px; }
  .otc-logo .badge { width: 78px; height: 78px; }
  .otc-side { width: 100%; }
  .otc-timer, .otc-next { flex: 1 1 240px; }
  .otc-time { font-size: 56px; }
}
@media (prefers-reduced-motion: reduce) { .dintro { display: none; } .otc-time.is-out { animation: none; } }

/* ---------- draft night: a pick comes in ---------- */
/* No circle behind the team logo on the live band, and a bigger logo */
.otc-logo { width: auto; height: auto; border: 0; border-radius: 0; background: none; box-shadow: none; }
.otc-logo .badge { width: 200px; height: 200px; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45)); }
.otc-fo { margin-top: 16px; }
.otc-fo .tm-person { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(10, 14, 21, .4); border: 1px solid rgba(255, 255, 255, .14); color: #fff; text-decoration: none; }
.otc-fo .tm-who small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.otc-fo .tm-who b { color: #fff; font-size: 15px; }
.otc-fo a.tm-person:hover b { text-decoration: underline; }
.otc-fo .owner-init { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .15); font-weight: 900; font-size: 13px; color: #fff; }
/* The announcement covers the band for 10 seconds: three team-colour flashes, then the pick holds and fades out. */
.otc-drafted { position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; color: #fff; overflow: hidden;
  background: color-mix(in srgb, var(--tc) 70%, #05070d 30%); border-bottom: 4px solid var(--tc2); animation: otc-drafted-out .6s 9.4s ease forwards; }
.otc-flash { position: absolute; inset: 0; background: radial-gradient(circle at 30% 50%, var(--tc2), transparent 65%); opacity: 0; animation: otc-flash .45s ease-out 6 alternate; }
.otc-drafted .otc-row { position: relative; width: 100%; }
.otc-drafted .otc-copy { animation: otc-pop .7s .2s cubic-bezier(.2, .9, .3, 1.2) both; }
.otc-drafted .otc-logo { animation: otc-pop .6s cubic-bezier(.2, .9, .3, 1.3) both; }
.otc-drafted h1 { margin: 0; font-size: clamp(34px, 5vw, 60px); line-height: 1; font-weight: 900; letter-spacing: -.01em; }
.otc-drafted-name { font-size: 1.15em; color: var(--tc2); text-shadow: 0 0 24px rgba(0, 0, 0, .35); }
.otc-drafted-pfp { position: relative; flex: none; width: 170px; height: 170px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: rgba(255, 255, 255, .12); border: 6px solid var(--tc2); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); animation: otc-pop .7s .45s cubic-bezier(.2, .9, .3, 1.3) both; }
.otc-drafted-pfp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.otc-drafted-pfp i { font-style: normal; font-size: 64px; font-weight: 900; }
@keyframes otc-flash { to { opacity: .85; } }
@keyframes otc-pop { from { transform: scale(.6) translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes otc-drafted-out { to { opacity: 0; visibility: hidden; } }
/* Draft board: who's on the clock in the bar; the new pick's card and the latest box glow for 10 seconds */
.dbd-clockstat { display: flex; align-items: center; gap: 10px; text-align: left !important; border-color: rgba(242, 185, 74, .45) !important; background: rgba(242, 185, 74, .08) !important; }
.dbd-clock-logo { display: block; width: 34px; height: 34px; flex: none; }
.dbd-clock-logo .badge { width: 100%; height: 100%; }
.dbd-latest.is-flash { animation: dbd-flash .5s ease-in-out 20 alternate; }
@keyframes dbd-flash { from { background: rgba(255, 255, 255, .06); box-shadow: none; } to { background: rgba(242, 185, 74, .3); box-shadow: 0 0 0 2px #f2b94a, 0 0 24px rgba(242, 185, 74, .5); } }
.dbd-picked.is-drafted { animation: lot-pop .7s cubic-bezier(.2, .9, .3, 1.3) both, dbd-glow .6s .7s ease-in-out 15 alternate; }
@keyframes dbd-glow { from { box-shadow: 0 10px 24px rgba(0, 0, 0, .3); } to { box-shadow: 0 0 0 3px #f2b94a, 0 0 34px rgba(242, 185, 74, .7); transform: translateY(-3px); } }
@media (max-width: 860px) {
  .otc-logo .badge { width: 120px; height: 120px; }
  .otc-drafted-pfp { width: 110px; height: 110px; }
  .otc-drafted .otc-row { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { .otc-drafted, .otc-flash, .dbd-latest.is-flash, .dbd-picked.is-drafted { animation: none; } }

/* ---------- Advanced Stats pages (Combine and League) ---------- */
/* jump bar: sticks under the header, chips glide the page down and light up the section you're in */
.adv-jump { position: sticky; top: 61px; z-index: 40; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; padding: 10px 0; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.adv-jump-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.adv-jump .btn, .adv-jump .chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; line-height: 1; text-decoration: none; }
.adv-jump .btn svg { width: 14px; height: 14px; }
.adv-jump .chip { padding: 0 16px; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease); }
.adv-jump .chip:active { transform: scale(.96); }
.adv-jump .chip[aria-current='true'] { background: var(--accent-fill); color: var(--on-accent); border-color: var(--accent-fill); }
.adv-hint { margin: 0 0 6px; font-size: 13px; color: var(--text-dim); }
.adv-section .section-title { scroll-margin-top: 130px; }
.adv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.adv-card { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; scroll-margin-top: 130px; cursor: zoom-in; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.adv-card:hover { border-color: var(--line-strong); }
.adv-wide { grid-column: 1 / -1; }
.adv-ph { min-height: 200px; border-radius: var(--radius); border: 1px dashed var(--line); }
.adv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.adv-head h3 { margin: 0; font-size: 17px; font-weight: 900; }
.adv-sub { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--text-muted); }
.adv-expand { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-muted); cursor: pointer; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.adv-expand:hover { color: var(--text); border-color: var(--line-strong); }
.adv-expand svg { width: 17px; height: 17px; }
.adv-body { min-width: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.adv-body a { color: var(--text); font-weight: 700; }
.adv-body a:hover { color: var(--link); }
.adv-note { margin-top: 18px; }
/* long lists scroll inside the card (full screen shows them all) */
.adv-scroll { max-height: 400px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 4px; margin-right: -4px; }
/* hovering a player lights up their marks and fades the rest */
.adv-mark { transition: opacity .18s var(--ease); }
.adv-card.adv-focus .adv-mark:not(.hot) { opacity: .28; }
.adv-rows > li.adv-mark.hot, .adv-lolli-row.hot, .adv-hc-row.hot { background: color-mix(in srgb, var(--text) 6%, transparent); }
/* the hover card */
.adv-tip { position: fixed; z-index: 1200; pointer-events: none; display: flex; align-items: center; gap: 10px; max-width: 260px; padding: 9px 12px; border-radius: 12px; background: #0b1220; color: #f1f5f9; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 12px 32px rgba(0, 0, 0, .45); font-size: 12px; line-height: 1.35; }
.adv-tip[hidden] { display: none; }
.adv-tip .pfp-wrap { width: 38px; height: 38px; }
.adv-tip b { display: block; font-size: 13px; margin-bottom: 2px; }
.adv-tip small { display: block; color: #cbd5e1; font-size: 12px; }
/* full screen */
.adv-lock, .adv-lock body { overflow: hidden; }
.adv-modal { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 24px; }
.adv-modal[hidden] { display: none; }
.adv-modal-bg { position: absolute; inset: 0; background: rgba(2, 6, 16, .8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s ease; }
.adv-modal:not(.open) { pointer-events: none; }
.adv-modal .adv-card { position: relative; cursor: auto; width: min(1180px, 100%); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; padding: 22px 26px 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.adv-modal.open .adv-modal-bg { opacity: 1; }
/* a card gliding back to its spot sits over the fading backdrop */
.adv-card.adv-flying { position: relative; z-index: 1150; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); pointer-events: none; }
.adv-modal .adv-head h3 { font-size: 22px; }
.adv-modal .adv-sub { font-size: 14px; }
.adv-modal .adv-scroll { max-height: none; overflow: visible; }
.adv-modal .adv-plot { height: min(58vh, 560px); }
.adv-modal .adv-radar { grid-template-columns: minmax(300px, 440px) minmax(0, 1fr); }
.adv-modal .adv-picks { max-height: none; }
@media (prefers-reduced-motion: reduce) { .adv-modal-bg, .adv-mark, .adv-jump .chip { transition: none; } }
/* scatter plots and line charts */
.adv-plot { position: relative; height: 290px; margin: 14px 18px 36px 44px; border-left: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.adv-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.adv-dot { position: absolute; transform: translate(-50%, 50%); z-index: 3; cursor: pointer; }
.adv-dot > .pfp-wrap { display: block; width: var(--s); height: var(--s); transition: transform .15s var(--ease); }
.adv-dot .pfp { box-shadow: 0 0 0 2px var(--c), 0 0 0 4px var(--surface), 0 0 14px color-mix(in srgb, var(--c) 45%, transparent); }
.adv-dot .pfp-team { display: none; }
.adv-dot .pfp-num { font-size: 9px; }
.adv-dot.hot { z-index: 6; }
.adv-dot.hot > .pfp-wrap { transform: scale(1.4); }
/* shaded quarters around the averages, each named in its outer corner */
.adv-zone { position: absolute; background: color-mix(in srgb, var(--zc) 8%, transparent); pointer-events: none; }
.adv-zone b { position: absolute; font-size: 9.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--zc); white-space: nowrap; opacity: .95; }
.adv-zone.z-tl b { left: 8px; top: 7px; } .adv-zone.z-tr b { right: 8px; top: 7px; }
.adv-zone.z-bl b { left: 8px; bottom: 7px; } .adv-zone.z-br b { right: 8px; bottom: 7px; }
/* ratio lines from the corner, labelled where they leave the plot */
.adv-rays { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; opacity: .75; }
.adv-ray { position: absolute; transform: translate(-110%, -40%); font-size: 10.5px; font-weight: 900; letter-spacing: .06em; white-space: nowrap; pointer-events: none; }
.adv-hint-arrow { position: absolute; right: 8px; bottom: 8px; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #34d399; pointer-events: none; }
/* dashed guide lines at every tick, like the original designs */
.adv-gy, .adv-gx { position: absolute; pointer-events: none; }
.adv-gy { left: 0; right: 0; border-top: 1px dashed color-mix(in srgb, var(--text) 12%, transparent); }
.adv-gx { top: 0; bottom: 0; border-left: 1px dashed color-mix(in srgb, var(--text) 9%, transparent); }
.adv-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 10px; font-size: 11px; font-weight: 800; color: var(--text-muted); }
.adv-key span { display: inline-flex; align-items: center; gap: 6px; }
.adv-key i { width: 10px; height: 10px; border-radius: 50%; }
.adv-ty { position: absolute; left: -42px; width: 34px; text-align: right; transform: translateY(50%); font-size: 10px; color: var(--text-dim); }
.adv-tx { position: absolute; bottom: -18px; transform: translateX(-50%); font-size: 10px; color: var(--text-dim); white-space: nowrap; }
.adv-axis-x { position: absolute; right: 0; bottom: -34px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; color: var(--text-muted); }
.adv-axis-y { position: absolute; left: 6px; top: -14px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; color: var(--text-muted); }
.adv-avg-x { position: absolute; top: 0; bottom: 0; border-left: 2px dashed color-mix(in srgb, var(--text) 38%, transparent); z-index: 4; pointer-events: none; }
.adv-avg-x small { position: absolute; top: -2px; left: 5px; padding: 1px 5px; border-radius: 4px; background: var(--surface); font-size: 9.5px; font-weight: 800; letter-spacing: .05em; color: var(--text-muted); white-space: nowrap; }
.adv-avg-y { position: absolute; left: 0; right: 0; border-top: 2px dashed color-mix(in srgb, var(--text) 38%, transparent); z-index: 4; pointer-events: none; }
.adv-avg-y small { position: absolute; right: 4px; bottom: 3px; padding: 1px 5px; border-radius: 4px; background: var(--surface); font-size: 9.5px; font-weight: 800; letter-spacing: .05em; color: var(--text-muted); white-space: nowrap; }
/* points race */
.adv-line { margin-right: 170px; margin-bottom: 30px; }
.adv-line polyline { pointer-events: visibleStroke; }
.adv-line polyline.hot { stroke-width: 5; }
.adv-pt { position: absolute; width: 12px; height: 12px; margin: 0 0 -6px -6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px var(--surface); cursor: pointer; z-index: 2; transition: transform .15s var(--ease), opacity .18s var(--ease); }
.adv-pt.hot { transform: scale(1.4); }
.adv-end { position: absolute; left: 100%; transform: translate(12px, -50%); display: flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; cursor: pointer; }
.adv-end b { color: var(--c); font-weight: 800; max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
.adv-end span { font-weight: 900; color: var(--text); }
.adv-radar-empty { margin: 0; padding: 40px 0; text-align: center; color: var(--text-dim); font-size: 14px; }
/* rows: label · chart · value */
.adv-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.adv-rows > li { display: grid; grid-template-columns: 158px minmax(0, 1fr) 48px; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 8px; transition: background var(--dur) var(--ease), opacity .18s var(--ease); }
.adv-lab { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; }
.adv-lab .pfp-wrap { width: 28px; height: 28px; }
.adv-lab-t { display: flex; flex-direction: column; min-width: 0; }
.adv-lab-t a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adv-lab small { display: block; font-size: 11px; font-weight: 600; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adv-val { font-size: 16px; font-weight: 900; text-align: right; font-variant-numeric: tabular-nums; }
.adv-val small { font-size: 11px; font-weight: 600; color: var(--text-dim); }
.c-gold { color: var(--gold); }
.c-fg { background: #3b82f6; } .c-3p { background: #f59e0b; } .c-2p { background: #60a5fa; } .c-ft { background: #94a3b8; } .c-stl { background: #10b981; } .c-blk { background: #8b5cf6; }
.adv-legend { display: flex; gap: 14px; margin: 0; font-size: 11px; font-weight: 800; color: var(--text-muted); }
.adv-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.adv-legend .c-fg::before { background: #3b82f6; } .adv-legend .c-3p::before { background: #f59e0b; } .adv-legend .c-2p::before { background: #60a5fa; } .adv-legend .c-ft::before { background: #94a3b8; } .adv-legend .c-stl::before { background: #10b981; } .adv-legend .c-blk::before { background: #8b5cf6; }
.adv-legend .c-fg, .adv-legend .c-3p, .adv-legend .c-2p, .adv-legend .c-ft, .adv-legend .c-stl, .adv-legend .c-blk { background: none; }
.adv-legend .adv-legend-r { margin-left: auto; padding-right: 6px; }
.adv-legend .adv-legend-r::before { display: none; }
/* shooting splits: two bars on one 0–100% scale, numbers in their own column */
.adv-sbars { display: grid; grid-template-columns: minmax(0, 1fr) 36px; align-items: center; gap: 4px 8px; }
.adv-sbars small { font-size: 11px; font-weight: 800; color: var(--text-muted); text-align: right; font-variant-numeric: tabular-nums; }
.adv-sbars .sb { position: relative; height: 8px; border-radius: 4px; background: var(--surface-2) repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), var(--line) calc(25% - 1px) 25%); }
.adv-sbars .sb i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.adv-stack { display: flex; height: 20px; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.adv-stack i { display: flex; align-items: center; padding-left: 6px; font-style: normal; font-size: 10px; font-weight: 900; color: #0d1526; white-space: nowrap; overflow: hidden; }
.adv-stack.plain i { padding: 0; }
.adv-diet-row { grid-template-columns: 158px minmax(0, 1fr) 62px !important; }
.adv-dots, .adv-rings { display: flex; flex-wrap: wrap; gap: 4px; }
.adv-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.adv-dots i.half { background: linear-gradient(90deg, var(--gold) 50%, var(--line-strong) 50%); }
.adv-rings { gap: 3px; }
.adv-rings i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid #f59e0b; box-sizing: border-box; }
/* points per shot lollipops */
.adv-lolli { position: relative; display: flex; flex-direction: column; gap: 2px; }
.adv-lolli::before { content: ''; position: absolute; top: 0; bottom: 0; left: calc(174px + (100% - 224px) * var(--avg)); border-left: 1px dashed var(--line-strong); }
.adv-lolli-row { display: grid; grid-template-columns: 158px minmax(0, 1fr); gap: 10px; align-items: center; padding: 5px 50px 5px 6px; border-radius: 8px; transition: background var(--dur) var(--ease), opacity .18s var(--ease); }
.adv-track { position: relative; height: 2px; background: var(--surface-2); }
.adv-stem { position: absolute; top: 0; height: 2px; }
.adv-stem.up { background: var(--win); } .adv-stem.down { background: var(--loss); }
.adv-pin { position: absolute; top: -5px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; }
.adv-pin.up { background: var(--win); } .adv-pin.down { background: var(--loss); }
.adv-pin b { position: absolute; left: 16px; top: -3px; font-size: 11px; font-weight: 800; }
.adv-pin.up b { color: var(--win); } .adv-pin.down b { color: var(--loss); left: auto; right: 16px; }
/* single-game highs */
.adv-highs { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: start; }
.adv-high-hero { border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; color: #fff; background: linear-gradient(160deg, #e5262e, #7a0f18); }
.adv-high-hero .pfp-wrap { width: 64px; height: 64px; margin-bottom: 4px; }
.adv-high-hero small { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #ffd0d2; }
.adv-high-hero b { font-size: 64px; font-weight: 1000; line-height: .9; }
.adv-high-hero a, .adv-body .adv-high-hero a { color: #fff; font-size: 18px; }
.adv-high-list > li { grid-template-columns: 24px minmax(0, 1fr) 40px; gap: 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
.adv-rank { font-size: 12px; font-weight: 900; color: var(--text-dim); }
/* consistency range */
.adv-range-row { grid-template-columns: 158px minmax(0, 1fr) !important; }
.adv-range { position: relative; height: 14px; border-radius: 7px; background: var(--surface-2); margin-right: 8px; }
.adv-range .span { position: absolute; top: 0; bottom: 0; border-radius: 7px; background: linear-gradient(90deg, #3b82f6, #e5262e); opacity: .55; }
.adv-range .g { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; border: 2px solid #0d1526; cursor: pointer; transition: transform .15s var(--ease); }
.adv-range .g:hover { transform: scale(1.5); }
.adv-range .avg { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1px; border-radius: 2px; background: var(--text); }
.adv-scale { display: flex; justify-content: space-between; margin: 6px 0 0; padding: 0 14px 0 174px; font-size: 10px; color: var(--text-dim); }
/* hot and cold */
.adv-hc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.adv-hc { border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.adv-hc > b { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.adv-hc > b small { font-size: 11px; letter-spacing: 0; opacity: .7; }
.adv-hc-list { display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow-y: auto; scrollbar-width: thin; }
.adv-modal .adv-hc-list { max-height: none; }
.adv-hc.hot { background: color-mix(in srgb, #f97316 14%, transparent); } .adv-hc.hot > b, .adv-hc.hot .adv-hc-row > b { color: #ea580c; }
.adv-hc.cold { background: color-mix(in srgb, #3b82f6 14%, transparent); } .adv-hc.cold > b, .adv-hc.cold .adv-hc-row > b { color: #2563eb; }
:root[data-theme='dark'] .adv-hc.hot > b, :root[data-theme='dark'] .adv-hc.hot .adv-hc-row > b { color: #fb923c; }
:root[data-theme='dark'] .adv-hc.cold > b, :root[data-theme='dark'] .adv-hc.cold .adv-hc-row > b { color: #7fb2ff; }
.adv-hc-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: var(--surface); transition: background var(--dur) var(--ease), opacity .18s var(--ease); }
.adv-hc-row > b { flex: none; font-variant-numeric: tabular-nums; }
/* slope chart */
.adv-slope { position: relative; margin: 26px 160px 8px 160px; border-left: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); }
.adv-slope svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.adv-slope line { pointer-events: visibleStroke; }
.adv-slope line.hot { stroke-width: 5; }
.adv-slope > b { position: absolute; top: -22px; font-size: 11px; letter-spacing: .1em; color: var(--text-dim); }
.adv-slope > b.l { left: 0; transform: translateX(-50%); } .adv-slope > b.r { right: 0; transform: translateX(50%); }
.adv-slope small { position: absolute; transform: translateY(-50%); font-size: 11px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.adv-slope .sl { right: 100%; margin-right: 10px; color: var(--text-muted); }
.adv-slope .sr { left: 100%; margin-left: 10px; } .adv-slope .sr.up { color: var(--win); } .adv-slope .sr.down { color: var(--loss); }
.adv-sdot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--text-muted); }
.adv-sdot.up { background: var(--win); } .adv-sdot.down { background: var(--loss); }
/* radar compare with player cards */
.adv-radar { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 28px; align-items: center; }
.adv-radar-chart { position: relative; width: 100%; aspect-ratio: 1; }
.adv-radar-chart svg { width: 100%; height: 100%; overflow: visible; }
.adv-radar-chart .ring { stroke: var(--line); stroke-width: 1; }
.adv-radar-chart polygon.adv-mark, .adv-radar-chart circle { cursor: pointer; }
.adv-radar-chart polygon.hot { fill-opacity: .32; }
.adv-radar-chart small { position: absolute; transform: translate(-50%, -50%); font-size: 11px; font-weight: 800; color: var(--text-muted); white-space: nowrap; }
.adv-radar-side { min-width: 0; overflow-x: auto; }
.adv-radar-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adv-radar-table th, .adv-radar-table td { padding: 10px 8px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.adv-radar-table thead th { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.adv-radar-table th[scope='row'], .adv-radar-table thead th:first-child { text-align: left; }
.adv-radar-table tbody tr { box-shadow: inset 4px 0 0 var(--pc); }
.adv-radar-table th[scope='row'] { padding-left: 14px; }
.adv-radar-table td.best { font-weight: 900; color: var(--win); }
.adv-pick-help { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 0; font-size: 12px; color: var(--text-dim); }
.adv-line.crowd { margin-right: 18px; }
.adv-line.crowd .adv-pt { width: 8px; height: 8px; margin: 0 0 -4px -4px; box-shadow: 0 0 0 2px var(--surface); }
.adv-clear { border: 0; background: none; color: var(--link); font-weight: 700; font-size: 12px; cursor: pointer; padding: 4px 6px; }
.adv-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; max-height: 250px; overflow-y: auto; padding: 2px; scrollbar-width: thin; cursor: auto; }
.adv-pick { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 10px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface-2); color: var(--text); text-align: left; cursor: pointer; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform .15s var(--ease); }
.adv-pick:hover { border-color: var(--line-strong); }
.adv-pick:active { transform: scale(.97); }
.adv-pick[aria-pressed='true'] { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 14%, var(--surface)); }
.adv-pick .pfp-wrap { width: 36px; height: 36px; }
.adv-pick span { min-width: 0; }
.adv-pick b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adv-pick small { font-size: 11px; color: var(--text-dim); }
/* head to head */
.adv-h2h-faces { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; margin-bottom: 12px; }
.adv-face-card { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; text-align: center; text-decoration: none; }
.adv-face-card .pfp-wrap { width: 56px; height: 56px; }
.adv-face-card b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.adv-face-card small { font-size: 11px; color: var(--text-dim); font-weight: 600; }
.adv-face-card.a b { color: #f87171; } .adv-face-card.b b { color: #60a5fa; }
.adv-h2h-score { display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.adv-h2h-score b { font-size: 26px; font-weight: 1000; }
.adv-h2h-score small { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.adv-h2h-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; margin-bottom: 12px; }
.adv-h2h-pick select { width: 100%; min-height: 40px; }
.adv-h2h { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.adv-h2h li { display: grid; grid-template-columns: 46px 1fr 78px 1fr 46px; align-items: center; gap: 8px; }
.adv-h2h li > b { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--text-dim); }
.adv-h2h li > b:last-child { text-align: right; }
.adv-h2h li > b.win { color: var(--text); }
.adv-h2h small { text-align: center; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.adv-h2h .l, .adv-h2h .r { height: 10px; border-radius: 5px; background: var(--surface-2); display: flex; overflow: hidden; }
.adv-h2h .l { justify-content: flex-end; }
.adv-h2h .l i { background: #e5262e; border-radius: 5px; transition: width .35s var(--ease); } .adv-h2h .r i { background: #3b82f6; border-radius: 5px; transition: width .35s var(--ease); }
/* percentile profile */
.adv-pct-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.adv-pct-top .adv-face-card { flex-direction: row; text-align: left; gap: 10px; }
.adv-pct-top .adv-face-card b { color: var(--text); }
.adv-pct-avg { display: flex; flex-direction: column; align-items: flex-end; }
.adv-pct-avg b { font-size: 30px; font-weight: 1000; line-height: 1; }
.adv-pct-avg small { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.adv-pct { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.adv-pct li { display: grid; grid-template-columns: 130px minmax(0, 1fr) 54px; align-items: center; gap: 12px; padding: 4px 6px; border-radius: 8px; cursor: default; transition: background var(--dur) var(--ease); }
.adv-pct li:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.adv-pct small { font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--text-muted); }
.adv-pct .trk { position: relative; height: 14px; border-radius: 7px; background: var(--surface-2); }
.adv-pct .trk i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; opacity: .3; }
.adv-pct .trk b { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 900; color: #0d1526; }
.adv-pct .hi { background: #10b981; } .adv-pct .mid { background: #f59e0b; } .adv-pct .lo { background: #ef4444; }
.adv-pct .v { text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) {
  .adv-grid { grid-template-columns: minmax(0, 1fr); }
  .adv-radar, .adv-modal .adv-radar { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .adv-radar-chart { max-width: 360px; }
  .adv-radar-side { width: 100%; }
}
@media (max-width: 560px) {
  .adv-jump { flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .adv-jump-chips { flex-wrap: nowrap; }
  .adv-jump .btn, .adv-jump .chip { white-space: nowrap; flex: none; }
  .adv-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 280px; }
  .adv-pick { gap: 8px; padding: 6px 8px; min-height: 48px; }
  .adv-pick .pfp-wrap { width: 30px; height: 30px; }
  .adv-modal { padding: 0; }
  .adv-modal .adv-card { max-height: 100dvh; border-radius: 0; padding: 16px; }
  .adv-plot { margin-left: 40px; margin-right: 10px; }
  .adv-line { margin-right: 120px; }
  .adv-end b { max-width: 56px; }
  .adv-slope { margin-left: 112px; margin-right: 112px; }
  .adv-highs { grid-template-columns: minmax(0, 1fr); }
  .adv-rows > li, .adv-lolli-row, .adv-diet-row { grid-template-columns: 116px minmax(0, 1fr) 46px !important; }
  .adv-high-list > li { grid-template-columns: 22px minmax(0, 1fr) 36px !important; }
  .adv-lolli-row { grid-template-columns: 116px minmax(0, 1fr) !important; }
  .adv-lolli::before { left: calc(132px + (100% - 182px) * var(--avg)); }
  .adv-range-row { grid-template-columns: 116px minmax(0, 1fr) !important; }
  .adv-scale { padding-left: 132px; }
  .adv-hc-grid { grid-template-columns: minmax(0, 1fr); }
  .adv-pct li { grid-template-columns: 96px minmax(0, 1fr) 46px; }
}
/* player page: game form tracker and percentiles */
.pl-adv-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--gap); margin-bottom: var(--gap); align-items: stretch; }
@media (max-width: 1100px) { .pl-adv-grid { grid-template-columns: minmax(0, 1fr); } }
.pl-form-pick { gap: 6px; }
.pl-form-pick .chip { display: inline-flex; align-items: center; cursor: pointer; }
.pl-form-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 4px 0 26px; }
.pl-form-sum > div { padding: 8px 10px; border-radius: 10px; background: var(--surface-2); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pl-form-sum small { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-form-sum b { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.pl-form-sum .up b { color: var(--win); } .pl-form-sum .down b { color: var(--loss); }
.pl-form { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); height: 200px; border-bottom: 1px solid var(--line-strong); background: repeating-linear-gradient(0deg, transparent 0 calc(25% - 1px), var(--line) calc(25% - 1px) 25%); }
.adv-modal .pl-form { height: min(50vh, 440px); }
.pl-form-avg { position: absolute; left: 0; right: 0; border-top: 2px dashed color-mix(in srgb, var(--text) 45%, transparent); z-index: 2; pointer-events: none; }
.pl-form-avg small { position: absolute; right: 0; bottom: 3px; font-size: 10.5px; font-weight: 800; color: var(--text-muted); background: var(--surface); padding: 0 4px; border-radius: 4px; }
.pl-form-col { display: flex; align-items: flex-end; justify-content: center; height: 100%; cursor: pointer; border-radius: 6px 6px 0 0; transition: background var(--dur) var(--ease); }
.pl-form-col:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.pl-form-bar { position: relative; width: min(64%, 54px); border-radius: 6px 6px 2px 2px; background: color-mix(in srgb, #3b82f6 55%, var(--surface-2)); transition: height .35s var(--ease), filter var(--dur) var(--ease); }
.pl-form-bar.up { background: linear-gradient(180deg, #e5262e, #a3141b); }
.pl-form-bar.last { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--gold); }
.pl-form-col:hover .pl-form-bar { filter: brightness(1.2); }
.pl-form-bar b { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -4px); font-size: 12px; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-form-x { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin-top: 6px; }
.pl-form-x span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--text-dim); }
.pl-form-x i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; font-style: normal; font-size: 10px; font-weight: 900; color: #fff; }
.pl-form-x i.w { background: var(--win); } .pl-form-x i.l { background: var(--loss); }
.adv-pct-avg.left { align-items: flex-start; }
.adv-pct-key { display: flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; justify-content: flex-end; min-width: 0; font-size: 10.5px; font-weight: 700; color: var(--text-dim); }
.adv-pct-key i { width: 9px; height: 9px; border-radius: 50%; margin-left: 4px; }
.adv-pct-key .hi { background: #10b981; } .adv-pct-key .mid { background: #f59e0b; } .adv-pct-key .lo { background: #ef4444; }
@media (max-width: 560px) {
  .pl-form-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adv-pct-top { flex-wrap: wrap; }
  .adv-pct-key { justify-content: flex-start; }
  .pl-form { height: 170px; }
  .pl-form-bar b { font-size: 10.5px; }
}
/* ---------- articles from the article builder ---------- */
/* cover graphics */
.art-player .art-face { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 46%; aspect-ratio: 1; border-radius: 50% 50% 0 0; overflow: hidden; background: rgba(255, 255, 255, .12); display: grid; place-items: center; }
.art-player .art-face img { width: 100%; height: 100%; object-fit: cover; }
.art .art-name { position: absolute; right: 12px; top: 12px; color: #fff; font: 800 clamp(13px, 2.4vw, 22px)/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.art-stat .art-big { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-align: center; text-shadow: 0 4px 18px rgba(0, 0, 0, .4); }
.art-stat .art-big b { font: 900 clamp(46px, 11vw, 120px)/.9 var(--font-display); }
.art-stat .art-big small { font: 800 clamp(11px, 2vw, 16px)/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; }
.art-combine { background: radial-gradient(circle at 30% 20%, #1d3f7a, #0b1f45 60%), #0b1f45; }
.art-combine img { position: absolute; left: 50%; top: 50%; width: 34%; transform: translate(-50%, -50%); filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .5)); }
.art-combine .art-name { color: #ffd0d2; }
/* the story */
.ab-dek { margin: 10px 0 0; font-size: 19px; line-height: 1.5; color: var(--text-muted); }
.article .content > * + * { margin-top: 18px; }
.article .content strong { color: var(--text); }
.ab-h { font: 700 26px/1.15 var(--font-display); text-transform: uppercase; margin-top: 30px !important; }
.ab-hr { border: 0; height: 1px; background: var(--line); margin: 28px 0 !important; }
.ab-list { padding-left: 22px; }
.ab-list li + li { margin-top: 6px; }
.ab-label { margin: 0 0 10px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.ab-none { margin: 0; font-size: 14px; color: var(--text-dim); }
.ab-callout { padding: 14px 18px; border-radius: 12px; border-left: 4px solid var(--link); background: color-mix(in srgb, var(--link) 9%, var(--surface)); }
.ab-callout p { margin: 0; }
.ab-callout.tone-hot { border-color: #e5262e; background: color-mix(in srgb, #e5262e 10%, var(--surface)); }
.ab-callout.tone-good { border-color: var(--win); background: color-mix(in srgb, var(--win) 10%, var(--surface)); }
.ab-quote { display: flex; gap: 16px; align-items: flex-start; margin: 26px 0 !important; padding: 6px 0 6px 18px; border-left: 4px solid var(--accent-fill); }
.ab-quote .pfp-wrap { width: 54px; height: 54px; }
.ab-quote p { margin: 0; font: 700 23px/1.35 var(--font-display); }
.ab-quote cite { display: block; margin-top: 8px; font-style: normal; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.ab-fig { margin-inline: 0; }
.ab-fig img { display: block; width: 100%; border-radius: 12px; }
.ab-fig figcaption { margin-top: 8px; font-size: 13px; color: var(--text-dim); }
.ab-video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.ab-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ab-stat { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 18px; border-radius: 14px; background: linear-gradient(150deg, color-mix(in srgb, var(--sc) 85%, #000), color-mix(in srgb, var(--sc) 45%, #050b18)); color: #fff; }
.ab-stat b { font: 900 clamp(48px, 9vw, 84px)/.95 var(--font-display); }
.ab-stat span { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; }
.ab-stat small { margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.ab-player, .ab-team { display: block; overflow: hidden; border-radius: 14px; color: #fff; text-decoration: none; background: linear-gradient(135deg, var(--c1) 0 55%, var(--c2) 55.2%); box-shadow: var(--shadow); }
.ab-player:hover, .ab-team:hover { filter: brightness(1.06); }
.ab-player-top { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.ab-player-top .pfp-wrap { width: 84px; height: 84px; }
.ab-player-top > span { display: flex; flex-direction: column; min-width: 0; }
.ab-player-top small { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.ab-player-top b { font: 800 28px/1.05 var(--font-display); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; }
.ab-player-top > span > span { font-size: 14px; opacity: .9; }
.ab-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: rgba(5, 10, 22, .55); backdrop-filter: blur(4px); }
.ab-tiles > span { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; }
.ab-tiles b { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ab-tiles small { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; opacity: .8; }
.ab-player .ab-none { display: block; padding: 10px 20px; background: rgba(5, 10, 22, .55); color: #e2e8f0; }
.ab-team { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.ab-team .badge { width: 64px; height: 64px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4)); }
.ab-team > span { display: flex; flex-direction: column; }
.ab-team small { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.ab-team b { font: 800 26px/1.05 var(--font-display); text-transform: uppercase; }
.ab-compare, .ab-leaders, .ab-game { display: block; padding: 16px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.ab-cmp-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; margin-bottom: 12px; }
.ab-cmp-head > span { font-size: 12px; font-weight: 900; color: var(--text-dim); }
.ab-cmp-who { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; color: var(--text); text-decoration: none; }
.ab-cmp-who .pfp-wrap { width: 56px; height: 56px; }
.ab-cmp-who b { font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-cmp-who.a b { color: #f87171; } .ab-cmp-who.b b { color: #60a5fa; }
.ab-compare ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ab-compare li { display: grid; grid-template-columns: 52px 1fr 58px 1fr 52px; align-items: center; gap: 8px; font-size: 14px; }
.ab-compare li > b { font-variant-numeric: tabular-nums; color: var(--text-dim); }
.ab-compare li > b:last-child { text-align: right; }
.ab-compare li > b.win { color: var(--text); }
.ab-compare small { text-align: center; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: var(--text-muted); }
.ab-compare .l, .ab-compare .r { height: 10px; border-radius: 5px; background: var(--surface); display: flex; overflow: hidden; }
.ab-compare .l { justify-content: flex-end; }
.ab-compare .l i { background: #e5262e; border-radius: 5px; } .ab-compare .r i { background: #3b82f6; border-radius: 5px; }
.ab-leaders ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ab-leaders li { display: grid; grid-template-columns: 18px 28px minmax(80px, 150px) minmax(0, 1fr) 56px; align-items: center; gap: 10px; font-size: 14px; }
.ab-leaders li a { color: var(--text); font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-leaders li > b { text-align: right; font-variant-numeric: tabular-nums; }
.ab-rank { font-size: 12px; font-weight: 900; color: var(--text-dim); }
.ab-bar { height: 12px; border-radius: 6px; background: var(--surface); overflow: hidden; }
.ab-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #e5262e, #f2b94a); }
.ab-leaders li:first-child .ab-bar i { background: linear-gradient(90deg, #f2b94a, #fde68a); }
.ab-game:hover { border-color: var(--line-strong); }
.ab-game-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 50px; align-items: center; gap: 10px; padding: 6px 0; color: var(--text-muted); }
.ab-game-row .badge, .ab-game-row .cb-logo { width: 30px; height: 30px; }
.ab-game-row b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-game-row small { font-size: 12px; color: var(--text-dim); }
.ab-game-row > span { text-align: right; font: 800 24px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.ab-game-row.won { color: var(--text); }
.ab-game-row.won > span::after { content: ' ◂'; font-size: 13px; }
/* the builder's live preview: just the story */
.article-preview .app-header, .article-preview footer, .article-preview .site-footer, .article-preview .skip-link { display: none !important; }
@media (max-width: 560px) {
  .ab-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ab-player-top .pfp-wrap { width: 64px; height: 64px; }
  .ab-player-top b { font-size: 22px; }
  .ab-leaders li { grid-template-columns: 16px 26px minmax(60px, 100px) minmax(0, 1fr) 48px; gap: 8px; }
  .ab-compare li { grid-template-columns: 46px 1fr 44px 1fr 46px; }
  .ab-quote p { font-size: 19px; }
  .ab-game-row small { display: none; }
}
/* writer block */
.ab-author { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.ab-author .pfp-wrap { width: 54px; height: 54px; flex: none; }
.ab-author-init { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font: 900 20px/1 var(--font-display); color: #fff; background: linear-gradient(140deg, #e5262e, #0b1f45); }
.ab-author small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.ab-author b { display: block; font-size: 18px; line-height: 1.2; }
.ab-author b a { color: var(--text); text-decoration: none; }
.ab-author > div > span { display: block; font-size: 13px; color: var(--text-muted); }
.ab-author p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
/* mock draft block */
.ab-mock { padding: 16px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.ab-mock-round { margin: 14px 0 8px; font: 800 15px/1 var(--font-display); text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.ab-mock .ab-label + .ab-mock-round { margin-top: 0; }
.ab-mock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.ab-mock-pick { display: grid; grid-template-columns: 26px 26px minmax(0, 1fr); align-items: center; gap: 8px; padding: 7px 9px; border-radius: 10px; background: var(--surface); box-shadow: inset 3px 0 0 var(--tc); }
.ab-mock-pick.open { opacity: .6; }
.ab-mock-no { font: 900 13px/1 var(--font-display); color: var(--text-dim); text-align: center; font-variant-numeric: tabular-nums; }
.ab-mock-pick .badge { width: 26px; height: 26px; }
.ab-mock-tbd { font-size: 9px; font-weight: 900; color: var(--text-dim); }
.ab-mock-who { display: flex; align-items: center; gap: 7px; min-width: 0; }
.ab-mock-who .pfp-wrap { width: 26px; height: 26px; flex: none; }
.ab-mock-who > span { display: flex; flex-direction: column; min-width: 0; }
.ab-mock-who a { color: var(--text); font-weight: 800; font-size: 13px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-mock-who small { font-size: 11px; color: var(--text-dim); }
/* ---------- more advanced stats cards ---------- */
.adv-chips { margin-bottom: 8px; }
.adv-chips .chip { display: inline-flex; align-items: center; cursor: pointer; }
.adv-explore-pick { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: start; gap: 8px; }
.adv-explore-pick > span { padding-top: 9px; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.adv-explore-pick .adv-chips { margin-bottom: 4px; }
.adv-hbar { display: block; height: 12px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.adv-hbar i { display: block; height: 100%; border-radius: 6px; }
.c-win { color: var(--win); } .c-loss { color: var(--loss); }
/* against the average */
.adv-vs-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.adv-vs-top .adv-lab { font-size: 15px; }
.adv-vs-top .adv-lab .pfp-wrap { width: 40px; height: 40px; }
.adv-vs-top .field { margin: 0; min-width: 200px; }
.adv-vs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 28px; }
.adv-vs li { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr) 52px; align-items: center; padding: 3px 6px; border-radius: 8px; transition: background var(--dur) var(--ease), opacity .18s var(--ease); }
.adv-vs li.hot { background: color-mix(in srgb, var(--text) 6%, transparent); }
.adv-vs small { font-size: 11.5px; font-weight: 800; color: var(--text-muted); }
.adv-vs .neg, .adv-vs .pos { display: flex; height: 14px; }
.adv-vs .neg { justify-content: flex-end; border-right: 1px solid var(--line-strong); }
.adv-vs .neg i, .adv-vs .pos i { display: block; height: 100%; }
.adv-vs .neg i { background: var(--loss); border-radius: 6px 0 0 6px; } .adv-vs .pos i { background: var(--win); border-radius: 0 6px 6px 0; }
.adv-vs b { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; }
.adv-vs b.up { color: var(--win); } .adv-vs b.down { color: var(--loss); }
/* strip of small number tiles */
.adv-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin-bottom: 8px; }
.adv-strip > span { display: flex; flex-direction: column; padding: 7px 9px; border-radius: 10px; background: var(--surface-2); }
.adv-strip small { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adv-strip b { font-size: 17px; font-variant-numeric: tabular-nums; }
/* game timeline */
.adv-tl { position: relative; display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.adv-tl::before { content: ''; position: absolute; left: 30px; right: 30px; top: 31px; height: 2px; background: var(--line-strong); }
.adv-tl-node { position: relative; flex: 1 0 74px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; cursor: pointer; }
.adv-tl-node small { font-size: 10.5px; font-weight: 800; color: var(--text-dim); white-space: nowrap; }
.adv-tl-node .dot { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 4px var(--surface); }
.adv-tl-node .dot.away { background: #3b82f6; } .adv-tl-node .dot.home { background: #e5262e; }
.adv-tl-node.on .dot { box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--text); }
.adv-tl-node b { font-size: 12px; font-variant-numeric: tabular-nums; }
.adv-tl-node:hover { background: var(--surface-2); }
.adv-stars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.adv-star { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border-radius: 12px; background: var(--surface-2); transition: opacity .18s var(--ease); }
.adv-star > small:first-child { font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.adv-star .pfp-wrap { width: 46px; height: 46px; }
.adv-star b { font-size: 16px; }
.adv-star > span { font-size: 26px; font-weight: 1000; line-height: 1; }
.adv-star > span small { font-size: 12px; color: var(--text-dim); }
.adv-star > small:last-child { font-size: 11.5px; color: var(--text-muted); }
/* share of the team's points */
.adv-share { margin-top: 10px; }
.adv-share-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.adv-share-bar { display: flex; gap: 2px; height: 34px; border-radius: 9px; overflow: hidden; }
.adv-share-bar span { display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap; font-size: 10.5px; font-weight: 900; color: #0d1526; cursor: pointer; transition: opacity .18s var(--ease); }
.adv-share-key { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 11px; color: var(--text-muted); }
.adv-share-key i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
/* winning record and streaks */
.adv-wl > li { grid-template-columns: 158px minmax(0, 1fr) 44px 52px !important; }
.adv-wl-games, .adv-streak-games { display: flex; flex-wrap: wrap; gap: 3px; }
.adv-wl-games i, .adv-streak-games i { display: grid; place-items: center; min-width: 20px; height: 18px; padding: 0 3px; border-radius: 4px; font-style: normal; font-size: 10px; font-weight: 900; cursor: pointer; }
.adv-wl-games i.w { background: var(--win); color: #0d1526; } .adv-wl-games i.l { background: var(--loss); color: #0d1526; }
.adv-streak-games i { background: var(--surface-2); color: var(--text-dim); }
.adv-streak-games i.hit { background: var(--win); color: #0d1526; }
/* record book */
.adv-recs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.adv-rec { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; grid-template-areas: 'k k v' 'p who v' 'at at at' 'n n n'; align-items: center; gap: 2px 8px; padding: 9px 11px; border-radius: 12px; background: var(--surface-2); transition: opacity .18s var(--ease); }
.adv-rec > small { grid-area: k; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.adv-rec .pfp-wrap { grid-area: p; width: 26px; height: 26px; }
.adv-rec .v { grid-area: v; font-size: 26px; font-weight: 1000; color: var(--gold); }
.adv-rec .who { grid-area: who; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adv-rec > span { grid-area: at; font-size: 11px; color: var(--text-dim); }
.adv-rec > span.next { grid-area: n; color: var(--text-muted); }
@media (max-width: 760px) {
  .adv-vs { grid-template-columns: minmax(0, 1fr); }
  .adv-stars { grid-template-columns: minmax(0, 1fr); }
  .adv-recs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .adv-wl > li { grid-template-columns: 116px minmax(0, 1fr) 40px 44px !important; }
  .adv-vs li { grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr) 46px; }
}

.adv-strip.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.adv-body:has(.adv-chips), .adv-body:has(.adv-tl), .adv-body:has(.adv-vs) { justify-content: flex-start; }
@media (max-width: 560px) { .adv-strip.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* On the Advanced Stats page each chart is a still preview: the page scrolls straight past it (no lists or
   pickers grab the scroll), and a click anywhere on it opens it full screen, where everything works. */
.adv-grid .adv-card .adv-body { pointer-events: none; user-select: none; }
.adv-grid .adv-card .adv-scroll, .adv-grid .adv-card .adv-picks, .adv-grid .adv-card .adv-hc-list { overflow: hidden; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.adv-grid .adv-card .adv-tl { overflow: hidden; }
.adv-grid .adv-card { position: relative; }
.adv-grid .adv-card::after { content: 'Click to explore'; position: absolute; right: 62px; top: 22px; padding: 4px 10px; border-radius: 999px; background: var(--accent-fill); color: var(--on-accent); font-size: 11px; font-weight: 800; letter-spacing: .02em; opacity: 0; transform: translateY(-3px); transition: opacity .18s var(--ease), transform .18s var(--ease); pointer-events: none; }
.adv-grid .adv-card:hover::after { opacity: 1; transform: none; }
.adv-modal .adv-card [data-pid] { cursor: pointer; }
.adv-tip .adv-tip-go { margin-top: 3px; color: #fca5a5; font-weight: 800; }
@media (hover: none) { .adv-grid .adv-card::after { content: 'Tap to explore'; opacity: .9; transform: none; } }

/* ---------- Staff page ---------- */
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.st-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 20px 14px 18px; min-width: 0; }
.st-avatar { position: relative; width: 84px; height: 84px; margin-bottom: 8px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(140deg, var(--accent-fill), #0b1f45); }
.st-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #dfe6ef; }
.st-avatar i { font: 900 26px/1 var(--font-display); font-style: normal; color: #fff; }
.st-card b { font-weight: 800; font-size: 16px; overflow-wrap: anywhere; }
.st-role { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--link); }
.st-card small { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 12px; color: var(--text-muted); overflow-wrap: anywhere; }
.st-card small svg { width: 14px; height: 14px; flex: none; }
/* hierarchy: each person's reports in a row under them, joined by lines */
.st-tree-wrap { overflow-x: auto; padding: 14px 0 8px; }
.st-tree, .st-tree ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; }
.st-tree { gap: 24px; min-width: max-content; margin: 0 auto; }
.st-tree li { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 8px; }
.st-tree .st-card { width: 190px; }
.st-tree ul { position: relative; padding-top: 28px; }
.st-tree ul::before { content: ''; position: absolute; top: 0; left: 50%; height: 14px; border-left: 2px solid var(--line-strong); }
.st-tree ul > li { padding-top: 14px; }
.st-tree ul > li::before { content: ''; position: absolute; top: 0; left: 50%; height: 14px; border-left: 2px solid var(--line-strong); }
.st-tree ul > li::after { content: ''; position: absolute; top: 0; left: 0; right: 0; border-top: 2px solid var(--line-strong); }
.st-tree ul > li:first-child::after { left: 50%; }
.st-tree ul > li:last-child::after { right: 50%; }
.st-tree ul > li:only-child::after { display: none; }
@media (max-width: 560px) {
  .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .st-tree .st-card { width: 150px; }
  .st-avatar { width: 64px; height: 64px; }
}

/* staff role label after a linked player's name, like FO */
.staff-pill { display: inline-flex; align-items: center; vertical-align: middle; margin-left: 4px; padding: 1px 7px; border-radius: 999px; font: 800 10px/1.4 var(--font-body); letter-spacing: .04em; color: #fff; background: linear-gradient(180deg, #3b82f6, #1d4ed8); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); white-space: nowrap; text-transform: none; position: relative; top: -1px; }
.player-hero h1 .staff-pill { font-size: clamp(12px, 1.6vw, 16px); padding: 2px 10px; top: -0.3em; margin-left: 8px; letter-spacing: .04em; }
.st-link { color: inherit; text-decoration: none; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.st-link:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.st-link:hover b { color: var(--link); }
.st-player { font-weight: 700; color: var(--text) !important; }

/* hierarchy: a whole role as one group box */
.st-group { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 12px 12px; border-radius: 18px; border: 2px dashed var(--line-strong); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.st-group-label { position: absolute; top: -11px; padding: 1px 10px; border-radius: 999px; background: var(--bg); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--link); white-space: nowrap; }
.st-group-cards { display: flex; gap: 10px; justify-content: center; }
/* FO and staff labels keep their own look inside any name, whatever styles the name's spans (the leader cards
   make every span in a name a grey block, which stretched the label into a bar). The repeated class only raises
   specificity above those rules. */
.fo-pill.fo-pill.fo-pill, .staff-pill.staff-pill.staff-pill { display: inline-flex; width: auto; flex: none; vertical-align: middle; white-space: nowrap; font-size: 10px; line-height: 1.4; }
.staff-pill.staff-pill.staff-pill { color: #fff; }
.fo-pill.fo-pill.fo-pill { color: #3d2a00; }
.player-hero h1 .fo-pill.fo-pill.fo-pill, .player-hero h1 .staff-pill.staff-pill.staff-pill { font-size: clamp(12px, 1.6vw, 16px); }
/* leader lists: a name with labels stays on one line (cut short with … if it has to be) instead of wrapping */
.leader-rest li > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* record book cards are links to their full list */
a.adv-rec { color: inherit; text-decoration: none; }
.adv-modal a.adv-rec:hover { box-shadow: inset 0 0 0 2px var(--link); }
/* the full record list page */
.rec-nav .chip[aria-current='true'], .rec-stats .chip[aria-current='true'] { background: var(--accent-fill); color: var(--on-accent); border-color: var(--accent-fill); }
.rec-stats { margin: 4px 0 6px; }
.rec-stats .chip { display: inline-flex; align-items: center; text-decoration: none; }
.rec-list { list-style: none; margin: 0; padding: 6px 0; }
.rec-list li { display: grid; grid-template-columns: 40px minmax(170px, 260px) minmax(0, 1fr) minmax(80px, 180px) 64px; align-items: center; gap: 12px; padding: 9px 16px; border-top: 1px solid var(--line); }
.rec-list li:first-child { border-top: 0; }
.rec-list li.top { background: color-mix(in srgb, var(--gold) 6%, transparent); }
.rec-rank { font: 800 18px/1 var(--font-display); color: var(--text-dim); text-align: center; font-variant-numeric: tabular-nums; }
.rec-list li.top1 .rec-rank { color: #f2b94a; } .rec-list li.top2 .rec-rank { color: #cbd5e1; } .rec-list li.top3 .rec-rank { color: #d08b52; }
.rec-who { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); text-decoration: none; }
.rec-who > span { display: flex; flex-direction: column; min-width: 0; }
.rec-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-who small { font-size: 12px; color: var(--text-dim); }
.rec-who:hover b { color: var(--link); }
.rec-line { font-size: 12.5px; color: var(--text-muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-bar { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.rec-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #e5262e, #f2b94a); }
.rec-val { font: 800 22px/1 var(--font-display); text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .rec-list li { grid-template-columns: 30px minmax(0, 1fr) 56px; gap: 8px; padding: 9px 12px; }
  .rec-line, .rec-bar { display: none; }
}

/* ---------- Lottery: full-screen neon pick reveal (lotteryFx) ---------- */
/* After each ball, the pick number and the team buzz on like neon signs across the whole screen. */
.lfx { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; overflow: hidden; background: #05070d; color: #fff; font-family: var(--font-display); cursor: pointer; animation: lfx-in .25s ease both; --t0: .9s; --glow: color-mix(in srgb, var(--c1) 30%, #fff); }
.lfx.is-out { animation: lfx-out .5s ease forwards; }
.lfx-bg { position: absolute; inset: 0; opacity: .3; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--c1) 80%, #fff 20%), var(--c1) 42%, #05070d 115%); }
.lfx-big { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: min(82vh, 72vw); line-height: .8; letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: transparent; -webkit-text-stroke: max(2px, .6vmin) var(--glow); filter: drop-shadow(0 0 1.5vmin var(--glow)) drop-shadow(0 0 5vmin var(--c1)); pointer-events: none; animation: lfx-buzz 1.2s .15s steps(1) both; }
.lfx-center { position: relative; z-index: 2; display: grid; justify-items: center; gap: 1.6vmin; padding: 0 16px; text-align: center; text-shadow: 0 4px 30px rgba(0,0,0,.5); }
.lfx-center p { margin: 0; }
.lfx-pick small { font: 800 clamp(15px, 3.2vmin, 34px)/1 var(--font-display); letter-spacing: .16em; text-transform: uppercase; }
.lfx-badge .badge { display: block; width: clamp(120px, 30vmin, 320px); height: auto; filter: drop-shadow(0 0 3vmin var(--glow)); }
.lfx-name { font: 900 clamp(30px, 8vmin, 110px)/.95 var(--font-display); text-transform: uppercase; max-width: 92vw; overflow-wrap: anywhere; color: #fff; text-shadow: 0 0 1vmin var(--glow), 0 0 3vmin var(--c1), 0 0 7vmin var(--c1); }
.lfx .lfx-pick { animation: lfx-up .5s var(--t0) both; }
.lfx .lfx-badge { animation: lfx-pop .6s calc(var(--t0) + .1s) cubic-bezier(.2,.9,.3,1.4) both; }
.lfx .lfx-name { animation: lfx-buzz 1s calc(var(--t0) + .4s) steps(1) both; }
@keyframes lfx-in { from { opacity: 0; } }
@keyframes lfx-out { to { opacity: 0; transform: scale(1.04); } }
@keyframes lfx-up { from { opacity: 0; transform: translateY(4vmin); } }
@keyframes lfx-pop { from { opacity: 0; transform: scale(.3); } }
@keyframes lfx-buzz { 0% { opacity: 0; } 10% { opacity: 1; } 18% { opacity: .1; } 30% { opacity: 1; } 36% { opacity: .3; } 48% { opacity: 1; } 56% { opacity: .6; } 64%, 100% { opacity: 1; } }
/* Reduced motion: no flicker, just the finished card */
.lfx-calm, .lfx-calm * { animation: none !important; }
/* "AABL Lottery" title card (admin → Draft lottery → Flash): full screen for 5 seconds. Two stage spotlights sweep the
   dark and cross on the logo, then the title fades in and a gold shine runs across it. A click closes it early. */
.lfl { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.4vmin; overflow: hidden; background: #020308; cursor: pointer; animation: lfx-in .3s ease both; }
.lfl.is-out { animation: lfx-out .6s ease forwards; }
.lfl-beam { position: absolute; bottom: -10vh; width: 46vmax; height: 150vh; transform-origin: 50% 100%; background: linear-gradient(to top, rgba(255,240,200,.55), rgba(255,240,200,0) 85%); clip-path: polygon(46% 100%, 54% 100%, 100% 0, 0 0); filter: blur(6px); mix-blend-mode: screen; }
.lfl-beam-l { left: -8vmax; animation: lfl-sweep-l 2.6s cubic-bezier(.45,0,.2,1) both; }
.lfl-beam-r { right: -8vmax; animation: lfl-sweep-r 2.6s cubic-bezier(.45,0,.2,1) both; }
@keyframes lfl-sweep-l { 0% { transform: rotate(-35deg); opacity: 0; } 15% { opacity: 1; } 45% { transform: rotate(25deg); } 100% { transform: rotate(32deg); opacity: 1; } }
@keyframes lfl-sweep-r { 0% { transform: rotate(35deg); opacity: 0; } 15% { opacity: 1; } 45% { transform: rotate(-25deg); } 100% { transform: rotate(-32deg); opacity: 1; } }
.lfl-floor { position: absolute; left: 50%; top: 50%; width: 70vmin; height: 70vmin; margin: -35vmin 0 0 -35vmin; border-radius: 50%; background: radial-gradient(circle, rgba(255,230,170,.35), transparent 65%); opacity: 0; animation: lfl-show .8s 1.6s ease both; }
@keyframes lfl-show { from { opacity: 0; } to { opacity: 1; } }
.lfl-logo { position: relative; width: clamp(130px, 26vmin, 300px); height: auto; opacity: 0; animation: lfl-reveal 1s 1.5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes lfl-reveal { from { opacity: 0; transform: scale(.85); filter: brightness(3) blur(6px); } to { opacity: 1; transform: none; filter: drop-shadow(0 0 4vmin rgba(255,220,150,.5)); } }
.lfl-text { position: relative; margin: 0; padding: 0 16px; text-align: center; font: 1000 clamp(36px, 9.5vmin, 120px)/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; opacity: 0; color: transparent; background: linear-gradient(100deg, #fff 0 40%, #ffe9a8 47%, #fff 54% 100%) 120% 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; animation: lfl-show .6s 2.1s ease both, lfl-shine 1.4s 2.5s ease-in-out both; }
.lfl-text span { color: transparent; background: linear-gradient(100deg, #e5262e 0 40%, #ffb3b6 47%, #e5262e 54% 100%) 120% 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; animation: lfl-shine 1.4s 2.5s ease-in-out both; }
@keyframes lfl-shine { from { background-position: 120% 0; } to { background-position: -20% 0; } }
@media (prefers-reduced-motion: reduce) { .lfl-beam { display: none; } .lfl-floor, .lfl-logo, .lfl-text { opacity: 1; animation: none; } }
/* The lottery countdown shrinks out when it reaches zero (Lottery page header and the Big Board panel). */
.lot-count.is-gone, .dsx-count.is-gone { animation: count-gone .7s cubic-bezier(.5, 0, .75, 0) forwards; pointer-events: none; }
@keyframes count-gone { 30% { transform: scale(1.06); opacity: 1; } to { transform: scale(0); opacity: 0; } }

/* Mock draft (home page, above the combine games): picks 1–10 as broadcast-style stripes in each team's colours. */
.mdx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mdx-row { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 10px; overflow: hidden; color: #fff; text-decoration: none; background: linear-gradient(100deg, var(--c1) 0 45%, color-mix(in srgb, var(--c1) 45%, #05070d) 75%); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.mdx-row:hover { color: #fff; transform: translateX(3px); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.mdx-row:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.mdx-wm { position: absolute; left: 30%; top: 50%; width: 140px; height: 140px; margin-top: -70px; opacity: .12; pointer-events: none; }
.mdx-wm .badge { width: 100%; height: 100%; }
.mdx-no { position: relative; flex: none; width: 40px; font: 1000 34px/1 var(--font-display); text-align: center; font-variant-numeric: tabular-nums; }
.mdx-logo { position: relative; display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; font-weight: 900; }
.mdx-logo .badge { width: 100%; height: 100%; }
.mdx-logo:not(:has(.badge)) { background: rgba(255,255,255,.15); }
.mdx-team, .mdx-sel { position: relative; display: grid; min-width: 0; }
.mdx-team { width: 30%; }
.mdx-sel { flex: 1; }
.mdx-team small, .mdx-sel small { font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.mdx-team b { font-size: 16px; }
.mdx-sel b { font-size: 19px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mdx-sel i { font-style: normal; font-size: 12px; opacity: .85; }
.mdx-face { position: relative; display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: color-mix(in srgb, var(--c1) 70%, #fff); box-shadow: 0 0 0 3px rgba(255,255,255,.3); font-weight: 900; font-size: 20px; }
.mdx-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.mdx-face i { font-style: normal; }
@media (max-width: 720px) {
  .mdx-row { gap: 10px; padding: 8px 10px; }
  .mdx-team, .mdx-wm, .mdx-sel i { display: none; }
  .mdx-no { width: 28px; font-size: 26px; }
  .mdx-logo { width: 36px; height: 36px; }
  .mdx-face { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) { .mdx-row { transition: none; } .mdx-row:hover { transform: none; } }


/* a voided pick on the Draft board: used up with no player */
.dbd-void { opacity: .55; filter: grayscale(.7); }
.dbd-void .lot-who b { text-decoration: line-through; text-decoration-thickness: 2px; }

/* the combine on its season's page: advanced-stat leaders */
.ss-cb-leaders { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap); }
.ss-cb-lead { padding: 14px 16px; }
.ss-cb-lead h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.ss-cb-lead ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: cb; }
.ss-cb-lead li { display: flex; align-items: center; gap: 10px; counter-increment: cb; }
.ss-cb-lead li::before { content: counter(cb); width: 16px; text-align: right; font-weight: 800; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.ss-cb-lead li a { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; color: var(--text); font-weight: 700; text-decoration: none; }
.ss-cb-lead li a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-cb-lead li b { font-variant-numeric: tabular-nums; }
