:root {
  --bg-0: #0e0a08;
  --bg-1: #16100c;
  --bg-2: #1f1611;
  --bg-3: #2b1f17;
  --line: #33261c;
  --line-soft: #241a14;
  --fg: #f7efe8;
  --muted: #bcaa9c;
  --dim: #95837a;
  --orange: #f2701d;
  --orange-hi: #ff8a3d;
  --orange-text: #ff9550;
  --carmine: #9e3039;
  --green: #5fc08a;
  --red: #e2596a;
  --display: "Anton", Impact, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg-0); color: var(--fg); overflow-x: clip; }
body { font-family: "Manrope", system-ui, sans-serif; font-size: 15px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange-text); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(14, 10, 8, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { flex-shrink: 0; font-family: var(--display); font-size: 22px; line-height: 1; letter-spacing: -.01em; color: #fff; }
.brand:hover { color: #fff; }
.brand em { font-style: normal; color: var(--orange); }
@media (max-width: 767px) { .brand { font-size: 20px; } }
.nav { display: flex; gap: 4px; }
.nav a { padding: 6px 12px; border-radius: 6px; color: var(--muted); font-weight: 600; font-size: 14px; }
.nav a:hover, .nav a.on { color: var(--fg); background: var(--bg-2); }
.search { position: relative; margin-left: auto; flex: 0 1 300px; }
.search input { width: 100%; background: var(--bg-2); border: 1px solid var(--line); color: var(--fg); border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 14px; }
.search input::placeholder { color: var(--dim); }
.search-results { position: absolute; right: 0; top: calc(100% + 6px); width: min(360px, calc(100vw - 32px)); background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.5); overflow: hidden; }
.search-results:empty { display: none; }
.search-results a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); }
.search-results a:hover { background: var(--bg-2); color: var(--fg); }
.search-results .none { padding: 12px; color: var(--dim); font-size: 14px; }
@media (max-width: 640px) {
  .topbar .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .search { flex: 1 1 100%; order: 3; }
  .nav { margin-left: auto; }
}

main { flex: 1; }
footer { border-top: 1px solid var(--line-soft); margin-top: 64px; padding: 24px 0; color: var(--dim); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- type ---------- */
.display { font-family: var(--display); text-transform: uppercase; letter-spacing: .01em; line-height: 1; font-weight: 400; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-text); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
h1, h2, h3 { margin: 0; }
.section { margin-top: 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { font-size: 30px; }
.section-head a { color: var(--orange-text); font-weight: 600; font-size: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); background:
  radial-gradient(900px 400px at 85% 0%, rgba(242, 112, 29, .18), transparent 60%),
  radial-gradient(600px 300px at 0% 100%, rgba(158, 48, 57, .22), transparent 60%), var(--bg-0); }
.hero .wrap { padding-top: 56px; padding-bottom: 48px; position: relative; }
.hero h1 { font-size: clamp(44px, 8vw, 96px); max-width: 12ch; }
.hero h1 span { color: var(--orange); }
.hero p { max-width: 560px; color: var(--muted); font-size: 17px; margin: 18px 0 0; }
.hero-court { position: absolute; right: -60px; top: -40px; width: 520px; opacity: .14; pointer-events: none; }
@media (max-width: 760px) { .hero-court { width: 320px; right: -120px; } }
.hero-stats { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 32px; }
.hero-stats b { display: block; font-family: var(--display); font-size: 40px; font-weight: 400; color: var(--fg); }
.hero-stats span { color: var(--dim); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--bg-1); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px; }
.card h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.leader { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.leader:first-of-type { border-top: 0; }
.leader .rank { width: 18px; color: var(--dim); font-family: var(--mono); font-size: 13px; }
.leader .who { flex: 1; min-width: 0; }
.leader .who b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leader .who small { color: var(--dim); font-size: 12px; }
.leader .val { font-family: var(--display); font-size: 26px; color: var(--orange); }

.avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; background: var(--bg-3); color: var(--muted); display: grid; place-items: center; font-weight: 800; font-size: 13px; overflow: hidden; border: 1px solid var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.avatar.lg { width: 120px; height: 120px; font-size: 38px; border: 3px solid var(--orange); }
@media (max-width: 640px) { .avatar.lg { width: 84px; height: 84px; font-size: 28px; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--muted); }
.chip:hover { color: var(--fg); border-color: var(--orange); }
.chip.on { background: var(--orange); border-color: var(--orange); color: #1b0d03; }
.chip .n { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.chip.on .n { color: #3a1d08; }
.tag { display: inline-block; padding: 1px 7px; border-radius: 4px; background: var(--bg-3); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tag.youth { background: rgba(95, 192, 138, .14); color: var(--green); }
.tag.college { background: rgba(120, 150, 255, .14); color: #a9b9ff; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 24px 0 16px; }
.filters select, .filters input { background: var(--bg-2); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 14px; }
.filters input { flex: 1 1 200px; }
.filters select { flex: 0 1 auto; max-width: 100%; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--bg-1); }
table.stats { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
table.stats th { text-align: right; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); font-weight: 700; padding: 10px 10px; border-bottom: 1px solid var(--line); background: var(--bg-2); position: sticky; top: 0; }
table.stats td { text-align: right; padding: 9px 10px; border-bottom: 1px solid var(--line-soft); font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 13px; }
table.stats th.l, table.stats td.l { text-align: left; font-family: inherit; }
table.stats td.l { font-size: 14px; }
table.stats tr:last-child td { border-bottom: 0; }
table.stats tbody tr:hover td { background: var(--bg-2); }
table.stats td.hl, table.stats th.hl { color: var(--orange-text); }
table.stats th a { color: inherit; }
table.stats th a.on { color: var(--orange-text); }
table.stats .player-cell { display: flex; align-items: center; gap: 10px; }
table.stats .player-cell .avatar { width: 30px; height: 30px; font-size: 11px; }
table.stats tr.total td { background: var(--bg-2); font-weight: 700; }
td.w { color: var(--green); } td.lose { color: var(--red); }
.empty { padding: 40px 20px; text-align: center; color: var(--dim); }

/* ---------- player page ---------- */
.player-hero { border-bottom: 1px solid var(--line-soft); background:
  radial-gradient(700px 300px at 100% 0%, rgba(242, 112, 29, .16), transparent 60%), var(--bg-0); }
.player-hero .wrap { display: flex; gap: 28px; align-items: center; padding-top: 40px; padding-bottom: 32px; }
.player-hero h1 { font-size: clamp(38px, 6vw, 72px); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; color: var(--muted); font-size: 14px; }
.facts b { color: var(--fg); font-weight: 700; }
@media (max-width: 640px) { .player-hero .wrap { gap: 16px; align-items: flex-start; } }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.tile { background: var(--bg-1); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px 16px; }
.tile b { display: block; font-family: var(--display); font-size: 36px; font-weight: 400; line-height: 1.1; }
.tile span { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.tile.main b { color: var(--orange); }

.tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.tabs button { background: none; border: 1px solid var(--line); color: var(--muted); padding: 6px 12px; border-radius: 6px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.tabs button.on { background: var(--bg-3); color: var(--fg); border-color: var(--orange); }
[data-mode="avg"] .tot, [data-mode="tot"] .avg { display: none; }

.notice { margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--green); background: var(--bg-1); color: var(--muted); font-size: 13px; border-radius: 0 8px 8px 0; }

/* ---------- pagination ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 14px; }
.pages { display: flex; flex-wrap: wrap; gap: 4px; }
.pages a, .pages span { min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-1); font-family: var(--mono); font-size: 13px; color: var(--muted); }
.pages a:hover { border-color: var(--orange); color: var(--fg); }
.pages .cur { background: var(--orange); border-color: var(--orange); color: #1b0d03; font-weight: 700; }
.pages .off { opacity: .35; }
.pages .gap { border: 0; background: none; min-width: 20px; padding: 0; }

/* ---------- stat header tooltips ---------- */
th[data-tip] { cursor: help; text-decoration: underline dotted var(--dim); text-underline-offset: 3px; }
.tip-pop { position: fixed; z-index: 50; max-width: 260px; padding: 7px 10px; border-radius: 6px; background: var(--fg); color: var(--bg-0);
  font: 600 12px/1.4 "Manrope", system-ui, sans-serif; box-shadow: 0 8px 24px rgba(0,0,0,.45); pointer-events: none; opacity: 0; transition: opacity .1s; }
.tip-pop.on { opacity: 1; }
.tag.other { background: transparent; border: 1px solid var(--line); color: var(--dim); }
.filters .check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; cursor: pointer; white-space: nowrap; }
.filters .check input { flex: none; width: 16px; height: 16px; accent-color: var(--orange); padding: 0; }
.year-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.year-card { display: block; background: var(--bg-1); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; transition: border-color .15s; }
.year-card:hover { border-color: var(--orange); color: var(--fg); }
.year-card b { display: block; font-family: var(--display); font-size: 40px; font-weight: 400; line-height: 1; color: var(--orange); }
.year-card span { color: var(--dim); font-size: 13px; }

/* ---------- games ---------- */
.day-nav { display: flex; align-items: center; gap: 8px; }
.day-nav input[type=date] { background: var(--bg-2); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 14px; color-scheme: dark; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 14px; }
.game-card { background: var(--bg-1); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.game-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.game-head .score { margin-left: auto; font-weight: 700; }
.game-card .stats-wrap, .game-card table { width: 100%; }
.game-card { overflow-x: auto; }
table.stats.compact td, table.stats.compact th { padding: 7px 8px; }
.score.w, span.w { color: var(--green); } .score.lose, span.lose { color: var(--red); }
.avatar.team-logo { background: #fff; border-color: var(--orange); color: #1b0d03; }
.avatar.team-logo img { object-fit: contain; padding: 14px; }
.plain-select { background: var(--bg-2); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 14px; }
.avatar.team-logo:not(.lg) img { padding: 4px; }
.game-head { justify-content: space-between; flex-wrap: nowrap; align-items: center; }
.game-head a { flex: 1; min-width: 0; color: var(--muted); font-weight: 600; }
.game-head a:last-child { text-align: right; }
.game-head a.win { color: var(--fg); font-weight: 800; }
.game-head .score { margin: 0 12px; flex: none; font-size: 18px; font-weight: 700; color: var(--fg); }
table.stats tr.side td { background: var(--bg-2); color: var(--muted); font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; }

/* ---------- best / typical / worst game ---------- */
.gp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.gp-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--accent-soft), transparent 55%), var(--bg-1); border: 1px solid var(--line-soft); }
.gp-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent); }
.gp-card.best { --accent: var(--green); --accent-soft: rgba(95,192,138,.10); }
.gp-card.typical { --accent: var(--orange); --accent-soft: rgba(242,112,29,.12); }
.gp-card.worst { --accent: var(--red); --accent-soft: rgba(226,89,106,.10); }
.gp-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gp-label { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.gp-badge { font: 700 12px var(--mono); padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--fg); }
.gp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gp-stats div { display: flex; flex-direction: column; }
.gp-stats b { font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1; color: var(--fg); }
.gp-stats b em { font-style: normal; font-size: 20px; color: var(--dim); }
.gp-card.typical .gp-stats div:first-child b { color: var(--orange); }
.gp-stats span { margin-top: 4px; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--dim); }
.gp-stats small { font: 11px var(--mono); color: var(--muted); }
.gp-card footer { margin-top: auto; display: flex; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }
.gp-card footer .res { font: 700 13px var(--mono); white-space: nowrap; }
@media (max-width: 400px) { .gp-stats b { font-size: 30px; } }

/* ---------- career: several teams in one season ---------- */
.season-grp .grp-head { cursor: pointer; }
.season-grp .grp-head td { background: color-mix(in srgb, var(--orange) 5%, transparent); }
.season-grp .grp-head:hover td { background: color-mix(in srgb, var(--orange) 10%, transparent); }
.season-grp .chev { display: inline-block; width: 14px; margin-right: 4px; color: var(--orange); font-weight: 800; transition: transform .15s; }
.season-grp.open .chev { transform: rotate(90deg); }
.season-grp .grp-child { display: none; }
.season-grp.open .grp-child { display: table-row; }
.season-grp .grp-child td { background: var(--bg-0); color: var(--muted); font-size: 12px; }
.season-grp .grp-child td.l a { color: var(--muted); }

/* ---------- peer comparison ---------- */
.peers-scope { margin: -8px 0 12px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); }
.peers-scope .help { cursor: help; }
.peers-scope a { color: var(--orange-text); font-weight: 700; }
.peer-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1100px) { .peer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .peer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.peer-tile { min-width: 0; }
.peer-tile { --c: var(--orange); background: var(--bg-1); border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: var(--radius); padding: 12px 14px; }
.peer-tile.hi { --c: var(--green); }
.peer-tile.lo { --c: var(--red); }
.peer-top { font-size: 13px; font-weight: 700; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peer-mid { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 6px; margin: 6px 0 8px; min-width: 0; }
.peer-foot em { font: 800 11px var(--mono); font-style: normal; padding: 2px 6px; border-radius: 999px; color: #0e0a08; background: var(--c); white-space: nowrap; }
.peer-mid b { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1; color: var(--fg); }
.peer-bar { position: relative; height: 8px; border-radius: 999px; background: #3a2b20; }
.peer-bar i { display: block; height: 100%; min-width: 4px; border-radius: 999px; background: var(--c); }
.peer-bar s { position: absolute; top: -4px; width: 3px; height: 16px; border-radius: 2px; background: #fff; transform: translateX(-1.5px); box-shadow: 0 0 0 2px var(--bg-1); }
.peer-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; }
.peer-foot small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- top per birth year ---------- */
.top-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.top-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; }
.top-card header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.top-card header b { font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1; color: var(--orange); }
.top-card header span { color: var(--dim); font-size: 13px; }
.top-card ol { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.top-card li { counter-increment: r; display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line-soft); }
.top-card li::before { content: counter(r); width: 16px; color: var(--dim); font: 600 12px var(--mono); }
.top-card li .player-cell { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.top-card li .avatar { width: 32px; height: 32px; font-size: 11px; }
.top-card li .who { min-width: 0; }
.top-card li .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.top-card li .who small { color: var(--dim); font-size: 12px; }
.top-card li .val { font-family: var(--display); font-size: 22px; color: var(--fg); }
.top-card li:first-child .val { color: var(--orange); }
.top-card .more { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 700; color: var(--orange-text); }

/* rank column */
table.stats th.rank, table.stats td.rank { width: 44px; text-align: center; padding-left: 6px; padding-right: 6px; }
table.stats td.rank { font: 700 13px var(--mono); color: var(--muted); }
table.stats td.rank.top1, table.stats td.rank.top2, table.stats td.rank.top3 { font-family: var(--display); font-size: 18px; font-weight: 400; }
table.stats td.rank.top1 { color: #f2cf3b; }
table.stats td.rank.top2 { color: #cfd6dc; }
table.stats td.rank.top3 { color: #d08a4c; }
.peer-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.peer-controls .tabs { margin: 0; }

/* ---------- home ---------- */
.home-hero { background:
  radial-gradient(900px 520px at 78% 30%, rgba(242,112,29,.26), transparent 62%),
  radial-gradient(700px 400px at -5% 110%, rgba(158,48,57,.30), transparent 60%),
  linear-gradient(180deg, #120c09, var(--bg-0)); }
.home-hero .hero-court { width: 760px; right: -120px; top: -90px; opacity: .10; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .9fr); gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 28px; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; } }
.home-hero h1 { font-size: clamp(42px, 6.2vw, 84px); max-width: 13ch; }
.home-hero h1 span { color: var(--orange); background: linear-gradient(transparent 82%, rgba(242,112,29,.35) 82%); }
.home-hero .hero-main p { font-size: 18px; max-width: 520px; }
.hero-search { position: relative; max-width: 600px; margin-top: 26px; }
.hero-search .ico { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--dim); stroke-width: 2.4; stroke-linecap: round; pointer-events: none; }
.hero-search input { width: 100%; padding: 16px 18px 16px 48px; font: 600 16px "Manrope", sans-serif; color: var(--fg); background: rgba(22,16,12,.85);
  border: 2px solid var(--line); border-radius: 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.hero-search input:focus { border-color: var(--orange); box-shadow: 0 0 0 5px rgba(242,112,29,.15); }
.hero-search .search-results { left: 0; right: auto; width: 100%; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.quick a { padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.quick a:hover { color: var(--fg); border-color: var(--orange); }

.spotlight { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 26px 22px 20px;
  border-radius: 18px; border: 1px solid color-mix(in srgb, var(--orange) 45%, var(--line));
  background: linear-gradient(165deg, rgba(242,112,29,.20), rgba(22,16,12,.92) 55%); box-shadow: 0 30px 70px rgba(0,0,0,.45); transition: transform .2s; }
.spotlight:hover { transform: translateY(-3px); color: var(--fg); }
.spot-tag { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-text); }
.spot-photo { position: relative; margin: 6px 0 4px; }
.spot-photo .avatar.lg { width: 132px; height: 132px; font-size: 42px; box-shadow: 0 0 0 6px rgba(242,112,29,.15); }
.spot-eff { position: absolute; right: -14px; bottom: 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 56px; height: 56px;
  border-radius: 50%; background: var(--orange); color: #1b0d03; font: 800 9px "Manrope", sans-serif; letter-spacing: .1em; border: 3px solid #1a120d; }
.spot-eff b { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1; letter-spacing: 0; }
.spotlight h2 { font-size: 34px; line-height: 1.05; }
.spot-team { color: var(--muted); font-size: 14px; }
.spot-stats { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; margin-top: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spot-stats div { padding: 10px 4px; }
.spot-stats div + div { border-left: 1px solid var(--line); }
.spot-stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1; }
.spot-stats span { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--dim); }
.spot-foot { font-size: 13px; color: var(--muted); }

.hero-band { display: grid; grid-template-columns: repeat(4, 1fr); margin: 8px 0 34px; border: 1px solid var(--line); border-radius: 14px; background: rgba(22,16,12,.6); }
.hero-band div { padding: 14px 18px; }
.hero-band div + div { border-left: 1px solid var(--line); }
.hero-band b { display: block; font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1; color: var(--fg); }
.hero-band span { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 640px) { .hero-band { grid-template-columns: repeat(2, 1fr); } .hero-band div:nth-child(3) { border-left: 0; } .hero-band div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.home-hero .hero-stats { display: none; }

.stars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .stars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stars { grid-template-columns: 1fr; } }
.star { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--radius); background: var(--bg-1); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.star:hover { border-color: var(--orange); color: var(--fg); transform: translateY(-2px); }
.star.first { background: linear-gradient(150deg, rgba(242,112,29,.18), transparent 60%), var(--bg-1); border-color: color-mix(in srgb, var(--orange) 50%, var(--line)); }
.star-head { display: flex; align-items: center; gap: 10px; }
.star-head .who { flex: 1; min-width: 0; }
.star-head .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.star-head .who small { color: var(--dim); font-size: 12px; }
.star-head .eff { font-family: var(--display); font-size: 26px; color: var(--orange); }
.star-line { display: flex; gap: 14px; color: var(--dim); font-size: 12px; font-weight: 700; }
.star-line b { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--fg); margin-right: 3px; }
.star-foot { font-size: 13px; color: var(--muted); }

.abroad { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.abroad-col h3 { display: flex; justify-content: space-between; }
.abroad-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line-soft); }
.abroad-row .avatar { width: 32px; height: 32px; font-size: 11px; }
.abroad-row .who { flex: 1; min-width: 0; }
.abroad-row .who b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abroad-row .who small { color: var(--dim); font-size: 12px; }
.abroad-row .num { font-family: var(--display); font-size: 20px; }
.abroad-row .num small { font: 600 11px "Manrope", sans-serif; color: var(--dim); }
.abroad-col .more { display: block; padding-top: 8px; font-size: 13px; font-weight: 700; color: var(--orange-text); }

.year-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.year-leader { flex: 0 0 150px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 14px 10px; border-radius: var(--radius); background: var(--bg-1); border: 1px solid var(--line); }
.year-leader:hover { border-color: var(--orange); color: var(--fg); }
.year-leader .yr { font-family: var(--display); font-size: 26px; color: var(--orange); line-height: 1; }
.year-leader .avatar { width: 56px; height: 56px; }
.year-leader b { font-size: 13px; line-height: 1.25; }
.year-leader small { font: 600 12px var(--mono); color: var(--muted); }
.chip.bday { padding: 4px 12px 4px 4px; }
.chip.bday .avatar { width: 28px; height: 28px; font-size: 10px; }
.icon { flex: none; vertical-align: -0.15em; }
.quick a { display: inline-flex; align-items: center; gap: 6px; }
.quick a .icon { color: var(--orange); }
h2.with-icon { display: inline-flex; align-items: center; gap: 10px; }
h2.with-icon .icon { color: var(--orange); }
.hero-search .ico { fill: none; stroke: var(--dim); }

/* games: day / all toggle + all-games list */
.view-toggle { display: inline-flex; margin-top: 32px; padding: 4px; gap: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; }
.view-toggle a { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted); }
.view-toggle a:hover { color: var(--fg); }
.view-toggle a.on { background: var(--orange); color: #1b0d03; }
.game-day { margin-top: 26px; }
.game-day-head { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin: 0 0 8px; }
.game-day-head a:hover { color: var(--orange); }
.game-row { display: grid; grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px 14px; background: var(--bg-1); border: 1px solid var(--line-soft); border-radius: 10px; margin-bottom: 6px; }
.game-row .tag { justify-self: start; }
.gr-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; font-size: 14px; }
.gr-teams > span:first-child { text-align: right; }
.gr-teams > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.gr-teams .win, .gr-teams .win a { color: var(--fg); font-weight: 700; }
.gr-teams .score { color: var(--fg); font-weight: 700; white-space: nowrap; }
.gr-players { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.gr-players a { color: var(--muted); white-space: nowrap; }
.gr-players a:hover { color: var(--orange); }
.gr-players b { color: var(--fg); }
.gr-players small { color: var(--dim); margin-right: 2px; }
@media (max-width: 760px) {
  .game-row { grid-template-columns: 1fr; gap: 8px; }
  .gr-teams > span:first-child { text-align: left; }
}
.player-games-head { margin-top: 32px; }
.player-games-head .back { display: inline-block; margin-bottom: 14px; color: var(--muted); font-weight: 700; font-size: 14px; }
.player-games-head .back:hover { color: var(--orange); }
