/* ═══════════════════════════════════════════════════════════════
   WNBA FIRST BASKET STATS — Main Stylesheet
   Merges style.css + stats-style.css
   Palette: warm charcoal dark, orange accent
════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&family=Montserrat:wght@700;800&family=Hind:wght@400;600&display=swap');

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
    --bg:       #0F0F0F;
    --surface:  #1A1A1A;
    --surface2: #242424;
    --border:   #383838;
    --text:     #E8E8E8;
    --muted:    #888888;
    --accent:   #E85D04;
    --accent2:  #FF7A2F;
    --radius:   6px;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Hind', "Segoe UI", system-ui, sans-serif;
    font-size: 13px;
}

/* ── LINKS ──────────────────────────────────────────────────── */
a, a:hover { cursor: pointer; }
#players-table a { color: #fff; }
a.player-link { font-weight: 600; color: inherit; text-decoration: none; }

/* ── PAGE SUMMARY ───────────────────────────────────────────── */
.page-summary {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    padding: 16px 0 8px;
}

/* ── TOP BAR ─────────────────────────────────────────────────── */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    min-height: 40px;
}
.top-bar-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 1px;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
}
.top-bar-brand:hover { color: var(--accent2); text-decoration: none; }
.top-bar-announce {
    flex: 1;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-align: center;
    letter-spacing: .5px;
}
.top-bar-form {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}
.top-bar-input {
    background: var(--bg);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    color: var(--text);
    font-size: 11px;
    padding: 5px 10px;
    width: 210px;
    outline: none;
    font-family: inherit;
}
.top-bar-input::placeholder { color: var(--muted); }
.top-bar-input:focus { border-color: var(--accent); }
.top-bar-submit {
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 14px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: .4px;
    white-space: nowrap;
    transition: opacity .12s;
}
.top-bar-submit:hover { opacity: .85; }

/* ── TOP BAR AUTH ───────────────────────────────────────────── */
.top-bar-auth {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.top-bar-ms-btn {
    padding: 4px 12px;
    border-radius: var(--radius);
    font-size: 11px;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: .4px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity .12s;
}
.top-bar-ms-btn:hover { opacity: .75; text-decoration: none; }
.top-bar-ms-login {
    background: transparent;
    border: 1px solid rgba(255,255,255,.6);
    color: #fff;
}
.top-bar-ms-signup {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 20px;
    border-bottom: 3px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
    min-height: 52px;
}
.site-header h1 {
    font-size: clamp(10px, 2.5vw, 14px);
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: var(--accent);
    letter-spacing: 1px;
    white-space: nowrap;
}
.site-header .date { font-size: 10px; color: var(--muted); }
.last-updated {
    display: inline;
    font-size: 10px;
    font-weight: 600;
    color: var(--muted);
    opacity: 0.7;
    letter-spacing: 0.5px;
    margin-right: 8px;
}

/* ── ICONS ──────────────────────────────────────────────────── */
.material-symbols-rounded {
    font-size: 16px;
    vertical-align: text-top;
    line-height: 1;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 20;
}

/* ── NAV ────────────────────────────────────────────────────── */
.site-nav {
    display: flex;
    gap: 2px;
    padding: 20px;
    background: transparent;
    overflow: visible;
    flex-wrap: nowrap;
    align-items: center;
    position: relative;
    z-index: 50;
    flex: 1;
    justify-content: flex-end;
}
.nav-btn {
    padding: 5px 10px;
    border: none;
    background: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    text-decoration: none;
    transition: color .12s;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-btn:hover  { color: var(--accent); }
.nav-btn.active { color: var(--accent); }

/* ── NAV TOGGLE ─────────────────────────────────────────────── */
.nav-toggle {
    display: none;
    background: var(--accent);
    border: none;
    border-radius: var(--radius);
    color: #fff;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .3px;
    white-space: nowrap;
}

/* ── GAME HEADER BLOCKS ─────────────────────────────────────── */
.game-header { display: flex; align-items: stretch; }
.team-side {
    flex: 1;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.team-side.away { text-align: right; }
.team-side.home { text-align: left; }
.team-code { font-size: 22px; font-weight: 900; letter-spacing: 2px; }
.at-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    background: var(--surface2);
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ── TIP WIN ROW ────────────────────────────────────────────── */
.tip-row  { display: flex; }
.tip-cell {
    flex: 1;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
}
.tip-cell.away { text-align: right; }
.tip-cell.home { text-align: left; }
.tip-sep {
    padding: 7px 10px;
    background: var(--surface2);
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

/* ── DATA TABLES ────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.data-table thead th {
    background: var(--surface2);
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 6px 10px;
    font-weight: 700;
    border-top: 1px solid var(--border);
    white-space: nowrap;
}
.data-table thead th.r { text-align: right; }
.data-table thead th.l { text-align: left; }
.data-table thead th.c { text-align: center; }
.data-table tbody tr   { border-top: 1px solid var(--border); }
.data-table tbody tr:hover td { background: rgba(255,255,255,.02); }
.data-table td {
    padding: 8px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.data-table td.r { text-align: right; }
.data-table td.l { text-align: left; }
.data-table td.c { text-align: center; }

/* ── PILLS & BADGES ─────────────────────────────────────────── */
.team-pill {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .4px;
    vertical-align: middle;
    margin-right: 6px;
}
.pos-badge {
    display: inline-block;
    background: var(--surface2);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 3px;
    vertical-align: middle;
    letter-spacing: .4px;
    border: 1px solid var(--border);
}
.player-name { font-weight: 600; color: var(--text); font-size: 13px; }
.rank-num    { color: var(--muted); font-size: 11px; font-weight: 700; }
.odds-val    { color: #5aaa6a; font-weight: 700; }

/* ── GAME BLOCKS ────────────────────────────────────────────── */
.game-block {
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.game-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── CONTAINER ──────────────────────────────────────────────── */
.container { padding: 16px 20px 60px; width: 100%; }

/* ── MODAL ──────────────────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    z-index: 100;
    align-items: center;
    justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px 28px;
    max-width: 520px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}
.modal h2        { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 16px; }
.modal .close-btn { float: right; background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.modal .close-btn:hover { color: var(--text); }

/* ── LINEUPS PAGE ───────────────────────────────────────────── */
#view-matchup, #view-flat { display: none; padding: 16px 20px 40px; }
#view-matchup.visible, #view-flat.visible { display: block; }
.key-grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.key-item    { display: flex; gap: 8px; }
.key-abbr    { font-weight: 800; color: var(--text); font-size: 11px; min-width: 60px; }
.key-desc    { color: var(--muted); font-size: 11px; line-height: 1.4; }
.key-section {
    grid-column: 1 / -1;
    margin-top: 10px;
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .8px;
    border-top: 1px solid var(--border);
    padding-top: 10px;
}
.color-scale        { grid-column: 1 / -1; display: flex; height: 18px; border-radius: 4px; overflow: hidden; margin-top: 4px; }
.color-scale-labels { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 3px; }

.matchup-block  { margin-bottom: 16px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.matchup-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.matchup-table  { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 900px; }
.matchup-table col.stat     { width: 52px; }
.matchup-table col.cnt      { width: 32px; }
.matchup-table col.name-col { width: 120px; }
.matchup-table col.gs-col   { width: 34px; }
.matchup-table col.pos-col  { width: 34px; }
.matchup-table tr.team-header-row td { padding: 10px 12px; font-size: 18px; font-weight: 900; letter-spacing: 2px; border: none; }
.matchup-table tr.team-header-row td.away-hd { text-align: right; }
.matchup-table tr.team-header-row td.at-hd   { text-align: center; background: var(--surface2); font-size: 10px; color: var(--muted); font-weight: 700; vertical-align: middle; }
.matchup-table tr.team-header-row td.home-hd { text-align: left; }
.matchup-table th  { background: var(--surface2); color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .4px; padding: 5px 4px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.matchup-table th.r { text-align: right; } .matchup-table th.l { text-align: left; } .matchup-table th.c { text-align: center; }
.matchup-table td  { padding: 6px 4px; border-top: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.matchup-table td.r { text-align: center; } .matchup-table td.l { text-align: center; } .matchup-table td.c { text-align: center; }
.matchup-table tr:hover td { background: rgba(255,255,255,.02); }
.pos-cell { background: var(--surface2) !important; color: var(--muted); font-weight: 800; font-size: 10px; text-align: center; }
.num { font-variant-numeric: tabular-nums; }

.flat-controls { margin-bottom: 12px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.flat-controls input,
.flat-controls select  { background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 6px 10px; font-size: 11px; }
.flat-controls input   { width: 200px; }
.flat-controls input::placeholder { color: var(--muted); }
.flat-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table.flat { width: 100%; border-collapse: collapse; min-width: 860px; }
table.flat th { background: var(--surface2); color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .4px; padding: 7px 8px; font-weight: 700; cursor: pointer; user-select: none; white-space: nowrap; text-align: left; }
table.flat th:hover  { color: var(--accent); }
table.flat th.sorted { color: var(--accent); }
table.flat td  { padding: 6px 8px; border-top: 1px solid var(--border); white-space: nowrap; font-variant-numeric: tabular-nums; text-align: left; }
table.flat tr:hover td { background: rgba(255,255,255,.02); }
.f-pill { display: inline-block; padding: 2px 6px; border-radius: 3px; font-size: 10px; font-weight: 800; letter-spacing: .4px; }

/* ── PICKS PAGE ─────────────────────────────────────────────── */
table.picks-table { width: 100%; border-collapse: collapse; }
table.picks-table th {
    background: var(--surface2);
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 6px 10px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}
table.picks-table th.r { text-align: right; }
table.picks-table th.c { text-align: center; }
table.picks-table td   { padding: 7px 10px; border-top: 1px solid var(--border); font-size: 13px; white-space: nowrap; }
table.picks-table td.r { text-align: right; }
table.picks-table td.c { text-align: center; }
table.picks-table tr:hover td { background: rgba(255,255,255,.02); }
.picks-table-wrap { overflow-x: auto; }
.picks-mobile { display: none; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    color: var(--muted);
    background: var(--bg);
}
.site-footer a       { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-links        { display: flex; gap: 16px; }

/* ═══════════════════════════════════════════════════
   STATS PAGES
════════════════════════════════════════════════════ */

/* ── Section labels ── */
.sl {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    background: rgba(232, 93, 4, 0.2);
    border-left: 5px solid var(--accent);
    padding: 12px 20px;
    margin-top: 24px;
    margin-bottom: 8px;
    border-radius: 0 4px 4px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 6px;
}
.sl:first-child { margin-top: 0; }
.sl .sl-sub {
    display: inline;
    font-family: 'Hind', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(255,255,255,0.7);
    margin-left: 6px;
}
.sl .sl-dot {
    margin: 0 4px;
    color: rgba(255,255,255,0.5);
}

/* ── Sub-nav tabs ── */
.stats-tabs {
    display: flex;
    gap: 4px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
}
.stats-tabs::-webkit-scrollbar { display: none; }
.stab {
    padding: 6px 14px;
    background: var(--surface);
    color: var(--muted);
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all .12s;
    border-radius: 3px;
}
.stab:hover  { color: var(--accent); border-color: var(--accent); }
.stab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Tab panels ── */
.tab-panel        { display: none; }
.tab-panel.active { display: block; }

/* ── Table wrapper ── */
.tw {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
}

/* ── Stats data table ── */
.dt {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: auto;
}
.dt thead th {
    background: var(--surface2);
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 8px 10px;
    font-weight: 700;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}
.dt thead th.num      { text-align: center; }
.dt thead th.name     { text-align: center !important; }
.dt thead th.matchup-hd {
    text-align: center;
    background: var(--surface);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}
.dt thead th.sh       { cursor: pointer; user-select: none; }
.dt thead th.sh:hover { color: var(--accent); }
.dt thead th.sort-asc::after  { content: ' ↑'; }
.dt thead th.sort-desc::after { content: ' ↓'; }
.dt tbody tr { border-top: 1px solid var(--border); }
.dt tbody tr:hover td { background: rgba(255,255,255,.03); }
.dt tbody td.num {
    text-align: center;
    padding: 7px 8px;
    white-space: nowrap;
    color: var(--text);
}
.dt tbody td.heat {
    color: #000 !important;
    font-weight: 700;
}
.dt tbody td.name {
    text-align: center !important;
    padding: 7px 8px;
    white-space: nowrap;
    color: #fff;
    font-weight: 600;
}
.dt tbody td.matchup-cell {
    text-align: center;
    padding: 6px 12px;
    background: var(--surface);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    white-space: nowrap;
}
.at {
    color: var(--muted);
    font-size: 11px;
    margin: 0 4px;
}

/* ── Team pill ── */
.pill {
    display: inline-block;
    min-width: 42px;
    width: 42px;
    padding: 3px 0;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
    line-height: 1.5;
    letter-spacing: .3px;
    vertical-align: middle;
}

/* ── Search / filter controls ── */
.tc {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 0 8px;
}
.tc input, .tc select {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 13px;
}
.tc input { width: 260px; }
.tc input::placeholder { color: var(--muted); }

/* ── H2H ── */
.h2h-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 4px;
}
.h2h-grid .sl { margin-top: 0; padding-top: 10px; }
.h2h-val { font-weight: 700 !important; color: #fff !important; }
.h2h-col {
    width: 66px !important;
    min-width: 66px !important;
    max-width: 66px !important;
    text-align: center !important;
    font-weight: 700;
    color: #fff;
    padding: 7px 4px;
}
.h2h-col-hd {
    width: 66px !important;
    min-width: 66px !important;
    max-width: 66px !important;
    text-align: center !important;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}
.h2h-grid .dt { table-layout: fixed !important; }
.h2h-grid .dt th:nth-child(1),
.h2h-grid .dt td:nth-child(1) { width: 46px; }
.h2h-grid .dt th:nth-child(2),
.h2h-grid .dt td:nth-child(2) { width: calc(50% - 79px); }
.h2h-grid .dt th:nth-child(3),
.h2h-grid .dt td:nth-child(3) { width: 66px; }
.h2h-grid .dt th:nth-child(4),
.h2h-grid .dt td:nth-child(4) { width: calc(50% - 79px); }
.h2h-grid .dt th:nth-child(5),
.h2h-grid .dt td:nth-child(5) { width: 46px; }

/* ── Previous meetings ── */
.prev-matchup-block {
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.prev-matchup-header {
    background: var(--surface2);
    padding: 8px 12px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}
.prev-matchup-block .dt { table-layout: fixed; min-width: 800px; }
.prev-matchup-block .dt th,
.prev-matchup-block .dt td { overflow: hidden; text-overflow: ellipsis; }
.prev-matchup-block .dt th:nth-child(1),
.prev-matchup-block .dt td:nth-child(1),
.prev-matchup-block .dt th:nth-child(2),
.prev-matchup-block .dt td:nth-child(2) { width: 56px; }
.prev-matchup-block .dt th:nth-child(3),
.prev-matchup-block .dt td:nth-child(3) { width: 100px; }
.prev-matchup-block .dt th:nth-child(4),
.prev-matchup-block .dt td:nth-child(4),
.prev-matchup-block .dt th:nth-child(5),
.prev-matchup-block .dt td:nth-child(5) { width: 120px; }
.prev-matchup-block .dt th:nth-child(6),
.prev-matchup-block .dt td:nth-child(6),
.prev-matchup-block .dt th:nth-child(7),
.prev-matchup-block .dt td:nth-child(7) { width: 70px; }
.prev-matchup-block .dt th:nth-child(8),
.prev-matchup-block .dt td:nth-child(8) { width: 100px; }
.prev-matchup-block .dt th:nth-child(9),
.prev-matchup-block .dt td:nth-child(9) { width: 140px; }
.prev-matchup-block .dt th:nth-child(10),
.prev-matchup-block .dt td:nth-child(10) { width: 100px; }

/* ── Empty dash ── */
.empty-dash { color: var(--muted); }

/* ── Stab dropdown menus ── */
.stab-dd-menu {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0 4px 4px 4px;
    box-shadow: 0 8px 20px rgba(0,0,0,.5);
    min-width: 180px;
    flex-direction: column;
}
.stab-dd-item {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    padding: 9px 14px;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
    transition: background .1s, color .1s;
}
.stab-dd-item:last-child { border-bottom: none; }
.stab-dd-item:hover  { background: rgba(255,255,255,.07); color: var(--accent); }
.stab-dd-item.active { background: var(--accent); color: #fff; }

/* ── Mobile cards ── */
.player-cards { display: none; }
.card-game-header { display: flex; margin: 16px 0 8px; }
.card-team-badge  { flex: 1; padding: 8px 12px; font-size: 20px; font-weight: 900; letter-spacing: 2px; }
.card-team-badge.away { text-align: right; border-radius: 6px 0 0 6px; }
.card-team-badge.home { text-align: left;  border-radius: 0 6px 6px 0; }
.card-at { padding: 8px 10px; background: var(--surface2); color: var(--muted); font-size: 11px; font-weight: 700; display: flex; align-items: center; }
.player-card  { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; margin-bottom: 8px; padding: 12px; }
.card-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.card-player-name { font-size: 15px; font-weight: 700; color: #fff; }
.card-meta    { display: flex; gap: 6px; align-items: center; }
.card-pos     { background: var(--surface2); color: var(--muted); font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 3px; }
.card-team-pill { font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 3px; letter-spacing: .5px; }
.card-stats   { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; }
.card-stat    { border-radius: 3px; padding: 5px 4px; text-align: center; }
.card-stat-label { font-size: 8px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 2px; color: #000; }
.card-stat-val   { font-size: 13px; font-weight: 800; }
.card-stat-plain { background: var(--surface2); border-radius: 3px; padding: 5px 4px; text-align: center; }
.card-stat-plain .card-stat-label { color: var(--muted); }
.card-stat-plain .card-stat-val   { font-size: 13px; font-weight: 700; color: var(--text); }

/* ── Picks mobile ── */
.picks-col-headers { display: flex; align-items: center; padding: 5px 10px; background: var(--surface2); border-top: 1px solid var(--border); gap: 6px; }
.picks-col-headers span { font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.ch-rank { min-width: 18px; }
.ch-team { min-width: 38px; }
.ch-name { flex: 1; }
.ch-pos  { min-width: 26px; }
.ch-prob { min-width: 62px; text-align: center; }
.ch-odds { min-width: 52px; text-align: right; }
.pick-row { display: flex; align-items: center; padding: 8px 10px; border-top: 1px solid var(--border); gap: 6px; }
.pr-rank  { font-size: 11px; color: var(--muted); font-weight: 700; min-width: 18px; }
.pr-team  { min-width: 38px; }
.pr-name  { flex: 1; font-size: 13px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; }
.pr-pos   { font-size: 10px; color: var(--muted); font-weight: 700; min-width: 26px; }
.pr-prob  { min-width: 62px; text-align: center; font-size: 12px; font-weight: 700; padding: 3px 6px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.pr-odds  { min-width: 52px; text-align: right; font-size: 12px; font-weight: 700; color: #4aba7a; font-variant-numeric: tabular-nums; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .top-bar-announce { display: none; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .top-bar { flex-wrap: wrap; padding: 8px 12px; gap: 8px; }
    .top-bar-form { width: 100%; }
    .top-bar-input { flex: 1; width: auto; }
}
@media (max-width: 768px) {
    .top-bar-input { width: 140px; }
    .nav-toggle { display: block; }
    .site-header {
        flex-wrap: wrap;
        padding: 8px 12px;
        gap: 6px;
    }
    .site-nav {
        background: var(--bg);
        display: none;
        flex-direction: column;
        width: 100%;
        align-items: stretch;
        padding: 8px 12px;
        border-top: 1px solid var(--border);
        gap: 0;
        position: sticky;
        top: 52px;
    }
    .site-nav.open { display: flex; }
    .nav-btn { width: 100%; text-align: left; padding: 8px 0; }
    .stats-tabs { padding: 8px; }
    .stab { font-size: 11px; padding: 5px 10px; }
    .tc input { width: 100%; }
    .dt { font-size: 12px; }
    .dt thead th { font-size: 10px; padding: 6px 5px; }
    .dt tbody td { padding: 6px 5px; font-size: 12px; }
    .h2h-grid { grid-template-columns: 1fr; }
    .sl-dot { display: none; }
    .sl-sub { display: block; width: 100%; margin-top: 2px; }
    .matchup-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .player-cards   { display: block; }
    .matchup-block  { border: none; background: none; margin-bottom: 0; }
    .picks-table-wrap { display: none; }
    .picks-mobile     { display: block; }
    .team-side { font-size: 20px; padding: 10px 12px; }
    #view-matchup, #view-flat { padding: 12px 12px 40px; }
}
@media (max-width: 480px) {
    .top-bar { flex-wrap: wrap; padding: 8px 12px; gap: 8px; }
    .top-bar-form { width: 100%; }
    .top-bar-input { flex: 1; width: auto; }
}
@media (max-width: 640px) {
    .container { padding: 12px 12px 60px; }
    .site-header, .site-footer { padding-left: 12px; padding-right: 12px; }
}



/* ── INDEX PAGE ─────────────────────────────────────────────── */
.idx-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
}
.idx-hero-left h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}
.idx-hero-left p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
}
.idx-hero-left ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.idx-hero-left ul li a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}
.idx-hero-left ul li a:hover { color: var(--accent2); }
.idx-hero-right {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}
.idx-lbl {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 4px;
}
.idx-sub {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 12px;
}
.idx-no-results {
    color: var(--muted);
    font-size: 13px;
    padding: 8px 0;
}
.idx-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.idx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.idx-table thead th {
    background: var(--surface2);
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 6px 8px;
    font-weight: 700;
    white-space: nowrap;
    text-align: left;
}
.idx-table thead th.c { text-align: center; }
.idx-table tbody tr { border-top: 1px solid var(--border); }
.idx-table tbody tr:hover td { background: rgba(255,255,255,.02); }
.idx-table tbody td {
    padding: 7px 8px;
    white-space: nowrap;
    color: var(--text);
}
.idx-table tbody td.c { text-align: center; }

.idx-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}
.idx-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.idx-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .4px;
}
.idx-card p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    flex: 1;
}
.idx-more {
    display: inline-block;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 4px;
}
.idx-more:hover { color: var(--accent2); }

.idx-section {
    padding: 20px;
}

@media (max-width: 768px) {
    .idx-hero  { grid-template-columns: 1fr; }
    .idx-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .idx-cards { grid-template-columns: 1fr; }
}