:root {
  --bg: #061022;
  --bg-2: #0A1830;
  --card: #0E1F3B;
  --card-2: #13284A;
  --line: #1E3A66;
  --line-2: #2A4A7C;
  --text: #FFFFFF;
  --text-2: #C9D5EA;
  --muted: #8EA2C4;
  --brand: #E5243B;
  --brand-2: #FF4A5F;
  --gold: #F5C518;
  --win: #2ED47A;
  --loss: #FF5C6C;
  --focus: #6BA4FF;
  --radius: 10px;
  --head: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--body);
  font-size: 15px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
.link { color: #8FC0FF; }
.link:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: 0.01em; }
h1 { font-size: 34px; text-transform: uppercase; }
h2 { font-size: 24px; text-transform: uppercase; }
h3 { font-size: 19px; text-transform: uppercase; }
p { margin: 0 0 12px; color: var(--text-2); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11px; letter-spacing: 0.04em; }
.upper { text-transform: uppercase; letter-spacing: 0.06em; }
.mono { font-family: var(--mono); font-size: 12px; word-break: break-all; }
.num { font-family: var(--head); font-variant-numeric: tabular-nums; }
.w { color: var(--win); } .l { color: var(--loss); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: #040B18; border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 14px; max-width: 1240px; margin: 0 auto; padding: 10px 16px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { width: 40px; height: 40px; }
.logo-text { font-family: var(--head); font-weight: 800; font-size: 22px; letter-spacing: 0.04em; line-height: 1; }
.logo-text small { display: block; font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: 0.18em; margin-top: 3px; }
.head-cta { margin-left: auto; }
.nav { max-width: 1240px; margin: 0 auto; display: flex; gap: 2px; padding: 0 8px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 15px;
  padding: 10px 10px 11px; color: var(--text-2); white-space: nowrap; border-bottom: 3px solid transparent;
}
.nav a.on { color: #fff; border-bottom-color: var(--brand); }
.nav a:hover { color: #fff; }

/* score strip */
.strip { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.strip-in { max-width: 1240px; margin: 0 auto; display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px; scrollbar-width: thin; }
.chip {
  flex: 0 0 auto; min-width: 150px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px;
  font-size: 13px; display: grid; gap: 2px;
}
.chip:hover { border-color: var(--line-2); }
.chip-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.chip-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.chip-row b { font-family: var(--head); font-size: 16px; }
.chip-row.lose { color: var(--muted); }

/* ---------- layout ---------- */
main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 20px 16px 48px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-head p { margin: 6px 0 0; }
.kicker { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; color: var(--brand-2); margin-bottom: 4px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr; }
.g3 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .home-grid { grid-template-columns: 1.6fr 1fr; } }
.stack > * + * { margin-top: 16px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-h {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px;
  background: var(--card-2); border-bottom: 1px solid var(--line);
}
.card-h h2, .card-h h3 { font-size: 17px; letter-spacing: 0.05em; }
.card-h a { font-size: 12px; color: #8FC0FF; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; white-space: nowrap; }
.card-b { padding: 14px; }
.card-b.flush { padding: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: var(--card-2);
  color: #fff; font: 600 13px/1 var(--body); text-transform: uppercase; letter-spacing: 0.06em; padding: 10px 14px; border-radius: 8px; cursor: pointer;
}
.btn:hover { border-color: #fff; }
.btn.primary { background: var(--brand); border-color: var(--brand); }
.btn.primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn.sm { padding: 7px 10px; font-size: 11px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.pill.live { background: var(--brand); border-color: var(--brand); color: #fff; }
.pill.gold { background: var(--gold); border-color: var(--gold); color: #111; }
.pill.win { border-color: var(--win); color: var(--win); }
.pill.warn { border-color: #FFB020; color: #FFB020; }
.pill.ok { border-color: var(--win); color: var(--win); }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tab { border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font: 600 13px/1 var(--head); text-transform: uppercase; letter-spacing: 0.08em; padding: 9px 13px; border-radius: 999px; cursor: pointer; }
.tab.on { background: #fff; color: #061022; border-color: #fff; }
.tab:hover:not(.on) { border-color: #fff; color: #fff; }

input[type=search], input[type=text], select {
  background: var(--bg-2); color: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; font: 14px var(--body); min-width: 0;
}
input::placeholder { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filters input[type=search] { flex: 1 1 220px; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 9px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.tbl th {
  font: 700 12px/1.1 var(--body); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); background: var(--card-2);
  position: sticky; top: 0; user-select: none;
}
.tbl th.sortable { cursor: pointer; }
.tbl th.sortable:hover { color: #fff; }
.tbl th.sorted { color: #fff; }
.tbl th.sorted::after { content: ' \25BC'; font-size: 9px; }
.tbl th.sorted.asc::after { content: ' \25B2'; }
.tbl td.t, .tbl th.t { text-align: left; }
.tbl tbody tr:hover td { background: #132a50; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .pin { position: sticky; left: 0; z-index: 1; background: var(--card); }
.tbl th.pin { z-index: 2; background: var(--card-2); }
.tbl tbody tr:hover td.pin { background: #132a50; }
.tbl .pin::after { content: ''; position: absolute; top: 0; right: -1px; bottom: 0; width: 1px; background: var(--line); }
.tbl td.hl { color: #fff; font-weight: 700; }
.tbl tr.cut td { border-bottom: 2px dashed var(--line-2); }
.tbl .rk { width: 28px; color: var(--muted); }
.tbl-note { padding: 10px 14px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }

.tm { display: inline-flex; align-items: center; gap: 8px; }
.tm svg { width: 24px; height: 24px; flex-shrink: 0; }
.tm .ab { font-family: var(--head); font-weight: 700; font-size: 15px; }
.tm .nm { color: var(--text-2); }
.rb { display: inline-flex; align-items: center; gap: 8px; }
.rb svg { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; }
.rb b { font-weight: 600; }
.rb .sub { color: var(--muted); font-size: 12px; }

/* ---------- home ---------- */
.hero {
  position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 100% 0%, #1B3F7A 0%, #0B1A33 45%, #061022 100%);
  padding: 22px 18px;
}
.hero h1 { font-size: clamp(30px, 6vw, 48px); }
.hero .when { font-family: var(--head); font-size: 20px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.05em; margin: 6px 0 16px; }
.matchups { display: grid; gap: 8px; }
@media (min-width: 640px) { .matchups { grid-template-columns: 1fr 1fr; } }
.mu { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(6, 16, 34, 0.7); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.mu:hover { border-color: var(--line-2); }
.mu .vs { color: var(--muted); font-size: 12px; }
.mu .time { text-align: right; font-size: 12px; color: var(--muted); line-height: 1.3; }
.mu .time b { color: #fff; font-family: var(--head); font-size: 15px; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

.score-card { display: grid; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.score-card:last-child { border-bottom: 0; }
.score-card:hover { background: #12264a; }
.sc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sc-row .big { font-family: var(--head); font-size: 24px; font-weight: 700; }
.sc-row.lose { color: var(--muted); }
.sc-sports { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.sc-sports b { color: var(--text-2); font-weight: 600; }
.recap { font-size: 13px; color: var(--text-2); }

.feature { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; }
.feature svg { width: 92px; height: 92px; border-radius: 12px; }
.feature .tag { font-family: var(--head); font-size: 30px; font-weight: 800; line-height: 1; }

/* ---------- player header ---------- */
.ph { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.ph-top { padding: 18px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; position: relative; }
.ph-top .avatar svg { width: 104px; height: 104px; border-radius: 14px; border: 2px solid rgba(255,255,255,0.25); background: #0b1a33; }
.ph-num { font-family: var(--head); font-weight: 800; font-size: 64px; line-height: 0.8; opacity: 0.95; }
.ph-name { font-size: clamp(28px, 6vw, 46px); line-height: 0.95; }
.ph-team { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600; }
.ph-team svg { width: 22px; height: 22px; }
.ph-bio { display: grid; grid-template-columns: repeat(2, 1fr); background: var(--card); }
@media (min-width: 640px) { .ph-bio { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .ph-bio { grid-template-columns: repeat(8, 1fr); } }
.ph-bio div { padding: 10px 14px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.ph-bio dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.ph-bio dd { margin: 2px 0 0; font-family: var(--head); font-size: 19px; font-weight: 700; }

.ranges { display: grid; gap: 10px; }
.rg { display: grid; grid-template-columns: 84px 1fr 66px; gap: 10px; align-items: center; font-size: 13px; }
.rg-bar { position: relative; height: 10px; background: #0A1830; border: 1px solid var(--line); border-radius: 999px; }
.rg-fill { position: absolute; top: -1px; bottom: -1px; border-radius: 999px; }
.rg-val { text-align: right; font-family: var(--head); font-weight: 700; font-size: 16px; }
.ovr-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ovr { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; text-align: center; }
.ovr .v { font-family: var(--head); font-size: 30px; font-weight: 800; line-height: 1; }
.ovr .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

.statline { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.statline div { background: var(--card); padding: 10px; text-align: center; }
.statline .v { font-family: var(--head); font-size: 26px; font-weight: 800; line-height: 1; }
.statline .k { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.hash { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }

/* ---------- team header ---------- */
.th { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.th-top { padding: 20px 18px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.th-top .logo-big svg { width: 84px; height: 84px; }
.th-rec { margin-left: auto; text-align: right; }
.th-rec .v { font-family: var(--head); font-size: 44px; font-weight: 800; line-height: 1; }

.team-tiles { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .team-tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .team-tiles { grid-template-columns: repeat(3, 1fr); } }
.team-tile { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.team-tile:hover { border-color: var(--line-2); background: var(--card-2); }
.team-tile svg { width: 52px; height: 52px; flex-shrink: 0; }
.team-tile .rec { margin-left: auto; font-family: var(--head); font-size: 22px; font-weight: 700; }

/* ---------- schedule ---------- */
.night-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; }
.night-nav .tab { flex: 0 0 auto; }
.game-row { display: grid; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); grid-template-columns: 1fr; }
.game-row:last-child { border-bottom: 0; }
@media (min-width: 820px) { .game-row { grid-template-columns: 150px 1fr 230px; align-items: center; } }
.game-time b { font-family: var(--head); font-size: 18px; }
.game-teams { display: grid; gap: 6px; }
.game-teams .sc-row .big { font-size: 22px; }
.game-links { display: flex; gap: 6px; flex-wrap: wrap; }
@media (min-width: 820px) { .game-links { justify-content: flex-end; } }

/* box score */
.box-sport { margin-top: 16px; }
.linescore td, .linescore th { text-align: center; }

/* verify */
.verify-form { display: flex; gap: 8px; flex-wrap: wrap; }
.verify-form input { flex: 1 1 260px; font-family: var(--mono); }
.check { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); }
.check.good { border-color: var(--win); }
.check.bad { border-color: var(--loss); }
.check .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.check.good .dot { background: var(--win); }
.check.bad .dot { background: var(--loss); }

/* prose */
.prose { max-width: 820px; }
.prose h2 { margin: 30px 0 10px; }
.prose h3 { margin: 20px 0 8px; }
.prose ul, .prose ol { padding-left: 20px; color: var(--text-2); margin: 0 0 12px; }
.prose li { margin: 4px 0; }
.prose strong { color: #fff; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.toc a { font-size: 12px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.toc a:hover { border-color: #fff; color: #fff; }

.phases { display: grid; gap: 12px; }
.phase { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.phase.now { border-color: var(--brand); background: linear-gradient(180deg, rgba(229, 36, 59, 0.12), var(--card) 60%); }
.phase .n { width: 52px; height: 52px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--head); font-size: 26px; font-weight: 800; }
.phase.now .n { background: var(--brand); border-color: var(--brand); }

.leaders { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .leaders { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .leaders { grid-template-columns: repeat(4, 1fr); } }
.ld-top { display: flex; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); }
.ld-top svg { width: 48px; height: 48px; border-radius: 50%; }
.ld-top .v { margin-left: auto; font-family: var(--head); font-size: 34px; font-weight: 800; line-height: 1; }
.ld-list { list-style: none; margin: 0; padding: 4px 0; }
.ld-list li { display: flex; justify-content: space-between; align-items: center; padding: 6px 14px; font-size: 13px; }
.ld-list li b { font-family: var(--head); font-size: 16px; }

.banner { background: #13284A; border: 1px solid var(--line-2); color: var(--text-2); border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }

/* ---------- footer ---------- */
.site-foot { background: #040B18; border-top: 1px solid var(--line); padding: 26px 16px 34px; }
.foot-in { max-width: 1240px; margin: 0 auto; display: grid; gap: 18px; }
@media (min-width: 760px) { .foot-in { grid-template-columns: 1.4fr 1fr; } }
.ai-label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; }
.ai-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--win); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--text-2); }
.foot-links a:hover { color: #fff; text-decoration: underline; }

.empty { padding: 30px 14px; text-align: center; color: var(--muted); }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }
