/* B-TEAM consolidated styles — generated by _build_bundle.py; base body/h1/.card in bteam-shared.css */

/* ---- _inc/header.php [0] ---- */
.site-header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 12px 20px;
        /* ~100px each side at 1920px; scales down on narrower viewports (5.21vw ≈ 100/1920) */
        padding-top: 14px;
        padding-bottom: 14px;
        padding-inline: clamp(12px, 5.21vw, 100px);
        margin: -24px -24px 20px -24px;
        background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
        border-bottom: 1px solid #1e293b;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    }
    .site-header__brand {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        line-height: 0;
        text-decoration: none;
    }
    .site-header__brand-flag {
        display: block;
        height: auto;
        max-height: 2.5rem;
        width: auto;
        flex-shrink: 0;
    }
    .site-header__brand-img {
        display: block;
        height: auto;
        max-height: 2.5rem;
        width: auto;
        max-width: min(100vw - 120px, 420px);
    }
    .site-header__brand:hover .site-header__brand-flag,
    .site-header__brand:hover .site-header__brand-img {
        opacity: 0.92;
    }
    .site-header__nav {
        margin: 0;
    }
    .site-header__nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 10px;
    }
    .site-header__nav a {
        display: inline-block;
        padding: 8px 14px;
        font-size: 13px;
        font-weight: 600;
        color: #e5e7eb;
        text-decoration: none;
        border: 1px solid #334155;
        border-radius: 6px;
        background: #111827;
        transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    }
    .site-header__nav a:hover {
        color: #EAD439;
        border-color: #EAD439;
        background: #1e293b;
    }
    .site-header__nav a.is-active {
        color: #EAD439;
        border-color: #ca8a04;
        background: #1c1917;
    }
    .site-header__item--has-submenu {
        position: relative;
    }
    /* Shrink-wrap to the Baseball control so the dropdown’s left edge matches the button’s left border */
    .site-header__submenu-wrap {
        position: relative;
        display: inline-block;
        vertical-align: middle;
    }
    .site-header__item--has-submenu::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 10px;
        z-index: 40;
    }
    .site-header__submenu {
        list-style: none;
        margin: 0;
        padding: 6px;
        padding-inline-start: 6px;
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        right: auto;
        /* Match parent control width; no UA list indent on inner <li> */
        min-width: 100%;
        width: max-content;
        max-width: min(100vw - 24px, 320px);
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: #0f172a;
        border: 1px solid #334155;
        border-radius: 6px;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
        z-index: 50;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-4px);
        pointer-events: none;
        transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    }
    .site-header__submenu li {
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .site-header__item--has-submenu:hover .site-header__submenu,
    .site-header__item--has-submenu:focus-within .site-header__submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    .site-header__submenu a {
        display: block;
        width: 100%;
        box-sizing: border-box;
        border: none;
        border-radius: 4px;
        background: transparent;
    }
    .site-header__submenu a:hover {
        border: none;
        background: #1e293b;
    }
    .site-header__submenu a.is-active {
        border: none;
        background: #1c1917;
    }
    @media (max-width: 520px) {
        .site-header {
            margin: -16px -16px 16px -16px;
            padding-top: 12px;
            padding-bottom: 12px;
        }
        .site-header__brand-flag,
        .site-header__brand-img {
            max-height: 2.1rem;
        }
        .site-header__brand-img {
            max-width: min(100vw - 100px, 320px);
        }
    }

/* ---- index.php [0] ---- */
h1, h2, h3 { color: #EAD439; }
        h3 {
            font-size: 1.1rem;
            margin: 20px 0 10px 0;
        }
        .home-sport-block {
            margin-top: 20px;
        }
        .sport-panel {
            border: 1px solid #1e293b;
            border-radius: 8px;
            padding: 16px 18px;
            background: #0f172a;
        }
        .home-actions {
            margin-top: 0;
        }
        .home-actions .action {
            display: block;
            width: fit-content;
            max-width: 100%;
            margin: 0 0 10px 0;
        }
        .home-actions .action:last-child {
            margin-bottom: 0;
        }
        a.action {
            display: inline-block;
            padding: 10px 16px;
            font-weight: 700;
            font-size: 14px;
            color: #e5e7eb;
            text-decoration: none;
            border: 1px solid #334155;
            border-radius: 6px;
            background: #111827;
        }
        a.action:hover {
            color: #EAD439;
            border-color: #EAD439;
        }

/* ---- about.php [0] ---- */
h1 { color: #EAD439; font-size: 1.5rem; margin-top: 0; }
        .about-layout {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
            gap: 28px 32px;
        }
        .about-support {
            flex: 1 1 0;
            min-width: min(100%, 280px);
            max-width: 50%;
        }
        .about-quote {
            flex: 1 1 0;
            min-width: min(100%, 280px);
            max-width: 50%;
            margin: 0;
        }
        @media (max-width: 640px) {
            .about-support,
            .about-quote { max-width: 100%; }
        }
        .about-quote p {
            margin: 0 0 12px 0;
            line-height: 1.55;
            color: #e5e7eb;
        }
        .about-quote p:last-child { margin-bottom: 0; }
        .about-quote hr {
            border: none;
            border-top: 1px solid #334155;
            margin: 16px 0;
        }
        .about-quote a { color: #79ABC5; }
        .about-support .bmc {
            margin: 0 0 16px 0;
            font-size: 1.2rem;
            font-weight: 700;
            color: #EAD439;
        }
        .support-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 16px 20px;
            align-items: center;
        }
        .support-link {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 14px 16px;
            background: #0f172a;
            border: 1px solid #334155;
            border-radius: 10px;
            transition: border-color 0.15s ease, background 0.15s ease;
        }
        .support-link:hover {
            border-color: #EAD439;
            background: #1e293b;
        }
        .support-link img,
        .support-link svg {
            max-width: 100%;
            height: auto;
            display: block;
        }
        .support-link.paypal-link img {
            max-height: 40px;
            width: auto;
        }
        .support-link.venmo-link svg {
            max-height: 36px;
            width: 120px;
        }
        .about-support__weekly {
            display: flex;
            justify-content: center;
            margin-top: 20px;
        }
        .about-support__weekly img {
            max-width: 100%;
            height: auto;
            border-radius: 6px;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
        }
        .meta { color: #94a3b8; font-size: 0.95rem; margin-top: 20px; }
        .meta a { color: #79ABC5; }

/* ---- terms-and-conditions.php [0] ---- */
h1 { color: #EAD439; font-size: 1.5rem; margin-top: 0; }
        .terms-updated { color: #94a3b8; font-size: 0.9rem; margin: 0 0 16px 0; }
        .terms-site-url {
            margin: 0 0 20px 0;
            padding: 12px 14px;
            background: #0f172a;
            border-radius: 8px;
            border: 1px solid #334155;
            font-size: 0.95rem;
            line-height: 1.5;
            color: #e2e8f0;
        }
        .terms-site-url a { color: #79ABC5; }
        .terms-intro {
            background: #0f172a;
            border-left: 3px solid #ca8a04;
            border-radius: 0 8px 8px 0;
            padding: 14px 16px;
            margin: 0 0 24px 0;
            line-height: 1.6;
            color: #e2e8f0;
            font-size: 0.95rem;
        }
        .terms-prose h2 {
            color: #EAD439;
            font-size: 1.08rem;
            margin: 1.35rem 0 0.45rem 0;
        }
        .terms-prose h2:first-of-type { margin-top: 0; }
        .terms-prose p {
            line-height: 1.55;
            color: #e5e7eb;
            margin: 0 0 12px 0;
        }
        .terms-prose ul {
            margin: 0 0 12px 0;
            padding-left: 1.35rem;
            line-height: 1.55;
            color: #e5e7eb;
        }
        .terms-prose li { margin-bottom: 8px; }
        .terms-prose a { color: #79ABC5; }

/* ---- nba.php [0] ---- */
h1 { color: #EAD439; }
        .meta { color: #94a3b8; font-size: 0.9rem; margin-bottom: 12px; line-height: 1.5; }
        .nba-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
        }
        .nba-table th,
        .nba-table td {
            text-align: left;
            padding: 8px 10px;
            border-bottom: 1px solid #1e293b;
        }
        .nba-table th {
            color: #EAD439;
            font-weight: 700;
            background: #0f172a;
        }
        .nba-table td.num { text-align: center; font-variant-numeric: tabular-nums; }
        .err { color: #f97373; font-size: 0.95rem; margin: 8px 0 0 0; }
        .copy { color: #64748b; font-size: 0.75rem; margin-top: 16px; line-height: 1.4; }
        a.refresh-link { color: #79ABC5; font-size: 0.85rem; }

/* ---- 500.php [0] ---- (scoped to body.page-500 so paragraph/link styles do not leak site-wide) */
body.page-500 h1 {
    color: #EAD439;
    font-size: 1.35rem;
    margin: 0 0 12px 0;
}
body.page-500 p {
    margin: 0 0 14px 0;
    line-height: 1.55;
    color: #94a3b8;
    font-size: 0.95rem;
}
body.page-500 p:last-child {
    margin-bottom: 0;
}
body.page-500 .actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}
body.page-500 a {
    color: #79ABC5;
    font-weight: 600;
    text-decoration: none;
}
body.page-500 a:hover {
    text-decoration: underline;
}
body.page-500 code {
    color: #cbd5e1;
    font-size: 0.85rem;
}

/* ---- ebb/ebb.php [0] ---- */
h1 { color:#EAD439; }
            .error { color:#f97373; white-space: pre-wrap; }
            code { color:#79ABC5; }
            a { color:#79ABC5; }

/* ---- ebb/ebb.php [1] ---- */
h1, h2 { color:#EAD439; }
        table { width:100%; border-collapse:collapse; font-size:13px; margin-top:8px; }
        th, td { border:1px solid #1f2937; padding:4px 6px; text-align:center; }
        th { background:#111827; }
        tr:nth-child(even) td { background:#020617; }
        tr:nth-child(odd) td { background:#030712; }
        details { margin-top: 6px; }
        summary { cursor:pointer; color:#79ABC5; }
        .muted { color:#9ca3af; font-size:12px; }
        a { color:#79ABC5; }
        .expand-btn {
            background: transparent;
            border: none;
            color: #79ABC5;
            cursor: pointer;
            font-size: 11px;
            margin-left: 6px;
            padding: 0;
        }
        /* UPCOMING ID column: under 1080px, ID + chevron share one large touch control */
        .ebb-id-cell {
            white-space: nowrap;
            vertical-align: middle;
        }
        .ebb-id-desktop {
            display: none;
        }
        .expand-btn--ebb-id {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-left: 0;
            min-height: 44px;
            min-width: 56px;
            padding: 8px 14px;
            font-size: 14px;
            line-height: 1.2;
            color: #79ABC5;
            border: 1px solid #334155;
            border-radius: 8px;
            background: #111827;
            box-sizing: border-box;
            -webkit-tap-highlight-color: rgba(121, 171, 197, 0.25);
        }
        .expand-btn--ebb-id:active {
            background: #1e293b;
        }
        .ebb-id-in-btn {
            font-weight: 700;
            font-variant-numeric: tabular-nums;
            color: #e5e7eb;
        }
        .ebb-id-chevron {
            font-size: 12px;
            line-height: 1;
        }
        @media (min-width: 1080px) {
            .ebb-id-desktop {
                display: inline;
            }
            .ebb-id-in-btn {
                display: none;
            }
            .expand-btn--ebb-id {
                min-height: unset;
                min-width: unset;
                padding: 0;
                margin-left: 6px;
                font-size: 11px;
                border: none;
                border-radius: 0;
                background: transparent;
            }
            .expand-btn--ebb-id:active {
                background: transparent;
            }
        }
        .subrow td {
            background: #111827 !important;
            text-align: left;
            font-size: 12px;
        }
        .subrow-content {
            color: #cbd5e1;
            line-height: 1.4;
            max-width: 100%;
            box-sizing: border-box;
        }
        .subrow-metric {
            margin-top: 4px;
        }
        /* Four blocks: P+T matchup | P+T streak | PvP matchup | P-only streak — see breakpoints below */
        .subrow-columns {
            display: flex;
            flex-direction: column;
            gap: 16px;
            min-width: 0;
        }
        .subrow-block {
            min-width: 0;
        }
        .subrow-block--pt {
            order: 1;
        }
        .subrow-block--pt-streak {
            order: 2;
        }
        .subrow-block--pvp {
            order: 3;
        }
        .subrow-block--streak {
            order: 4;
        }
        @media (min-width: 1080px) {
            .subrow-columns {
                display: grid;
                grid-template-columns: 1fr 1fr;
                grid-template-rows: auto auto;
                grid-template-areas:
                    'pt pvp'
                    'ptst str';
                gap: 20px;
            }
            .subrow-block--pt {
                grid-area: pt;
                order: unset;
            }
            .subrow-block--pvp {
                grid-area: pvp;
                order: unset;
            }
            .subrow-block--pt-streak {
                grid-area: ptst;
                order: unset;
            }
            .subrow-block--streak {
                grid-area: str;
                order: unset;
            }
        }
        .subrow-panel {
            background: #0f172a;
            border: 1px solid #1f2937;
            border-radius: 6px;
            padding: 8px 10px;
            color: #cbd5e1;
        }
        .subrow-panel h3 {
            margin: 0 0 6px 0;
            color: #EAD439;
            font-size: 13px;
        }
        /* Leading side in subrow MATCHUP lines (higher wins in parentheses) */
        .subrow-panel strong.subrow-matchup-lead {
            color: #EAD439;
            font-weight: 700;
        }
        .nav-jump {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
            margin: 8px 0 14px 0;
        }
        .nav-jump label {
            color: #cbd5e1;
            font-size: 13px;
            font-weight: 600;
        }
        .nav-jump select {
            background: #111827;
            color: #e5e7eb;
            border: 1px solid #334155;
            border-radius: 6px;
            padding: 6px 8px;
            min-width: 260px;
            max-width: 100%;
        }
        .streak-box h3 {
            margin: 0 0 6px 0;
            color: #EAD439;
            font-size: 13px;
        }
        .streak-box h4 {
            margin: 4px 0;
            font-size: 12px;
            color: #e5e7eb;
            font-weight: 600;
        }
        .streak-row {
            display: grid;
            grid-template-columns: 110px auto;
            gap: 8px;
            align-items: center;
            margin-bottom: 6px;
        }
        .streak-name {
            font-size: 12px;
            color: #e5e7eb;
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .streak-grid {
            display: grid;
            grid-template-columns: repeat(20, 14px);
            gap: 3px;
            justify-content: end;
        }
        .streak-axis {
            display: flex;
            justify-content: space-between;
            margin-top: 4px;
            font-size: 10px;
            color: #94a3b8;
            width: 337px; /* 20 squares (14px) + 19 gaps (3px) */
            margin-left: auto; /* align under right-justified streak grid */
            max-width: 100%;
            box-sizing: border-box;
        }
        @media (max-width: 1079px) {
            .streak-box {
                overflow-x: auto;
                max-width: 100%;
            }
            .streak-box .streak-axis {
                margin-left: 0;
                width: 100%;
                max-width: 337px;
            }
        }
        .streak-cell {
            width: 14px;
            height: 14px;
            box-sizing: border-box;
            border: 2px solid #cbd5e1;
            border-radius: 2px;
            background: #1e293b;
        }
        .streak-cell.win {
            background: #22c55e;
            border-color: #14532d;
        }
        .streak-cell.loss {
            background: #ef4444;
            border-color: #7f1d1d;
        }
        .streak-cell.tie {
            background: #64748b;
            border-color: #1e293b;
        }
        .streak-cell.empty {
            background: #0f172a;
            border-color: #94a3b8;
        }
        .streak-row.streak-row--pa {
            align-items: start;
        }
        .streak-pa-grid {
            display: grid;
            grid-template-columns: repeat(20, 14px);
            gap: 3px;
            justify-content: end;
        }
        .streak-pa-cell {
            width: 14px;
            min-height: 14px;
            box-sizing: border-box;
            border: 2px solid #cbd5e1;
            border-radius: 2px;
            background: #1e293b;
            font-size: 7px;
            line-height: 1;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            align-content: center;
            text-align: center;
            overflow: hidden;
            color: #e5e7eb;
            font-weight: 700;
        }
        .streak-pa-cell.streak-pa--up {
            color: #22c55e;
            border-color: #14532d;
        }
        .streak-pa-cell.streak-pa--down {
            color: #ef4444;
            border-color: #7f1d1d;
        }
        .streak-pa-cell.streak-pa--push {
            color: #94a3b8;
            border-color: #475569;
        }
        .streak-pa-cell.streak-pa--empty {
            background: #0f172a;
            border-color: #94a3b8;
        }
        .streak-pa-cell.streak-pa--na {
            color: #94a3b8;
            border-color: #64748b;
            font-size: 8px;
        }
        .ebb-results-more-wrap {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            margin-top: 12px;
        }
        .ebb-results-load-more {
            background: #111827;
            border: 1px solid #334155;
            color: #79ABC5;
            cursor: pointer;
            font-size: 22px;
            line-height: 1;
            padding: 10px 20px;
            border-radius: 8px;
        }
        .ebb-results-load-more:hover {
            background: #1e293b;
            border-color: #79ABC5;
        }
        .ebb-results-load-more:focus {
            outline: 2px solid #79ABC5;
            outline-offset: 2px;
        }
        .ebb-results-load-more[hidden] {
            display: none;
        }
        /* Table 1: row whose DATE+TIME is nearest to now (STAR_ALERT_TIMEZONE) */
        tbody tr.ebb-upcoming-closest td {
            background: rgba(234, 212, 57, 0.18) !important;
            outline: 1px solid rgba(234, 212, 57, 0.55);
        }

/* ---- ebb/ebb-player.php [0] ---- */
h1, h2 { color:#EAD439; }
        table { width:100%; border-collapse:collapse; font-size:13px; margin-top:8px; }
        th, td { border:1px solid #1f2937; padding:4px 6px; text-align:center; }
        th { background:#111827; }
        tr:nth-child(even) td { background:#020617; }
        tr:nth-child(odd) td { background:#030712; }
        a { color:#79ABC5; }

/* ---- ebb/ebb-players.php [0] ---- */
h1, h2 { color:#EAD439; }
        table { width:100%; border-collapse:collapse; font-size:13px; margin-top:8px; }
        th, td { border:1px solid #1f2937; padding:6px 8px; text-align:left; }
        th { background:#111827; }
        th.sortable {
            cursor: pointer;
            user-select: none;
            white-space: nowrap;
        }
        th.sortable:hover { background: #1f2937; }
        th.sortable .sort-indicator {
            margin-left: 6px;
            color: #94a3b8;
            font-size: 11px;
        }
        tr:nth-child(even) td { background:#020617; }
        tr:nth-child(odd) td { background:#030712; }
        a { color:#79ABC5; }
        .player-link {
            color: #e5e7eb;
            text-decoration: none;
            font-weight: 700;
        }
        .player-link:hover {
            color: #EAD439;
            text-decoration: none;
        }
        .streak-grid {
            display: grid;
            grid-template-columns: repeat(20, 10px);
            gap: 2px;
            min-width: 238px; /* 20 squares (10px) + 19 gaps (2px) */
        }
        .streak-cell {
            width: 10px;
            height: 10px;
            border: 1px solid #1f2937;
            border-radius: 2px;
            display: inline-block;
            box-sizing: border-box;
        }
        .streak-cell.win { background: #22c55e; border-color: #22c55e; }
        .streak-cell.loss { background: #ef4444; border-color: #ef4444; }
        .streak-cell.tie { background: #64748b; border-color: #64748b; }
        .streak-cell.empty { background: #0f172a; border-color: #1f2937; }
        .players-card-head {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 16px 28px;
            margin-bottom: 12px;
        }
        .players-card-head h2 {
            margin: 0;
        }
        .players-search-wrap {
            flex: 0 1 380px;
            max-width: 100%;
        }
        .players-search-wrap label {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }
        .players-search-row {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        #playerSearchFilter {
            flex: 1;
            min-width: 0;
            box-sizing: border-box;
            padding: 8px 12px;
            font-size: 14px;
            color: #e5e7eb;
            background: #111827;
            border: 1px solid #334155;
            border-radius: 6px;
        }
        .players-search-clear {
            flex-shrink: 0;
            padding: 8px 14px;
            font-size: 13px;
            font-weight: 700;
            color: #e5e7eb;
            background: #111827;
            border: 1px solid #334155;
            border-radius: 6px;
            cursor: pointer;
        }
        .players-search-clear:hover {
            color: #EAD439;
            border-color: #EAD439;
            background: #1e293b;
        }
        #playerSearchFilter::placeholder {
            color: #64748b;
        }
        #playerSearchFilter:focus {
            outline: none;
            border-color: #EAD439;
            box-shadow: 0 0 0 1px #ca8a04;
        }

/* ---- baseball/baseball.php [0] ---- */
h1, h2 { color: #EAD439; }
        .meta { color: #94a3b8; font-size: 0.9rem; margin-bottom: 12px; }
        .view-tabs { margin-bottom: 16px; }
        .view-tabs input[type="radio"] {
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
            pointer-events: none;
        }
        .view-tabs .tab-bar {
            display: inline-flex;
            gap: 0;
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid #334155;
            background: #111827;
        }
        .view-tabs .tab-bar label {
            display: inline-block;
            padding: 10px 20px;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 0.04em;
            color: #94a3b8;
            cursor: pointer;
            border-right: 1px solid #334155;
            user-select: none;
            transition: background 0.15s ease, color 0.15s ease;
        }
        .view-tabs .tab-bar label:last-of-type { border-right: none; }
        .view-tabs .tab-bar label:hover { color: #e5e7eb; background: #1e293b; }
        #tab-starters:checked ~ .tab-bar label[for="tab-starters"],
        #tab-all:checked ~ .tab-bar label[for="tab-all"] {
            color: #EAD439;
            background: #1c1917;
            border-color: #ca8a04;
        }
        .view-panel { display: none; margin-top: 4px; }
        #tab-starters:checked ~ .panel-starters { display: block; }
        #tab-all:checked ~ .panel-all { display: block; }
        .panel-hint { color: #94a3b8; font-size: 0.85rem; margin: 0 0 10px 0; }
        .table-section-title {
            margin: 20px 0 8px 0;
            font-size: 1rem;
            font-weight: 700;
            color: #EAD439;
            letter-spacing: 0.02em;
        }
        .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
        .stat-toolbar {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: center;
            margin-bottom: 10px;
        }
        .stat-section-btn {
            margin: 0;
            padding: 8px 14px;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.06em;
            color: #94a3b8;
            background: #111827;
            border: 1px solid #334155;
            border-radius: 6px;
            cursor: pointer;
            font-family: inherit;
        }
        .stat-section-btn:hover {
            color: #e5e7eb;
            background: #1e293b;
        }
        .stat-section-btn.is-active {
            color: #EAD439;
            border-color: #ca8a04;
            background: #1c1917;
        }
        .stat-section-btn .stat-arrow {
            display: inline-block;
            margin-left: 6px;
            font-size: 1.15em;
            line-height: 1;
            vertical-align: -0.05em;
        }
        .stat-section-btn:focus {
            outline: 2px solid #79ABC5;
            outline-offset: 2px;
        }
        /* Independent toggles: table has stat-open-* for each visible section (default: all three open) */
        table.lineup-table:not(.stat-open-total) .col-g-total {
            display: none;
        }
        table.lineup-table:not(.stat-open-162) .col-g-162 {
            display: none;
        }
        table.lineup-table:not(.stat-open-year) .col-g-year {
            display: none;
        }
        table.lineup-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
            scroll-margin-top: 12px;
        }
        .lineup-table th,
        .lineup-table td {
            text-align: center;
            padding: 8px 10px;
            border-bottom: 1px solid #1e293b;
        }
        .lineup-table th {
            color: #EAD439;
            font-weight: 700;
            background: #0f172a;
            white-space: nowrap;
        }
        .lineup-table th.sortable {
            cursor: pointer;
            user-select: none;
            padding-right: 12px;
        }
        .lineup-table th.sortable:hover {
            background: #1e293b;
            color: #EAD439;
        }
        .lineup-table th.sortable:focus {
            outline: 2px solid #79ABC5;
            outline-offset: -2px;
        }
        .lineup-table th .sort-arrow {
            display: inline-block;
            margin-left: 4px;
            font-size: 0.65em;
            opacity: 0.45;
            min-width: 1em;
        }
        .lineup-table th.sort-asc .sort-arrow::after { content: '▲'; opacity: 0.9; }
        .lineup-table th.sort-desc .sort-arrow::after { content: '▼'; opacity: 0.9; }
        .lineup-table td.num { font-variant-numeric: tabular-nums; }
        .lineup-table tbody tr:hover td { background: #0f172a; }
        .lineup-table tbody tr.row-bench td { background: rgba(30, 58, 95, 0.45); }
        .lineup-table tbody tr.row-bench:hover td { background: rgba(51, 85, 127, 0.55); }
        /* AB through HR: Hitter table (cols 4–8) / Team table (cols 3–7) */
        table.lineup-hitter thead th:nth-child(n+4):nth-child(-n+8),
        table.lineup-team thead th:nth-child(n+3):nth-child(-n+7) {
            background: #020205;
        }
        table.lineup-hitter thead th:nth-child(n+4):nth-child(-n+8).sortable:hover,
        table.lineup-team thead th:nth-child(n+3):nth-child(-n+7).sortable:hover {
            background: #12121a;
            color: #EAD439;
        }
        table.lineup-hitter tbody td:nth-child(n+4):nth-child(-n+8),
        table.lineup-team tbody td:nth-child(n+3):nth-child(-n+7) {
            background: #0e1526;
        }
        table.lineup-hitter tbody tr:hover td:nth-child(n+4):nth-child(-n+8),
        table.lineup-team tbody tr:hover td:nth-child(n+3):nth-child(-n+7) {
            background: #131a2e;
        }
        table.lineup-hitter tbody tr.row-bench td:nth-child(n+4):nth-child(-n+8),
        table.lineup-team tbody tr.row-bench td:nth-child(n+3):nth-child(-n+7) {
            background: rgba(14, 21, 38, 0.92);
        }
        table.lineup-hitter tbody tr.row-bench:hover td:nth-child(n+4):nth-child(-n+8),
        table.lineup-team tbody tr.row-bench:hover td:nth-child(n+3):nth-child(-n+7) {
            background: rgba(22, 32, 58, 0.95);
        }
        /* AB-YEAR through HR-YEAR (class col-g-year; same band colors as career AB–HR) */
        table.lineup-hitter thead th.col-g-year,
        table.lineup-team thead th.col-g-year {
            background: #020205;
        }
        table.lineup-hitter thead th.col-g-year.sortable:hover,
        table.lineup-team thead th.col-g-year.sortable:hover {
            background: #12121a;
            color: #EAD439;
        }
        table.lineup-hitter tbody td.col-g-year,
        table.lineup-team tbody td.col-g-year {
            background: #0e1526;
        }
        table.lineup-hitter tbody tr:hover td.col-g-year,
        table.lineup-team tbody tr:hover td.col-g-year {
            background: #131a2e;
        }
        table.lineup-hitter tbody tr.row-bench td.col-g-year,
        table.lineup-team tbody tr.row-bench td.col-g-year {
            background: rgba(14, 21, 38, 0.92);
        }
        table.lineup-hitter tbody tr.row-bench:hover td.col-g-year,
        table.lineup-team tbody tr.row-bench:hover td.col-g-year {
            background: rgba(22, 32, 58, 0.95);
        }
        .notice { color: #fbbf24; margin-top: 12px; font-size: 0.9rem; }
        .err { color: #f97373; font-size: 0.9rem; margin: 8px 0 0 0; }
        .copy { color: #64748b; font-size: 0.75rem; margin-top: 16px; line-height: 1.4; }
        .lineup-jump-nav {
            position: fixed;
            left: 16px;
            bottom: max(16px, env(safe-area-inset-bottom, 0px));
            z-index: 10000;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .lineup-jump-btn {
            margin: 0;
            padding: 10px 14px;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.08em;
            color: #EAD439;
            background: #0f172a;
            border: 1px solid #ca8a04;
            border-radius: 8px;
            cursor: pointer;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
            font-family: inherit;
        }
        .lineup-jump-btn:hover {
            background: #1e293b;
            color: #EAD439;
        }
        .lineup-jump-btn:focus {
            outline: 2px solid #79ABC5;
            outline-offset: 2px;
        }
        .sp-probable-mark {
            color: #94a3b8;
            font-weight: 700;
            margin-left: 1px;
        }

/* ---- baseball/baseball-players.php [0] ---- */
h1, h2 { color: #EAD439; }
        .meta { color: #94a3b8; font-size: 0.9rem; margin-bottom: 12px; }
        .meta-actions { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
        .bp-player-filter {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 10px 12px;
            margin: 14px 0 12px 0;
        }
        .bp-player-filter label {
            font-size: 0.9rem;
            font-weight: 600;
            color: #e5e7eb;
        }
        .bp-player-filter .bp-filter-input-wrap {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
            flex: 1 1 200px;
            min-width: min(100%, 220px);
            max-width: 28rem;
        }
        .bp-player-filter input[type="search"] {
            flex: 1 1 140px;
            min-width: 0;
            padding: 9px 12px;
            font-size: 14px;
            color: #e5e7eb;
            background: #0f172a;
            border: 1px solid #334155;
            border-radius: 6px;
            box-sizing: border-box;
        }
        .bp-player-filter input[type="search"]::placeholder {
            color: #64748b;
        }
        .bp-player-filter input[type="search"]:focus {
            outline: 2px solid #79ABC5;
            outline-offset: 1px;
            border-color: #475569;
        }
        .bp-player-filter .bp-filter-clear {
            flex: 0 0 auto;
            padding: 9px 14px;
            font-size: 13px;
            font-weight: 600;
            color: #e5e7eb;
            background: #111827;
            border: 1px solid #334155;
            border-radius: 6px;
            cursor: pointer;
        }
        .bp-player-filter .bp-filter-clear:hover {
            color: #EAD439;
            border-color: #EAD439;
            background: #1e293b;
        }
        .bp-player-filter .bp-filter-hint {
            width: 100%;
            margin: 0;
            font-size: 0.82rem;
            color: #64748b;
        }
        .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
        .bp-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
        }
        .bp-table th,
        .bp-table td {
            text-align: left;
            padding: 10px 12px;
            border-bottom: 1px solid #1e293b;
        }
        .bp-table th {
            color: #EAD439;
            font-weight: 700;
            background: #0f172a;
            white-space: nowrap;
        }
        .bp-table th.sortable {
            cursor: pointer;
            user-select: none;
        }
        .bp-table th.sortable:hover { background: #1e293b; }
        .bp-table th.sortable .sort-indicator {
            margin-left: 6px;
            color: #94a3b8;
            font-size: 11px;
            font-weight: 600;
        }
        .bp-table td.num { font-variant-numeric: tabular-nums; text-align: right; }
        .bp-table th.num { text-align: right; }
        .bp-table tbody tr:hover td { background: #0f172a; }
        .notice { color: #fbbf24; margin-top: 12px; font-size: 0.9rem; }
        .err { color: #f97373; font-size: 0.9rem; margin-top: 8px; }
        .bp-player-detail { margin-top: 20px; padding-top: 18px; border-top: 1px solid #1e293b; }
        .bp-player-detail h2 {
            margin: 0 0 6px 0;
            font-size: 1.5rem;
            font-weight: 700;
            color: #EAD439;
        }
        .bp-player-detail .bp-bat-side {
            font-weight: 600;
            color: #94a3b8;
            margin-left: 4px;
        }
        .bp-player-detail .bp-detail-meta {
            color: #94a3b8;
            font-size: 0.9rem;
            margin: 0 0 16px 0;
        }
        .bp-chart-layout {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
            gap: 20px 28px;
            margin-bottom: 14px;
        }
        .bp-chart-main {
            flex: 1 1 320px;
            min-width: 0;
        }
        .bp-pitcher-success-aside {
            flex: 0 1 280px;
            min-width: 220px;
            max-width: 100%;
            background: #0f172a;
            border: 1px solid #1e293b;
            border-radius: 8px;
            padding: 12px 14px 14px;
            align-self: stretch;
        }
        .bp-pitcher-success-aside h3 {
            margin: 0 0 10px 0;
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: #94a3b8;
            line-height: 1.35;
        }
        .bp-pitcher-success-list {
            list-style: decimal;
            margin: 0;
            padding: 0 0 0 1.35rem;
            font-size: 0.88rem;
            line-height: 1.45;
            color: #e2e8f0;
            max-height: 300px;
            overflow-y: auto;
        }
        .bp-pitcher-success-list li {
            padding: 5px 0;
            border-bottom: 1px solid #1e293b;
        }
        .bp-pitcher-success-list li:last-child {
            border-bottom: none;
        }
        .bp-pitcher-success-list .bp-pitcher-success-empty {
            list-style: none;
            margin-left: -1.35rem;
            color: #64748b;
            font-style: italic;
            border-bottom: none;
        }
        .bp-pitcher-success-list .bp-pitcher-upcoming {
            color: #22c55e;
            font-weight: 700;
        }
        .bp-pitcher-success-list .bp-pitcher-meta {
            display: block;
            margin-top: 4px;
            font-size: 0.78rem;
            color: #94a3b8;
            line-height: 1.35;
            font-weight: 400;
        }
        .bp-chart-main .bp-chart-wrap {
            width: 100%;
            max-width: 920px;
            margin-left: auto;
            margin-right: auto;
            margin-bottom: 0;
            overflow-x: auto;
            box-sizing: border-box;
        }
        .bp-chart-main .bp-chart-wrap svg {
            display: block;
            min-width: 520px;
            width: 100%;
            margin-left: auto;
            margin-right: auto;
        }
        .bp-chart-metric {
            fill: #64748b;
            font-size: 12px;
            font-family: Arial, sans-serif;
        }
        .bp-chart-bar { fill: #79ABC5; }
        .bp-chart-bar:hover { fill: #7dd3fc; }
        .bp-chart-toggle {
            margin: 0 auto;
            padding: 0;
            border: none;
            width: min(100%, 920px);
            max-width: 920px;
            text-align: center;
            box-sizing: border-box;
        }
        .bp-chart-toggle legend {
            color: #94a3b8;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            margin-bottom: 10px;
            padding: 0;
        }
        .bp-chart-toggle .bp-radio-row {
            display: flex;
            flex-wrap: wrap;
            gap: 14px 22px;
            align-items: center;
            justify-content: center;
        }
        .bp-chart-toggle label {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            font-size: 0.95rem;
            color: #e5e7eb;
        }
        .bp-chart-toggle input { accent-color: #EAD439; width: 16px; height: 16px; }
        .bp-table-name-link {
            color: #e5e7eb;
            font-weight: 600;
            text-decoration: none;
        }
        .bp-table-name-link:hover { color: #79ABC5; text-decoration: underline; }
        .bp-bar-tooltip {
            position: fixed;
            z-index: 10050;
            max-width: min(22rem, calc(100vw - 24px));
            padding: 10px 12px;
            background: #0f172a;
            border: 1px solid #334155;
            border-radius: 8px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
            font-size: 0.82rem;
            line-height: 1.45;
            color: #e2e8f0;
            pointer-events: none;
            display: none;
        }
        .bp-bar-tooltip .bp-tip-date {
            font-weight: 700;
            color: #EAD439;
            margin-bottom: 8px;
        }
        .bp-bar-tooltip .bp-tip-row { margin-top: 4px; }
        .bp-bar-tooltip .bp-tip-muted { color: #94a3b8; font-size: 0.8rem; margin-top: 6px; }

/* ---- baseball/baserunner.php [0] ---- */
h1, h2 { color: #EAD439; }
        .meta { color: #94a3b8; font-size: 0.9rem; margin-bottom: 12px; }
        .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
        table#br-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
        }
        #br-table th,
        #br-table td {
            text-align: center;
            padding: 8px 10px;
            border-bottom: 1px solid #1e293b;
        }
        #br-table th {
            color: #EAD439;
            font-weight: 700;
            background: #0f172a;
        }
        #br-table th.sortable {
            cursor: pointer;
            user-select: none;
        }
        #br-table th.sortable:hover {
            background: #1e293b;
            color: #EAD439;
        }
        #br-table th.sortable:focus {
            outline: 2px solid #79ABC5;
            outline-offset: -2px;
        }
        #br-table th .sort-arrow {
            display: inline-block;
            margin-left: 4px;
            font-size: 0.65em;
            opacity: 0.45;
            min-width: 1em;
        }
        #br-table th.sort-asc .sort-arrow::after { content: '▲'; opacity: 0.9; }
        #br-table th.sort-desc .sort-arrow::after { content: '▼'; opacity: 0.9; }
        #br-table tbody tr:hover td { background: #0f172a; }
        .notice { color: #fbbf24; margin-top: 12px; font-size: 0.9rem; }
        .err { color: #f97373; font-size: 0.9rem; margin: 8px 0 0 0; }
        .copy { color: #64748b; font-size: 0.75rem; margin-top: 16px; line-height: 1.4; }

/* ---- baseball/details.php [0] ---- */
h1, h2 { color: #EAD439; }
        h1 { font-size: 1.5rem; margin-top: 0; }
        h2 { font-size: 1.15rem; margin-top: 1.75rem; letter-spacing: 0.06em; }
        .card h2 a {
            color: inherit;
            text-decoration: none;
        }
        .card h2 a:hover {
            color: #EAD439;
            text-decoration: underline;
        }
        h3 {
            color: #EAD439;
            font-size: 1rem;
            font-weight: 700;
            margin: 1.25rem 0 0.35rem 0;
        }
        .formula {
            margin: 0 0 0.15rem 0;
            padding: 0.5rem 0.75rem;
            background: #0f172a;
            border-left: 3px solid #ca8a04;
            border-radius: 0 6px 6px 0;
            font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
            font-size: 0.9rem;
            line-height: 1.55;
            color: #e2e8f0;
            white-space: pre-wrap;
            overflow-x: auto;
        }
        .meta { color: #94a3b8; font-size: 0.9rem; margin-bottom: 1rem; }

/* ---- baseball/homerun.php [0] ---- */
h1, h2 { color: #EAD439; }
        .page-title-row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 12px 16px;
            margin-bottom: 12px;
        }
        .page-title-row h1 { margin: 0; line-height: 1.2; }
        .title-links {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: center;
        }
        .look-back-link {
            display: inline-block;
            padding: 8px 14px;
            font-size: 13px;
            font-weight: 600;
            color: #e5e7eb;
            text-decoration: none;
            border: 1px solid #334155;
            border-radius: 6px;
            background: #111827;
            transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
            white-space: nowrap;
        }
        .look-back-link:hover {
            color: #EAD439;
            border-color: #EAD439;
            background: #1e293b;
        }
        .meta { color: #94a3b8; font-size: 0.9rem; margin-bottom: 12px; }
        .panel-hint { color: #94a3b8; font-size: 0.85rem; margin: 0 0 10px 0; }
        .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
        .hr-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
        }
        .hr-table th,
        .hr-table td {
            text-align: left;
            padding: 10px 12px;
            border-bottom: 1px solid #1e293b;
        }
        .hr-table td.num { font-variant-numeric: tabular-nums; text-align: right; }
        .hr-table th.num { text-align: right; }
        .hr-table th.rank-col,
        .hr-table td.rank-col {
            width: 2.5rem;
            text-align: right;
            font-variant-numeric: tabular-nums;
            color: #94a3b8;
            font-weight: 600;
        }
        .hr-table th {
            color: #EAD439;
            font-weight: 700;
            background: #0f172a;
            white-space: nowrap;
        }
        .hr-table th.sortable {
            cursor: pointer;
            user-select: none;
        }
        .hr-table th.sortable:hover {
            background: #1e293b;
            color: #EAD439;
        }
        .hr-table th.sortable:focus {
            outline: 2px solid #79ABC5;
            outline-offset: -2px;
        }
        .hr-table th .sort-arrow {
            display: inline-block;
            margin-left: 4px;
            font-size: 0.65em;
            opacity: 0.45;
            min-width: 1em;
        }
        .hr-table th.sort-asc .sort-arrow::after { content: '▲'; opacity: 0.9; }
        .hr-table th.sort-desc .sort-arrow::after { content: '▼'; opacity: 0.9; }
        .hr-table thead th.col-tip {
            position: relative;
        }
        .hr-table thead th.col-tip::after {
            content: attr(data-tip);
            position: absolute;
            top: calc(100% + 8px);
            left: 50%;
            transform: translateX(-50%);
            padding: 10px 12px;
            min-width: min(200px, calc(100vw - 24px));
            max-width: min(340px, calc(100vw - 24px));
            box-sizing: border-box;
            background: #1e293b;
            color: #e5e7eb;
            font-size: 12px;
            font-weight: 400;
            line-height: 1.45;
            white-space: normal;
            text-align: left;
            border-radius: 8px;
            border: 1px solid #475569;
            box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
            z-index: 100;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.12s ease, visibility 0.12s ease;
        }
        .hr-table thead th.col-tip:hover::after,
        .hr-table thead th.col-tip:focus-visible::after {
            opacity: 1;
            visibility: visible;
        }
        /* Narrow right-side columns: centering pushes the box past the viewport */
        .hr-table thead th.col-tip:nth-last-child(-n+2)::after {
            left: auto;
            right: 0;
            transform: none;
        }
        .hr-table thead th.col-tip:first-child::after {
            left: 0;
            right: auto;
            transform: none;
        }
        .hr-table tbody tr:hover td { background: #0f172a; }
        .notice { color: #fbbf24; margin-top: 12px; font-size: 0.9rem; }
        .err { color: #f97373; font-size: 0.9rem; margin: 8px 0 0 0; }
        .copy { color: #64748b; font-size: 0.75rem; margin-top: 16px; line-height: 1.4; }
        h2.section-anchor {
            margin: 0 0 10px 0;
            font-size: 1.15rem;
            font-weight: 800;
            letter-spacing: 0.06em;
            scroll-margin-top: 16px;
        }
        h2#section-team { margin-top: 28px; }
        .lineup-jump-nav {
            position: fixed;
            left: 16px;
            bottom: max(16px, env(safe-area-inset-bottom, 0px));
            z-index: 10000;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .lineup-jump-btn {
            margin: 0;
            padding: 10px 14px;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.08em;
            color: #EAD439;
            background: #0f172a;
            border: 1px solid #ca8a04;
            border-radius: 8px;
            cursor: pointer;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
            font-family: inherit;
            text-decoration: none;
            text-align: center;
            box-sizing: border-box;
        }
        a.lineup-jump-btn { display: inline-block; }
        .lineup-jump-btn:hover {
            background: #1e293b;
            color: #EAD439;
        }
        .lineup-jump-btn:focus {
            outline: 2px solid #79ABC5;
            outline-offset: 2px;
        }
        .sp-probable-mark {
            color: #94a3b8;
            font-weight: 700;
            margin-left: 1px;
        }

/* ---- baseball/homerun-other.inc.php [0] ---- */
h1, h2 { color: #EAD439; }
        .page-title-row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 12px 16px;
            margin-bottom: 12px;
        }
        .page-title-row h1 { margin: 0; line-height: 1.2; }
        .title-links {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: center;
        }
        .look-back-link {
            display: inline-block;
            padding: 8px 14px;
            font-size: 13px;
            font-weight: 600;
            color: #e5e7eb;
            text-decoration: none;
            border: 1px solid #334155;
            border-radius: 6px;
            background: #111827;
            transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
            white-space: nowrap;
        }
        .look-back-link:hover {
            color: #EAD439;
            border-color: #EAD439;
            background: #1e293b;
        }
        .meta { color: #94a3b8; font-size: 0.9rem; margin-bottom: 12px; }
        .panel-hint { color: #94a3b8; font-size: 0.85rem; margin: 0 0 10px 0; }
        .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
        .hr-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
        }
        .hr-table th,
        .hr-table td {
            text-align: left;
            padding: 10px 12px;
            border-bottom: 1px solid #1e293b;
        }
        .hr-table td.num { font-variant-numeric: tabular-nums; text-align: right; }
        .hr-table th.num { text-align: right; }
        .hr-table th {
            color: #EAD439;
            font-weight: 700;
            background: #0f172a;
            white-space: nowrap;
        }
        .hr-table th.sortable {
            cursor: pointer;
            user-select: none;
        }
        .hr-table th.sortable:hover {
            background: #1e293b;
            color: #EAD439;
        }
        .hr-table th.sortable:focus {
            outline: 2px solid #79ABC5;
            outline-offset: -2px;
        }
        .hr-table th .sort-arrow {
            display: inline-block;
            margin-left: 4px;
            font-size: 0.65em;
            opacity: 0.45;
            min-width: 1em;
        }
        .hr-table th.sort-asc .sort-arrow::after { content: '▲'; opacity: 0.9; }
        .hr-table th.sort-desc .sort-arrow::after { content: '▼'; opacity: 0.9; }
        .hr-table tbody tr:hover td { background: #0f172a; }
        h2.section-anchor {
            margin: 0 0 10px 0;
            font-size: 1.15rem;
            font-weight: 800;
            letter-spacing: 0.06em;
            scroll-margin-top: 16px;
        }
        h2#section-stadiums { margin-top: 28px; }
        .lineup-jump-nav {
            position: fixed;
            left: 16px;
            bottom: max(16px, env(safe-area-inset-bottom, 0px));
            z-index: 10000;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .lineup-jump-btn {
            margin: 0;
            padding: 10px 14px;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.08em;
            color: #EAD439;
            background: #0f172a;
            border: 1px solid #ca8a04;
            border-radius: 8px;
            cursor: pointer;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
            font-family: inherit;
            text-decoration: none;
            text-align: center;
            box-sizing: border-box;
        }
        a.lineup-jump-btn { display: inline-block; }
        .lineup-jump-btn:hover {
            background: #1e293b;
            color: #EAD439;
        }
        .lineup-jump-btn:focus {
            outline: 2px solid #79ABC5;
            outline-offset: 2px;
        }
        .err { color: #f97373; font-size: 0.9rem; }

/* ---- baseball/hr-update.php [0] ---- */
h1, h2 { color: #EAD439; }
        .page-title-row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 12px 16px;
            margin-bottom: 12px;
        }
        .page-title-row h1 { margin: 0; line-height: 1.2; }
        .look-back-link {
            display: inline-block;
            padding: 8px 14px;
            font-size: 13px;
            font-weight: 600;
            color: #e5e7eb;
            text-decoration: none;
            border: 1px solid #334155;
            border-radius: 6px;
            background: #111827;
            transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
            white-space: nowrap;
        }
        .look-back-link:hover {
            color: #EAD439;
            border-color: #EAD439;
            background: #1e293b;
        }
        .meta { color: #94a3b8; font-size: 0.9rem; margin-bottom: 12px; }
        .panel-hint { color: #94a3b8; font-size: 0.85rem; margin: 0 0 10px 0; }
        .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
        .hr-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
        }
        .hr-table th,
        .hr-table td {
            text-align: left;
            padding: 10px 12px;
            border-bottom: 1px solid #1e293b;
        }
        .hr-table td.num { font-variant-numeric: tabular-nums; text-align: right; }
        .hr-table th.num { text-align: right; }
        .hr-table th.rank-col,
        .hr-table td.rank-col {
            width: 2.5rem;
            text-align: right;
            font-variant-numeric: tabular-nums;
            color: #94a3b8;
            font-weight: 600;
        }
        .hr-table th {
            color: #EAD439;
            font-weight: 700;
            background: #0f172a;
            white-space: nowrap;
        }
        .hr-table th.sortable {
            cursor: pointer;
            user-select: none;
        }
        .hr-table th.sortable:hover {
            background: #1e293b;
            color: #EAD439;
        }
        .hr-table th.sortable:focus {
            outline: 2px solid #79ABC5;
            outline-offset: -2px;
        }
        .hr-table th .sort-arrow {
            display: inline-block;
            margin-left: 4px;
            font-size: 0.65em;
            opacity: 0.45;
            min-width: 1em;
        }
        .hr-table th.sort-asc .sort-arrow::after { content: '▲'; opacity: 0.9; }
        .hr-table th.sort-desc .sort-arrow::after { content: '▼'; opacity: 0.9; }
        .hr-table thead th.col-tip {
            position: relative;
        }
        .hr-table thead th.col-tip::after {
            content: attr(data-tip);
            position: absolute;
            top: calc(100% + 8px);
            left: 50%;
            transform: translateX(-50%);
            padding: 10px 12px;
            min-width: min(200px, calc(100vw - 24px));
            max-width: min(340px, calc(100vw - 24px));
            box-sizing: border-box;
            background: #1e293b;
            color: #e5e7eb;
            font-size: 12px;
            font-weight: 400;
            line-height: 1.45;
            white-space: normal;
            text-align: left;
            border-radius: 8px;
            border: 1px solid #475569;
            box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
            z-index: 100;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.12s ease, visibility 0.12s ease;
        }
        .hr-table thead th.col-tip:hover::after,
        .hr-table thead th.col-tip:focus-visible::after {
            opacity: 1;
            visibility: visible;
        }
        /* Narrow right-side columns: centering pushes the box past the viewport */
        .hr-table thead th.col-tip:nth-last-child(-n+2)::after {
            left: auto;
            right: 0;
            transform: none;
        }
        .hr-table thead th.col-tip:first-child::after {
            left: 0;
            right: auto;
            transform: none;
        }
        .hr-table tbody tr:hover td { background: #0f172a; }
        .notice { color: #fbbf24; margin-top: 12px; font-size: 0.9rem; }
        .err { color: #f97373; font-size: 0.9rem; margin: 8px 0 0 0; }
        .copy { color: #64748b; font-size: 0.75rem; margin-top: 16px; line-height: 1.4; }
        h2.section-anchor {
            margin: 0 0 10px 0;
            font-size: 1.15rem;
            font-weight: 800;
            letter-spacing: 0.06em;
            scroll-margin-top: 16px;
        }
        h2#section-team { margin-top: 28px; }
        .lineup-jump-nav {
            position: fixed;
            left: 16px;
            bottom: max(16px, env(safe-area-inset-bottom, 0px));
            z-index: 10000;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .lineup-jump-btn {
            margin: 0;
            padding: 10px 14px;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.08em;
            color: #EAD439;
            background: #0f172a;
            border: 1px solid #ca8a04;
            border-radius: 8px;
            cursor: pointer;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
            font-family: inherit;
            text-decoration: none;
            text-align: center;
            box-sizing: border-box;
        }
        a.lineup-jump-btn { display: inline-block; }
        .lineup-jump-btn:hover {
            background: #1e293b;
            color: #EAD439;
        }
        .lineup-jump-btn:focus {
            outline: 2px solid #79ABC5;
            outline-offset: 2px;
        }
        .sp-probable-mark {
            color: #94a3b8;
            font-weight: 700;
            margin-left: 1px;
        }

/* ---- baseball/hr-history.php [0] ---- */
h1, h2 { color: #EAD439; }
        .page-title-row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 12px 16px;
            margin-bottom: 12px;
        }
        .page-title-row h1 { margin: 0; line-height: 1.2; }
        .title-links {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: center;
        }
        .look-back-link {
            display: inline-block;
            padding: 8px 14px;
            font-size: 13px;
            font-weight: 600;
            color: #e5e7eb;
            text-decoration: none;
            border: 1px solid #334155;
            border-radius: 6px;
            background: #111827;
            transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
            white-space: nowrap;
        }
        .look-back-link:hover {
            color: #EAD439;
            border-color: #EAD439;
            background: #1e293b;
        }
        h2 { font-size: 1.35rem; margin: 0 0 16px 0; font-weight: 700; }
        .meta { color: #94a3b8; font-size: 0.9rem; margin-bottom: 12px; }
        .archive-nav { margin-top: 18px; padding-top: 14px; border-top: 1px solid #1e293b; }
        .archive-nav h3 { color: #94a3b8; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 10px 0; font-weight: 700; }
        .archive-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; }
        .archive-nav a { color: #79ABC5; font-size: 0.9rem; text-decoration: none; }
        .archive-nav a:hover { color: #7dd3fc; text-decoration: underline; }
        .archive-nav a.is-current { color: #EAD439; font-weight: 700; pointer-events: none; }
        .hr-layout {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
            gap: 28px 36px;
            margin-top: 4px;
        }
        .hr-list-wrap { flex: 1 1 260px; min-width: 0; max-width: 42rem; }
        .hr-list { list-style: none; margin: 0; padding: 0; max-width: none; }
        .hr-list li {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 10px 0;
            border-bottom: 1px solid #1e293b;
            font-size: 15px;
            transition: background-color 0.12s ease;
        }
        .hr-list li:last-child { border-bottom: none; }
        .hr-list .rank {
            flex: 0 0 2.75rem;
            text-align: right;
            font-variant-numeric: tabular-nums;
            font-weight: 700;
            color: #EAD439;
        }
        .hr-list .rank.muted {
            color: #64748b;
            font-weight: 600;
        }
        .hr-list .body {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
        }
        .hr-list-top {
            display: block;
            line-height: 1.45;
        }
        .hr-hr-streak-box {
            max-width: 100%;
            overflow-x: auto;
            padding-bottom: 2px;
        }
        .hr-hr-streak-title {
            margin: 0 0 4px 0;
            font-size: 11px;
            font-weight: 700;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
        .hr-hr-streak-box {
            --hr-streak-cols: 1;
        }
        .hr-hr-streak-grid {
            display: grid;
            gap: 3px;
            justify-content: start;
            grid-template-columns: repeat(var(--hr-streak-cols, 1), 14px);
        }
        .hr-hr-streak-cell {
            width: 14px;
            height: 14px;
            box-sizing: border-box;
            border: 2px solid #cbd5e1;
            border-radius: 2px;
            background: transparent;
        }
        .hr-hr-streak-cell--hr {
            background: #22c55e;
            border-color: #14532d;
        }
        .hr-hr-streak-axis {
            display: flex;
            justify-content: space-between;
            margin-top: 4px;
            font-size: 10px;
            color: #94a3b8;
            box-sizing: border-box;
            width: calc(var(--hr-streak-cols, 1) * 14px + max(0px, calc((var(--hr-streak-cols, 1) - 1) * 3px)));
            max-width: 100%;
        }
        .hr-list li.is-hr-plot-hover {
            background: rgba(234, 212, 57, 0.14);
            border-radius: 8px;
            padding-left: 10px;
            padding-right: 10px;
            margin-left: -10px;
            margin-right: -10px;
        }
        .hr-list li.is-hr-plot-hover .rank {
            color: #fef08a;
        }
        .hr-list li.is-hr-plot-hover .rank.muted {
            color: #fcd34d;
        }
        .hr-list li.is-hr-plot-hover .hr-hitter-name {
            color: #fefce8;
        }
        .hr-list li.is-hr-plot-hover .team {
            color: #cbd5e1;
        }
        .hr-list li.is-hr-plot-hover .hr-game-meta {
            color: #e2e8f0;
        }
        .hr-list .team { color: #94a3b8; font-size: 0.88rem; margin-left: 6px; }
        .hr-list .hr-game-meta { color: #cbd5e1; font-size: 0.86rem; margin-left: 8px; }
        .notice { color: #fbbf24; margin-top: 12px; font-size: 0.9rem; }
        .err { color: #f97373; font-size: 0.9rem; margin: 8px 0 0 0; }
        .copy { color: #64748b; font-size: 0.75rem; margin-top: 16px; line-height: 1.4; }
        .status-pill {
            display: inline-block;
            margin-left: 8px;
            padding: 2px 8px;
            border-radius: 999px;
            font-size: 0.72rem;
            font-weight: 700;
            vertical-align: middle;
            background: #1e293b;
            color: #94a3b8;
            border: 1px solid #334155;
        }
        .status-pill.is-final { background: #14532d; color: #bbf7d0; border-color: #166534; }
        .hr-rank-plot {
            flex: 0 1 1040px;
            min-width: 280px;
            align-self: flex-start;
        }
        .hr-rank-plot h3 {
            margin: 0 0 10px 0;
            font-size: 0.8rem;
            font-weight: 700;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }
        .hr-rank-plot svg {
            width: 100%;
            height: auto;
            max-width: 1040px;
            display: block;
        }
        .hr-rank-plot-caption {
            color: #94a3b8;
            font-size: 0.78rem;
            margin-top: 10px;
            line-height: 1.45;
            max-width: 1040px;
        }
        .hr-plot-dot { cursor: default; }
        .hr-plot-dot:hover .hr-plot-dot-visible {
            fill: #EAD439;
            stroke: #EAD439;
        }
        .hr-plot-tooltip {
            position: fixed;
            z-index: 10050;
            max-width: min(22rem, calc(100vw - 24px));
            padding: 10px 12px;
            background: #0f172a;
            border: 1px solid #334155;
            border-radius: 8px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
            font-size: 0.82rem;
            line-height: 1.45;
            color: #e2e8f0;
            pointer-events: none;
            display: none;
        }
        .hr-plot-tooltip strong { color: #EAD439; font-weight: 700; }
        .hr-plot-tooltip .hr-tip-row { margin-top: 6px; }
        .hr-plot-tooltip .hr-tip-row:first-child { margin-top: 0; }
        .hr-date-heading-row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 10px 14px;
        }
        .hr-date-nav {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            vertical-align: middle;
        }
        .hr-date-arrow {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2.25rem;
            height: 2.25rem;
            border-radius: 8px;
            background: #1e293b;
            border: 1px solid #334155;
            color: #79ABC5;
            font-size: 1.35rem;
            line-height: 1;
            text-decoration: none;
            font-weight: 700;
        }
        .hr-date-arrow:hover {
            background: #334155;
            color: #7dd3fc;
        }
        .hr-date-arrow:focus-visible {
            outline: 2px solid #79ABC5;
            outline-offset: 2px;
        }
        .hr-date-cal-trigger {
            font: inherit;
            font-size: 1.35rem;
            font-weight: 700;
            color: #EAD439;
            background: transparent;
            border: none;
            border-bottom: 1px dashed rgba(234, 212, 57, 0.45);
            padding: 2px 4px;
            margin: 0 2px;
            cursor: pointer;
            text-align: center;
        }
        .hr-date-cal-trigger:hover {
            color: #EAD439;
            border-bottom-color: #EAD439;
        }
        .hr-date-cal-trigger:focus-visible {
            outline: 2px solid #79ABC5;
            outline-offset: 3px;
            border-radius: 4px;
        }
        .hr-cal-popover {
            position: fixed;
            z-index: 10060;
            min-width: 280px;
            padding: 12px 14px 14px;
            background: #0f172a;
            border: 1px solid #334155;
            border-radius: 10px;
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
            display: none;
        }
        .hr-cal-popover.is-open {
            display: block;
        }
        .hr-cal-popover-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 10px;
        }
        .hr-cal-month-label {
            font-size: 0.95rem;
            font-weight: 700;
            color: #e2e8f0;
            flex: 1;
            text-align: center;
        }
        .hr-cal-month-nav {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2rem;
            height: 2rem;
            border-radius: 6px;
            background: #1e293b;
            border: 1px solid #334155;
            color: #94a3b8;
            font-size: 1.1rem;
            line-height: 1;
            cursor: pointer;
            padding: 0;
        }
        .hr-cal-month-nav:hover {
            color: #e2e8f0;
            background: #334155;
        }
        .hr-cal-weekdays {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 2px;
            margin-bottom: 4px;
            font-size: 0.68rem;
            font-weight: 700;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            text-align: center;
        }
        .hr-cal-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 4px;
        }
        .hr-cal-day {
            aspect-ratio: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            border: none;
            background: #1e293b;
            color: #e2e8f0;
            font-size: 0.88rem;
            font-weight: 600;
            cursor: pointer;
            padding: 0;
            min-width: 0;
        }
        .hr-cal-day:hover {
            background: #334155;
            color: #fff;
        }
        .hr-cal-day.is-outside {
            background: transparent;
            color: #475569;
            font-weight: 500;
        }
        .hr-cal-day.is-outside:hover {
            background: #1e293b;
            color: #94a3b8;
        }
        .hr-cal-day.is-selected {
            background: #ca8a04;
            color: #0f172a;
        }
        .hr-cal-day.is-selected:hover {
            background: #eab308;
            color: #0f172a;
        }

/* ---- basketball/index.php [0] ---- */
h1 { color: #EAD439; }
        .meta { color: #94a3b8; font-size: 0.95rem; line-height: 1.55; margin: 0 0 14px 0; }
        ul { margin: 0; padding-left: 1.25rem; color: #e5e7eb; line-height: 1.7; }
        a { color: #79ABC5; }

/* ---- basketball/games_live_body.php [0] ---- */
h1 { color: #EAD439; }
        .meta { color: #94a3b8; font-size: 0.9rem; line-height: 1.55; margin: 0 0 12px 0; }
        .btn {
            display: inline-block;
            padding: 9px 16px;
            font-size: 13px;
            font-weight: 600;
            color: #e5e7eb;
            text-decoration: none;
            border: 1px solid #334155;
            border-radius: 6px;
            background: #111827;
        }
        .btn:hover { color: #EAD439; border-color: #EAD439; background: #1e293b; }
        .err { color: #f97373; margin: 8px 0; }
        .ok { color: #86efac; margin: 8px 0; font-size: 0.9rem; }
        .warn { color: #fbbf24; margin: 8px 0; font-size: 0.9rem; }
        .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
        table.nba-games {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
        }
        table.nba-games th,
        table.nba-games td {
            text-align: left;
            padding: 8px 10px;
            border-bottom: 1px solid #1e293b;
        }
        table.nba-games th {
            color: #EAD439;
            font-weight: 700;
            background: #0f172a;
            white-space: nowrap;
        }
        table.nba-games td.num { text-align: right; font-variant-numeric: tabular-nums; }
        table.nba-games th.num-ctr,
        table.nba-games td.num-ctr { text-align: center; font-variant-numeric: tabular-nums; }
        table.nba-games td.nba-date-cell { vertical-align: middle; }
        table.nba-games td.nba-next-cell { vertical-align: middle; white-space: nowrap; }
        table.nba-games td.nba-brand-cell,
        table.nba-games th.nba-brand-th {
            vertical-align: middle;
            width: 3.25rem;
            padding: 4px 8px;
        }
        table.nba-games .nba-brand-img {
            display: block;
            margin: 0 auto;
            max-width: 100%;
            height: auto;
            max-height: 2.75rem;
            object-fit: contain;
        }
        table.nba-games th.nba-brand-th .nba-brand-img--header {
            max-height: 2rem;
            opacity: 0.85;
        }
        table.nba-games td.nba-dn-cell {
            vertical-align: middle;
            color: #94a3b8;
            font-size: 0.9rem;
            white-space: nowrap;
        }
        table.nba-games th.nba-sort-th { font-weight: 700; }
        table.nba-games a.nba-sort-link {
            color: inherit;
            text-decoration: none;
            border-bottom: 1px dotted #64748b;
        }
        table.nba-games a.nba-sort-link:hover { color: #EAD439; border-bottom-color: #EAD439; }
        table.nba-games th.nba-sort-active a.nba-sort-link { color: #EAD439; border-bottom-color: #EAD439; }
        table.nba-games td.nba-stacked-cell { padding: 0; vertical-align: middle; }
        table.nba-games .nba-stack-line {
            padding: 7px 10px;
            box-sizing: border-box;
            min-height: 2.1em;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        table.nba-games .nba-matchup-col .nba-stack-line { justify-content: flex-start; }
        table.nba-games .nba-stack-line + .nba-stack-line { border-top: 1px solid #1e293b; }
        table.nba-games .nba-stack-line.nba-win { background-color: #03260d; }
        code { color: #94a3b8; }
        a { color: #79ABC5; }
        .load-more-wrap {
            text-align: center;
            margin: 22px 0 10px;
        }
        .load-more-btn {
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            padding: 10px 20px;
            font: inherit;
            font-size: 14px;
            font-weight: 600;
            color: #79ABC5;
            background: transparent;
            border: none;
            border-radius: 8px;
            cursor: pointer;
        }
        .load-more-btn:hover:not(:disabled) { color: #EAD439; background: rgba(121, 171, 197, 0.08); }
        .load-more-btn:disabled { opacity: 0.45; cursor: not-allowed; }
        .load-more-btn .load-more-arrow {
            font-size: 1.35rem;
            line-height: 1;
        }
        .team-filter-bar {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 10px 14px;
            margin: 18px 0 16px;
            padding: 12px 14px;
            background: #0f172a;
            border-radius: 8px;
            border: 1px solid #1e293b;
        }
        .team-filter-bar label {
            font-weight: 600;
            color: #e5e7eb;
        }
        .team-filter-bar select {
            min-width: 220px;
            max-width: 100%;
            padding: 8px 10px;
            font-size: 14px;
            color: #e5e7eb;
            background: #020617;
            border: 1px solid #334155;
            border-radius: 6px;
        }
        .team-filter-bar select:focus {
            outline: none;
            border-color: #EAD439;
        }
        .filter-note { margin: 0 0 12px 0; color: #94a3b8; font-size: 0.9rem; }

/* ---- nba/games_archive_body.php [0] ---- */
h1 { color: #EAD439; }
        .meta { color: #94a3b8; font-size: 0.9rem; line-height: 1.55; margin: 0 0 12px 0; }
        .err { color: #f97373; margin: 8px 0; }
        .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
        table.nba-games {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
        }
        table.nba-games th,
        table.nba-games td {
            text-align: left;
            padding: 8px 10px;
            border-bottom: 1px solid #1e293b;
        }
        table.nba-games th {
            color: #EAD439;
            font-weight: 700;
            background: #0f172a;
            white-space: nowrap;
        }
        table.nba-games td.num { text-align: right; font-variant-numeric: tabular-nums; }
        table.nba-games th.num-ctr,
        table.nba-games td.num-ctr { text-align: center; font-variant-numeric: tabular-nums; }
        table.nba-games td.nba-date-cell { vertical-align: middle; }
        table.nba-games td.nba-next-cell { vertical-align: middle; white-space: nowrap; }
        table.nba-games td.nba-dn-cell {
            vertical-align: middle;
            color: #94a3b8;
            font-size: 0.9rem;
            white-space: nowrap;
        }
        table.nba-games th.nba-sort-th { font-weight: 700; }
        table.nba-games a.nba-sort-link {
            color: inherit;
            text-decoration: none;
            border-bottom: 1px dotted #64748b;
        }
        table.nba-games a.nba-sort-link:hover { color: #EAD439; border-bottom-color: #EAD439; }
        table.nba-games th.nba-sort-active a.nba-sort-link { color: #EAD439; border-bottom-color: #EAD439; }
        table.nba-games td.nba-stacked-cell { padding: 0; vertical-align: middle; }
        table.nba-games .nba-stack-line {
            padding: 7px 10px;
            box-sizing: border-box;
            min-height: 2.1em;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        table.nba-games .nba-matchup-col .nba-stack-line { justify-content: flex-start; }
        table.nba-games .nba-stack-line + .nba-stack-line { border-top: 1px solid #1e293b; }
        table.nba-games .nba-stack-line.nba-win { background-color: #03260d; }
        table.nba-games td.nba-brand-cell,
        table.nba-games th.nba-brand-th {
            vertical-align: middle;
            width: 3.25rem;
            padding: 4px 8px;
        }
        table.nba-games .nba-brand-img {
            display: block;
            margin: 0 auto;
            max-width: 100%;
            height: auto;
            max-height: 2.75rem;
            object-fit: contain;
        }
        table.nba-games th.nba-brand-th .nba-brand-img--header {
            max-height: 2rem;
            opacity: 0.85;
        }
        code { color: #94a3b8; }
        a { color: #79ABC5; }

/* ---- basketball/points-formula.php [0] ---- */
h1 { color: #EAD439; }
        .meta { color: #94a3b8; font-size: 0.9rem; line-height: 1.55; margin: 0 0 12px 0; }
        .err { color: #f97373; margin: 8px 0; }
        .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
        table.pf {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
        }
        table.pf th, table.pf td {
            text-align: left;
            padding: 8px 10px;
            border-bottom: 1px solid #1e293b;
            vertical-align: top;
        }
        table.pf th {
            color: #EAD439;
            font-weight: 700;
            background: #0f172a;
            white-space: nowrap;
        }
        table.pf th.pf-sort-th a.pf-sort-link {
            color: inherit;
            text-decoration: none;
            border-bottom: 1px dotted #64748b;
        }
        table.pf th.pf-sort-th a.pf-sort-link:hover { color: #EAD439; border-bottom-color: #EAD439; }
        table.pf th.pf-sort-active a.pf-sort-link { color: #EAD439; border-bottom-color: #EAD439; }
        table.pf th.num { text-align: right; }
        table.pf td.num { text-align: right; font-variant-numeric: tabular-nums; }
        code { color: #94a3b8; }
        a { color: #79ABC5; }
        ul.h2h-mini { margin: 6px 0 0 1rem; padding: 0; color: #94a3b8; font-size: 11px; line-height: 1.45; }
        details.pf-deets { margin-top: 6px; color: #94a3b8; font-size: 11px; }
        details.pf-deets summary { cursor: pointer; color: #79ABC5; }
        pre.formula {
            background: #0f172a;
            border: 1px solid #1e293b;
            border-radius: 8px;
            padding: 14px 16px;
            font-size: 12px;
            line-height: 1.5;
            overflow-x: auto;
            color: #cbd5e1;
            white-space: pre-wrap;
        }

/* ---- _inc/nba_game_dnp_tooltip.php [0] ---- */
.nba-dnp-wrap {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: help;
        outline: none;
        border-radius: 4px;
    }
    .nba-dnp-wrap:hover .nba-dnp-icon,
    .nba-dnp-wrap:focus .nba-dnp-icon {
        filter: brightness(1.15);
        box-shadow: 0 0 0 2px rgba(234, 212, 57, 0.45);
        border-radius: 4px;
    }
    .nba-dnp-tip {
        position: fixed;
        z-index: 10050;
        min-width: 220px;
        max-width: min(420px, calc(100vw - 24px));
        max-height: min(320px, 70vh);
        overflow: auto;
        padding: 10px 12px;
        background: #0f172a;
        border: 1px solid #334155;
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
        font-size: 12px;
        line-height: 1.45;
        color: #e5e7eb;
        pointer-events: none;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.12s ease;
    }
    .nba-dnp-tip.nba-dnp-tip--visible {
        visibility: visible;
        opacity: 1;
    }
    .nba-dnp-tip h4 {
        margin: 0 0 8px 0;
        font-size: 11px;
        font-weight: 700;
        color: #EAD439;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
    .nba-dnp-tip ul {
        margin: 0;
        padding-left: 1.1rem;
    }
    .nba-dnp-tip li {
        margin-bottom: 6px;
    }
    .nba-dnp-tip .nba-dnp-team {
        color: #94a3b8;
        font-weight: 600;
        margin-right: 4px;
    }
    .nba-dnp-tip .nba-dnp-muted {
        color: #94a3b8;
        font-size: 11px;
    }
