        :root {
            --accent-color: #C9A86C;
            --header-accent: #C9A86C;
            --nav-bg: #1B2A4A;

            /* ── Design System: Vintage Collegiate ── */
            /* Paper / cream */
            --cream: #F5F3EE;
            --cream-deep: #EDE9DD;
            --cream-soft: #FAF8F2;
            --paper: #FFFFFF;
            /* Navy — primary brand */
            --navy: #1B2A4A;
            --navy-deep: #0F1B33;
            --navy-soft: #2D4A6E;
            /* Brand orange / gold */
            --gold-brand: #C9A86C;
            --orange-ball: #E87C1E;
            --orange-deep: #B85C0F;
            /* Ink (text) */
            --ink: #1A1A1A;
            --ink-soft: #3A3A3A;
            --ink-muted: #6F6A5C;
            --ink-faint: #A29B86;
            /* Accents (semantic) */
            --rust: #C2422D;
            --rust-deep: #9B2F1E;
            --gold: #D4A437;
            --gold-deep: #A47C1F;
            --moss: #4A6B3A;
            --burgundy: #6B1F2E;
            /* Lines */
            --rule: #14233F;
            --rule-soft: rgba(20, 35, 63, 0.18);
            --rule-faint: rgba(20, 35, 63, 0.08);
            /* Type stacks */
            --font-display: 'Stint Ultra Condensed', 'Oswald', 'Anton', 'Impact', sans-serif;
            --font-serif: 'Roboto Slab', 'Zilla Slab', 'Rockwell', Georgia, serif;
            --font-sans: 'DM Sans', 'Helvetica Neue', system-ui, sans-serif;
            --font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'Courier New', monospace;
            --font-script: 'Alfa Slab One', 'Roboto Slab', serif;
            /* Spacing & radius */
            --r-sm: 2px;
            --r-md: 4px;
            --r-lg: 8px;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        ::-webkit-scrollbar { width: 8px; height: 8px; }
        ::-webkit-scrollbar-track { background: #F0EDE6; }
        ::-webkit-scrollbar-thumb { background: #C4B99A; border-radius: 4px; }
        ::-webkit-scrollbar-thumb:hover { background: #9E7C4A; }

        html, body { height: 100%; }

        body {
            font-family: var(--font-sans);
            background: var(--cream);
            color: var(--ink);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            text-rendering: optimizeLegibility;
        }

        /* ══════════════════════════════════════════
           DESIGN SYSTEM — Vintage Collegiate
           ══════════════════════════════════════════ */

        /* ── Typography utilities ── */
        .h-display {
            font-family: var(--font-display);
            font-weight: 400;
            letter-spacing: 0.02em;
            text-transform: uppercase;
            line-height: 0.92;
        }
        .h-slab {
            font-family: var(--font-serif);
            font-weight: 800;
            line-height: 1.05;
            letter-spacing: -0.01em;
        }
        .h-script {
            font-family: var(--font-script);
            font-weight: 400;
            letter-spacing: 0;
        }
        .eyebrow {
            font-family: var(--font-sans);
            font-weight: 700;
            font-size: 11px;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            color: var(--ink-muted);
        }
        .label-mono {
            font-family: var(--font-mono);
            font-weight: 600;
            font-size: 11px;
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }
        .numerals {
            font-family: var(--font-serif);
            font-feature-settings: "tnum" 1, "lnum" 1;
        }

        /* ── Page chrome ── */
        .page-bg {
            background: var(--cream);
            min-height: 100%;
        }

        /* ── Masthead (newspaper-style top bar) ── */
        .masthead {
            background: var(--navy);
            color: var(--cream);
            border-bottom: 4px double var(--cream);
        }
        .masthead-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 28px;
            max-width: 1380px;
            margin: 0 auto;
            border-bottom: 1px solid rgba(244, 237, 220, 0.15);
        }
        .masthead-meta {
            display: flex;
            gap: 24px;
            font-family: var(--font-mono);
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: rgba(244, 237, 220, 0.7);
        }
        .masthead-nav {
            display: flex;
            gap: 0;
            padding: 0 28px;
            max-width: 1380px;
            margin: 0 auto;
            align-items: stretch;
        }
        .masthead-nav a {
            font-family: var(--font-display);
            font-size: 15px;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--cream);
            text-decoration: none;
            padding: 14px 20px;
            border-right: 1px solid rgba(244, 237, 220, 0.15);
            transition: background 0.15s;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .masthead-nav a:first-child { border-left: 1px solid rgba(244, 237, 220, 0.15); }
        .masthead-nav a:hover { background: var(--navy-soft); }
        .masthead-nav a.active {
            background: var(--cream);
            color: var(--navy);
        }
        .masthead-nav .spacer { flex: 1; border-right: 1px solid rgba(244, 237, 220, 0.15); }
        .masthead-nav .ask-ai {
            background: var(--rust);
            color: var(--cream);
        }
        .masthead-nav .ask-ai:hover { background: var(--rust-deep); }

        /* ── Section headers ── */
        .section-header {
            display: flex;
            align-items: baseline;
            gap: 16px;
            margin-bottom: 24px;
            border-bottom: 3px solid var(--navy);
            padding-bottom: 12px;
        }
        .section-header h2 {
            margin: 0;
            font-family: var(--font-display);
            font-size: 36px;
            letter-spacing: 0.01em;
            text-transform: uppercase;
            color: var(--navy);
        }
        .section-header .kicker {
            font-family: var(--font-mono);
            font-size: 11px;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            color: var(--ink-muted);
        }
        .section-header .more {
            margin-left: auto;
            font-family: var(--font-display);
            font-size: 14px;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--navy);
            text-decoration: none;
            border-bottom: 2px solid var(--navy);
            cursor: pointer;
        }

        /* ── Cards ── */
        .ds-card {
            background: var(--paper);
            border: 1px solid var(--rule-soft);
            border-radius: var(--r-md);
            padding: 20px;
        }
        .ds-card-bordered {
            background: var(--paper);
            border: 2px solid var(--navy);
            border-radius: var(--r-md);
        }

        /* ── Buttons ── */
        .ds-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-family: var(--font-display);
            font-size: 15px;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            padding: 14px 24px;
            border: 2px solid var(--navy);
            background: var(--navy);
            color: var(--cream);
            cursor: pointer;
            border-radius: var(--r-md);
            text-decoration: none;
            transition: all 0.15s;
        }
        .ds-btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
        .ds-btn-primary {
            background: var(--rust);
            border-color: var(--rust);
            color: var(--cream);
        }
        .ds-btn-primary:hover { background: var(--rust-deep); border-color: var(--rust-deep); }
        .ds-btn-ghost {
            background: transparent;
            color: var(--navy);
        }
        .ds-btn-ghost:hover { background: var(--navy); color: var(--cream); }

        /* ── Pills / badges ── */
        .ds-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-family: var(--font-mono);
            font-size: 10px;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            padding: 4px 8px;
            border: 1px solid var(--navy);
            border-radius: 2px;
            color: var(--navy);
            background: transparent;
        }
        .ds-pill-filled { background: var(--navy); color: var(--cream); }
        .ds-pill-rust { background: var(--rust); color: var(--cream); border-color: var(--rust); }
        .ds-pill-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
        .ds-pill-moss { background: var(--moss); color: var(--cream); border-color: var(--moss); }

        /* ── Data tables ── */
        .ds-table {
            width: 100%;
            border-collapse: collapse;
            font-family: var(--font-sans);
            font-size: 14px;
        }
        .ds-table thead th {
            font-family: var(--font-mono);
            font-weight: 700;
            font-size: 10px;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            text-align: left;
            padding: 12px 14px;
            color: var(--ink-muted);
            border-bottom: 2px solid var(--navy);
            background: var(--cream-deep);
        }
        .ds-table tbody td {
            padding: 12px 14px;
            border-bottom: 1px solid var(--rule-soft);
            color: var(--ink);
        }
        .ds-table tbody tr:hover td {
            background: var(--cream-deep);
        }
        .ds-table .num {
            font-family: var(--font-serif);
            font-feature-settings: "tnum" 1, "lnum" 1;
            font-weight: 700;
            text-align: right;
        }
        .ds-table .rank {
            font-family: var(--font-display);
            font-size: 18px;
            color: var(--ink-muted);
            width: 40px;
        }

        /* ── Stat boxes ── */
        .ds-statbox {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .ds-statbox .num {
            font-family: var(--font-display);
            font-size: 56px;
            line-height: 0.95;
            color: var(--navy);
        }
        .ds-statbox .label {
            font-family: var(--font-mono);
            font-size: 10px;
            letter-spacing: 0.16em;
            text-transform: uppercase;
            color: var(--ink-muted);
        }

        /* ── Team crest (circular mark) ── */
        .ds-crest {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            flex-shrink: 0;
            overflow: hidden;
        }
        .ds-crest img { width: 100%; height: 100%; object-fit: contain; }
        .ds-crest.sm { width: 32px; height: 32px; }
        .ds-crest.md { width: 48px; height: 48px; }
        .ds-crest.lg { width: 96px; height: 96px; }
        .ds-crest.xl { width: 140px; height: 140px; }

        /* ── Decorative ── */
        .divider-stars {
            display: flex;
            align-items: center;
            gap: 16px;
            color: var(--navy);
            font-size: 14px;
        }
        .divider-stars::before,
        .divider-stars::after {
            content: "";
            flex: 1;
            height: 1px;
            background: var(--navy);
        }
        .divider-stars .stars {
            letter-spacing: 8px;
            font-size: 12px;
        }
        .stamp {
            display: inline-block;
            font-family: var(--font-display);
            letter-spacing: 0.06em;
            text-transform: uppercase;
            border: 3px solid currentColor;
            padding: 4px 10px;
            transform: rotate(-3deg);
            color: var(--rust);
            border-radius: 4px;
        }

        /* ── New Footer ── */
        .ds-footer {
            background: var(--navy);
            color: var(--cream);
            padding: 40px 28px;
        }
        .ds-footer-inner {
            max-width: 1280px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            flex-wrap: wrap;
            gap: 24px;
        }

        /* ── Responsive: masthead ── */
        @media (max-width: 768px) {
            .masthead-inner { padding: 10px 16px; flex-wrap: wrap; gap: 8px; }
            .masthead-meta { display: none; }
            /* Single-row horizontally scrollable nav (never a stacked wall) */
            .masthead-nav {
                padding: 0 8px;
                flex-direction: row;
                flex-wrap: nowrap;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
            }
            .masthead-nav::-webkit-scrollbar { display: none; }
            .masthead-nav a {
                padding: 12px 12px;
                font-size: 13px;
                white-space: nowrap;
                flex-shrink: 0;
                border-right: none;
            }
            .masthead-nav a:first-child { border-left: none; }
            .masthead-nav .spacer { flex: 0 0 4px; border-right: none; }
            /* Hero wordmark: inline-styled at 120px on desktop — scale to fit */
            #home span[style*="font-size:120px"] { font-size: clamp(44px, 14vw, 64px) !important; }
            /* Safety net: nothing gets to widen the page */
            html, body { overflow-x: hidden; }
            img, svg { max-width: 100%; height: auto; }
            /* Team/coach hero: 3-col inline grid (logo | info | record) clips
               its record column at phone widths — drop the record row below. */
            div[style*="grid-template-columns:auto 1fr auto"] {
                grid-template-columns: auto 1fr !important;
                gap: 16px !important;
            }
            div[style*="grid-template-columns:auto 1fr auto"] > div:last-child {
                grid-column: 1 / -1;
                flex-direction: row !important;
                align-items: center !important;
                justify-content: space-between;
                flex-wrap: wrap;
            }
            /* Wide data tables scroll sideways instead of clipping */
            .data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
            /* Filter/tab/control rows become swipeable single rows */
            .rankings-tabs, .filter-buttons, .conference-filters, .teams-controls {
                flex-wrap: nowrap;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
            }
            .rankings-tabs::-webkit-scrollbar, .filter-buttons::-webkit-scrollbar,
            .conference-filters::-webkit-scrollbar, .teams-controls::-webkit-scrollbar { display: none; }
            .rankings-tabs > *, .filter-buttons > *, .conference-filters > *, .teams-controls > * { flex-shrink: 0; }
        }

        /* ── Homepage redesign responsive ── */
        @media (max-width: 900px) {
            #home .ds-card-bordered { padding: 24px 20px !important; }
            #home .ds-card-bordered > div:nth-child(2) {
                grid-template-columns: 1fr !important;
                gap: 16px !important;
            }
            #home .ds-card-bordered > div:nth-child(2) > div:nth-child(2) {
                /* VS column */
                display: flex; justify-content: center;
            }
            #home .ds-card-bordered > div:nth-child(2) > button {
                width: 100%;
            }
            #trendingMatchupsGrid {
                grid-template-columns: repeat(2, 1fr) !important;
            }
            #home section > div[style*="grid-template-columns:1.4fr"] {
                grid-template-columns: 1fr !important;
            }
        }
        @media (max-width: 600px) {
            #home > section:first-child { padding: 32px 16px 24px !important; }
            #home .h-display[style*="font-size: 22px"] { font-size: 16px !important; }
            #trendingMatchupsGrid {
                grid-template-columns: 1fr 1fr !important;
            }
            #home section > div > div[style*="grid-template-columns: repeat(3"] {
                grid-template-columns: 1fr !important;
            }
        }
        @media (max-width: 480px) {
            #trendingMatchupsGrid {
                grid-template-columns: 1fr !important;
            }
        }

        /* ── Upset Takeover ── */
        .upset-takeover-banner {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            padding: 0.6rem 2rem;
            color: #fff;
            font-weight: 700;
            font-size: 0.9rem;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 101;
            animation: takeoverSlideIn 0.5s ease-out;
        }
        /* Push page content down to make room for fixed banner */
        body.upset-takeover-active {
            padding-top: 52px;
        }
        .upset-takeover-banner img {
            width: 28px; height: 28px; object-fit: contain;
        }
        .upset-takeover-banner .takeover-dismiss {
            position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
            background: none; border: none; color: rgba(255,255,255,0.8); font-size: 1.2rem;
            cursor: pointer; padding: 0.25rem 0.5rem; line-height: 1;
        }
        .upset-takeover-banner .takeover-dismiss:hover { color: #fff; }
        @keyframes takeoverSlideIn {
            from { transform: translateY(-100%); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        body.upset-takeover nav {
            background: var(--header-accent);
            border-bottom-color: var(--header-accent);
        }
        body.upset-takeover .nav-links button {
            color: rgba(255,255,255,0.7);
        }
        body.upset-takeover .nav-links button.active {
            color: #fff;
            background: rgba(255,255,255,0.15);
        }
        body.upset-takeover .logo-wordmark--nav {
            color: #fff;
        }
        body.upset-takeover .nav-search input {
            border-color: rgba(255,255,255,0.3);
            color: #fff;
        }
        body.upset-takeover .nav-search input::placeholder {
            color: rgba(255,255,255,0.5);
        }
        body.upset-takeover .game-bar-team2 {
            background: var(--accent-color);
        }
        body.upset-takeover .game-matchup-button {
            background: var(--accent-color);
            color: #fff;
        }
        body.upset-takeover .stat-bar-fill {
            background: var(--accent-color);
        }
        body.upset-takeover .logo-wordmark--hero {
            color: var(--hero-text-color, #1B2A4A) !important;
        }
        body.upset-takeover .logo-wordmark--hero .logo-basketball .ball {
            fill: var(--accent-color);
            stroke: var(--accent-color);
        }
        body.upset-takeover .logo-wordmark--hero .logo-basketball .seam,
        body.upset-takeover .logo-wordmark--hero .logo-basketball .seam-curve {
            stroke: var(--hero-text-color, #1B2A4A);
            opacity: 1;
        }
        body.upset-takeover .hero-underline {
            background: var(--accent-color) !important;
        }
        body.upset-takeover .hero-logo .logo-swoosh path {
            fill: var(--accent-color) !important;
        }
        body.upset-takeover .game-matchup-button {
            background: var(--header-accent) !important;
            color: #fff !important;
        }
        body.upset-takeover .section-title {
            color: var(--accent-color);
        }
        body.upset-takeover .popular-team-card:hover {
            border-color: var(--accent-color);
        }
        body.upset-takeover .stat-card-value {
            color: var(--accent-color);
        }
        body.upset-takeover footer {
            background: var(--header-accent) !important;
            border-top-color: var(--header-accent) !important;
        }
        body.upset-takeover footer a,
        body.upset-takeover footer h3,
        body.upset-takeover footer .footer-section-title {
            color: rgba(255,255,255,0.9) !important;
        }
        body.upset-takeover footer p,
        body.upset-takeover footer .footer-description,
        body.upset-takeover footer .footer-copyright {
            color: rgba(255,255,255,0.6) !important;
        }
        body.upset-takeover footer .footer-logo {
            color: #fff !important;
        }
        body.upset-takeover .leaders-table th,
        body.upset-takeover .leaders-rank {
            color: var(--accent-color);
        }
        body.upset-takeover .compare-section {
            background: linear-gradient(135deg, color-mix(in srgb, var(--header-accent) 90%, #000), color-mix(in srgb, var(--header-accent) 70%, #000)) !important;
        }
        body.upset-takeover .compare-section .compare-button {
            background: #fff !important;
            color: var(--accent-color) !important;
        }
        body.upset-takeover .game-context-badge.upset-alert {
            border-color: var(--accent-color) !important;
        }
        body.upset-takeover .upset-watch-card {
            border-left-color: var(--accent-color) !important;
        }
        body.upset-takeover .upset-watch-label {
            color: var(--accent-color) !important;
        }
        body.upset-takeover .upset-live-dot {
            background: var(--accent-color) !important;
        }

        /* ── Navigation ── */
        nav {
            position: sticky; top: 0; z-index: 100;
            background: #1B2A4A;
            border-bottom: 3px solid var(--accent-color);
            padding: 0.75rem 2rem;
            display: flex; align-items: center; justify-content: space-between;
        }

        .nav-logo {
            display: flex; align-items: center;
            cursor: pointer; transition: opacity 0.2s ease;
        }
        .nav-logo:hover { opacity: 0.85; }

        /* ── Logo Wordmark ── */
        .logo-wordmark {
            font-family: 'Lobster', cursive;
            font-weight: 400;
            display: inline-flex;
            align-items: baseline;
            position: relative;
            white-space: nowrap;
            line-height: 1;
        }
        .logo-wordmark--nav { font-size: 1.7rem; color: #C9A86C; }
        .logo-wordmark--hero { font-size: 4rem; color: #1B2A4A; }
        .logo-basketball {
            display: inline-block;
            width: 0.58em; height: 0.58em;
            position: relative; top: -0.05em;
            margin: 0 -0.02em;
        }
        .logo-basketball circle.ball { fill: #E87C1E; stroke: #B85C0F; stroke-width: 1.2; }
        .logo-basketball .seam { stroke: #B85C0F; stroke-width: 0.8; fill: none; opacity: 0.7; }
        .logo-basketball .seam-curve { stroke: #B85C0F; stroke-width: 0.6; fill: none; opacity: 0.5; }

        /* Swoosh: i-dot continues into underline */
        .logo-swoosh-wrap {
            position: relative;
            display: inline-block;
        }
        .logo-swoosh {
            position: absolute;
            bottom: -0.25em;
            left: 0;
            width: 100%;
            height: 0.65em;
            overflow: visible;
        }

        .nav-links { display: flex; gap: 0.25rem; list-style: none; }
        .nav-links button {
            background: none; border: none; color: rgba(255,255,255,0.65);
            cursor: pointer; font-size: 0.95rem; padding: 0.5rem 1.1rem;
            border-radius: 0.375rem; transition: all 0.2s ease; font-weight: 500;
        }
        .nav-links button:hover { color: #fff; background: rgba(255,255,255,0.08); }
        .nav-links button.active { color: #C9A86C; background: rgba(201,168,108,0.15); font-weight: 600; }

        /* ── Global Nav Search ── */
        .nav-search {
            position: relative;
            margin-left: 1rem;
        }
        .nav-search input {
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.15);
            color: #fff;
            font-size: 0.9rem;
            padding: 0.45rem 0.75rem 0.45rem 2rem;
            border-radius: 0.375rem;
            width: 200px;
            transition: all 0.2s ease;
            outline: none;
        }
        .nav-search input::placeholder { color: rgba(255,255,255,0.4); }
        .nav-search input:focus {
            background: rgba(255,255,255,0.15);
            border-color: #C9A86C;
            width: 260px;
        }
        .nav-search-icon {
            position: absolute; left: 0.6rem; top: 50%; transform: translateY(-50%);
            color: rgba(255,255,255,0.4); font-size: 0.85rem; pointer-events: none;
        }
        .nav-search-dropdown {
            position: absolute; top: calc(100% + 4px); left: 0; right: 0;
            background: #fff; border-radius: 0.5rem;
            box-shadow: 0 8px 24px rgba(0,0,0,0.15);
            max-height: 320px; overflow-y: auto;
            z-index: 200; display: none;
        }
        .nav-search-dropdown.open { display: block; }
        .nav-search-item {
            display: flex; align-items: center; gap: 0.6rem;
            padding: 0.6rem 0.75rem; cursor: pointer;
            transition: background 0.15s;
        }
        .nav-search-item:hover { background: #F5F3EE; }
        .nav-search-item img { width: 24px; height: 24px; object-fit: contain; }
        .nav-search-item .name { font-weight: 600; color: #2C3345; font-size: 0.9rem; }
        .nav-search-item .conf { color: #5F6B7A; font-size: 0.78rem; }
        @media (max-width: 1024px) {
            .nav-search input { width: 140px; }
            .nav-search input:focus { width: 180px; }
        }
        @media (max-width: 768px) {
            .nav-search input { width: 110px; font-size: 0.8rem; }
            .nav-search input:focus { width: 140px; }
        }

        /* ── Container & Views ── */
        .container { max-width: 1400px; margin: 0 auto; padding: 2rem; }
        .view { display: none; }
        .view.active { display: block; }

        /* ── Hero ── */
        .hero { text-align: center; margin-bottom: 3rem; padding: 3.5rem 2rem 2rem; }
        .hero-logo { margin-bottom: 1.25rem; }
        .hero h1 { display: none; }
        .hero p { font-size: 1.15rem; color: #6B7A8D; max-width: 520px; margin: 0 auto; }

        /* ── Section Titles ── */
        .section-title {
            font-family: var(--font-display); font-size: 42px; font-weight: 400;
            letter-spacing: 0.02em; text-transform: uppercase; line-height: 0.92;
            margin-bottom: 1.75rem; color: var(--navy);
        }

        /* ── Player Spotlights ── */
        .player-spotlights-section {
            margin-bottom: 2rem;
        }
        .player-spotlights-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1rem;
        }
        .player-spotlight-game {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }
        .player-spotlight-game-header {
            text-align: center;
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: #5F6B7A;
            padding: 0.25rem 0;
        }
        .player-spotlight-card {
            background: #F5F3EE;
            border-radius: 0.75rem;
            padding: 1.25rem 1rem;
            text-align: center;
            box-shadow: 0 1px 4px rgba(0,0,0,0.06);
            transition: all 0.2s ease;
            cursor: pointer;
            border-top: 3px solid #C9A86C;
        }
        .player-spotlight-card:hover {
            box-shadow: 0 4px 16px rgba(0,0,0,0.12);
            transform: translateY(-2px);
        }
        .player-spotlight-headshot {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
            object-position: top;
            margin: 0 auto 0.75rem;
            display: block;
            background: #E8E4DD;
            border: 3px solid #C9A86C;
        }
        .player-spotlight-name {
            font-family: 'Playfair Display', serif;
            font-size: 1.05rem;
            font-weight: 700;
            color: #1B2A4A;
            margin-bottom: 0.25rem;
        }
        .player-spotlight-meta {
            font-size: 0.7rem;
            color: #5F6B7A;
            margin-bottom: 0.75rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
        }
        .player-spotlight-meta img {
            width: 16px;
            height: 16px;
        }
        .player-spotlight-stats {
            display: flex;
            justify-content: center;
            gap: 0.75rem;
        }
        .player-spotlight-stat {
            text-align: center;
        }
        .player-spotlight-stat-value {
            font-size: 1.1rem;
            font-weight: 800;
            color: #1B2A4A;
        }
        .player-spotlight-stat-label {
            font-size: 0.55rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: #5F6B7A;
        }
        .player-spotlight-vs {
            font-size: 0.65rem;
            color: #5F6B7A;
            margin-top: 0.75rem;
            font-weight: 600;
        }
        @media (max-width: 1024px) {
            .player-spotlights-grid { grid-template-columns: repeat(2, 1fr); }
        }
        @media (max-width: 600px) {
            .player-spotlights-grid { grid-template-columns: 1fr; }
        }

        /* ── Games Section ── */
        .games-section {
            margin-bottom: 3rem;
        }
        .games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; min-height: 200px; }
        @media (max-width: 1024px) {
            .games-grid { grid-template-columns: repeat(2, 1fr); }
        }
        .game-card {
            background: #FFFFFF; border: 1px solid #E0D9CC; border-radius: 0.75rem;
            padding: 1.5rem; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
            display: flex; flex-direction: column; gap: 1rem;
        }
        .game-card-header { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.5rem; }
        .game-team { display: flex; align-items: center; gap: 0.75rem; flex: 1; min-width: 0; }
        .game-team-logo { width: 40px; height: 40px; background-size: contain; background-position: center; background-repeat: no-repeat; flex-shrink: 0; }
        .game-team-info { flex: 1; min-width: 0; }
        .game-team-name { font-weight: 600; color: #2C3345; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .game-team-record { font-size: 0.8rem; color: #5F6B7A; }
        .game-vs { font-size: 0.75rem; color: #A0AAB8; font-weight: 500; text-align: center; padding: 0 0.4rem; }
        .game-team-clickable { cursor: pointer; border-radius: 0.5rem; padding: 0.25rem; margin: -0.25rem; transition: background 0.15s ease; }
        .game-team-clickable:hover { background: #F5F3EE; }
        .game-matchup-bar { display: flex; height: 12px; gap: 0; overflow: hidden; border-radius: 2px; }
        .game-bar-team1 { background: #1B2A4A; transition: flex-basis 0.5s ease; }
        .game-bar-team2 { background: #C9A86C; transition: flex-basis 0.5s ease; }
        .game-matchup-button {
            padding: 0.55rem 1rem; background: #1B2A4A; border: none;
            border-radius: 0.375rem; color: #C9A86C; font-weight: 600;
            cursor: pointer; transition: all 0.2s ease; font-size: 0.85rem;
        }
        .game-matchup-button:hover { background: #243556; transform: translateY(-1px); }
        .game-time { font-size: 0.75rem; color: #A0AAB8; text-align: center; margin-top: 0.5rem; }
        .game-scoreboard {
            display: flex; align-items: center; justify-content: center; gap: 1rem;
            padding: 0.6rem 0; margin: -0.25rem 0;
        }
        .game-score-team {
            font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1;
            min-width: 40px; text-align: center;
        }
        .game-score-divider {
            font-size: 1rem; font-weight: 600; color: #A0AAB8;
        }
        .game-score-status {
            font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
            text-align: center; margin-top: 0.15rem;
        }
        .game-score-status.live {
            color: #D32F2F; animation: livePulse 2s ease-in-out infinite;
        }
        .game-score-status.final { color: #5A6578; }
        .game-score-status.halftime { color: #E65100; }
        @keyframes livePulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
        .game-tournament-badge {
            display: flex; align-items: center; justify-content: center; gap: 0.35rem;
            padding: 0.2rem 0.6rem; border-radius: 0.3rem;
            font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
            text-align: center;
        }
        .game-tournament-badge img { height: 16px; width: auto; }
        .game-tournament-badge.ncaa { background: #E8F5E9; color: #1B6B3A; }
        .game-tournament-badge.nit { background: #FFF3E0; color: #E65100; }
        .game-round-info { font-size: 0.72rem; color: #6B7280; text-align: center; font-weight: 500; }
        .games-group-label {
            grid-column: 1 / -1; font-size: 1.1rem; font-weight: 700; color: #1B2A4A;
            padding: 0.5rem 0 0.25rem; border-bottom: 2px solid #C9A86C; margin-top: 0.5rem;
        }
        .games-group-label:first-child { margin-top: 0; }
        .games-filters { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
        .games-filter-tabs { display: flex; gap: 0.35rem; }
        .games-filter-btn {
            padding: 0.4rem 0.85rem; border: 1px solid #E0D9CC; border-radius: 0.35rem;
            background: #FFFFFF; color: #6B7A8D; font-size: 0.78rem; font-weight: 600;
            cursor: pointer; transition: all 0.15s ease;
        }
        .games-filter-btn:hover { border-color: #C9A86C; color: #1B2A4A; }
        .games-filter-btn.active { background: #1B2A4A; color: #C9A86C; border-color: #1B2A4A; }
        .games-conf-filter {
            padding: 0.4rem 0.7rem; border: 1px solid #E0D9CC; border-radius: 0.35rem;
            background: #FFFFFF; color: #2C3345; font-size: 0.78rem; font-weight: 500;
            cursor: pointer; min-width: 160px;
        }
        .ticket-link {
            display: block; text-align: center; font-size: 0.78rem; color: #9E7C4A;
            text-decoration: none; padding: 0.3rem 0; transition: all 0.2s ease;
        }
        .ticket-link:hover { color: #1B2A4A; text-decoration: underline; }

        /* ── Compare Section ── */
        .compare-section {
            background: linear-gradient(135deg, #1B2A4A 0%, #2D4A6E 100%);
            border: none; border-radius: 1rem; padding: 2rem; margin-bottom: 2.5rem;
            box-shadow: 0 8px 32px rgba(27,42,74,0.25);
        }
        .compare-controls { display: flex; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
        .compare-input-group { flex: 1; min-width: 250px; }
        .compare-input-group label {
            display: block; font-size: 0.8rem; font-weight: 700; color: #C9A86C;
            margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.06em;
        }
        .compare-input-group input {
            width: 100%; padding: 0.7rem 0.85rem; background: rgba(255,255,255,0.12);
            border: 1px solid rgba(201,168,108,0.3); border-radius: 0.5rem; color: #FFFFFF;
            font-size: 1rem; transition: all 0.2s ease;
        }
        .compare-input-group input::placeholder { color: rgba(255,255,255,0.4); }
        .compare-input-group input:focus { outline: none; border-color: #C9A86C; box-shadow: 0 0 0 3px rgba(201,168,108,0.25); background: rgba(255,255,255,0.18); }
        .compare-dropdown {
            position: absolute; top: 100%; left: 0; right: 0;
            background: var(--paper); border: 1px solid var(--rule-soft); border-radius: var(--r-md);
            max-height: 300px; overflow-y: auto; z-index: 50; margin-top: 0.25rem;
            box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        }
        .compare-dropdown-item {
            padding: 0.6rem 0.85rem; cursor: pointer; transition: background 0.15s ease;
            border-bottom: 1px solid var(--rule-faint); font-size: 0.95rem; color: var(--ink);
            display: flex; align-items: center; gap: 10px;
        }
        .compare-dropdown-item:last-child { border-bottom: none; }
        .compare-dropdown-item:hover { background: var(--cream); }
        .compare-input-wrapper { position: relative; }
        .compare-vs {
            display: flex; align-items: center; justify-content: center;
            width: 54px; height: 54px; background: rgba(201,168,108,0.15); border-radius: 50%;
            border: 2px solid #C9A86C; font-weight: 700; font-size: 0.8rem; color: #C9A86C;
        }
        .compare-button {
            padding: 0.7rem 2rem; background: #C9A86C; border: none;
            border-radius: 0.5rem; color: #1B2A4A; font-weight: 700;
            cursor: pointer; transition: all 0.2s ease; font-size: 1rem;
            box-shadow: 0 2px 12px rgba(201,168,108,0.3);
        }
        .compare-button:hover { background: #E8D5A8; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201,168,108,0.4); }
        .compare-button:disabled { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.3); cursor: not-allowed; transform: none; box-shadow: none; }

        /* ── Programs Grid ── */
        .programs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 1.25rem; margin-bottom: 3rem; }
        .program-card {
            background: #FFFFFF; border: 1px solid #E0D9CC; border-radius: 0.75rem;
            padding: 1.25rem; text-align: center; cursor: pointer; transition: all 0.25s ease;
            box-shadow: 0 1px 3px rgba(0,0,0,0.03);
        }
        .program-card:hover { border-color: #C9A86C; transform: translateY(-4px); box-shadow: 0 8px 20px rgba(201,168,108,0.15); }
        .program-logo { width: 72px; height: 72px; margin: 0 auto 0.75rem; background-size: contain; background-position: center; background-repeat: no-repeat; }
        .program-name { font-weight: 600; font-size: 0.9rem; color: #2C3345; }

        /* ── Table Shared ── */
        .wins-table, .rankings-table {
            background: var(--paper); border: 1px solid var(--rule-soft); border-radius: var(--r-md);
            overflow: hidden;
        }
        .wins-table { margin-bottom: 2rem; }
        .leaders-controls { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.75rem; }
        .leaders-filter-btn {
            padding: 6px 14px; background: var(--paper); border: 1px solid var(--rule-soft);
            border-radius: 2px; color: var(--ink-muted); cursor: pointer;
            font-family: var(--font-mono); font-size: 11px; font-weight: 600;
            letter-spacing: 0.08em; text-transform: uppercase; transition: all 0.15s;
        }
        .leaders-filter-btn:hover { border-color: var(--navy); color: var(--navy); }
        .leaders-filter-btn.active { background: var(--navy); border-color: var(--navy); color: var(--gold-brand); font-weight: 700; }
        .leaders-conf-filter { display: flex; align-items: center; gap: 0.5rem; }
        .leaders-conf-filter label {
            font-family: var(--font-mono); font-size: 10px; font-weight: 700;
            color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.1em;
        }
        .leaders-conf-filter select {
            padding: 6px 10px; background: var(--paper); border: 1px solid var(--rule-soft);
            border-radius: var(--r-md); color: var(--ink); font-family: var(--font-sans);
            font-size: 13px; cursor: pointer; transition: border-color 0.15s;
        }
        .leaders-conf-filter select:focus { outline: none; border-color: var(--navy); }
        .leaders-conf-filter select:hover { border-color: var(--navy); }
        .wins-table table, .rankings-table table { width: 100%; border-collapse: collapse; }
        .wins-table thead, .rankings-table thead { background: var(--navy); }
        .wins-table th, .rankings-table th {
            padding: 12px 14px; text-align: left; color: rgba(245,243,238,0.85);
            font-family: var(--font-mono); font-size: 10px; font-weight: 700;
            text-transform: uppercase; letter-spacing: 0.12em;
        }
        .rankings-table th, .wins-table th { cursor: pointer; user-select: none; transition: background 0.15s; }
        .rankings-table th:hover, .wins-table th:hover { background: var(--navy-soft); }
        .wins-table th.sortable:after, .rankings-table th.sortable:after {
            content: ' ▲'; font-size: 0.7rem; color: rgba(255,255,255,0.5);
            margin-left: 0.4rem;
        }
        .wins-table th.sort-asc:after, .rankings-table th.sort-asc:after { content: ' ▲'; color: rgba(255,255,255,0.9); }
        .wins-table th.sort-desc:after, .rankings-table th.sort-desc:after { content: ' ▼'; color: rgba(255,255,255,0.9); }
        .wins-table td, .rankings-table td { padding: 12px 14px; border-bottom: 1px solid var(--rule-soft); font-size: 14px; color: var(--ink); font-family: var(--font-sans); }
        .wins-table tbody tr, .rankings-table tbody tr { transition: background 0.15s; }
        .wins-table tbody tr:hover, .rankings-table tbody tr:hover { background: var(--cream-deep); }
        .wins-table tbody tr:last-child td, .rankings-table tbody tr:last-child td { border-bottom: none; }

        .team-cell { display: flex; align-items: center; gap: 0.75rem; }
        .team-logo-small { width: 30px; height: 30px; background-size: contain; background-position: center; background-repeat: no-repeat; }

        /* ── Comparison View ── */
        /* ── Comparison page — vintage collegiate ── */
        .comparison-view {
            background: var(--cream); padding: 0; margin-bottom: 0;
        }

        /* ── DS Comparison Tabs ── */
        .ds-comp-tabs {
            display: flex; gap: 0; margin: 24px 0 2rem; border-bottom: 2px solid var(--rule-soft);
        }
        .ds-comp-tab {
            flex: 1; padding: 14px 20px; background: none; border: none;
            font-family: var(--font-display); font-size: 15px; letter-spacing: 0.06em;
            text-transform: uppercase; color: var(--ink-muted); cursor: pointer;
            border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all 0.15s;
        }
        .ds-comp-tab:hover { color: var(--navy); }
        .ds-comp-tab.active { color: var(--navy); border-bottom-color: var(--team-color, var(--rust)); }

        /* ── DS Season Toggle ── */
        .ds-comp-toggle {
            display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 1.5rem;
        }
        .ds-comp-toggle-btn {
            padding: 12px 28px; border: 2px solid var(--navy); border-radius: var(--r-md);
            font-family: var(--font-display); font-size: 15px; letter-spacing: 0.06em;
            text-transform: uppercase; cursor: pointer; transition: all 0.15s;
            background: var(--paper); color: var(--navy);
        }
        .ds-comp-toggle-btn:hover { background: var(--cream-deep); }
        .ds-comp-toggle-btn.active {
            background: var(--navy); color: var(--gold-brand); border-color: var(--navy);
        }
        .ds-comp-toggle-btn.active:hover { background: var(--navy-deep); }

        /* Legacy stat-row classes (still used by some renderers) */
        .comparison-stats { display: grid; grid-template-columns: 1fr; gap: 1rem; }
        .stat-row {
            display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.25rem;
            align-items: center; padding: 1.25rem; background: var(--paper); border-radius: var(--r-md);
        }
        .stat-left, .stat-right { display: flex; align-items: center; gap: 1rem; }
        .stat-left { justify-content: flex-end; }
        .stat-bar { height: 8px; background: var(--cream-deep); border-radius: 4px; overflow: hidden; min-width: 140px; }
        .stat-bar-fill { height: 100%; transition: width 0.3s ease; }
        .stat-bar-fill.left { border-radius: 4px 0 0 4px; }
        .stat-bar-fill.right { border-radius: 0 4px 4px 0; }
        .stat-value { font-weight: 700; font-size: 1.1rem; min-width: 65px; text-align: center; color: var(--navy); }
        .stat-value.winner { color: var(--navy); font-weight: 800; }
        .stat-value.loser { color: var(--ink-faint); }
        .stat-label { font-weight: 600; color: var(--ink-muted); font-size: 0.9rem; text-align: center; min-width: 140px; }

        /* Legacy comparison classes (kept for backwards compat in sub-renderers) */
        .comparison-header {
            display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem;
            align-items: center; margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 2px solid var(--rule-soft);
        }
        .comparison-team { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; cursor: pointer; transition: transform 0.2s; }
        .comparison-team:hover { transform: scale(1.05); }
        .comparison-team:hover h3 { text-decoration: underline; }
        .comparison-team-logo { width: 90px; height: 90px; background-size: contain; background-position: center; background-repeat: no-repeat; }
        .comparison-team-info h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.15rem; color: var(--navy); }
        .comparison-team-info p { font-size: 0.9rem; color: var(--ink-muted); }
        .comparison-vs-badge { font-size: 1.4rem; font-weight: 700; color: var(--gold-brand); text-transform: uppercase; }
        .comparison-tabs { display: flex; gap: 0; margin-bottom: 2rem; border-bottom: 2px solid var(--rule-soft); }
        .comp-tab {
            flex: 1; padding: 0.85rem 1.5rem; background: none; border: none;
            font-size: 1rem; font-weight: 600; color: var(--ink-muted); cursor: pointer;
            border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all 0.2s ease;
        }
        .comp-tab:hover { color: var(--navy); }
        .comp-tab.active { color: var(--navy); border-bottom-color: var(--team-color, var(--gold-brand)); }
        .season-toggle-container {
            display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 1.5rem;
        }
        .season-toggle-btn {
            padding: 0.75rem 2rem; border: 2px solid var(--navy); border-radius: var(--r-md);
            font-size: 1.05rem; font-weight: 700; cursor: pointer; transition: all 0.2s ease;
            letter-spacing: 0.03em; background: var(--paper); color: var(--navy);
        }
        .season-toggle-btn:hover { background: var(--cream-deep); }
        .season-toggle-btn.active {
            background: var(--navy); color: var(--gold-brand); border-color: var(--navy);
        }
        .season-toggle-btn.active:hover { background: var(--navy-deep); }

        /* This Season panel */
        .this-season-panel { padding: 0; }
        .this-season-records {
            display: flex; justify-content: center; gap: 2rem; margin-bottom: 1.5rem; flex-wrap: wrap;
        }
        .this-season-team-block {
            flex: 1; min-width: 200px; max-width: 340px; text-align: center;
            background: #FAFAF7; border-radius: 10px; padding: 1.25rem 1rem;
            border: 1px solid #E8E2D6;
        }
        .this-season-team-name {
            font-size: 0.85rem; font-weight: 700; color: #5A6578; text-transform: uppercase;
            letter-spacing: 0.06em; margin-bottom: 0.5rem;
        }
        .this-season-record {
            font-size: 1.8rem; font-weight: 800; color: #1B2A4A; margin-bottom: 0.3rem;
        }
        .this-season-conf-record {
            font-size: 0.85rem; color: #5F6B7A; font-weight: 600;
        }
        .this-season-net-row {
            display: flex; justify-content: center; gap: 2rem; margin-bottom: 1.5rem; flex-wrap: wrap;
        }
        .this-season-net-block {
            text-align: center;
        }
        .this-season-net-label {
            font-size: 0.75rem; color: #5F6B7A; font-weight: 600; text-transform: uppercase;
            letter-spacing: 0.05em; margin-bottom: 0.3rem;
        }
        .this-season-section-title {
            font-size: 1rem; font-weight: 700; color: #1B2A4A; margin: 1.5rem 0 1rem;
            padding-bottom: 0.4rem; border-bottom: 2px solid #E8E2D6;
        }
        .this-season-quad-compare {
            display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem;
        }
        .this-season-quad-team {
            flex: 1; min-width: 200px; max-width: 340px;
        }
        .this-season-quad-team h4 {
            font-size: 0.8rem; font-weight: 700; color: #5A6578; text-transform: uppercase;
            letter-spacing: 0.05em; margin-bottom: 0.5rem; text-align: center;
        }
        .this-season-quad-grid {
            display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem;
        }
        .this-season-quad-card {
            background: #FAFAF7; border: 1px solid #E8E2D6; border-radius: 6px;
            padding: 0.5rem; text-align: center;
        }
        .this-season-quad-label {
            font-size: 0.7rem; font-weight: 700; color: #5F6B7A; text-transform: uppercase;
        }
        .this-season-quad-val {
            font-size: 1.1rem; font-weight: 800; color: #1B2A4A;
        }
        .this-season-h2h-notice {
            text-align: center; color: #5F6B7A; font-size: 0.9rem; padding: 1.5rem;
            background: #FAFAF7; border-radius: 8px; border: 1px solid #E8E2D6;
        }

        @media (max-width: 600px) {
            .season-toggle-container { flex-direction: column; }
            .season-toggle-btn { width: 100%; text-align: center; }
            .this-season-records { gap: 0.75rem; }
            .this-season-team-block { min-width: 140px; }
            .this-season-quad-compare { gap: 0.75rem; }
            .this-season-quad-team { min-width: 140px; }
        }

        /* ── Rankings Filters ── */
        .filter-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.75rem; }
        .filter-btn {
            padding: 0.45rem 1rem; background: #FFFFFF; border: 1px solid #D6CFC2;
            border-radius: 2rem; color: #5A6578; cursor: pointer; font-size: 0.9rem;
            font-weight: 500; transition: all 0.2s ease;
        }
        .filter-btn:hover { border-color: #C9A86C; color: #9E7C4A; }
        .filter-btn.active { background: #1B2A4A; border-color: #1B2A4A; color: #C9A86C; font-weight: 600; }

        .rank-badge {
            display: inline-flex; align-items: center; justify-content: center;
            width: 30px; height: 30px; background: #E8E2D6; border-radius: 50%;
            font-weight: 700; font-size: 0.8rem; color: #5A6578;
        }
        .rank-badge.gold {
            background: linear-gradient(135deg, #D4AF37, #E8C84A);
            color: #1B2A4A; box-shadow: 0 2px 6px rgba(212,175,55,0.25);
        }
        .rank-badge.accent { background: #1B2A4A; color: #C9A86C; }

        /* ── Teams View ── */
        .teams-controls { display: flex; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
        .teams-search { flex: 1; min-width: 250px; }
        .teams-search input {
            width: 100%; padding: 0.7rem 0.85rem; background: #FFFFFF;
            border: 1px solid #D6CFC2; border-radius: 0.5rem; color: #2C3345;
            font-size: 1rem; transition: all 0.2s ease;
        }
        .teams-search input:focus { outline: none; border-color: #C9A86C; box-shadow: 0 0 0 3px rgba(201,168,108,0.15); }
        .conference-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
        .conf-btn {
            padding: 0.4rem 0.85rem; background: #FFFFFF; border: 1px solid #D6CFC2;
            border-radius: 2rem; color: #6B7A8D; cursor: pointer; font-size: 0.8rem;
            font-weight: 500; transition: all 0.2s ease;
        }
        .conf-btn:hover { border-color: #C9A86C; color: #9E7C4A; }
        .conf-btn.active { background: #1B2A4A; border-color: #1B2A4A; color: #C9A86C; font-weight: 600; }

        .teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1.25rem; }
        .team-card {
            background: #FFFFFF; border: 1px solid #E0D9CC; border-radius: 0.75rem;
            padding: 1.25rem; text-align: center; cursor: pointer; transition: all 0.25s ease;
            position: relative; box-shadow: 0 1px 3px rgba(0,0,0,0.03);
        }
        .team-card:hover { border-color: #C9A86C; transform: translateY(-4px); box-shadow: 0 8px 20px rgba(201,168,108,0.15); }
        .team-logo { width: 72px; height: 72px; margin: 0 auto 0.75rem; background-size: contain; background-position: center; background-repeat: no-repeat; }
        .team-name { font-weight: 600; font-size: 0.9rem; color: #2C3345; margin-bottom: 0.35rem; }
        .team-conf { font-size: 0.78rem; color: #5F6B7A; }
        .data-pending {
            position: absolute; top: 0.4rem; right: 0.4rem; background: #A0AAB8;
            color: #fff; padding: 0.2rem 0.5rem; border-radius: 0.2rem;
            font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
        }

        /* ── Team Profile ── */
        .profile-header {
            background: #FFFFFF; border: 1px solid #E0D9CC; border-radius: 0.75rem;
            padding: 2rem; margin-bottom: 2rem; display: grid;
            grid-template-columns: auto 1fr; gap: 2rem; align-items: start;
            box-shadow: 0 1px 4px rgba(0,0,0,0.04);
        }
        .profile-logo-section { display: flex; flex-direction: column; align-items: center; gap: 1rem; min-width: 140px; }
        .profile-logo { width: 130px; height: 130px; background-size: contain; background-position: center; background-repeat: no-repeat; }
        .profile-info h2 { font-size: 1.9rem; font-weight: 700; color: #1B2A4A; margin-bottom: 0.4rem; }
        .profile-meta { display: flex; flex-direction: column; gap: 0.4rem; color: #6B7A8D; margin-bottom: 1.25rem; }
        .profile-records { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-top: 0.75rem; }
        .profile-record {
            background: #F5F3EE; padding: 0.85rem 1rem; border-radius: 0.5rem;
            border-left: 3px solid #C9A86C;
        }
        .profile-record-label { font-size: 0.75rem; color: #5F6B7A; text-transform: uppercase; font-weight: 700; margin-bottom: 0.2rem; }
        .profile-record-value { font-size: 1.4rem; font-weight: 800; color: #1B2A4A; }

        .profile-bg {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            z-index: -2; background-size: cover; background-position: center center;
            opacity: 0; pointer-events: none; transition: opacity 0.6s ease;
        }
        .profile-bg-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            z-index: -1; pointer-events: none;
        }

        .stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.5rem; max-width: 100%; box-sizing: border-box; }
        .stat-card {
            background: #FFFFFF; border: 1px solid #E0D9CC; border-radius: 0.75rem;
            padding: 1.25rem; text-align: center; transition: all 0.25s ease;
            box-shadow: 0 1px 3px rgba(0,0,0,0.03);
        }
        .stat-card:hover { border-color: #C9A86C; transform: translateY(-3px); }
        .stat-card-value { font-size: 2.25rem; font-weight: 800; color: #1B2A4A; margin-bottom: 0.35rem; }
        .stat-card-label { font-size: 0.78rem; color: #5F6B7A; text-transform: uppercase; font-weight: 700; margin-bottom: 0.6rem; }
        .stat-card-rank {
            display: inline-block; padding: 0.2rem 0.65rem; background: #F0EDE6;
            border-radius: 0.2rem; font-size: 0.72rem; font-weight: 700; color: #9E7C4A;
        }
        .stat-card-rank.gold { background: linear-gradient(135deg, #D4AF37, #E8C84A); color: #1B2A4A; }
        .stat-card-rank.accent { background: #1B2A4A; color: #C9A86C; }

        .championships-section {
            background: var(--paper); border: 1px solid var(--rule-soft); border-radius: var(--r-md);
            padding: 1.75rem; margin-bottom: 2.5rem;
        }
        .championships-section h3 {
            font-family: var(--font-display); font-size: 28px; font-weight: 400;
            letter-spacing: 0.02em; text-transform: uppercase; line-height: 0.92;
            margin: 0 0 0.85rem 0; color: var(--navy);
            padding-bottom: 10px; border-bottom: 3px solid var(--navy);
        }

        /* ── Program History ── */
        .program-history-section {
            background: var(--paper); border: 1px solid var(--rule-soft); border-radius: var(--r-md);
            padding: 1.75rem; margin-bottom: 2.5rem;
        }
        .program-history-title {
            font-family: var(--font-display); font-size: 28px; font-weight: 400;
            letter-spacing: 0.02em; text-transform: uppercase; line-height: 0.92;
            margin: 0 0 0.85rem 0; color: var(--navy); display: inline-block;
        }
        .program-history-founded {
            display: inline-block; background: var(--navy); color: var(--cream);
            font-family: var(--font-mono); font-size: 10px; font-weight: 600;
            padding: 0.2rem 0.65rem; border-radius: 2px; margin-left: 0.6rem;
            vertical-align: middle; letter-spacing: 0.1em; text-transform: uppercase;
            position: relative; top: -2px;
        }
        .program-history-blurb {
            font-size: 0.92rem; line-height: 1.65; color: var(--ink-soft); margin: 0.75rem 0 1.25rem 0;
            font-family: var(--font-sans);
        }
        .program-history-cards {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 1rem; margin-bottom: 1.25rem;
        }
        .program-history-card {
            background: var(--cream); border: 1px solid var(--rule-soft); border-radius: var(--r-md);
            padding: 1rem 1.15rem;
        }
        .program-history-card--iconic {
            background: var(--cream); border-color: var(--gold-brand);
        }
        .program-history-card-label {
            font-family: var(--font-mono); font-size: 10px; font-weight: 700;
            text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-muted);
            margin-bottom: 0.4rem;
        }
        .program-history-card--iconic .program-history-card-label {
            color: var(--gold-deep);
        }
        .program-history-card-text {
            font-size: 0.88rem; line-height: 1.55; color: var(--ink-soft);
        }
        .program-history-funfact {
            border-left: 3px solid var(--gold-brand); background: var(--cream-soft);
            border-radius: 0 var(--r-md) var(--r-md) 0; padding: 0.9rem 1.15rem;
        }
        .program-history-funfact-label {
            font-family: var(--font-mono); font-size: 10px; font-weight: 700;
            text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold-deep);
            margin-bottom: 0.35rem;
        }
        .program-history-funfact-text {
            font-size: 0.88rem; line-height: 1.55; color: var(--ink-soft);
        }

        /* ── HTSS Rankings ── */
        .htss-intro {
            color: #6B7A8D; font-size: 0.85rem; margin-bottom: 1rem; line-height: 1.6;
        }
        .htss-intro strong { color: #1B2A4A; }
        .htss-sub-tabs {
            display: flex; gap: 0.5rem; margin-bottom: 1.25rem; flex-wrap: wrap;
        }
        .htss-sub-tab {
            padding: 6px 14px; background: var(--paper); border: 1px solid var(--rule-soft);
            border-radius: 2px; color: var(--ink-muted); cursor: pointer;
            font-family: var(--font-mono); font-size: 11px; font-weight: 600;
            letter-spacing: 0.08em; text-transform: uppercase;
            transition: all 0.2s ease;
        }
        .htss-sub-tab:hover { border-color: var(--gold-brand); color: var(--gold-deep); }
        .htss-sub-tab.active { background: var(--navy); border-color: var(--navy); color: var(--gold-brand); }
        .htss-score {
            display: inline-block; padding: 0.2rem 0.6rem; border-radius: 2px;
            font-family: var(--font-mono); font-weight: 700; font-size: 11px;
            letter-spacing: 0.06em; text-transform: uppercase;
        }
        .htss-score.goat { background: var(--gold); color: var(--navy); }
        .htss-score.transcendent { background: var(--navy); color: var(--gold-brand); }
        .htss-score.elite { background: var(--moss); color: var(--cream); }
        .htss-score.very-good { background: var(--navy-soft); color: var(--cream); }
        .htss-score.good { background: var(--ink-muted); color: var(--cream); }
        .htss-score.avg { background: var(--cream-deep); color: var(--ink-muted); }
        .htss-components {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
            gap: 0.5rem; margin-top: 0.5rem;
        }
        .htss-component {
            text-align: center; padding: 0.4rem; background: var(--cream); border-radius: var(--r-md);
            font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em;
            text-transform: uppercase; color: var(--ink-muted);
        }
        .htss-component-val {
            font-family: var(--font-serif); font-weight: 700; font-size: 0.85rem; color: var(--navy);
            display: block; font-feature-settings: "tnum" 1, "lnum" 1;
        }
        .htss-era-tabs {
            display: flex; gap: 0.4rem; margin-bottom: 1rem; flex-wrap: wrap;
        }
        .htss-era-tab {
            padding: 5px 12px; background: var(--paper); border: 1px solid var(--rule-soft);
            border-radius: 2px; color: var(--ink-muted); cursor: pointer;
            font-family: var(--font-mono); font-size: 10px; font-weight: 600;
            letter-spacing: 0.08em; text-transform: uppercase;
            transition: all 0.2s ease;
        }
        .htss-era-tab:hover { border-color: var(--gold-brand); color: var(--gold-deep); }
        .htss-era-tab.active { background: var(--navy); border-color: var(--navy); color: var(--gold-brand); }
        .htss-program-expand {
            cursor: pointer; color: var(--gold-brand); font-family: var(--font-mono);
            font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
            margin-left: 0.5rem; transition: color 0.2s;
        }
        .htss-program-expand:hover { color: var(--gold-deep); }
        .htss-program-top5 {
            display: none; padding: 0.5rem 0 0 2.5rem;
        }
        .htss-program-top5.open { display: block; }
        .htss-program-top5 table {
            width: 100%; font-size: 0.82rem; border-collapse: collapse;
        }
        .htss-program-top5 td {
            padding: 0.3rem 0.6rem; border-bottom: 1px solid var(--rule-faint); color: var(--ink-soft);
        }

        /* ── Time Machine ── */
        .tm-intro {
            color: var(--ink-muted); font-size: 0.85rem; margin-bottom: 1.5rem; line-height: 1.6;
        }
        .tm-grid {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
            gap: 1.5rem;
        }
        .tm-card {
            background: var(--paper); border: 1px solid var(--rule-soft); border-radius: var(--r-md);
            overflow: hidden;
        }
        .tm-card:hover { }
        .tm-card-header {
            background: var(--navy); color: var(--cream); padding: 1rem 1.25rem;
            font-family: var(--font-display); font-size: 18px; font-weight: 400;
            letter-spacing: 0.04em; text-transform: uppercase; text-align: center;
        }
        .tm-card-header span { color: var(--gold-brand); }
        .tm-card-body { padding: 1.25rem; }
        .tm-share { text-align: center; margin-top: 0.9rem; }
        .tm-share-btn {
            font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
            color: var(--navy); background: transparent; border: 1.5px solid var(--navy); border-radius: 999px;
            padding: 7px 16px; cursor: pointer; transition: background 0.15s, color 0.15s;
        }
        .tm-share-btn:hover { background: var(--navy); color: var(--cream); }
        .tm-matchup-row {
            display: flex; align-items: center; justify-content: space-between;
            margin-bottom: 1rem; gap: 0.75rem;
        }
        .tm-team {
            flex: 1; text-align: center;
        }
        .tm-team-logo {
            width: 48px; height: 48px; background-size: contain; background-repeat: no-repeat;
            background-position: center; margin: 0 auto 0.35rem;
        }
        .tm-team-name {
            font-family: var(--font-serif); font-size: 0.78rem; font-weight: 700; color: var(--navy); line-height: 1.2;
        }
        .tm-team-info {
            font-family: var(--font-mono); font-size: 0.65rem; color: var(--ink-muted); letter-spacing: 0.04em;
        }
        .tm-score-box {
            background: var(--navy); color: var(--cream); border-radius: var(--r-md);
            padding: 0.5rem 0.75rem; text-align: center; min-width: 70px;
        }
        .tm-score-num {
            font-family: var(--font-display); font-size: 24px; font-weight: 400; letter-spacing: 0.03em;
        }
        .tm-score-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-brand); }
        .tm-prob-bar {
            height: 8px; border-radius: 4px; overflow: hidden; display: flex;
            margin-bottom: 0.75rem; background: var(--cream-deep);
        }
        .tm-prob-a { background: var(--moss); transition: width 0.4s ease; }
        .tm-prob-b { background: var(--rust); transition: width 0.4s ease; }
        .tm-prob-labels {
            display: flex; justify-content: space-between; font-family: var(--font-mono);
            font-size: 0.72rem; font-weight: 600; margin-bottom: 0.75rem;
            letter-spacing: 0.04em;
        }
        .tm-prob-labels .win { color: var(--moss); }
        .tm-prob-labels .lose { color: var(--rust); }
        .tm-factors {
            display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.2rem 0.5rem;
            font-size: 0.75rem; margin-bottom: 0.75rem;
        }
        .tm-factor-label {
            text-align: center; font-family: var(--font-mono); font-size: 10px; font-weight: 700;
            letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); padding: 0.2rem 0;
        }
        .tm-factor-a { text-align: right; font-family: var(--font-serif); color: var(--ink-muted); padding: 0.2rem 0; font-feature-settings: "tnum" 1, "lnum" 1; }
        .tm-factor-b { text-align: left; font-family: var(--font-serif); color: var(--ink-muted); padding: 0.2rem 0; font-feature-settings: "tnum" 1, "lnum" 1; }
        .tm-factor-edge { font-weight: 700; color: var(--navy); }
        .tm-narrative {
            font-family: var(--font-serif); font-size: 0.82rem; line-height: 1.55; color: var(--ink-soft);
            border-left: 3px solid var(--gold-brand); padding-left: 0.75rem;
            font-style: italic;
        }

        /* ── HTSS Profile Badge ── */
        .htss-profile-section {
            background: var(--paper); border: 1px solid var(--rule-soft); border-radius: var(--r-md);
            padding: 1.75rem; margin-bottom: 2.5rem;
        }
        .htss-profile-header {
            display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem;
        }
        .htss-profile-title {
            font-family: var(--font-display); font-size: 28px; font-weight: 400;
            letter-spacing: 0.02em; text-transform: uppercase; line-height: 0.92;
            color: var(--navy); margin: 0;
        }
        .htss-profile-best {
            display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem;
        }
        .htss-profile-stat {
            background: var(--cream); border: 1px solid var(--rule-soft); border-radius: var(--r-md);
            padding: 0.75rem 1rem; text-align: center; flex: 1; min-width: 120px;
        }
        .htss-profile-stat-label {
            font-family: var(--font-mono); font-size: 10px; font-weight: 700;
            text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-muted);
            margin-bottom: 0.3rem;
        }
        .htss-profile-stat-value {
            font-family: var(--font-display); font-size: 28px; font-weight: 400;
            color: var(--navy);
        }
        .htss-sparkline {
            display: flex; align-items: flex-end; gap: 2px; height: 40px; margin-top: 0.75rem;
        }
        .htss-sparkline-bar {
            flex: 1; min-width: 3px; max-width: 8px; border-radius: 2px 2px 0 0;
            transition: opacity 0.2s; cursor: pointer; position: relative;
        }
        .htss-sparkline-bar:hover { opacity: 0.8; }

        /* ── Tournament Resume ── */
        .tourney-resume {
            background: var(--paper); border: 1px solid var(--rule-soft); border-radius: var(--r-md);
            padding: 1.75rem; margin-bottom: 2.5rem;
        }
        .tourney-resume h3 {
            font-family: var(--font-display); font-size: 28px; font-weight: 400;
            letter-spacing: 0.02em; text-transform: uppercase; line-height: 0.92;
            margin: 0 0 1rem 0; color: var(--navy);
            padding-bottom: 10px; border-bottom: 3px solid var(--navy);
        }
        .tourney-summary {
            display: flex; flex-wrap: wrap; gap: 2rem; margin-bottom: 1.25rem;
            padding-bottom: 1rem; border-bottom: 1px solid var(--rule-soft);
        }
        .tourney-summary-stat { text-align: center; }
        .tourney-summary-value { font-family: var(--font-display); font-size: 32px; font-weight: 400; color: var(--navy); }
        .tourney-summary-label { font-family: var(--font-mono); font-size: 10px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
        .tourney-grid {
            display: grid; grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 0.5rem;
        }
        .tourney-entry {
            padding: 0.5rem 0.4rem; border-radius: 0.4rem; text-align: center;
            background: #F9F8F5; border: 1px solid #EDE9E0;
        }
        .tourney-year { font-size: 0.82rem; font-weight: 700; color: #2C3345; }
        .tourney-seed { font-size: 0.68rem; color: #5F6B7A; margin: 0.15rem 0; }
        .tourney-round {
            display: inline-block; padding: 0.15rem 0.45rem; border-radius: 0.2rem;
            font-size: 0.65rem; font-weight: 700; margin-top: 0.2rem;
        }
        .tourney-round.champ { background: linear-gradient(135deg, #D4AF37, #E8C84A); color: #1B2A4A; }
        .tourney-round.runner-up { background: #C0C0C0; color: #1B2A4A; }
        .tourney-round.ff { background: linear-gradient(135deg, #CD7F32, #E8A04A); color: #1B2A4A; }
        .tourney-round.e8 { background: #2D5A8E; color: white; }
        .tourney-round.s16 { background: #4A8BC2; color: white; }
        .tourney-round.early { background: #E8E2D6; color: #5A6578; }
        .championship-years { display: flex; flex-wrap: wrap; gap: 0.6rem; }
        .championship-badge {
            padding: 0.4rem 0.85rem; background: #1B2A4A; color: #C9A86C;
            border-radius: 0.25rem; font-weight: 700; font-size: 0.85rem;
            cursor: pointer; border: 2px solid transparent; transition: all 0.2s ease;
        }
        .championship-badge:hover {
            border-color: #C9A86C; transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(201, 168, 108, 0.3);
        }
        .champ-year-link {
            color: inherit; text-decoration: underline;
            text-decoration-color: #C9A86C; text-underline-offset: 2px;
            cursor: pointer; transition: color 0.2s ease;
        }
        .champ-year-link:hover { color: #C9A86C; }

        /* ── NBA Draft History ── */
        .draft-history-section {
            background: var(--paper); border: 1px solid var(--rule-soft); border-radius: var(--r-md);
            padding: 1.75rem; margin-bottom: 2.5rem;
        }
        .draft-history-section h3 {
            font-family: var(--font-display); font-size: 28px; font-weight: 400;
            letter-spacing: 0.02em; text-transform: uppercase; line-height: 0.92;
            margin: 0 0 1rem 0; color: var(--navy);
            padding-bottom: 10px; border-bottom: 3px solid var(--navy);
        }
        .draft-summary {
            display: flex; flex-wrap: wrap; gap: 2rem; margin-bottom: 1.25rem;
            padding-bottom: 1rem; border-bottom: 1px solid var(--rule-soft);
        }
        .draft-summary-stat { text-align: center; }
        .draft-summary-value { font-family: var(--font-display); font-size: 32px; font-weight: 400; color: var(--navy); }
        .draft-summary-label {
            font-family: var(--font-mono); font-size: 10px; color: var(--ink-muted);
            text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600;
        }
        .draft-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
        .draft-table {
            width: 100%; border-collapse: collapse; font-size: 0.88rem;
            min-width: 550px;
        }
        .draft-table th {
            text-align: left; padding: 0.6rem 0.75rem;
            font-family: var(--font-mono); font-size: 10px;
            color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.12em;
            font-weight: 700; border-bottom: 2px solid var(--navy); white-space: nowrap;
            background: var(--cream-deep);
        }
        .draft-table td {
            padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--rule-soft);
            white-space: nowrap;
        }
        .draft-table tr:nth-child(even) td { background: var(--cream-soft); }
        .draft-table tr:hover td { background: var(--cream-deep); }
        .draft-pick-badge {
            display: inline-flex; align-items: center; justify-content: center;
            width: 28px; height: 28px; border-radius: 50%; font-size: 0.75rem;
            font-weight: 700; flex-shrink: 0;
        }
        .draft-pick-badge.lottery { background: linear-gradient(135deg, #D4AF37, #E8C84A); color: #1B2A4A; }
        .draft-pick-badge.first-round { background: #1B2A4A; color: #F5F3EE; }
        .draft-pick-badge.second-round { background: #D6CFC2; color: #5A6578; }
        .draft-no1-badge {
            display: inline-block; padding: 0.1rem 0.4rem; border-radius: 0.2rem;
            font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
            background: linear-gradient(135deg, #D4AF37, #E8C84A); color: #1B2A4A;
            margin-left: 0.4rem; vertical-align: middle; letter-spacing: 0.04em;
        }
        .draft-player-name { font-weight: 600; color: #2C3345; }
        .draft-view-all {
            display: inline-block; margin-top: 1rem; font-size: 0.82rem;
            font-weight: 600; color: #C9A86C; text-decoration: none;
            transition: color 0.2s ease;
        }
        .draft-view-all:hover { color: #B08F55; text-decoration: underline; }
        @media (max-width: 600px) {
            .draft-summary { gap: 1rem; }
            .draft-table { font-size: 0.82rem; }
            .draft-table th, .draft-table td { padding: 0.5rem 0.5rem; }
            .draft-pick-badge { width: 24px; height: 24px; font-size: 0.68rem; }
        }

        /* ── Chart ── */
        .chart-section {
            background: var(--paper); border: 1px solid var(--rule-soft); border-radius: var(--r-md);
            padding: 1.75rem; margin-bottom: 2.5rem; overflow-x: auto;
        }
        .chart-section h3 {
            font-family: var(--font-display); font-size: 28px; font-weight: 400;
            letter-spacing: 0.02em; text-transform: uppercase; line-height: 0.92;
            margin: 0 0 1.25rem 0; color: var(--navy);
            padding-bottom: 10px; border-bottom: 3px solid var(--navy);
        }
        .chart-container { position: relative; height: 400px; margin-bottom: 2rem; }
        .season-chart { width: 100%; height: 100%; }
        .chart-loading { display: flex; align-items: center; justify-content: center; height: 300px; color: #5F6B7A; font-size: 1rem; }
        .chart-error { display: flex; align-items: center; justify-content: center; height: 300px; color: #DC3545; font-size: 1rem; text-align: center; padding: 1rem; }
        /* Season-by-season year links → single-season pages */
        .season-year-link { color: inherit; text-decoration: none; border-bottom: 1px dotted #C9A86C; cursor: pointer; }
        .season-year-link:hover { color: #1B2A4A; border-bottom: 1px solid #1B2A4A; }
        /* Single-season page schedule */
        .season-sched-row { cursor: default; }
        .season-sched-row.expandable { cursor: pointer; }
        .season-sched-row.expandable:hover td { background: #F5F2EA; }
        .season-sched-row td { padding: 0.5rem 0.75rem; border-bottom: 1px solid #F0EDE6; color: #2C3345; }
        .season-expand-icon { font-size: 0.6rem; color: #A0AAB8; transition: transform 0.25s ease; display: inline-block; }
        .season-sched-row.expanded .season-expand-icon { transform: rotate(180deg); }
        .season-chart { width: 100%; height: 100%; }
        .chart-tooltip {
            position: absolute; background: #1B2A4A; color: #FFFFFF; padding: 0.75rem 1rem;
            border-radius: 0.5rem; font-size: 0.82rem; white-space: nowrap; z-index: 10;
            pointer-events: none; box-shadow: 0 4px 16px rgba(0,0,0,0.25); min-width: 160px;
            line-height: 1.4;
        }
        .chart-tooltip::before {
            content: ''; position: absolute; bottom: -4px; left: 50%;
            transform: translateX(-50%); width: 0; height: 0;
            border-left: 5px solid transparent; border-right: 5px solid transparent;
            border-top: 5px solid #1B2A4A;
        }

        /* ── Coaching ── */
        .coaching-section {
            background: var(--paper); border: 1px solid var(--rule-soft); border-radius: var(--r-md);
            padding: 1.75rem; margin-bottom: 2.5rem;
        }
        .coaching-section h3 {
            font-family: var(--font-display); font-size: 28px; font-weight: 400;
            letter-spacing: 0.02em; text-transform: uppercase; line-height: 0.92;
            margin: 0 0 1.25rem 0; color: var(--navy);
            padding-bottom: 10px; border-bottom: 3px solid var(--navy);
        }
        .coach-item { padding: 0.85rem 0; border-bottom: 1px solid var(--rule-faint); }
        .coach-item:last-child { border-bottom: none; }
        .coach-main-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.3rem; }
        .coach-name { font-family: var(--font-serif); font-weight: 700; color: var(--navy); }
        .coach-years { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); letter-spacing: 0.06em; }
        .coach-record-row { display: flex; gap: 1.5rem; font-size: 0.82rem; color: var(--ink-muted); }
        .coach-record { font-family: var(--font-serif); font-weight: 600; font-feature-settings: "tnum" 1, "lnum" 1; }
        .coach-best { font-style: italic; font-family: var(--font-serif); }
        .coach-rank-badge {
            display: inline-block; padding: 0.15rem 0.5rem; margin-left: 0.5rem;
            background: var(--gold); color: var(--navy);
            border-radius: 2px; font-family: var(--font-mono); font-size: 10px;
            font-weight: 700; cursor: pointer; vertical-align: middle;
            letter-spacing: 0.06em;
        }
        .coach-rank-badge:hover { transform: scale(1.05); }

        /* Coaches tier pills */
        .coaches-tier-pill { cursor: pointer; font-size: 12px; transition: all 0.15s; }
        .coaches-tier-pill.active { background: var(--navy); color: var(--cream); }

        /* Coaches tier badges */
        .coach-tier-badge {
            display: inline-block; padding: 2px 8px; font-family: var(--font-mono);
            font-size: 9px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
            border-radius: 2px; line-height: 1.4; vertical-align: middle; margin-left: 8px;
        }
        .coach-tier-badge.goat { background: var(--gold-brand); color: var(--navy); }
        .coach-tier-badge.elite { background: var(--rust); color: var(--cream); }
        .coach-tier-badge.legend { background: var(--moss); color: var(--cream); }
        .coach-tier-badge.great { background: transparent; color: var(--ink-soft); border: 1px solid var(--rule); }

        /* Coaches stat cards */
        .coaches-stat-card {
            border: 2px solid var(--navy); border-radius: var(--r-md); padding: 20px 18px;
        }

        @media (max-width: 768px) {
            #coachesStatCards { grid-template-columns: repeat(2, 1fr) !important; }
            #coaches .card-bordered > div { flex-direction: column; }
            #coaches .card-bordered > div > div:last-child { grid-template-columns: 1fr !important; }
            #coaches .card-bordered > div > div:last-child span.h-display { display: none; }
        }

        /* ── Compare-With ── */
        .compare-with-section {
            background: var(--paper); border: 1px solid var(--rule-soft); border-radius: var(--r-md);
            padding: 1.75rem;
        }
        .compare-with-section h3 {
            font-family: var(--font-display); font-size: 28px; font-weight: 400;
            letter-spacing: 0.02em; text-transform: uppercase; line-height: 0.92;
            margin: 0 0 0.85rem 0; color: var(--navy);
            padding-bottom: 10px; border-bottom: 3px solid var(--navy);
        }
        .compare-with-input { display: flex; gap: 0.75rem; }
        .compare-with-input input {
            flex: 1; padding: 0.7rem 0.85rem; background: var(--cream);
            border: 2px solid var(--rule-soft); border-radius: var(--r-md); color: var(--ink); font-size: 1rem;
            font-family: var(--font-sans); transition: all 0.2s ease;
        }
        .compare-with-input input:focus { outline: none; border-color: var(--navy); box-shadow: none; }
        .compare-with-button {
            padding: 0.7rem 1.5rem; background: var(--navy); border: 2px solid var(--navy);
            border-radius: var(--r-md); color: var(--gold-brand); font-family: var(--font-display);
            font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase;
            font-weight: 400; cursor: pointer; transition: all 0.15s;
        }
        .compare-with-button:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
        .compare-with-button:disabled { background: var(--ink-faint); border-color: var(--ink-faint); color: var(--cream); cursor: not-allowed; }
        .compare-dropdown-wrapper { position: relative; }
        .compare-with-dropdown {
            position: absolute; top: 100%; left: 0; right: 0;
            background: #FFFFFF; border: 1px solid #D6CFC2; border-radius: 0.5rem;
            max-height: 250px; overflow-y: auto; z-index: 50; margin-top: 0.25rem;
            box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        }
        .compare-with-dropdown-item {
            padding: 0.7rem 0.85rem; cursor: pointer; transition: background 0.15s ease;
            border-bottom: 1px solid #F0EDE6; font-size: 0.95rem; color: #2C3345;
        }
        .compare-with-dropdown-item:last-child { border-bottom: none; }
        .compare-with-dropdown-item:hover { background: #F5F3EE; }

        /* ── Bracket View ── */
        .bracket-header {
            display: flex; align-items: center; justify-content: space-between;
            margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--rule-soft);
        }
        .bracket-info { display: flex; gap: 1.5rem; align-items: center; }
        .last-updated {
            font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
            color: var(--ink-muted); background: var(--cream-soft);
            padding: 0.4rem 0.8rem; border-radius: var(--r-md); border: 1px solid var(--rule-soft);
        }
        .bracket-container {
            background: var(--paper); border: 1px solid var(--rule-soft); border-radius: var(--r-md);
            padding: 0.75rem; overflow-x: auto; overflow-y: auto; min-height: 600px;
        }
        .bracket-full {
            display: flex;
            flex-direction: column;
            gap: 0;
            width: 100%;
            max-width: 100%;
            align-items: center;
        }
        .bracket-main-grid {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            gap: 0;
            width: 100%;
            align-items: center;
        }
        .bracket-side-col {
            display: flex;
            flex-direction: column;
        }
        .bracket-center-stack {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 1.5rem;
            padding: 1rem 0.5rem;
            min-width: 180px;
        }
        .bracket-ff-box {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.25rem;
        }
        .bracket-ff-box .bracket-matchup {
            min-width: 160px;
        }
        /* Bracket region tab navigation for narrow viewports */
        .bracket-region-tabs {
            display: none;
            gap: 0; margin-bottom: 1rem; border-bottom: 2px solid var(--rule-soft);
        }
        .bracket-region-tab {
            flex: 1; padding: 0.6rem 0.75rem; background: none; border: none;
            font-family: var(--font-display); font-size: 14px; font-weight: 400;
            color: var(--ink-faint); cursor: pointer;
            letter-spacing: 0.04em; text-transform: uppercase;
            border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all 0.2s;
        }
        .bracket-region-tab:hover { color: var(--ink-soft); }
        .bracket-region-tab.active { color: var(--navy); border-bottom-color: var(--gold-brand); }
        /* Hide tabbed bracket on wide screens */
        .bracket-tabbed-content { display: none; }
        @media (max-width: 1024px) {
            .bracket-tabbed-content { display: block; }
        }
        .bracket-row {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            gap: 0;
            width: 100%;
        }
        .bracket-half {
            display: flex;
            flex-direction: column;
            gap: 0;
        }
        .bracket-half.right .bracket-region-row { flex-direction: row-reverse; }
        .bracket-region-row {
            display: flex;
            gap: 0;
            align-items: stretch;
        }
        /* Round columns: use CSS to vertically center later rounds between feeders */
        .bracket-round-col {
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            min-width: 0;
            flex: 1;
            padding: 0 4px;
            position: relative;
        }
        /* Matchup wrapper: holds the card + connector lines */
        .bracket-matchup-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            flex: 1;
        }
        .bracket-matchup-wrapper .bracket-matchup {
            width: 100%;
            margin: 3px 0;
        }
        /* ── Connector lines (left-side regions, left-to-right flow) ── */
        /* Horizontal line FROM matchup to the right (toward next round) */
        .bracket-half.left .bracket-round-col:not(.bracket-round-col-last) .bracket-matchup-wrapper::after {
            content: '';
            position: absolute;
            right: -10px;
            top: 50%;
            width: 10px;
            height: 0;
            border-top: 2px solid var(--ink-faint);
        }
        /* Horizontal line INTO matchup from the left (from previous round) */
        .bracket-half.left .bracket-round-col:not(.bracket-round-col-first) .bracket-matchup-wrapper::before {
            content: '';
            position: absolute;
            left: -10px;
            top: 50%;
            width: 10px;
            height: 0;
            border-top: 2px solid var(--ink-faint);
        }
        /* Vertical merger line on the RIGHT side of a round column (joins two feeders) */
        .bracket-half.left .bracket-round-col:not(.bracket-round-col-last) .bracket-connector-v {
            position: absolute;
            right: -10px;
            width: 0;
            border-left: 2px solid var(--ink-faint);
        }
        /* ── Connector lines (right-side regions, right-to-left flow, mirrored) ── */
        .bracket-half.right .bracket-round-col:not(.bracket-round-col-last) .bracket-matchup-wrapper::after {
            content: '';
            position: absolute;
            left: -10px;
            top: 50%;
            width: 10px;
            height: 0;
            border-top: 2px solid var(--ink-faint);
        }
        .bracket-half.right .bracket-round-col:not(.bracket-round-col-first) .bracket-matchup-wrapper::before {
            content: '';
            position: absolute;
            right: -10px;
            top: 50%;
            width: 10px;
            height: 0;
            border-top: 2px solid var(--ink-faint);
        }
        .bracket-half.right .bracket-round-col:not(.bracket-round-col-last) .bracket-connector-v {
            position: absolute;
            left: -10px;
            width: 0;
            border-left: 2px solid var(--ink-faint);
        }
        .bracket-region-label {
            text-align: center;
            font-family: var(--font-display); font-size: 16px; font-weight: 400;
            color: var(--navy); text-transform: uppercase;
            letter-spacing: 0.06em; margin-bottom: 0.5rem;
            background: var(--cream); padding: 0.4rem 0.8rem; border-radius: var(--r-md);
        }
        .bracket-round-header {
            text-align: center; font-family: var(--font-mono); font-size: 9px; font-weight: 700;
            color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.1em;
            margin-bottom: 4px; flex-shrink: 0;
        }
        .bracket-center-col {
            display: flex; flex-direction: column; justify-content: center; align-items: center;
            min-width: 120px; gap: 0.5rem; padding: 0 0.25rem;
        }
        .bracket-champ-row {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 2rem 0;
            gap: 0;
            position: relative;
            width: 100%;
        }
        .bracket-champ-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.75rem;
            position: relative;
            margin: 0 auto;
        }
        .bracket-champ-card .bracket-matchup {
            border: 3px solid var(--gold-brand);
            box-shadow: 0 6px 28px rgba(201, 168, 108, 0.4), 0 0 50px rgba(201, 168, 108, 0.12);
            min-width: 260px;
            background: var(--cream-soft);
        }
        .champ-trophy {
            width: 100px;
            height: auto;
            margin-bottom: 0.25rem;
        }
        .ff-logo {
            width: 120px;
            height: auto;
            margin-bottom: 0.5rem;
        }
        .champ-title-label {
            font-family: var(--font-display); font-size: 18px;
            font-weight: 400;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: var(--gold-brand);
        }
        .champ-subtitle {
            font-family: var(--font-mono); font-size: 9px;
            color: var(--ink-faint);
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }
        .bracket-round-label {
            font-size: 0.7rem; font-weight: 700; color: #5F6B7A;
            text-transform: uppercase; letter-spacing: 0.06em;
            text-align: center; margin-bottom: 0.3rem;
        }
        .bracket-matchup {
            background: var(--cream); border: 1px solid var(--rule-soft); border-radius: var(--r-md);
            overflow: hidden; transition: all 0.2s ease; font-size: 0.75rem;
        }
        .bracket-matchup:hover {
            border-color: var(--gold-brand);
        }
        .matchup-team {
            padding: 0.25rem 0.35rem; display: flex; align-items: center; gap: 0.25rem;
            border-bottom: 1px solid var(--rule-faint); font-size: 0.68rem; cursor: pointer;
            transition: background 0.15s ease;
        }
        .team-name-bracket { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 85px; display: inline-block; }
        .matchup-team:last-child { border-bottom: none; }
        .matchup-team.winner { background: var(--paper); font-weight: 700; color: var(--navy); }
        .matchup-team.loser { color: var(--ink-faint); opacity: 0.65; }
        .matchup-team:hover { background: var(--cream-soft); }
        .team-seed {
            font-family: var(--font-mono); font-weight: 700; color: var(--gold-brand);
            min-width: 14px; text-align: center; font-size: 0.65rem;
        }
        .team-logo-bracket { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }
        .team-name-bracket {
            flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
            font-size: 0.68rem;
        }
        .team-score {
            font-family: var(--font-serif); font-weight: 700; color: var(--navy);
            min-width: 20px; text-align: right; font-size: 0.7rem;
            font-feature-settings: "tnum" 1, "lnum" 1;
        }
        .team-score.live { animation: pulse 1.5s ease-in-out infinite; }
        @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

        /* ── Historical Context Badges ── */
        .seed-context-badge {
            font-family: var(--font-serif); font-size: 0.62rem; color: var(--ink-muted);
            background: var(--cream-soft);
            padding: 0.3rem 0.45rem; text-align: center;
            border-top: 1px solid var(--rule-faint); line-height: 1.35;
            white-space: normal; word-wrap: break-word;
        }
        .seed-context-badge.upset-alert {
            background: rgba(232, 124, 30, 0.08); color: var(--orange-deep); font-weight: 600;
            border-top-color: rgba(232, 124, 30, 0.25);
        }
        .game-card .game-context-badge {
            font-family: var(--font-serif); font-size: 0.75rem; color: var(--ink-muted);
            background: var(--cream-soft);
            border: 1px solid var(--rule-faint); border-radius: var(--r-md);
            padding: 0.35rem 0.6rem; text-align: center; line-height: 1.3;
        }
        .game-card .game-context-badge.upset-alert {
            background: rgba(232, 124, 30, 0.08); color: var(--orange-deep); font-weight: 600;
            border-color: rgba(232, 124, 30, 0.25);
        }
        .bracket-round-label {
            font-family: var(--font-mono); font-size: 10px; font-weight: 700;
            color: var(--ink-faint); text-transform: uppercase;
            letter-spacing: 0.08em; margin-bottom: 0.5rem; text-align: center;
        }

        /* ── Bracket Responsive Breakpoints ── */
        @media (max-width: 1400px) {
            .bracket-container { padding: 0.5rem; }
            .matchup-team { padding: 0.2rem 0.3rem; font-size: 0.65rem; gap: 0.2rem; }
            .team-name-bracket { max-width: 72px; font-size: 0.63rem; }
            .team-seed { min-width: 12px; font-size: 0.6rem; }
            .team-logo-bracket { width: 14px; height: 14px; }
            .team-score { font-size: 0.65rem; min-width: 18px; }
            .bracket-round-header { font-size: 0.58rem; }
            .bracket-region-label { font-size: 0.75rem; padding: 0.3rem 0.6rem; }
            .bracket-center-col { min-width: 110px; }
            .seed-context-badge { font-size: 0.55rem; padding: 0.2rem 0.3rem; }
            .bracket-round-col { padding: 0 2px; }
        }
        @media (max-width: 1024px) {
            .bracket-full { display: none; }
            .bracket-region-tabs { display: flex; }
            .bracket-tabbed-region {
                display: none;
            }
            .bracket-tabbed-region.active {
                display: block;
            }
            .bracket-tabbed-content .bracket-region-row {
                display: flex; gap: 0;
            }
            .bracket-tabbed-content .bracket-round-col {
                min-width: 0; flex: 1; padding: 0 3px;
            }
            .bracket-tabbed-content .team-name-bracket { max-width: 90px; font-size: 0.7rem; }
            .bracket-tabbed-content .matchup-team { font-size: 0.7rem; padding: 0.3rem 0.4rem; }
            .bracket-tabbed-content .team-logo-bracket { width: 18px; height: 18px; }
            .bracket-tabbed-content .bracket-champ-row { padding: 1rem 0; }
            .bracket-tabbed-content .bracket-champ-card .bracket-matchup { min-width: 200px; }
        }

        /* ── H2H / Correction Modal ── */
        .modal-overlay {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.5); display: none; z-index: 200;
            justify-content: center; align-items: center;
        }
        .modal-overlay.active { display: flex; }
        .modal {
            background: #FFFFFF; border-radius: 0.75rem; width: 90%; max-width: 500px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.2); overflow: hidden;
        }
        .modal-header {
            background: #1B2A4A; color: #fff; padding: 1.5rem; font-size: 1.3rem; font-weight: 700;
        }
        .modal-body { padding: 1.5rem; max-height: 70vh; overflow-y: auto; }
        .form-group {
            margin-bottom: 1.25rem; display: flex; flex-direction: column;
        }
        .form-group label {
            font-weight: 600; color: #1B2A4A; margin-bottom: 0.5rem; font-size: 0.95rem;
        }
        .form-group input, .form-group select, .form-group textarea {
            padding: 0.7rem 0.85rem; background: #F5F3EE; border: 1px solid #D6CFC2;
            border-radius: 0.375rem; color: #2C3345; font-size: 0.95rem; font-family: inherit;
            transition: all 0.2s ease;
        }
        .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
            outline: none; border-color: #C9A86C; box-shadow: 0 0 0 3px rgba(201,168,108,0.15);
            background: #FFFFFF;
        }
        .form-group textarea { resize: vertical; min-height: 100px; }
        .modal-footer {
            padding: 1.5rem; display: flex; gap: 1rem; justify-content: flex-end;
            border-top: 1px solid #E0D9CC; background: #F5F3EE;
        }
        .modal-btn {
            padding: 0.7rem 1.5rem; border: none; border-radius: 0.375rem; font-weight: 600;
            cursor: pointer; transition: all 0.2s ease; font-size: 0.95rem;
        }
        .modal-btn-submit {
            background: #C9A86C; color: #fff;
        }
        .modal-btn-submit:hover { background: #B89550; }
        .modal-btn-cancel {
            background: #D6CFC2; color: #1B2A4A;
        }
        .modal-btn-cancel:hover { background: #C4B99A; }
        .correction-btn {
            position: fixed; bottom: 2rem; right: 2rem; z-index: 150;
            background: #C9A86C; color: #fff; border: none; border-radius: 50%;
            width: 56px; height: 56px; font-size: 1.5rem; cursor: pointer;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15); transition: all 0.2s ease;
            display: flex; align-items: center; justify-content: center;
        }
        .correction-btn:hover { background: #B89550; transform: scale(1.1); }

        /* ── Responsive ── */
        @media (max-width: 768px) {
            /* Navigation - compact scrollable layout */
            nav {
                flex-direction: column;
                gap: 0.4rem;
                padding: 0.5rem 0.5rem 0.4rem;
                align-items: stretch;
            }
            .nav-logo { display: none; }
            .nav-links {
                gap: 0.15rem;
                width: 100%;
                justify-content: flex-start;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                -ms-overflow-style: none;
                padding-bottom: 2px;
            }
            .nav-links::-webkit-scrollbar { display: none; }
            .nav-links li { flex-shrink: 0; }
            .nav-links button {
                font-size: 0.82rem;
                padding: 0.45rem 0.75rem;
                white-space: nowrap;
            }
            .logo-wordmark--hero { font-size: 2rem; }
            .logo-swoosh { display: none; }
            /* Show hero swoosh during takeover so accent color underline is visible */
            body.upset-takeover .hero-logo .logo-swoosh { display: block; }
            /* Takeover banner mobile adjustments */
            .upset-takeover-banner {
                padding: 0.5rem 2.5rem 0.5rem 0.75rem;
                font-size: 0.78rem;
                gap: 0.5rem;
            }
            .upset-takeover-banner img { width: 22px; height: 22px; }
            body.upset-takeover-active { padding-top: 70px; }
            .nav-search {
                width: 100%;
                order: 10;
                margin-left: 0;
            }
            .nav-search input { width: 100% !important; box-sizing: border-box; font-size: 0.85rem; }

            /* Compare section - stack vertically with centered VS */
            .compare-controls {
                flex-direction: column;
                align-items: center;
                gap: 0.75rem;
            }
            .compare-input-group {
                min-width: auto;
                width: 100%;
                max-width: 280px;
            }
            .compare-input-wrapper { width: 100%; }
            .compare-input-wrapper input { width: 100%; }
            .compare-vs {
                width: 40px;
                height: 40px;
                font-size: 0.65rem;
                align-self: center;
                order: 2;
                margin: -0.5rem 0;
            }
            .compare-input-group:first-child { order: 1; }
            .compare-input-group:nth-child(2) { order: 3; }
            .compare-button {
                width: 100%;
                max-width: 280px;
                order: 4;
            }
            .compare-input-group:nth-child(3) { order: 3; }

            /* Comparison view - stack team headers and make stat rows responsive */
            .comparison-header {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            .team-header { text-align: center; }

            /* Season table - make scrollable horizontally */
            .season-table-wrapper {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
            .season-table-wrapper table {
                min-width: 600px;
                font-size: 0.75rem;
            }

            /* Profile header - stack vertically */
            .profile-header {
                grid-template-columns: 1fr;
                gap: 1rem;
                padding: 1rem;
            }
            #profile { overflow-x: hidden; position: relative; }

            /* Stats grids */
            .stats-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 0.5rem;
                max-width: 100%;
                box-sizing: border-box;
                overflow: hidden;
                width: 100%;
            }
            .stat-card {
                padding: 0.6rem 0.4rem;
                font-size: 0.7rem;
                overflow: hidden;
                box-sizing: border-box;
            }
            .stat-card-value { font-size: 1.2rem; }
            .stat-card-label { font-size: 0.55rem; word-wrap: break-word; letter-spacing: -0.02em; }

            /* Program History mobile */
            .program-history-section { padding: 1.25rem; }
            .program-history-cards { grid-template-columns: 1fr; }
            .program-history-blurb { font-size: 0.87rem; }

            /* Stat comparison rows - mobile-friendly stacked layout */
            .stat-row {
                display: flex;
                flex-direction: column;
                gap: 0.3rem;
                padding: 0.6rem 0.75rem;
            }
            .stat-label {
                text-align: center;
                width: 100%;
                order: -1;
                font-size: 0.72rem;
                min-width: 0;
                margin-bottom: 0;
                font-weight: 700;
                color: #5A6578;
            }
            .stat-left, .stat-right {
                display: flex;
                flex-direction: row;
                align-items: center;
                gap: 0.4rem;
            }
            .stat-left {
                order: 0;
                justify-content: flex-start;
            }
            .stat-right {
                order: 1;
                justify-content: flex-start;
            }
            .stat-left > div,
            .stat-right > div {
                flex: 1;
                min-width: 0;
            }
            .stat-bar {
                width: 100%;
                height: 6px;
                min-width: 0;
            }
            .stat-value {
                min-width: 38px;
                font-size: 0.85rem;
            }
            .stat-left .stat-value {
                order: -1;
                text-align: left;
            }
            .stat-right .stat-value {
                text-align: left;
            }
            /* Hide logos on narrow mobile to save space */
            .stat-left img[alt="Logo"],
            .stat-right img[alt="Logo"] {
                width: 18px !important;
                height: 18px !important;
            }
            /* Player comparison mobile fix */
            .player-comparison-header {
                flex-direction: column;
                gap: 0.75rem;
            }
            .player-comparison-pick {
                min-width: 0;
            }
            .player-comparison-stats .stat-row {
                padding: 0.5rem 0.6rem;
            }

            /* Games grid - single column, prevent overflow */
            .games-grid {
                grid-template-columns: 1fr;
                gap: 0.75rem;
            }
            .game-card { overflow: hidden; }
            .game-matchup-button { width: 100%; box-sizing: border-box; }

            /* Allow team names to wrap on mobile instead of ellipsis */
            .game-team-name {
                white-space: normal;
                overflow: visible;
                text-overflow: unset;
                line-height: 1.3;
                font-size: 0.85rem;
            }
            .game-card-header {
                gap: 0.5rem;
            }
            .game-team-logo {
                width: 36px;
                height: 36px;
            }

            /* Footer - single column */
            footer {
                flex-direction: column;
                gap: 1.5rem;
                text-align: center;
            }

            /* Programs grid */
            .programs-grid {
                grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
                gap: 0.75rem;
            }

            /* Teams controls */
            .teams-controls {
                flex-direction: column;
                gap: 0.75rem;
            }

            /* Mobile bracket: use tabbed layout from 1024px breakpoint */
            .bracket-full { display: none; }
            .bracket-container { min-height: auto; -webkit-overflow-scrolling: touch; }
            .bracket-region-tabs { display: flex; }

            /* Mobile bracket notice */
            .bracket-desktop-hint { display: block; }

            /* Correction modal and button */
            .modal {
                width: 95%;
                max-height: 90vh;
                border-radius: 0.5rem;
            }
            .modal-body {
                max-height: 60vh;
            }
            .correction-btn {
                width: 48px;
                height: 48px;
                font-size: 1.2rem;
                bottom: 1rem;
                right: 1rem;
            }
        }
        @media (max-width: 480px) {
            .correction-btn {
                width: 40px;
                height: 40px;
                font-size: 1rem;
                bottom: 0.75rem;
                right: 0.75rem;
            }
        }
        @media (max-width: 768px) {
            /* Reduce padding and margins on mobile */
            .container { padding: 0.75rem; overflow-x: hidden; }
            .section-title { font-size: 1.25rem; margin-bottom: 1rem; }
            .hero { padding: 1.5rem 1rem 1rem; margin-bottom: 1.5rem; }
            .hero p { font-size: 1rem; }

            /* Prevent any horizontal overflow */
            body { overflow-x: hidden; }

            /* Games section spacing */
            .games-section { margin-bottom: 2rem; }
            .compare-section { padding: 1.25rem; margin-bottom: 2rem; }

            /* Better mobile typography */
            .game-round-info { font-size: 0.75rem; }
            .game-tournament-badge { font-size: 0.68rem; padding: 0.25rem 0.65rem; }

            /* ── ENHANCED GAME CARDS ON MOBILE ── */
            .game-card {
                padding: 1.25rem;
                border-radius: 0.875rem;
                box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            }
            .game-scoreboard {
                padding: 0.75rem 0;
            }
            .game-score-team {
                font-size: 1.5rem;
            }

            /* ── NAV: add right padding so last item has breathing room ── */
            .nav-links::after {
                content: '';
                flex-shrink: 0;
                width: 0.5rem;
            }

            /* ── HERO POLISH ── */
            .hero {
                padding: 2rem 1rem 1.25rem;
                margin-bottom: 1rem;
            }
            .hero-logo { margin-bottom: 0.75rem; }

            /* ── GAME FILTERS MOBILE ── */
            .games-filters {
                gap: 0.5rem;
            }
            .games-conf-filter {
                width: 100%;
                min-width: unset;
                font-size: 0.85rem;
            }

            /* ── BACK BUTTON MOBILE ── */
            #backButton {
                font-size: 0.85rem;
                padding: 0.5rem 0.75rem;
            }
        }
        .bracket-desktop-hint {
            display: none; text-align: center; padding: 0.6rem 1rem;
            background: #FFFAF4; border: 1px solid #E0D9CC; border-radius: 0.375rem;
            font-size: 0.8rem; color: #9E7C4A; margin-bottom: 1rem;
        }
        /* ── Skeleton Loaders ── */
        @keyframes skeletonShimmer {
            0% { background-position: -400px 0; }
            100% { background-position: 400px 0; }
        }
        .skeleton {
            background: linear-gradient(90deg, #E8E2D6 25%, #F5F3EE 50%, #E8E2D6 75%);
            background-size: 800px 100%;
            animation: skeletonShimmer 1.5s ease-in-out infinite;
            border-radius: 0.375rem;
        }
        .skeleton-text {
            height: 14px;
            margin-bottom: 0.5rem;
            border-radius: 0.25rem;
        }
        .skeleton-text.skeleton-text--lg { height: 24px; width: 60%; }
        .skeleton-text.skeleton-text--md { height: 16px; width: 45%; }
        .skeleton-text.skeleton-text--sm { height: 12px; width: 30%; }
        .skeleton-text.skeleton-text--full { width: 100%; }
        .skeleton-circle {
            border-radius: 50%;
            flex-shrink: 0;
        }
        .skeleton-card {
            background: #FFFFFF;
            border: 1px solid #E0D9CC;
            border-radius: 0.75rem;
            padding: 1.25rem;
            box-shadow: 0 1px 3px rgba(0,0,0,0.03);
        }
        .skeleton-bar {
            height: 8px;
            border-radius: 4px;
            width: 100%;
        }

        /* ── Upsets Page ── */
        .upsets-stats-dashboard {
            display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
            margin-bottom: 2rem; max-width: 1280px; margin-left: auto; margin-right: auto;
        }
        .upsets-stat-card {
            border: 2px solid var(--navy); border-radius: var(--r-md);
            padding: 24px 20px; position: relative;
        }
        .upsets-stat-value { font-family: var(--font-display); font-size: 56px; font-weight: 400; color: var(--navy); line-height: 1; margin-bottom: 0; }
        .upsets-stat-label { font-family: var(--font-mono); font-size: 10px; color: var(--ink-muted); text-transform: uppercase; font-weight: 600; letter-spacing: 0.12em; margin-bottom: 8px; }
        .upsets-stat-sub { font-family: var(--font-serif); font-size: 13px; color: var(--ink-muted); font-style: italic; margin-top: 8px; }
        .upsets-fun-fact {
            background: linear-gradient(90deg, var(--cream-deep), var(--cream-soft));
            border: 2px solid var(--gold); border-left: 8px solid var(--gold);
            padding: 20px 28px; margin-bottom: 2rem;
            display: flex; align-items: center; gap: 24px; font-size: 17px; line-height: 1.5;
            max-width: 1280px; margin-left: auto; margin-right: auto;
        }
        .upsets-fun-fact-icon { font-family: var(--font-display); font-size: 44px; color: var(--gold-deep); line-height: 1; flex-shrink: 0; }
        .upsets-fun-fact-text { flex: 1; font-family: var(--font-serif); color: var(--ink); }
        .upsets-fun-fact-text strong { color: var(--gold-deep); }
        .upsets-fun-fact-label { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 4px; }

        .upsets-era-filters {
            display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.75rem;
        }
        .upsets-era-btn {
            padding: 6px 12px; background: transparent; border: 1px solid var(--navy);
            border-radius: 2px; color: var(--navy); cursor: pointer; font-family: var(--font-mono);
            font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
            transition: all 0.15s ease;
        }
        .upsets-era-btn:hover { background: var(--navy); color: var(--cream); }
        .upsets-era-btn.active { background: var(--navy); border-color: var(--navy); color: var(--cream); }

        .upsets-seed-grid {
            display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
            margin-bottom: 2.5rem; max-width: 1280px; margin-left: auto; margin-right: auto;
        }
        .upsets-seed-card {
            border: 2px solid var(--navy); border-radius: var(--r-md);
            padding: 18px; cursor: pointer; transition: all 0.15s ease;
            position: relative; overflow: hidden; text-align: left;
        }
        .upsets-seed-card:hover { transform: translateY(-2px); }
        .upsets-seed-card.active { background: var(--navy); color: var(--cream); border-color: var(--navy); border-width: 3px; }
        .upsets-seed-card-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
        .upsets-seed-label { font-family: var(--font-display); font-size: 32px; font-weight: 400; color: var(--navy); line-height: 1; }
        .upsets-seed-card.active .upsets-seed-label { color: var(--cream); }
        .upsets-seed-record { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust-deep); }
        .upsets-seed-card.active .upsets-seed-record { color: var(--gold-brand); }
        .upsets-seed-bar { height: 6px; background: rgba(20,35,63,0.12); border-radius: 2px; overflow: hidden; margin-bottom: 8px; }
        .upsets-seed-card.active .upsets-seed-bar { background: rgba(245,243,238,0.2); }
        .upsets-seed-bar-fill { height: 100%; border-radius: 2px; transition: width 0.5s ease; background: var(--rust); }
        .upsets-seed-card.active .upsets-seed-bar-fill { background: var(--gold-brand); }
        .upsets-seed-bar-fill.green { background: var(--rust); opacity: 0.3; }
        .upsets-seed-bar-fill.yellow { background: var(--rust); opacity: 0.5; }
        .upsets-seed-bar-fill.orange { background: var(--rust); opacity: 0.75; }
        .upsets-seed-bar-fill.red { background: var(--rust); }
        .upsets-seed-upset-count {
            font-family: var(--font-serif); font-size: 13px; font-weight: 700; color: var(--ink-soft);
        }
        .upsets-seed-card.active .upsets-seed-upset-count { color: rgba(245,243,238,0.85); }
        .upsets-seed-upset-count span { color: var(--rust); font-weight: 800; }
        .upsets-seed-card.active .upsets-seed-upset-count span { color: var(--cream); }

        .upsets-detail-section {
            background: var(--paper); border: 2px solid var(--navy); border-radius: var(--r-md);
            padding: 1.75rem; margin-bottom: 2rem;
        }
        .upsets-detail-header {
            display: flex; justify-content: space-between; align-items: baseline;
            margin-bottom: 1.25rem; padding-bottom: 12px; border-bottom: 3px solid var(--navy);
        }
        .upsets-detail-title { font-family: var(--font-display); font-size: 36px; font-weight: 400; letter-spacing: 0.01em; text-transform: uppercase; color: var(--navy); }
        .upsets-sort-btns { display: inline-flex; border: 2px solid var(--navy); border-radius: 4px; }
        .upsets-sort-btn {
            padding: 8px 16px; background: transparent; border: none;
            color: var(--navy); cursor: pointer; font-family: var(--font-mono);
            font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
            transition: all 0.15s ease;
        }
        .upsets-sort-btn:hover { background: var(--cream-deep); }
        .upsets-sort-btn.active { background: var(--navy); color: var(--cream); }

        .upsets-moment-card {
            display: flex; align-items: center; gap: 1rem; padding: 1rem;
            background: var(--cream); border-radius: var(--r-md); margin-bottom: 0.75rem;
            border: 1px solid var(--rule-soft); cursor: pointer; transition: all 0.2s ease;
        }
        .upsets-moment-card:hover { background: var(--cream-deep); transform: translateX(4px); }
        .upsets-moment-card.legendary { border-color: var(--gold); background: var(--cream-soft); }
        .upsets-moment-card.legendary:hover { background: var(--cream-deep); }
        .upsets-moment-year {
            font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; color: var(--navy); min-width: 52px; text-align: center;
        }
        .upsets-moment-teams { flex: 1; min-width: 0; }
        .upsets-moment-team-row {
            display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem;
        }
        .upsets-moment-team-row:last-child { margin-bottom: 0; }
        .upsets-moment-logo { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; border-radius: 2px; }
        .upsets-moment-seed-badge {
            display: inline-flex; align-items: center; justify-content: center;
            min-width: 22px; height: 22px; border-radius: 2px; font-family: var(--font-mono);
            font-size: 9px; font-weight: 700; padding: 0 4px; flex-shrink: 0;
            border: 1px solid var(--navy);
        }
        .upsets-moment-seed-badge.winner { background: var(--moss); color: var(--cream); border-color: var(--moss); }
        .upsets-moment-seed-badge.loser { background: transparent; color: var(--navy); }
        .upsets-moment-name { font-family: var(--font-serif); font-weight: 600; font-size: 0.88rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .upsets-moment-name.winner { font-weight: 800; }
        .upsets-moment-name.loser { color: var(--ink-muted); }
        .upsets-moment-score {
            font-family: var(--font-serif); font-weight: 700; font-size: 0.85rem; color: var(--navy); margin-left: auto; flex-shrink: 0;
            font-feature-settings: "tnum" 1, "lnum" 1;
        }
        .upsets-moment-magnitude {
            display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
            min-width: 50px; flex-shrink: 0;
        }
        .upsets-moment-magnitude-bar {
            width: 40px; height: 6px; background: var(--cream-deep); border-radius: 3px; overflow: hidden;
        }
        .upsets-moment-magnitude-fill { height: 100%; border-radius: 3px; background: var(--gold); }
        .upsets-moment-magnitude-label { font-size: 0.6rem; color: var(--ink-faint); font-weight: 600; text-transform: uppercase; }
        .upset-team-leaderboards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1rem; }
        @media (max-width: 768px) { .upset-team-leaderboards { grid-template-columns: 1fr; } }
        .upsets-no-data {
            text-align: center; padding: 2rem; color: var(--ink-muted); font-size: 0.95rem;
        }

        .seed-context-badge.clickable { cursor: pointer; transition: all 0.15s ease; }
        .seed-context-badge.clickable:hover { background: var(--cream-deep); color: var(--navy); text-decoration: underline; }
        .game-context-badge.clickable { cursor: pointer; transition: all 0.15s ease; }
        .game-context-badge.clickable:hover { background: var(--cream-deep); color: var(--navy); text-decoration: underline; }

        @media (max-width: 768px) {
            .upsets-stats-dashboard { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
            .upsets-stat-value { font-size: 32px; }
            .upsets-stat-label { font-size: 0.65rem; }
            .upsets-seed-grid { grid-template-columns: 1fr; }
            .upsets-moment-card { flex-wrap: wrap; gap: 0.5rem; padding: 0.75rem; }
            .upsets-moment-year { font-size: 1.1rem; min-width: 40px; }
            .upsets-moment-teams { min-width: 0; width: 100%; order: 2; }
            .upsets-moment-magnitude { flex-direction: row; min-width: auto; order: 3; }
            .upsets-era-filters { gap: 0.25rem; }
            .upsets-era-btn { font-size: 0.7rem; padding: 0.35rem 0.65rem; }
        }

        /* ── Tournament Resume / Classics ── */
        .resume-grid {
            display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px;
            max-width: 1280px; margin: 0 auto;
        }
        .resume-cell {
            padding: 14px 10px; min-height: 92px;
            display: flex; flex-direction: column; justify-content: space-between;
            position: relative; cursor: pointer; transition: transform 0.1s;
        }
        .resume-cell:hover { transform: scale(1.05); z-index: 2; }
        .resume-cell-year { font-family: var(--font-display); font-size: 22px; line-height: 1; }
        .resume-cell-round { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 8px; }
        .resume-cell-seed { position: absolute; top: 4px; right: 6px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; opacity: 0.55; }
        .resume-summary-strip {
            display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
            border: 2px solid var(--navy); max-width: 1280px; margin: 0 auto;
        }
        .resume-summary-cell {
            padding: 18px 16px; text-align: center; border-right: 1px solid var(--rule);
        }
        .resume-summary-cell:last-child { border-right: none; }
        .resume-summary-num { font-family: var(--font-display); font-size: 44px; line-height: 1; font-feature-settings: "tnum" 1, "lnum" 1; }
        .resume-summary-label { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-top: 6px; }
        .resume-legend {
            display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
            border-top: 1px solid var(--rule-soft); padding-top: 20px;
            max-width: 1280px; margin: 0 auto;
        }
        .resume-legend-swatch { width: 22px; height: 22px; display: inline-block; }
        .classics-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1280px; margin: 0 auto; }
        @media (max-width: 768px) {
            .resume-grid { grid-template-columns: repeat(5, 1fr); }
            .resume-summary-strip { grid-template-columns: repeat(3, 1fr); }
            .resume-summary-cell:nth-child(4), .resume-summary-cell:nth-child(5) { border-top: 1px solid var(--rule); }
            .classics-strip { grid-template-columns: 1fr; }
        }
        @media (max-width: 480px) {
            .resume-grid { grid-template-columns: repeat(4, 1fr); gap: 4px; }
            .resume-cell { min-height: 72px; padding: 10px 8px; }
            .resume-cell-year { font-size: 16px; }
            .resume-summary-strip { grid-template-columns: repeat(2, 1fr); }
        }

        /* ── Error Fallback ── */
        .error-fallback {
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            padding: 3rem 2rem; text-align: center; min-height: 200px;
        }
        .error-fallback-icon { font-size: 2.5rem; margin-bottom: 1rem; }
        .error-fallback-message {
            font-size: 1rem; color: #5A6578; margin-bottom: 1.25rem; max-width: 400px; line-height: 1.6;
        }
        .error-fallback-retry {
            padding: 0.65rem 1.5rem; background: #1B2A4A; color: #C9A86C; border: none;
            border-radius: 0.5rem; font-weight: 700; cursor: pointer; font-size: 0.9rem;
            transition: all 0.2s ease; box-shadow: 0 2px 8px rgba(27,42,74,0.15);
        }
        .error-fallback-retry:hover { background: #243556; transform: translateY(-1px); }

        /* ── Game Detail Page ── */
        .game-detail-hero {
            background: linear-gradient(135deg, #1B2A4A 0%, #0D1729 100%);
            padding: 3rem 2rem 2.5rem;
            margin: -2rem -2rem 2rem -2rem;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        .game-detail-hero::before {
            content: '';
            position: absolute; top: 0; left: 0; right: 0; bottom: 0;
            background: radial-gradient(ellipse at center, rgba(201,168,108,0.08) 0%, transparent 70%);
            pointer-events: none;
        }
        .game-detail-back {
            display: inline-flex; align-items: center; gap: 0.4rem;
            color: rgba(255,255,255,0.5); font-size: 0.85rem; font-weight: 500;
            text-decoration: none; margin-bottom: 1.5rem; transition: color 0.2s;
            cursor: pointer;
        }
        .game-detail-back:hover { color: #C9A86C; }
        .game-detail-round {
            font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
            letter-spacing: 0.1em; color: #C9A86C; margin-bottom: 0.75rem;
        }
        .game-detail-year {
            font-size: 1rem; font-weight: 600; color: rgba(255,255,255,0.5);
            margin-bottom: 1.5rem;
        }
        .game-detail-matchup {
            display: flex; align-items: center; justify-content: center;
            gap: 2rem; margin-bottom: 1rem; flex-wrap: wrap;
        }
        .game-detail-team {
            display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
            cursor: pointer; transition: transform 0.2s;
        }
        .game-detail-team:hover { transform: scale(1.05); }
        .game-detail-team-logo {
            width: 90px; height: 90px; object-fit: contain;
            filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
        }
        .game-detail-team-seed {
            display: inline-flex; align-items: center; justify-content: center;
            width: 28px; height: 28px; border-radius: 50%;
            font-size: 0.8rem; font-weight: 800;
        }
        .game-detail-team-seed.winner {
            background: rgba(46,125,50,0.3); color: #81C784;
        }
        .game-detail-team-seed.loser {
            background: rgba(198,40,40,0.3); color: #EF9A9A;
        }
        .game-detail-team-name {
            font-size: 1.1rem; font-weight: 700; color: #fff;
            max-width: 160px; text-align: center; line-height: 1.3;
        }
        .game-detail-score-center {
            display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
        }
        .game-detail-score {
            display: flex; align-items: center; gap: 0.75rem;
        }
        .game-detail-score-num {
            font-size: 3rem; font-weight: 900; line-height: 1;
            font-variant-numeric: tabular-nums;
        }
        .game-detail-score-num.winner { color: #fff; }
        .game-detail-score-num.loser { color: rgba(255,255,255,0.4); }
        .game-detail-score-dash {
            font-size: 2rem; color: rgba(255,255,255,0.3); font-weight: 300;
        }
        .game-detail-final {
            font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
            letter-spacing: 0.08em; color: rgba(255,255,255,0.4); margin-top: 0.25rem;
        }
        .game-detail-upset-badge {
            display: inline-block; margin-top: 1rem;
            padding: 0.35rem 1rem; border-radius: 2rem;
            background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(201,168,108,0.15));
            border: 1px solid rgba(201,168,108,0.3);
            color: #C9A86C; font-size: 0.8rem; font-weight: 700;
            text-transform: uppercase; letter-spacing: 0.06em;
        }

        /* Instant Classic badges */
        .instant-classic-badge {
            display: inline-block;
            background: linear-gradient(135deg, #F59E0B, #D97706);
            color: white;
            font-size: 0.7rem;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 12px;
            letter-spacing: 0.03em;
            cursor: pointer;
            text-transform: uppercase;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
        }
        .instant-classic-badge:hover {
            transform: scale(1.05);
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
        }
        .game-detail-classic-tags {
            display: flex; flex-wrap: wrap; gap: 0.5rem;
            justify-content: center; margin-top: 0.75rem;
        }
        .game-detail-classic-tag {
            display: inline-block;
            padding: 0.3rem 0.85rem; border-radius: 2rem;
            font-size: 0.75rem; font-weight: 700;
            text-transform: uppercase; letter-spacing: 0.04em;
            border: 1px solid rgba(255,255,255,0.2);
        }
        .game-detail-classic-tag.overtime-thriller {
            background: rgba(59, 130, 246, 0.2); color: #93C5FD;
        }
        .game-detail-classic-tag.buzzer-beater {
            background: rgba(239, 68, 68, 0.2); color: #FCA5A5;
        }
        .game-detail-classic-tag.upset {
            background: rgba(245, 158, 11, 0.2); color: #FCD34D;
        }
        .game-detail-classic-tag.historic-performance {
            background: rgba(249, 115, 22, 0.2); color: #FDBA74;
        }

        .game-detail-content {
            max-width: 800px; margin: 0 auto;
        }

        /* Why This Mattered Card */
        .game-detail-context {
            background: #FFFDF5; border: 1px solid #E8DFC8;
            border-radius: 0.75rem; padding: 1.5rem; margin-bottom: 2rem;
            border-left: 4px solid #C9A86C;
        }
        .game-detail-context-title {
            font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
            letter-spacing: 0.06em; color: #C9A86C; margin-bottom: 0.75rem;
        }
        .game-detail-context-text {
            font-size: 0.95rem; color: #2C3345; line-height: 1.7;
        }
        .game-detail-context-text p { margin-bottom: 0.5rem; }
        .game-detail-context-text p:last-child { margin-bottom: 0; }

        /* YouTube Embed */
        .game-detail-video {
            margin-bottom: 2rem;
        }
        .game-detail-video-title {
            font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
            letter-spacing: 0.06em; color: #1B2A4A; margin-bottom: 0.75rem;
        }
        .game-detail-video-container {
            position: relative; width: 100%; padding-bottom: 56.25%;
            border-radius: 0.75rem; overflow: hidden;
            box-shadow: 0 4px 20px rgba(0,0,0,0.12);
        }
        .game-detail-video-container iframe {
            position: absolute; top: 0; left: 0;
            width: 100%; height: 100%; border: none;
        }
        .game-detail-no-video {
            background: #F0EDE6; border-radius: 0.75rem;
            padding: 3rem 2rem; text-align: center; color: #5F6B7A;
            font-size: 0.9rem;
        }

        /* Box Score */
        .game-detail-boxscore {
            background: #FFFFFF; border: 1px solid #E0D9CC;
            border-radius: 0.75rem; padding: 1.5rem; margin-bottom: 2rem;
            text-align: center;
        }
        .game-detail-boxscore-title {
            font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
            letter-spacing: 0.06em; color: #1B2A4A; margin-bottom: 0.75rem;
        }
        .game-detail-boxscore-placeholder {
            color: #5F6B7A; font-size: 0.9rem; margin-bottom: 0.75rem;
        }
        .game-detail-boxscore-link {
            display: inline-block; padding: 0.5rem 1.25rem;
            background: #F5F3EE; border: 1px solid #D6CFC2;
            border-radius: 0.375rem; color: #1B2A4A; font-size: 0.85rem;
            font-weight: 600; text-decoration: none; transition: all 0.2s;
        }
        .game-detail-boxscore-link:hover {
            background: #1B2A4A; color: #C9A86C; border-color: #1B2A4A;
        }

        /* ── Box Score Tables ── */
        .boxscore-container { text-align: left; }
        .boxscore-team-summary {
            display: grid; grid-template-columns: 1fr 1fr;
            gap: 0; margin-bottom: 1.5rem;
            border: 1px solid #E0D9CC; border-radius: 0.75rem; overflow: hidden;
        }
        .boxscore-team-summary-col {
            padding: 1rem 1.25rem;
        }
        .boxscore-team-summary-col:first-child {
            border-right: 1px solid #E0D9CC;
        }
        .boxscore-team-summary-header {
            display: flex; align-items: center; gap: 0.5rem;
            margin-bottom: 0.75rem; padding-bottom: 0.5rem;
            border-bottom: 2px solid #E0D9CC;
        }
        .boxscore-team-summary-logo {
            width: 28px; height: 28px; object-fit: contain;
        }
        .boxscore-team-summary-name {
            font-weight: 700; font-size: 0.9rem; color: #1B2A4A;
        }
        .boxscore-team-summary-score {
            font-weight: 800; font-size: 1.1rem; margin-left: auto;
        }
        .boxscore-summary-stats {
            display: grid; grid-template-columns: repeat(3, 1fr);
            gap: 0.5rem;
        }
        .boxscore-summary-stat {
            text-align: center;
        }
        .boxscore-summary-stat-value {
            font-size: 1rem; font-weight: 700; color: #1B2A4A;
        }
        .boxscore-summary-stat-label {
            font-size: 0.65rem; color: #5F6B7A; text-transform: uppercase;
            font-weight: 600; letter-spacing: 0.04em;
        }
        .boxscore-team-section {
            margin-bottom: 1.5rem;
        }
        .boxscore-team-header {
            display: flex; align-items: center; gap: 0.6rem;
            padding: 0.7rem 1rem;
            border-radius: 0.5rem 0.5rem 0 0;
            color: #fff; font-weight: 700; font-size: 0.9rem;
        }
        .boxscore-team-header img {
            width: 24px; height: 24px; object-fit: contain;
        }
        .boxscore-table-wrap {
            overflow-x: auto; -webkit-overflow-scrolling: touch;
            border: 1px solid #E0D9CC; border-top: none;
            border-radius: 0 0 0.5rem 0.5rem;
        }
        .boxscore-table {
            width: 100%; border-collapse: collapse;
            font-size: 0.8rem; min-width: 600px;
        }
        .boxscore-table thead th {
            background: #1B2A4A; color: rgba(255,255,255,0.8);
            padding: 0.5rem 0.6rem; text-align: center;
            font-weight: 600; font-size: 0.7rem;
            text-transform: uppercase; letter-spacing: 0.04em;
            white-space: nowrap; position: sticky; top: 0; z-index: 2;
        }
        .boxscore-table thead th:first-child {
            text-align: left; position: sticky; left: 0; z-index: 3;
            background: #1B2A4A; min-width: 140px;
        }
        .boxscore-table tbody td {
            padding: 0.45rem 0.6rem; text-align: center;
            border-bottom: 1px solid #F0EDE6; color: #2C3345;
            white-space: nowrap; font-variant-numeric: tabular-nums;
        }
        .boxscore-table tbody td:first-child {
            text-align: left; font-weight: 600; color: #1B2A4A;
            position: sticky; left: 0; z-index: 1;
            background: inherit; min-width: 140px;
        }
        .boxscore-table tbody tr:nth-child(odd) { background: #FFFFFF; }
        .boxscore-table tbody tr:nth-child(even) { background: #FAFAF7; }
        .boxscore-table tbody tr:nth-child(odd) td:first-child { background: #FFFFFF; }
        .boxscore-table tbody tr:nth-child(even) td:first-child { background: #FAFAF7; }
        .boxscore-table tbody tr.boxscore-starter td { font-weight: 500; }
        .boxscore-table tbody tr.boxscore-bench td { color: #6B7A8D; }
        .boxscore-table tbody tr.boxscore-bench td:first-child { font-weight: 500; }
        .boxscore-table tbody tr.boxscore-separator td {
            background: #F0EDE6; font-size: 0.7rem; font-weight: 700;
            color: #5F6B7A; text-transform: uppercase; letter-spacing: 0.06em;
            padding: 0.3rem 0.6rem; text-align: left;
        }
        .boxscore-table tbody tr.boxscore-separator td:first-child { background: #F0EDE6; }
        .boxscore-table tbody tr.boxscore-top-scorer { background: rgba(201,168,108,0.12) !important; }
        .boxscore-table tbody tr.boxscore-top-scorer td:first-child {
            background: rgba(201,168,108,0.12) !important;
            position: relative;
        }
        .boxscore-table tbody tr.boxscore-top-scorer td:first-child::after {
            content: 'TOP'; position: absolute; right: 0.3rem; top: 50%;
            transform: translateY(-50%);
            background: #C9A86C; color: #fff; font-size: 0.55rem; font-weight: 800;
            padding: 0.1rem 0.3rem; border-radius: 0.2rem; letter-spacing: 0.04em;
        }
        .boxscore-table tbody tr.boxscore-totals td {
            font-weight: 700; background: #F5F3EE !important;
            border-top: 2px solid #D6CFC2; color: #1B2A4A;
        }
        .boxscore-table tbody tr.boxscore-totals td:first-child {
            background: #F5F3EE !important;
        }
        .boxscore-loading {
            text-align: center; padding: 2rem; color: #5F6B7A;
        }
        @media (max-width: 768px) {
            .boxscore-team-summary { grid-template-columns: 1fr; }
            .boxscore-team-summary-col:first-child { border-right: none; border-bottom: 1px solid #E0D9CC; }
            .boxscore-summary-stats { grid-template-columns: repeat(3, 1fr); }
        }

        /* What Happened Next */
        .game-detail-aftermath {
            background: #FFFFFF; border: 1px solid #E0D9CC;
            border-radius: 0.75rem; padding: 1.5rem; margin-bottom: 2rem;
        }
        .game-detail-aftermath-title {
            font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
            letter-spacing: 0.06em; color: #1B2A4A; margin-bottom: 1rem;
        }
        .game-detail-aftermath-item {
            display: flex; align-items: flex-start; gap: 0.75rem;
            padding: 0.75rem 0; border-bottom: 1px solid #F0EDE6;
        }
        .game-detail-aftermath-item:last-child { border-bottom: none; }
        .game-detail-aftermath-logo {
            width: 32px; height: 32px; object-fit: contain; flex-shrink: 0;
        }
        .game-detail-aftermath-text {
            font-size: 0.9rem; color: #2C3345; line-height: 1.6;
        }
        .game-detail-aftermath-text strong { color: #1B2A4A; }

        /* Team Links */
        .game-detail-team-links {
            display: flex; gap: 1rem; justify-content: center;
            flex-wrap: wrap; margin-bottom: 2rem;
        }
        .game-detail-team-link {
            display: inline-flex; align-items: center; gap: 0.5rem;
            padding: 0.6rem 1.25rem; background: #1B2A4A;
            border-radius: 0.5rem; color: #C9A86C; font-size: 0.85rem;
            font-weight: 600; text-decoration: none; cursor: pointer;
            transition: all 0.2s; border: none;
        }
        .game-detail-team-link:hover { background: #243556; transform: translateY(-1px); }
        .game-detail-team-link img {
            width: 24px; height: 24px; object-fit: contain;
        }

        /* Play button overlay on upset cards */
        .upsets-moment-play-icon {
            position: absolute; top: 0.5rem; right: 0.5rem;
            width: 24px; height: 24px; border-radius: 50%;
            background: rgba(27,42,74,0.85); color: #C9A86C;
            display: flex; align-items: center; justify-content: center;
            font-size: 0.6rem; pointer-events: none;
        }

        @media (max-width: 768px) {
            .game-detail-hero { padding: 2rem 1rem 1.5rem; margin: -2rem -1rem 1.5rem -1rem; }
            .game-detail-matchup { gap: 0.75rem; flex-wrap: nowrap; }
            .game-detail-team-logo { width: 50px; height: 50px; }
            .game-detail-team-name { font-size: 0.85rem; max-width: 90px; }
            .game-detail-score-num { font-size: 2rem; }
            .game-detail-team-seed { width: 24px; height: 24px; font-size: 0.7rem; }
            .game-detail-team { gap: 0.25rem; }
            .game-detail-content { padding: 0 0.5rem; }

            /* ── TABLE HORIZONTAL SCROLL WRAPPERS ── */
            /* All table containers get horizontal scroll on mobile */
            .wins-table,
            .rankings-table {
                overflow: visible;
                overflow-x: auto;
                overflow-y: hidden;
                -webkit-overflow-scrolling: touch;
            }
            .wins-table table,
            .rankings-table table {
                min-width: 500px;
            }
            .wins-table td,
            .rankings-table td,
            .wins-table th,
            .rankings-table th {
                padding: 0.6rem 0.5rem;
                font-size: 0.8rem;
                white-space: nowrap;
            }

            /* Coaches leaderboard table scroll */
            .season-table-wrapper {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
            .season-table-wrapper table {
                min-width: 600px;
            }

            /* ── PREVENT FULL-PAGE HORIZONTAL OVERFLOW ── */
            .view { overflow-x: hidden; max-width: 100vw; }

            /* ── SCROLL HINT: subtle right shadow on scrollable tables ── */
            .season-table-wrapper,
            .wins-table,
            .rankings-table {
                position: relative;
                /* Inset shadow on right edge to hint at more content */
                box-shadow: inset -12px 0 8px -8px rgba(0,0,0,0.06);
            }

            /* ── TOURNAMENT RESUME GRID ── */
            .tourney-grid {
                grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
                gap: 0.35rem;
            }
            .tourney-entry { padding: 0.35rem 0.25rem; }
            .tourney-year { font-size: 0.75rem; }
            .tourney-seed { font-size: 0.62rem; }
            .tourney-summary {
                gap: 1rem;
                justify-content: center;
            }
            .tourney-summary-value { font-size: 1.2rem; }
            .tourney-summary-label { font-size: 0.62rem; }

            /* ── COMPARISON VIEW FIX ── */
            .comparison-team-logo { width: 60px; height: 60px; }
            .comparison-team-info h3 { font-size: 1rem; }
            .comparison-vs-badge { font-size: 1rem; }
            .stat-bar { min-width: 0; }
            .stat-value { font-size: 0.85rem; min-width: 36px; }
            .stat-label { font-size: 0.72rem; min-width: 0; }
            .comp-tab { padding: 0.6rem 0.5rem; font-size: 0.78rem; }

            /* ── FILTER BUTTONS WRAP ── */
            .filter-buttons,
            .leaders-controls,
            .upsets-era-filters,
            .games-filter-tabs,
            .conference-filters {
                display: flex;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                flex-wrap: nowrap;
                padding-bottom: 0.25rem;
                scrollbar-width: none;
                -ms-overflow-style: none;
            }
            .filter-buttons::-webkit-scrollbar,
            .leaders-controls::-webkit-scrollbar,
            .upsets-era-filters::-webkit-scrollbar,
            .games-filter-tabs::-webkit-scrollbar,
            .conference-filters::-webkit-scrollbar { display: none; }
            .filter-btn,
            .leaders-filter-btn,
            .conf-btn,
            .upsets-era-btn,
            .games-filter-btn {
                flex-shrink: 0;
                white-space: nowrap;
            }

            /* ── CHAMPIONSHIP BADGES ── */
            .championship-years {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                padding-bottom: 0.25rem;
            }
            .championship-badge { flex-shrink: 0; }

            /* ── TOUCH-FRIENDLY TAP TARGETS (44px minimum) ── */
            .nav-links button {
                min-height: 44px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
            }
            .filter-btn,
            .leaders-filter-btn,
            .conf-btn,
            .upsets-era-btn,
            .games-filter-btn {
                min-height: 44px;
                display: inline-flex;
                align-items: center;
            }
            .game-matchup-button {
                min-height: 44px;
            }
            .compare-button,
            .compare-with-button {
                min-height: 44px;
            }
            .modal-btn {
                min-height: 44px;
            }
            #backButton {
                min-height: 44px;
            }

            /* ── TEXT TRUNCATION ── */
            .team-cell {
                max-width: 160px;
            }
            .team-cell .team-name,
            .team-cell span:not(.team-logo-small):not(.rank-badge) {
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }
            .coach-name {
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                max-width: 140px;
            }
            .profile-info h2 {
                font-size: 1.3rem;
                word-break: break-word;
            }

            /* ── PROFILE RECORDS GRID ── */
            .profile-records {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.5rem;
            }
            .profile-record { padding: 0.6rem 0.5rem; }
            .profile-record-value { font-size: 1.1rem; }
            .profile-record-label { font-size: 0.65rem; }

            /* ── GAME DETAIL TEAM LINKS ── */
            .game-detail-team-links {
                flex-direction: column;
                align-items: center;
            }
            .game-detail-team-link {
                min-height: 44px;
                width: 100%;
                max-width: 280px;
                justify-content: center;
            }

            /* ── UPSETS MOMENT CARDS ── */
            .upsets-moment-card {
                position: relative;
            }

            /* ── COACHES COMPARE SECTION ── */
            #coaches .compare-with-input,
            #coaches div[style*="display: flex"][style*="gap: 0.75rem"] {
                flex-wrap: wrap;
            }

            /* ── NET RANKINGS TABLE: horizontal scroll on mobile ── */
            #rankingsNetPanel .rankings-table {
                overflow-x: auto; -webkit-overflow-scrolling: touch;
            }
            #rankingsNetPanel table { min-width: 640px; }
            .net-search-row { flex-direction: column; }
            .net-search-row input { max-width: 100%; }
        }

        /* ── EXTRA SMALL PHONES (iPhone SE, 375px) ── */
        @media (max-width: 390px) {
            .container { padding: 0.5rem; }

            /* Single column stats grid on smallest phones */
            .stats-grid {
                grid-template-columns: 1fr !important;
            }

            /* Tighter table padding */
            .wins-table td,
            .rankings-table td,
            .wins-table th,
            .rankings-table th {
                padding: 0.4rem 0.3rem;
                font-size: 0.72rem;
            }

            /* Smaller team logos in tables */
            .team-logo-small { width: 22px; height: 22px; }
            .team-cell { gap: 0.4rem; }

            /* Upsets dashboard single col */
            .upsets-stats-dashboard { grid-template-columns: 1fr; }

            /* Narrower profile header */
            .profile-logo { width: 80px; height: 80px; }
            .profile-logo-section { min-width: auto; }
            .profile-info h2 { font-size: 1.1rem; }

            /* Comparison header tighter */
            .comparison-team-logo { width: 45px; height: 45px; }
            .comparison-team-info h3 { font-size: 0.85rem; }

            /* Game cards */
            .game-team-logo { width: 32px; height: 32px; }
            .game-team-name { font-size: 0.82rem; }
            .game-score-team { font-size: 1.3rem; }

            /* Nav search full width */
            .nav-search input { font-size: 0.8rem; padding: 0.4rem 0.6rem 0.4rem 1.8rem; }

            /* Section titles */
            .section-title { font-size: 1.1rem; }

            /* Hero */
            .hero p { font-size: 0.95rem; }
            .logo-wordmark--hero { font-size: 1.6rem; }

            /* Tournament resume even tighter */
            .tourney-grid {
                grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
            }

            /* Programs grid smaller */
            .programs-grid {
                grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
                gap: 0.5rem;
            }
            .program-logo { width: 48px; height: 48px; }
            .program-name { font-size: 0.78rem; }
            .program-card { padding: 0.75rem; }

            /* Teams grid smaller */
            .teams-grid {
                grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
                gap: 0.75rem;
            }
            .team-logo { width: 48px; height: 48px; }
            .team-name { font-size: 0.78rem; }
            .team-card { padding: 0.75rem; }
        }

        /* ── Championship Run Page ── */
        .champ-run-hero {
            padding: 56px 28px 64px;
            position: relative;
            overflow: hidden;
        }
        .champ-run-hero::before {
            content: '';
            position: absolute; inset: 0;
            background: repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 30px);
            pointer-events: none;
        }
        .champ-run-hero-logo {
            width: 120px;
            height: 120px;
            background-size: contain;
            background-position: center;
            background-repeat: no-repeat;
            filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
            flex-shrink: 0;
        }
        .champ-run-hero-title {
            font-family: var(--font-mono); font-size: 10px; font-weight: 600;
            text-transform: uppercase; letter-spacing: 0.12em;
            color: rgba(255,255,255,0.7);
        }
        .champ-run-hero-team {
            font-family: var(--font-display); font-size: clamp(48px, 8vw, 110px);
            font-weight: 400; color: #fff; line-height: 0.9; margin: 0;
        }
        .champ-run-hero-subtitle {
            font-family: var(--font-serif); font-style: italic; font-size: 22px;
            color: var(--gold-brand); margin-top: 8px;
        }
        .champ-run-hero-accent {
            height: 6px; background: var(--gold-brand); margin: 0;
        }
        .champ-run-hero-stats {
            margin-top: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
            border: 1px solid rgba(255,255,255,0.18);
        }
        .champ-run-hero-stat {
            padding: 20px 22px; border-right: 1px solid rgba(255,255,255,0.18);
        }
        .champ-run-hero-stat:last-child { border-right: none; }
        .champ-run-hero-meta {
            margin-top: 24px; display: flex; gap: 28px; flex-wrap: wrap;
            font-family: var(--font-serif); font-size: 14px; color: rgba(255,255,255,0.78);
        }
        .champ-run-hero-meta strong { color: #fff; }
        .champ-run-back {
            display: inline-flex; align-items: center; gap: 0.4rem;
            color: var(--gold); font-family: var(--font-serif); font-size: 14px; font-weight: 600;
            cursor: pointer; margin-bottom: 1.5rem; transition: opacity 0.2s; text-decoration: none;
        }
        .champ-run-back:hover { opacity: 0.75; }

        .champ-run-card {
            background: var(--paper); border: 2px solid var(--navy); border-radius: var(--r-md);
            padding: 28px; margin-bottom: 24px;
        }
        .champ-run-card h3 {
            font-family: var(--font-display); font-size: 22px; font-weight: 400;
            color: var(--navy); margin-bottom: 16px;
            border-bottom: 3px solid var(--navy); padding-bottom: 12px;
        }
        .champ-run-story {
            font-family: var(--font-serif); font-size: 16px; line-height: 1.7; color: var(--ink-soft);
        }

        /* Tournament Path */
        .champ-run-path {
            display: flex; flex-direction: column; gap: 0;
            position: relative; padding-left: 32px;
        }
        .champ-run-path::before {
            content: ''; position: absolute; left: 12px; top: 8px; bottom: 8px;
            width: 2px; background: var(--rule);
        }
        .champ-run-game {
            display: grid; grid-template-columns: 180px 1fr 220px; align-items: center;
            gap: 0; padding: 0; position: relative;
            transition: background 0.15s ease; cursor: pointer;
        }
        .champ-run-game:hover { background: var(--cream-soft); }
        .champ-run-game::before { display: none; }
        .champ-run-game.championship-game { background: none; padding: 0; }
        .champ-run-game.championship-game::before { display: none; }
        .champ-run-game.championship-game .champ-run-round {
            color: var(--navy); font-weight: 800;
        }
        .champ-run-round {
            font-family: var(--font-display); font-size: 16px; font-weight: 400;
            color: var(--navy); line-height: 1.15; margin-top: 4px;
        }
        .champ-run-opponent {
            display: flex; align-items: center; gap: 0.75rem;
        }
        .champ-run-opp-logo {
            width: 36px; height: 36px; background-size: contain;
            background-position: center; background-repeat: no-repeat; flex-shrink: 0;
        }
        .champ-run-opp-info { display: flex; flex-direction: column; }
        .champ-run-opp-name {
            font-family: var(--font-serif); font-weight: 700; font-size: 17px; color: var(--ink);
        }
        .champ-run-opp-seed {
            font-family: var(--font-mono); font-size: 10px; color: var(--ink-muted);
            letter-spacing: 0.08em; text-transform: uppercase;
        }
        .champ-run-score { text-align: right; white-space: nowrap; }
        .champ-run-score-value {
            font-family: var(--font-display); font-size: 30px; font-weight: 800;
            color: var(--navy); font-feature-settings: "tnum" 1, "lnum" 1;
        }
        .champ-run-score-margin {
            font-family: var(--font-mono); font-size: 10px; color: var(--ink-muted);
            font-weight: 600; letter-spacing: 0.08em;
        }
        .champ-run-score-margin.win { color: var(--moss); }

        /* Expandable box score */
        .champ-run-game-wrapper {
            border-bottom: 1px solid var(--rule-soft); position: relative;
            margin-bottom: 18px;
        }
        .champ-run-game-wrapper::before {
            content: ''; position: absolute; left: -26px; top: 28px;
            width: 14px; height: 14px; border-radius: 50%;
            background: var(--navy); border: 3px solid var(--cream); z-index: 1;
        }
        .champ-run-game-wrapper.championship-wrapper {
            border: 3px solid var(--gold-deep); border-radius: var(--r-md);
        }
        .champ-run-game-wrapper.championship-wrapper::before {
            background: var(--gold-brand); width: 14px; height: 14px;
            box-shadow: 0 0 0 2px var(--gold-deep);
        }
        .champ-run-game-wrapper.championship-wrapper .champ-run-round {
            color: var(--navy); font-weight: 800;
        }
        .champ-run-game-wrapper .champ-run-game {
            border-left: none; border-bottom: none; position: static;
        }
        .champ-run-game-wrapper .champ-run-game::before { display: none; }
        .champ-run-game-wrapper.championship-wrapper .champ-run-game {
            border-left: none; background: none;
        }
        .champ-run-expand-icon {
            font-size: 0.7rem; color: var(--ink-faint);
            transition: transform 0.25s ease; margin-left: 0.5rem; flex-shrink: 0;
        }
        .champ-run-game-wrapper.expanded .champ-run-expand-icon {
            transform: rotate(180deg);
        }
        .champ-run-expand-hint {
            font-size: 10px; color: var(--ink-faint); font-family: var(--font-mono);
            font-weight: 500; margin-left: 0.25rem;
        }
        .champ-run-boxscore-panel {
            max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
            background: var(--cream-soft); border-top: 1px solid transparent;
        }
        .champ-run-game-wrapper.expanded .champ-run-boxscore-panel {
            border-top: 1px solid var(--rule-soft);
        }
        .champ-run-boxscore-inner { padding: 1rem 1.25rem; }
        .champ-run-boxscore-loading {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.6rem;
            padding: 1.5rem;
            color: #5F6B7A;
            font-size: 0.85rem;
        }
        .champ-run-boxscore-loading .spinner {
            width: 18px;
            height: 18px;
            border: 2px solid #E0D9CC;
            border-top-color: #1B2A4A;
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
        }
        @keyframes spin { to { transform: rotate(360deg); } }

        /* H2H Expandable Box Scores */
        .h2h-game-wrapper {
            display: flex;
            flex-direction: column;
        }
        .h2h-game-wrapper .h2h-game-row {
            cursor: pointer;
            transition: background 0.15s ease;
            position: relative;
        }
        .h2h-game-wrapper .h2h-game-row:hover {
            filter: brightness(0.97);
        }
        .h2h-expand-icon {
            font-size: 0.6rem;
            color: #A0AAB8;
            transition: transform 0.25s ease;
            flex-shrink: 0;
            margin-left: auto;
            padding-left: 0.4rem;
        }
        .h2h-game-wrapper.expanded .h2h-expand-icon {
            transform: rotate(180deg);
        }
        .h2h-boxscore-panel {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease;
            background: #F9F8F5;
            border-top: 1px solid transparent;
            border-radius: 0 0 0.4rem 0.4rem;
        }
        .h2h-game-wrapper.expanded .h2h-boxscore-panel {
            border-top: 1px solid #E0D9CC;
        }
        .h2h-boxscore-inner {
            padding: 1rem 1.25rem;
        }
        .h2h-boxscore-loading {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.6rem;
            padding: 1.5rem;
            color: #5F6B7A;
            font-size: 0.85rem;
        }
        .h2h-boxscore-loading .spinner {
            width: 18px;
            height: 18px;
            border: 2px solid #E0D9CC;
            border-top-color: #1B2A4A;
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
        }
        /* H2H Detail Panel */
        .h2h-detail-header {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1.5rem;
            padding: 1rem 0 0.75rem;
            margin-bottom: 0.75rem;
            border-bottom: 1px solid #E0D9CC;
        }
        .h2h-detail-team {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.25rem;
            min-width: 80px;
        }
        .h2h-detail-team-logo {
            width: 36px;
            height: 36px;
            object-fit: contain;
        }
        .h2h-detail-team-name {
            font-size: 0.7rem;
            color: #6B7A8D;
            text-align: center;
            max-width: 100px;
            line-height: 1.2;
        }
        .h2h-detail-score {
            font-size: 1.6rem;
            font-weight: 800;
            font-variant-numeric: tabular-nums;
        }
        .h2h-detail-score-center {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .h2h-detail-score-dash {
            font-size: 1.2rem;
            color: #A0AAB8;
            font-weight: 400;
        }
        .h2h-detail-final {
            font-size: 0.65rem;
            color: #5F6B7A;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            font-weight: 600;
            text-align: center;
            margin-top: 0.15rem;
        }
        .h2h-detail-meta {
            text-align: center;
            font-size: 0.78rem;
            color: #6B7A8D;
            margin-bottom: 0.75rem;
            line-height: 1.4;
        }
        .h2h-detail-not-available {
            text-align: center;
            padding: 1rem 0;
            color: #A0AAB8;
            font-size: 0.85rem;
        }
        .h2h-detail-not-available .score-fallback {
            font-size: 0.95rem;
            color: #2C3345;
            font-weight: 600;
            margin-top: 0.5rem;
        }
        @media (max-width: 600px) {
            .h2h-detail-header { gap: 0.75rem; }
            .h2h-detail-team-logo { width: 28px; height: 28px; }
            .h2h-detail-score { font-size: 1.3rem; }
            .h2h-boxscore-inner { padding: 0.75rem 0.5rem; }
            .h2h-boxscore-inner .boxscore-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
        }

        /* Key Stats Grid */
        .champ-run-stats {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0;
            border: 2px solid var(--navy);
        }
        .champ-run-stat {
            text-align: center; padding: 18px 16px;
            border-right: 1px solid var(--rule);
        }
        .champ-run-stat:last-child { border-right: none; }
        .champ-run-stat-value {
            font-family: var(--font-display); font-size: 36px; font-weight: 400;
            color: var(--navy); line-height: 1; font-feature-settings: "tnum" 1, "lnum" 1;
        }
        .champ-run-stat-label {
            font-family: var(--font-mono); font-size: 10px; color: var(--ink-muted);
            text-transform: uppercase; font-weight: 600; letter-spacing: 0.12em; margin-top: 6px;
        }

        /* Video embed */
        .champ-run-video {
            position: relative; padding-bottom: 56.25%; height: 0;
            overflow: hidden; border-radius: var(--r-md);
        }
        .champ-run-video iframe {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            border: none; border-radius: var(--r-md);
        }

        /* Team Profile Link */
        .champ-run-profile-link {
            display: inline-flex; align-items: center; gap: 0.5rem;
            padding: 12px 24px; background: var(--navy); color: var(--gold);
            border: none; border-radius: 2px; font-family: var(--font-display);
            font-weight: 400; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
            cursor: pointer; transition: all 0.2s ease; text-decoration: none;
        }
        .champ-run-profile-link:hover { background: var(--navy-deep); }

        /* Clickable tournament badges */
        .tourney-entry.clickable { cursor: pointer; transition: all 0.15s ease; }
        .tourney-entry.clickable:hover {
            border-color: var(--gold); transform: translateY(-2px);
        }

        @media (max-width: 768px) {
            .champ-run-hero { padding: 2rem 1.25rem; }
            .champ-run-hero-logo { width: 90px; height: 90px; }
            .champ-run-hero-team { font-size: 1.6rem; }
            .champ-run-game {
                grid-template-columns: 80px 1fr auto;
                gap: 0.5rem;
                padding: 0.75rem 0.75rem 0.75rem 1rem;
            }
            .champ-run-round { font-size: 0.65rem; }
            .champ-run-opp-name { font-size: 0.85rem; }
            .champ-run-opp-logo { width: 28px; height: 28px; }
            .champ-run-score-value { font-size: 0.95rem; }
            .champ-run-stats { grid-template-columns: repeat(2, 1fr); }
        }
        /* ── Prominent Box Score (Game Center) ── */
        .game-center-section {
            background: #FAFAF7; border: 1px solid #E0D9CC;
            border-radius: 0.75rem; margin-bottom: 2rem; overflow: hidden;
            box-shadow: 0 2px 8px rgba(27,42,74,0.08);
        }
        .game-center-header {
            background: #1B2A4A; color: #fff;
            display: flex; align-items: center; justify-content: center;
            gap: 2rem; padding: 1.25rem 1.5rem;
        }
        .game-center-team {
            display: flex; align-items: center; gap: 0.75rem;
            flex: 1;
        }
        .game-center-team--away { justify-content: flex-end; }
        .game-center-team--home { justify-content: flex-start; }
        .game-center-team-logo {
            width: 52px; height: 52px; object-fit: contain;
        }
        .game-center-team-name {
            font-weight: 700; font-size: 1.1rem; line-height: 1.2;
        }
        .game-center-team-record {
            font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-top: 0.15rem;
        }
        .game-center-score-block {
            display: flex; flex-direction: column; align-items: center;
            min-width: 120px;
        }
        .game-center-scores {
            display: flex; align-items: center; gap: 0.75rem;
        }
        .game-center-score {
            font-size: 2.8rem; font-weight: 800; line-height: 1;
            font-variant-numeric: tabular-nums;
        }
        .game-center-score--winner { color: #fff; }
        .game-center-score--loser { color: rgba(255,255,255,0.5); }
        .game-center-score-divider {
            font-size: 1.6rem; color: rgba(255,255,255,0.3); font-weight: 300;
        }
        .game-center-status {
            display: inline-flex; align-items: center; gap: 0.4rem;
            margin-top: 0.6rem; padding: 0.2rem 0.7rem;
            border-radius: 1rem; font-size: 0.72rem; font-weight: 700;
            text-transform: uppercase; letter-spacing: 0.06em;
        }
        .game-center-status--live {
            background: rgba(220,38,38,0.15); color: #FCA5A5;
        }
        .game-center-status--halftime {
            background: rgba(234,179,8,0.15); color: #FDE68A;
        }
        .game-center-status--final {
            background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7);
        }
        .game-center-live-dot {
            width: 7px; height: 7px; border-radius: 50%;
            background: #EF4444;
            animation: gc-pulse 1.5s ease-in-out infinite;
        }
        @keyframes gc-pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.4; transform: scale(0.75); }
        }
        .game-center-meta {
            display: flex; align-items: center; justify-content: center;
            gap: 1rem; padding: 0.5rem 1rem;
            background: rgba(27,42,74,0.04); border-bottom: 1px solid #E0D9CC;
            font-size: 0.75rem; color: #5F6B7A;
        }
        .game-center-meta-live {
            display: inline-flex; align-items: center; gap: 0.35rem;
            color: #EF4444; font-weight: 600;
        }
        .game-center-body {
            padding: 1.25rem;
        }
        .game-center-body .boxscore-container { text-align: left; }
        .game-center-body .boxscore-team-summary {
            margin-bottom: 1.25rem;
        }

        @media (max-width: 768px) {
            .game-center-header {
                flex-direction: column; gap: 0.75rem; padding: 1rem;
            }
            .game-center-team {
                justify-content: center !important;
            }
            .game-center-team-logo { width: 40px; height: 40px; }
            .game-center-team-name { font-size: 0.95rem; }
            .game-center-score { font-size: 2.2rem; }
            .game-center-score-block { min-width: auto; }
            .game-center-body { padding: 0.75rem; }
        }

        /* ── This Day in Tournament History Widget ── */
        /* ── Slim OTD Ticker ── */
        .otd-widget {
            background: #F5F3EE;
            border-left: 4px solid #C9A86C;
            border-bottom: 1px solid #E0D9CC;
            padding: 0.65rem 1rem;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            max-height: 56px;
            overflow: hidden;
            border-radius: 0 0.375rem 0.375rem 0;
        }
        .otd-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-shrink: 0;
        }
        .otd-badge {
            font-size: 0.6rem;
            font-weight: 800;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: #C9A86C;
            white-space: nowrap;
        }
        .otd-date {
            font-size: 0.7rem;
            color: #5F6B7A;
            font-weight: 500;
            white-space: nowrap;
        }
        .otd-nav-btn {
            background: transparent;
            border: 1px solid #E0D9CC;
            color: #5F6B7A;
            width: 26px;
            height: 26px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }
        .otd-nav-btn:hover {
            background: rgba(201,168,108,0.12);
            border-color: #C9A86C;
            color: #C9A86C;
        }
        .otd-content {
            flex: 1;
            min-width: 0;
            overflow: hidden;
        }
        .otd-fact {
            display: none;
            animation: otdFadeIn 0.3s ease;
        }
        .otd-fact.active {
            display: block;
        }
        @keyframes otdFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        .otd-text {
            font-size: 0.85rem;
            line-height: 1.4;
            color: #2C3345;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .otd-text a.otd-team-link {
            color: #1B2A4A;
            font-weight: 700;
            text-decoration: none;
            transition: color 0.15s ease;
            cursor: pointer;
        }
        .otd-text a.otd-team-link:hover {
            color: #C9A86C;
            text-decoration: underline;
        }
        .otd-text .otd-year {
            color: #C9A86C;
            font-weight: 600;
        }
        .otd-team-logo-inline {
            display: inline-block;
            width: 18px;
            height: 18px;
            background-size: contain;
            background-position: center;
            background-repeat: no-repeat;
            vertical-align: text-bottom;
            margin: 0 2px;
        }
        .otd-dots { display: none; }
        @media (max-width: 768px) {
            .otd-widget { padding: 0.5rem 0.75rem; gap: 0.5rem; max-height: 52px; }
            .otd-text { font-size: 0.78rem; }
            .otd-nav-btn { width: 22px; height: 22px; font-size: 0.7rem; }
            .otd-team-logo-inline { width: 16px; height: 16px; }
            .otd-date { display: none; }
        }

        /* ── Upset Watch Cards ── */
        .upset-watch-container {
            margin-bottom: 1.5rem;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
            gap: 0.75rem;
        }
        .upset-watch-card {
            background: #F5F3EE;
            border-left: 4px solid #D4512B;
            border-radius: 0 0.5rem 0.5rem 0;
            padding: 0.75rem 1rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 1px 4px rgba(0,0,0,0.06);
        }
        .upset-watch-card:hover {
            box-shadow: 0 3px 12px rgba(0,0,0,0.1);
            transform: translateY(-1px);
        }
        .upset-watch-card.upset-complete {
            border-left-color: #2E7D32;
        }
        .upset-watch-card.instant-classic {
            border-left-color: #D97706;
        }
        .instant-classic .upset-watch-label {
            color: #D97706;
        }
        .upset-watch-label {
            font-size: 0.6rem;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: #D4512B;
            white-space: nowrap;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }
        .upset-complete .upset-watch-label {
            color: #2E7D32;
        }
        .upset-live-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #D4512B;
            animation: upsetPulse 1.5s ease-in-out infinite;
        }
        @keyframes upsetPulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.3; }
        }
        .upset-watch-teams {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            flex: 1;
            min-width: 0;
            overflow: hidden;
        }
        .upset-watch-team {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            font-size: 0.78rem;
            font-weight: 600;
            color: #2C3345;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .upset-watch-team img {
            width: 20px;
            height: 20px;
            object-fit: contain;
            flex-shrink: 0;
        }
        .upset-watch-seed {
            font-size: 0.68rem;
            font-weight: 700;
            color: #5F6B7A;
            flex-shrink: 0;
        }
        .upset-watch-name {
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .upset-watch-score {
            font-size: 0.85rem;
            font-weight: 700;
            color: #1B2A4A;
            white-space: nowrap;
            padding: 0 0.25rem;
            flex-shrink: 0;
        }
        .upset-watch-score .leading { color: #D4512B; }
        .upset-complete .upset-watch-score .leading { color: #2E7D32; }
        .upset-watch-clock {
            font-size: 0.68rem;
            color: #5F6B7A;
            font-weight: 500;
            white-space: nowrap;
            flex-shrink: 0;
        }
        @media (max-width: 768px) {
            .upset-watch-container { grid-template-columns: 1fr; }
            .upset-watch-card { padding: 0.6rem 0.75rem; }
            .upset-watch-team { font-size: 0.72rem; }
            .upset-watch-team img { width: 16px; height: 16px; }
        }

        /* ── NET Rankings & Quad Record ── */
        .rankings-tabs {
            display: flex; gap: 0; margin-bottom: 1.5rem;
            border-bottom: 2px solid var(--rule-soft);
            overflow-x: auto; flex-wrap: nowrap;
            -webkit-overflow-scrolling: touch;
            position: relative;
        }
        .rankings-tab {
            padding: 14px 20px; background: none; border: none;
            font-family: var(--font-display); font-size: 15px;
            letter-spacing: 0.06em; text-transform: uppercase;
            color: var(--ink-muted); cursor: pointer; transition: all 0.15s;
            border-bottom: 3px solid transparent; margin-bottom: -2px;
            flex-shrink: 0; white-space: nowrap;
        }
        .rankings-tab:hover { color: var(--navy); }
        .rankings-tab.active {
            color: var(--navy); border-bottom-color: var(--gold-brand);
        }
        .net-search-row {
            display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap;
        }
        .net-search-row input {
            flex: 1; min-width: 180px; max-width: 320px;
            padding: 0.6rem 0.85rem; border: 1px solid var(--rule-soft);
            border-radius: var(--r-md); font-family: var(--font-sans); font-size: 14px;
            color: var(--ink); background: var(--paper);
            transition: border-color 0.2s;
        }
        .net-search-row input:focus { outline: none; border-color: var(--gold-brand); }
        .net-badge {
            display: inline-flex; align-items: center; gap: 0.3rem;
            padding: 0.2rem 0.6rem; border-radius: 2px;
            font-family: var(--font-mono); font-size: 10px; font-weight: 700;
            letter-spacing: 0.08em; text-transform: uppercase;
            white-space: nowrap;
        }
        .net-badge--gold { background: rgba(201,168,108,0.15); color: var(--gold-deep); }
        .net-badge--navy { background: rgba(27,42,74,0.12); color: var(--navy); }
        .net-badge--neutral { background: rgba(111,106,92,0.12); color: var(--ink-muted); }
        .net-badge--gray { background: var(--rule-faint); color: var(--ink-faint); }

        .quad-record-section {
            background: var(--paper); border: 1px solid var(--rule-soft); border-radius: var(--r-md);
            padding: 1.5rem; margin-bottom: 1.5rem;
        }
        .quad-record-section h3 {
            font-family: var(--font-display); font-size: 28px; font-weight: 400;
            letter-spacing: 0.02em; text-transform: uppercase; line-height: 0.92;
            color: var(--navy); margin: 0 0 1rem 0;
            padding-bottom: 10px; border-bottom: 3px solid var(--navy);
        }
        .quad-grid {
            display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem;
        }
        .quad-card {
            background: var(--cream); border-radius: var(--r-md); padding: 1rem;
            text-align: center; border: 1px solid var(--rule-soft); transition: transform 0.15s ease;
        }
        .quad-card:hover { transform: translateY(-2px); }
        .quad-card-label {
            font-family: var(--font-mono); font-size: 10px; font-weight: 700;
            text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-muted);
            margin-bottom: 0.4rem;
        }
        .quad-card-record {
            font-family: var(--font-display); font-size: 28px; font-weight: 400; color: var(--navy);
        }
        .quad-card-detail {
            font-size: 11px; color: var(--ink-faint); margin-top: 0.25rem;
            font-family: var(--font-sans);
        }
        .quad-card--q1-win { border-left: 3px solid var(--moss); }
        .quad-card--q4-loss { border-left: 3px solid var(--rust); }
        .quad-bar {
            display: flex; height: 10px; border-radius: 2px; overflow: hidden;
            margin-top: 1rem; background: var(--cream-deep);
        }
        .quad-bar-q1 { background: var(--moss); }
        .quad-bar-q2 { background: var(--gold-brand); }
        .quad-bar-q3 { background: var(--ink-faint); }
        .quad-bar-q4 { background: var(--rust); }
        .quad-bar-legend {
            display: flex; gap: 1rem; margin-top: 0.5rem; flex-wrap: wrap;
            justify-content: center;
        }
        .quad-bar-legend-item {
            display: flex; align-items: center; gap: 0.3rem;
            font-size: 0.72rem; color: #5A6578;
        }
        .quad-bar-legend-dot {
            width: 8px; height: 8px; border-radius: 50%;
        }
        .quad-card { cursor: pointer; }
        .quad-card.quad-card--active {
            border-color: #1B2A4A; box-shadow: 0 2px 8px rgba(27,42,74,0.15);
        }
        .quad-games-expand {
            max-height: 0; overflow: hidden;
            transition: max-height 0.35s ease, opacity 0.25s ease;
            opacity: 0;
        }
        .quad-games-expand.quad-games-expand--open {
            max-height: 800px; opacity: 1; overflow-y: auto; overflow-x: auto;
        }
        .quad-games-list {
            margin-top: 1rem; border: 1px solid #E0D9CC; border-radius: 0.5rem;
            overflow: hidden;
        }
        .quad-game-row {
            display: flex; align-items: center; gap: 0.75rem;
            padding: 0.6rem 1rem; font-size: 0.82rem; border-left: 3px solid transparent;
        }
        .quad-game-row:nth-child(odd) { background: #FFFFFF; }
        .quad-game-row:nth-child(even) { background: #FDFCF9; }
        .quad-game-row--win { border-left-color: #2D7D46; }
        .quad-game-row--loss { border-left-color: #C0392B; }
        .quad-game-date {
            flex: 0 0 70px; font-size: 0.75rem; color: #5F6B7A; font-weight: 500;
        }
        .quad-game-opp {
            flex: 1; display: flex; align-items: center; gap: 0.5rem;
            cursor: pointer; font-weight: 600; color: #1B2A4A;
            min-width: 0; overflow: hidden;
        }
        .quad-game-opp span {
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        }
        .quad-game-opp:hover { color: #C9A86C; }
        .quad-game-opp img { width: 20px; height: 20px; object-fit: contain; }
        .quad-game-net {
            flex: 0 0 auto; font-size: 0.68rem; font-weight: 700;
            background: #F0EDE6; color: #5A6578; padding: 0.15rem 0.45rem;
            border-radius: 0.25rem;
        }
        .quad-game-loc {
            flex: 0 0 50px; font-size: 0.72rem; color: #5F6B7A; text-align: center;
        }
        .quad-game-score {
            flex: 0 0 60px; font-size: 0.82rem; font-weight: 700; text-align: right; white-space: nowrap;
        }
        .quad-game-result {
            flex: 0 0 24px; font-size: 0.72rem; font-weight: 800; text-align: center;
        }
        .quad-game-result--w { color: #2D7D46; }
        .quad-game-result--l { color: #C0392B; }
        .quad-games-header {
            display: flex; align-items: center; gap: 0.75rem;
            padding: 0.5rem 1rem; background: #1B2A4A; color: #C9A86C;
            font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
            letter-spacing: 0.06em;
        }
        @media (max-width: 640px) {
            .quad-game-date { flex: 0 0 55px; font-size: 0.7rem; }
            .quad-game-loc { flex: 0 0 35px; font-size: 0.68rem; }
            .quad-game-score { flex: 0 0 48px; }
            .quad-game-row { gap: 0.4rem; padding: 0.5rem 0.6rem; }
        }
        @media (max-width: 640px) {
            .quad-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .rankings-tab {
                padding: 0.5rem 1rem; font-size: 0.85rem;
            }
            .rankings-tabs {
                -ms-overflow-style: none; scrollbar-width: none;
            }
            .rankings-tabs::-webkit-scrollbar { display: none; }
            .rankings-tabs::after {
                content: '';
                position: sticky; right: 0; top: 0;
                min-width: 2rem; height: 100%; flex-shrink: 0;
                background: linear-gradient(to right, transparent, #F5F3EE);
                pointer-events: none;
            }
        }

        /* ── Advanced Stats Toggle ── */
        .advanced-stats-toggle {
            display: flex; align-items: center; justify-content: center;
            margin: 0 0 1.5rem 0;
        }
        .advanced-stats-toggle button {
            background: var(--navy); color: var(--gold-brand); border: 2px solid var(--navy);
            padding: 0.6rem 1.5rem; border-radius: var(--r-md);
            font-family: var(--font-display); font-size: 15px; letter-spacing: 0.08em;
            text-transform: uppercase; cursor: pointer; transition: all 0.15s;
        }
        .advanced-stats-toggle button:hover {
            background: var(--navy-deep); border-color: var(--navy-deep);
        }
        .advanced-stats-panel {
            max-height: 0; overflow: hidden;
            transition: max-height 0.4s ease, opacity 0.3s ease;
            opacity: 0;
        }
        .advanced-stats-panel.open {
            max-height: 800px; opacity: 1;
        }
        .advanced-stats-grid {
            display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 1rem; margin-bottom: 2rem;
        }
        .advanced-stat-card {
            background: var(--paper); border: 1px solid var(--rule-soft); border-radius: var(--r-md);
            padding: 1.1rem; text-align: center; transition: all 0.15s;
        }
        .advanced-stat-card:hover { border-color: var(--navy); }
        .advanced-stat-value { font-family: var(--font-display); font-size: 32px; font-weight: 400; color: var(--navy); margin-bottom: 0.25rem; }
        .advanced-stat-label { font-family: var(--font-mono); font-size: 10px; color: var(--ink-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 0.12em; }
        .advanced-stat-sub { font-size: 11px; color: var(--ink-faint); margin-top: 0.2rem; font-family: var(--font-serif); font-style: italic; }
        .advanced-stat-positive { color: var(--moss); }
        .advanced-stat-negative { color: var(--rust); }

        /* ── Player Stats Table ── */
        .player-stats-section {
            background: var(--paper); border: 1px solid var(--rule-soft); border-radius: var(--r-md);
            padding: 1.75rem; margin-bottom: 2.5rem;
        }
        .player-stats-section h3 {
            font-family: var(--font-display); font-size: 28px; font-weight: 400;
            letter-spacing: 0.02em; text-transform: uppercase; line-height: 0.92;
            margin: 0 0 1rem 0; color: var(--navy);
        }
        .player-stats-header {
            display: flex; align-items: center; justify-content: space-between;
            flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem;
            padding-bottom: 10px; border-bottom: 3px solid var(--navy);
        }
        .player-stats-header h3 { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
        .player-compare-btn {
            background: var(--navy); color: var(--gold-brand); border: 2px solid var(--navy);
            padding: 0.5rem 1.2rem; border-radius: var(--r-md);
            font-family: var(--font-display); font-size: 13px; letter-spacing: 0.08em;
            text-transform: uppercase; cursor: pointer; transition: all 0.15s;
        }
        .player-compare-btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
        .player-table-wrap {
            overflow-x: auto; -webkit-overflow-scrolling: touch;
            border: 1px solid #E0D9CC; border-radius: 0.5rem;
        }
        .player-table {
            width: 100%; border-collapse: collapse; font-size: 0.85rem;
            min-width: 780px;
        }
        .player-table thead {
            background: #1B2A4A; color: #C9A86C; position: sticky; top: 0; z-index: 1;
        }
        .player-table th {
            padding: 0.6rem 0.75rem; text-align: left; font-weight: 600;
            cursor: pointer; user-select: none; white-space: nowrap;
            transition: background 0.15s;
        }
        .player-table th:hover { background: #243556; }
        .player-table th.sorted-asc::after { content: ' \25B2'; font-size: 0.65rem; }
        .player-table th.sorted-desc::after { content: ' \25BC'; font-size: 0.65rem; }
        .player-table td {
            padding: 0.55rem 0.75rem; border-bottom: 1px solid #F0EDE6;
        }
        .player-table tr:nth-child(even) { background: #FAFAF7; }
        .player-table tr:hover { background: #F5F3EE; }
        .player-table tr.leading-scorer { background: rgba(201,168,108,0.1); }
        .player-table tr.leading-scorer td:first-child { border-left: 3px solid #C9A86C; }
        .player-table .player-name-cell {
            display: flex; align-items: center; gap: 0.5rem; font-weight: 600;
        }
        .player-headshot {
            width: 28px; height: 28px; border-radius: 50%;
            object-fit: cover; background: #F0EDE6;
        }

        /* ── Player Comparison ── */
        .player-comparison-section {
            background: #FFFFFF; border: 1px solid #E0D9CC; border-radius: 0.75rem;
            padding: 1.75rem; margin-bottom: 2.5rem; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
        }
        .player-comparison-header {
            display: flex; align-items: center; justify-content: center;
            gap: 2rem; margin-bottom: 1.5rem; flex-wrap: wrap;
        }
        .player-comparison-pick {
            display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
            flex: 1; min-width: 200px; max-width: 300px;
        }
        .player-comparison-pick img {
            width: 64px; height: 64px; border-radius: 50%;
            object-fit: cover; background: #F0EDE6;
        }
        .player-comparison-pick .player-pick-name {
            font-weight: 700; font-size: 1rem; color: #1B2A4A; text-align: center;
        }
        .player-comparison-pick .player-pick-team {
            font-size: 0.78rem; color: #5F6B7A;
        }
        .player-search-wrapper {
            position: relative; width: 100%;
        }
        .player-search-input {
            width: 100%; padding: 0.5rem 0.75rem; font-size: 0.85rem;
            border: 1px solid #E0D9CC; border-radius: 0.4rem;
            outline: none; transition: border-color 0.2s;
        }
        .player-search-input:focus { border-color: #C9A86C; }
        .player-search-dropdown {
            position: absolute; top: calc(100% + 2px); left: 0; right: 0;
            background: #fff; border: 1px solid #E0D9CC; border-radius: 0.5rem;
            box-shadow: 0 8px 24px rgba(0,0,0,0.12);
            max-height: 240px; overflow-y: auto; z-index: 50; display: none;
        }
        .player-search-dropdown.open { display: block; }
        .player-search-item {
            display: flex; align-items: center; gap: 0.5rem;
            padding: 0.5rem 0.75rem; cursor: pointer; transition: background 0.15s;
        }
        .player-search-item:hover { background: #F5F3EE; }
        .player-search-item img {
            width: 24px; height: 24px; border-radius: 50%; object-fit: cover;
        }
        .player-search-item .ps-name { font-weight: 600; font-size: 0.85rem; color: #2C3345; }
        .player-search-item .ps-team { font-size: 0.72rem; color: #5F6B7A; }
        .player-comparison-vs { font-size: 1.2rem; font-weight: 700; color: #C9A86C; }
        .player-comparison-stats { margin-top: 1rem; }

        @media (max-width: 768px) {
            .advanced-stats-grid { grid-template-columns: repeat(2, 1fr); }
            .player-comparison-header { gap: 1rem; }
            .player-comparison-pick { min-width: 150px; }
        }
        @media (max-width: 480px) {
            .advanced-stats-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
            .advanced-stat-value { font-size: 1.3rem; }
            .advanced-stat-label { font-size: 0.65rem; }
        }

        /* ── Starting 5 Comparison ── */
        .s5-edge-bar {
            display: flex; align-items: center; justify-content: center; gap: 0.75rem;
            padding: 0.75rem 1.25rem; border-radius: 0.75rem; margin-bottom: 1.5rem;
            background: linear-gradient(135deg, #F8F6F1, #FFFFFF); border: 1px solid #E0D9CC;
        }
        .s5-edge-label { font-weight: 700; font-size: 0.95rem; color: #1B2A4A; }
        .s5-edge-score { font-weight: 800; font-size: 1.1rem; color: #C9A86C; }

        .s5-matchup-card {
            display: grid; grid-template-columns: 1fr auto 1fr; gap: 0;
            background: #FFFFFF; border: 1px solid #E8E2D6; border-radius: 0.75rem;
            margin-bottom: 0.75rem; overflow: hidden; transition: box-shadow 0.2s;
        }
        .s5-matchup-card:hover { box-shadow: 0 4px 16px rgba(27,42,74,0.08); }

        .s5-player-side {
            display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem;
        }
        .s5-player-side.right { flex-direction: row-reverse; text-align: right; }

        .s5-player-photo {
            width: 50px; height: 50px; border-radius: 50%; object-fit: cover;
            border: 2px solid #E0D9CC; flex-shrink: 0; background: #F5F3EE;
        }
        .s5-player-info { flex: 1; min-width: 0; }
        .s5-player-name {
            font-weight: 700; font-size: 0.9rem; color: #1B2A4A;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        .s5-player-meta { font-size: 0.75rem; color: #5F6B7A; margin-top: 0.15rem; }

        .s5-stats-grid {
            display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.25rem;
            margin-top: 0.5rem;
        }
        .s5-stat-cell { text-align: center; }
        .s5-player-side.right .s5-stat-cell { text-align: center; }
        .s5-stat-val {
            font-weight: 600; font-size: 0.85rem; color: #2C3345;
            line-height: 1.2;
        }
        .s5-stat-val.winner { font-weight: 800; color: #2E7D32; }
        .s5-stat-lbl {
            font-size: 0.6rem; font-weight: 600; color: #A0AAB8;
            text-transform: uppercase; letter-spacing: 0.03em;
        }

        .s5-vs-divider {
            display: flex; align-items: center; justify-content: center;
            width: 40px; background: #F8F6F1; border-left: 1px solid #E8E2D6;
            border-right: 1px solid #E8E2D6; font-weight: 800; font-size: 0.7rem;
            color: #A0AAB8; letter-spacing: 0.05em;
        }
        .s5-pos-badge {
            display: inline-flex; align-items: center; justify-content: center;
            background: #E8E2D6; color: #5A6578; font-weight: 700; font-size: 0.65rem;
            border-radius: 0.25rem; padding: 0.15rem 0.35rem; letter-spacing: 0.04em;
        }

        .s5-totals-card {
            display: grid; grid-template-columns: 1fr auto 1fr; gap: 0;
            background: linear-gradient(135deg, #1B2A4A, #243458); border-radius: 0.75rem;
            margin-top: 1rem; overflow: hidden; color: #fff;
        }
        .s5-totals-side {
            display: flex; flex-direction: column; align-items: center;
            padding: 1rem 1.25rem; gap: 0.35rem;
        }
        .s5-totals-side.right { text-align: right; }
        .s5-totals-label { font-size: 0.7rem; font-weight: 600; color: #5F6B7A; text-transform: uppercase; letter-spacing: 0.04em; }
        .s5-totals-val { font-weight: 700; font-size: 0.95rem; }
        .s5-totals-val.winner { color: #C9A86C; }
        .s5-totals-divider {
            display: flex; align-items: center; justify-content: center;
            width: 50px; font-weight: 800; font-size: 0.75rem; color: #C9A86C;
            border-left: 1px solid rgba(255,255,255,0.1); border-right: 1px solid rgba(255,255,255,0.1);
        }

        .s5-bench-toggle {
            display: flex; align-items: center; justify-content: center; gap: 0.5rem;
            margin-top: 1.25rem; padding: 0.6rem 1.25rem; background: none; border: 1px solid #D6CFC2;
            border-radius: 2rem; color: #5A6578; cursor: pointer; font-size: 0.85rem;
            font-weight: 600; transition: all 0.2s; width: 100%;
        }
        .s5-bench-toggle:hover { border-color: #C9A86C; color: #9E7C4A; }
        .s5-bench-toggle.active { background: #1B2A4A; border-color: #1B2A4A; color: #C9A86C; }
        .s5-bench-toggle svg { transition: transform 0.3s; }
        .s5-bench-toggle.active svg { transform: rotate(180deg); }

        .s5-bench-content { display: none; margin-top: 0.75rem; }
        .s5-bench-content.visible { display: block; }

        .s5-bench-edge {
            text-align: center; padding: 0.5rem; font-weight: 700; font-size: 0.85rem;
            color: #1B2A4A; margin-top: 0.75rem;
        }

        .s5-section-label {
            font-size: 0.75rem; font-weight: 700; color: #5F6B7A; text-transform: uppercase;
            letter-spacing: 0.06em; margin-bottom: 0.5rem; padding-left: 0.25rem;
        }

        .s5-skeleton-card {
            display: grid; grid-template-columns: 1fr auto 1fr; gap: 0;
            background: #FFFFFF; border: 1px solid #E8E2D6; border-radius: 0.75rem;
            margin-bottom: 0.75rem; overflow: hidden;
        }
        .s5-skeleton-side { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; }
        .s5-skeleton-side.right { flex-direction: row-reverse; }

        .s5-team-accent-left { border-left: 3px solid var(--team1-color, #1B2A4A); }
        .s5-team-accent-right { border-right: 3px solid var(--team2-color, #C9A86C); }

        @media (max-width: 640px) {
            .s5-matchup-card, .s5-totals-card, .s5-skeleton-card {
                grid-template-columns: 1fr;
            }
            .s5-player-side.right { flex-direction: row; text-align: left; }
            .s5-vs-divider {
                width: 100%; height: 28px; border-left: none; border-right: none;
                border-top: 1px solid #E8E2D6; border-bottom: 1px solid #E8E2D6;
            }
            .s5-totals-divider {
                width: 100%; height: 32px; border-left: none; border-right: none;
                border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1);
            }
            .s5-skeleton-side.right { flex-direction: row; }
            .s5-player-side { padding: 0.75rem 1rem; }
        }

        /* ══════════════════════════════════════════════
           MOBILE RESPONSIVENESS AUDIT FIXES
           ══════════════════════════════════════════════ */

        /* ── 768px: Tablet / Large Phone ── */
        @media (max-width: 768px) {

            /* Championship run box score tables: prevent stat cells from wrapping */
            .champ-run-boxscore-inner table {
                min-width: 360px;
            }
            .champ-run-boxscore-inner table td,
            .champ-run-boxscore-inner table th {
                white-space: nowrap;
                padding: 0.25rem 0.3rem;
                font-size: 0.72rem;
            }
            .champ-run-boxscore-inner table td:first-child,
            .champ-run-boxscore-inner table th:first-child {
                max-width: 90px;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            /* Championship run stats: prevent MOP name overflow */
            .champ-run-stat-value {
                font-size: 1.4rem;
                word-break: break-word;
                overflow-wrap: break-word;
            }

            /* Milestone banner: wrap content on mobile */
            #milestoneBanner {
                flex-wrap: wrap !important;
                font-size: 0.78rem !important;
                padding: 0.5rem 2rem 0.5rem 0.75rem !important;
                gap: 0.4rem !important;
            }

            /* Upset watch: fix minmax(340px) being too wide for 375px phones */
            .upset-watch-container {
                grid-template-columns: 1fr;
            }

            /* H2H detail header: tighter spacing on mobile */
            .h2h-detail-header {
                gap: 0.75rem;
                padding: 0.75rem 0 0.5rem;
            }
            .h2h-detail-score {
                font-size: 1.2rem;
            }

            /* Game detail OT suffix: reduce size */
            .game-detail-score-ot {
                font-size: 1.2rem;
            }

            /* Starting 5: tighter stat grid */
            .s5-stats-grid {
                gap: 0.15rem;
            }
            .s5-stat-val {
                font-size: 0.75rem;
            }
            .s5-stat-lbl {
                font-size: 0.55rem;
            }
            .s5-player-name {
                font-size: 0.8rem;
            }
            .s5-player-photo {
                width: 40px;
                height: 40px;
            }
        }

        /* ── 480px: Small Phone ── */
        @media (max-width: 480px) {

            /* Championship run hero: tighter padding */
            .champ-run-hero {
                padding: 1.5rem 1rem;
            }
            .champ-run-hero-logo {
                width: 72px;
                height: 72px;
            }
            .champ-run-hero-team {
                font-size: 1.35rem;
            }

            /* Championship run tournament path: narrower columns */
            .champ-run-game {
                grid-template-columns: 85px 1fr auto;
                gap: 0.35rem;
                padding: 0.6rem 0.5rem 0.6rem 0.75rem;
            }
            .champ-run-round {
                font-size: 0.58rem;
            }
            .champ-run-opp-name {
                font-size: 0.78rem;
            }
            .champ-run-opp-logo {
                width: 24px;
                height: 24px;
            }
            .champ-run-score-value {
                font-size: 0.88rem;
            }

            /* Championship run stats: 2-col grid, smaller text */
            .champ-run-stats {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.6rem;
            }
            .champ-run-stat {
                padding: 0.75rem 0.35rem;
            }
            .champ-run-stat-value {
                font-size: 1.2rem;
            }

            /* Championship run box score: even tighter */
            .champ-run-boxscore-inner {
                padding: 0.6rem 0.5rem;
            }
            .champ-run-boxscore-inner > div {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
            .champ-run-boxscore-inner table {
                min-width: 340px;
            }
            .champ-run-boxscore-inner table td,
            .champ-run-boxscore-inner table th {
                padding: 0.2rem 0.25rem;
                font-size: 0.68rem;
            }

            /* Game detail hero: reduce score size further */
            .game-detail-score-num {
                font-size: 1.8rem;
            }
            .game-detail-score-dash {
                font-size: 1.4rem;
            }
            .game-detail-matchup {
                gap: 0.75rem;
            }
            .game-detail-team-logo {
                width: 50px;
                height: 50px;
            }
            .game-detail-team-name {
                font-size: 0.8rem;
                max-width: 100px;
            }

            /* Coaches table: reduce min-width so it scrolls less */
            .season-table-wrapper table {
                min-width: 550px !important;
            }

            /* Game center header: tighter */
            .game-center-header {
                gap: 0.5rem;
                padding: 0.75rem;
            }
            .game-center-score {
                font-size: 1.8rem;
            }

            /* Comparison view: tighter stat bars */
            .stat-value {
                font-size: 0.78rem;
                min-width: 30px;
            }
            .stat-label {
                font-size: 0.68rem;
            }
        }

        /* ── Random Matchup Widget ── */
        .random-matchup-widget {
            background: linear-gradient(135deg, #1B2A4A 0%, #2A3D66 100%);
            border-radius: 0.75rem;
            margin-bottom: 1.5rem;
            overflow: hidden;
            box-shadow: 0 4px 16px rgba(0,0,0,0.12);
        }
        .rm-header {
            display: flex; align-items: center; justify-content: space-between;
            padding: 0.75rem 1.25rem;
            border-bottom: 1px solid rgba(255,255,255,0.08);
        }
        .rm-header-title {
            font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em;
            text-transform: uppercase; color: #C9A86C;
        }
        .rm-shuffle-btn {
            background: rgba(201,168,108,0.15); border: 1px solid rgba(201,168,108,0.3);
            color: #C9A86C; font-size: 0.72rem; font-weight: 700;
            padding: 0.3rem 0.75rem; border-radius: 1rem; cursor: pointer;
            transition: all 0.2s;
        }
        .rm-shuffle-btn:hover { background: rgba(201,168,108,0.25); }
        .rm-body {
            display: flex; align-items: center; justify-content: center;
            padding: 1.25rem; gap: 1rem;
        }
        .rm-team {
            flex: 1; text-align: center; max-width: 160px;
        }
        .rm-team-logo {
            width: 56px; height: 56px; background-size: contain;
            background-repeat: no-repeat; background-position: center;
            margin: 0 auto 0.4rem; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
        }
        .rm-team-name {
            font-size: 0.82rem; font-weight: 700; color: #F5F3EE;
            line-height: 1.2; margin-bottom: 0.15rem;
        }
        .rm-team-season {
            font-size: 0.7rem; color: #5F6B7A;
        }
        .rm-team-record {
            font-size: 0.68rem; color: #C9A86C; font-weight: 600;
        }
        .rm-center {
            text-align: center; flex-shrink: 0;
        }
        .rm-score {
            font-size: 1.6rem; font-weight: 900; color: #F5F3EE;
            letter-spacing: 0.03em; margin-bottom: 0.2rem;
        }
        .rm-predicted { font-size: 0.6rem; color: #5F6B7A; text-transform: uppercase; letter-spacing: 0.1em; }
        .rm-prob {
            font-size: 0.68rem; color: #C9A86C; font-weight: 600; margin-top: 0.25rem;
        }
        .rm-footer {
            text-align: center; padding: 0 1.25rem 1rem;
        }
        .rm-explore-btn {
            background: none; border: none; color: #C9A86C;
            font-size: 0.72rem; font-weight: 600; cursor: pointer;
            text-decoration: underline; opacity: 0.8;
        }
        .rm-explore-btn:hover { opacity: 1; }
        @media (max-width: 480px) {
            .rm-body { padding: 1rem 0.75rem; gap: 0.5rem; }
            .rm-team-logo { width: 42px; height: 42px; }
            .rm-score { font-size: 1.3rem; }
            .rm-team-name { font-size: 0.75rem; }
        }

        /* ── Program Trajectory ── */
        .trajectory-intro {
            color: var(--ink-muted); font-size: 0.85rem; margin-bottom: 1.25rem; line-height: 1.6;
        }
        .trajectory-window-tabs {
            display: flex; gap: 0.5rem; margin-bottom: 1.25rem; flex-wrap: wrap;
        }
        .trajectory-window-tab {
            background: var(--paper); border: 1px solid var(--rule-soft); border-radius: 2px;
            padding: 6px 14px; font-family: var(--font-mono); font-size: 11px; font-weight: 600;
            letter-spacing: 0.08em; text-transform: uppercase;
            color: var(--ink-muted); cursor: pointer; transition: all 0.2s;
        }
        .trajectory-window-tab.active {
            background: var(--navy); color: var(--gold-brand); border-color: var(--navy);
        }
        .trajectory-section-title {
            font-family: var(--font-display); font-size: 22px; font-weight: 400;
            letter-spacing: 0.02em; text-transform: uppercase; color: var(--navy);
            margin: 1.5rem 0 0.85rem; display: flex; align-items: center; gap: 0.5rem;
        }
        .trajectory-section-title .arrow-up { color: var(--moss); }
        .trajectory-section-title .arrow-down { color: var(--rust); }
        .trajectory-grid {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 1rem; margin-bottom: 1.5rem;
        }
        .trajectory-card {
            background: var(--paper); border: 1px solid var(--rule-soft); border-radius: var(--r-md);
            padding: 1rem 1.25rem; display: flex; align-items: center; gap: 1rem;
            cursor: pointer;
        }
        .trajectory-card:hover { background: var(--cream-soft); }
        .trajectory-card-logo {
            width: 44px; height: 44px; background-size: contain;
            background-repeat: no-repeat; background-position: center; flex-shrink: 0;
        }
        .trajectory-card-info { flex: 1; min-width: 0; }
        .trajectory-card-name {
            font-family: var(--font-serif); font-size: 14px; font-weight: 700; color: var(--navy);
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        .trajectory-card-conf {
            font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted);
        }
        .trajectory-card-stats {
            display: flex; gap: 0.75rem; margin-top: 0.3rem;
        }
        .trajectory-card-stat {
            font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); letter-spacing: 0.04em;
        }
        .trajectory-card-stat strong { font-family: var(--font-serif); color: var(--navy); font-feature-settings: "tnum" 1, "lnum" 1; }
        .trajectory-card-delta {
            text-align: right; flex-shrink: 0;
        }
        .trajectory-delta-value {
            font-family: var(--font-display); font-size: 22px; font-weight: 400;
        }
        .trajectory-delta-value.rising { color: var(--moss); }
        .trajectory-delta-value.falling { color: var(--rust); }
        .trajectory-delta-label {
            font-family: var(--font-mono); font-size: 9px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.12em;
        }
        .trajectory-sparkline {
            display: flex; align-items: flex-end; gap: 1px; height: 24px; margin-top: 0.3rem;
        }
        .trajectory-spark-bar {
            flex: 1; min-width: 3px; max-width: 8px; border-radius: 1px 1px 0 0;
            background: var(--gold-brand); opacity: 0.6; transition: opacity 0.2s;
        }
        .trajectory-spark-bar.recent { opacity: 1; background: var(--navy); }

        /* ── Ask Hoopsipedia Chat Panel ── */
        .chat-overlay {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.3); z-index: 299;
            opacity: 0; pointer-events: none; transition: opacity 0.3s;
        }
        .chat-overlay.open { opacity: 1; pointer-events: auto; }
        .chat-panel {
            position: fixed; top: 0; right: 0; bottom: 0; width: 420px;
            background: #FFFFFF; z-index: 300;
            transform: translateX(100%); transition: transform 0.3s ease;
            display: flex; flex-direction: column;
            box-shadow: -4px 0 20px rgba(0,0,0,0.15);
        }
        .chat-panel.open { transform: translateX(0); }
        .chat-header {
            background: #1B2A4A; color: #F5F3EE; padding: 0.85rem 1.25rem;
            display: flex; align-items: center; justify-content: space-between;
            border-bottom: 3px solid #C9A86C; flex-shrink: 0;
        }
        .chat-header-title {
            font-size: 0.95rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem;
        }
        .chat-beta-badge {
            background: #C9A86C; color: #1B2A4A; font-size: 0.55rem; font-weight: 800;
            padding: 0.15rem 0.4rem; border-radius: 0.25rem; letter-spacing: 0.08em;
        }
        .chat-close-btn {
            background: none; border: none; color: #5F6B7A; font-size: 1.4rem;
            cursor: pointer; padding: 0; line-height: 1; transition: color 0.2s;
        }
        .chat-close-btn:hover { color: #F5F3EE; }
        .chat-messages {
            flex: 1; overflow-y: auto; padding: 1rem; display: flex;
            flex-direction: column; gap: 0.75rem; scroll-behavior: smooth;
        }
        .chat-msg {
            max-width: 88%; padding: 0.65rem 0.9rem; border-radius: 0.75rem;
            font-size: 0.85rem; line-height: 1.5; word-wrap: break-word;
        }
        .chat-msg-user {
            align-self: flex-end; background: #1B2A4A; color: #F5F3EE;
            border-bottom-right-radius: 0.2rem;
        }
        .chat-msg-assistant {
            align-self: flex-start; background: #F5F3EE; color: #2C3345;
            border-bottom-left-radius: 0.2rem;
        }
        .chat-msg-assistant strong { color: #1B2A4A; }
        .chat-msg-link {
            display: inline-block; background: #1B2A4A; color: #C9A86C;
            padding: 0.3rem 0.75rem; border-radius: 1rem; font-size: 0.75rem;
            font-weight: 600; text-decoration: none; margin-top: 0.4rem;
            cursor: pointer; transition: all 0.2s; border: none;
        }
        .chat-msg-link:hover { background: #2A3D66; }
        .chat-welcome { text-align: center; padding: 1rem 0; }
        .chat-welcome-text {
            color: #5A6578; font-size: 0.85rem; line-height: 1.6; margin-bottom: 1rem;
        }
        .chat-starter-chips {
            display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
        }
        .chat-starter-chip {
            background: #F5F3EE; border: 1px solid #E0D9CC; border-radius: 1rem;
            padding: 0.35rem 0.75rem; font-size: 0.75rem; color: #1B2A4A;
            cursor: pointer; transition: all 0.2s; font-weight: 500;
        }
        .chat-starter-chip:hover { background: #1B2A4A; color: #C9A86C; border-color: #1B2A4A; }
        .chat-input-area {
            display: flex; gap: 0.5rem; padding: 0.75rem 1rem;
            border-top: 1px solid #E0D9CC; background: #FFFFFF; flex-shrink: 0;
        }
        .chat-input {
            flex: 1; border: 1px solid #D6CFC2; border-radius: 1.25rem;
            padding: 0.55rem 1rem; font-size: 0.85rem; color: #2C3345;
            outline: none; transition: border-color 0.2s;
            font-family: -apple-system, system-ui, "Segoe UI", sans-serif;
        }
        .chat-input:focus { border-color: #C9A86C; }
        .chat-send-btn {
            background: #1B2A4A; color: #C9A86C; border: none;
            width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: background 0.2s; flex-shrink: 0;
        }
        .chat-send-btn:hover { background: #2A3D66; }
        .chat-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }
        .chat-typing {
            display: flex; gap: 4px; align-items: center; padding: 0.5rem 0;
        }
        .chat-typing-dot {
            width: 6px; height: 6px; background: #5F6B7A; border-radius: 50%;
            animation: chatBounce 1.2s infinite;
        }
        .chat-typing-dot:nth-child(2) { animation-delay: 0.2s; }
        .chat-typing-dot:nth-child(3) { animation-delay: 0.4s; }
        @keyframes chatBounce {
            0%, 60%, 100% { transform: translateY(0); }
            30% { transform: translateY(-4px); }
        }
        .chat-error {
            color: #C9463E; font-size: 0.78rem; text-align: center;
            padding: 0.5rem; background: #FFF5F5; border-radius: 0.5rem;
        }
        @media (max-width: 768px) {
            .chat-panel { width: 100%; }
        }

        /* ── Rivalry Pages ── */
        .rivalries-header {
            text-align: center; padding: 2rem 1rem 1.5rem;
        }
        .rivalries-header h2 {
            font-size: 1.8rem; color: #1B2A4A; margin-bottom: 0.3rem;
        }
        .rivalries-header p {
            color: #6B7280; font-size: 0.95rem;
        }
        .rivalries-grid {
            display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
            gap: 1.25rem; padding: 0 1rem 2rem; max-width: 1200px; margin: 0 auto;
        }
        .rivalry-card {
            background: #1B2A4A; border-radius: 1rem; padding: 1.5rem;
            cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
            display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        }
        .rivalry-card:hover {
            transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.25);
        }
        .rivalry-card-logos {
            display: flex; align-items: center; gap: 1rem; justify-content: center;
        }
        .rivalry-card-logos img {
            width: 64px; height: 64px; object-fit: contain;
            background: rgba(255,255,255,0.1); border-radius: 50%; padding: 6px;
        }
        .rivalry-card-vs {
            font-size: 1.1rem; font-weight: 800; color: #C9A86C;
        }
        .rivalry-card-name {
            font-size: 1.05rem; font-weight: 700; color: #fff; text-align: center;
        }
        .rivalry-card-record {
            font-size: 0.85rem; color: rgba(255,255,255,0.7); text-align: center;
        }
        .rivalry-card-desc {
            font-size: 0.78rem; color: rgba(255,255,255,0.5); text-align: center;
            line-height: 1.4;
        }

        /* ── Individual Rivalry Page ── */
        .rivalry-hero {
            position: relative; padding: 2.5rem 1rem 2rem; text-align: center;
            overflow: hidden; border-radius: 0 0 1.5rem 1.5rem;
            margin-bottom: 2rem;
        }
        .rivalry-hero-bg {
            position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0;
        }
        .rivalry-hero-bg-left, .rivalry-hero-bg-right {
            position: absolute; top: 0; bottom: 0; width: 50%;
        }
        .rivalry-hero-bg-left { left: 0; }
        .rivalry-hero-bg-right { right: 0; }
        .rivalry-hero-overlay {
            position: absolute; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.45); z-index: 1;
        }
        .rivalry-hero-content {
            position: relative; z-index: 2;
        }
        .rivalry-hero-teams {
            display: flex; align-items: center; justify-content: center; gap: 1.5rem;
            margin-bottom: 1rem;
        }
        .rivalry-hero-team {
            display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
        }
        .rivalry-hero-team img {
            width: 100px; height: 100px; object-fit: contain;
            filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
        }
        .rivalry-hero-team-name {
            color: #fff; font-size: 0.95rem; font-weight: 700;
            text-shadow: 0 1px 4px rgba(0,0,0,0.5);
        }
        .rivalry-hero-vs {
            font-size: 2rem; font-weight: 900; color: #C9A86C;
            text-shadow: 0 2px 8px rgba(0,0,0,0.5);
        }
        .rivalry-hero-title {
            font-size: 1.6rem; font-weight: 800; color: #fff;
            text-shadow: 0 2px 8px rgba(0,0,0,0.5); margin-bottom: 0.3rem;
        }
        .rivalry-hero-series {
            font-size: 1.1rem; color: rgba(255,255,255,0.9);
            text-shadow: 0 1px 4px rgba(0,0,0,0.4);
        }
        .rivalry-back {
            display: inline-flex; align-items: center; gap: 0.4rem;
            color: rgba(255,255,255,0.8); font-size: 0.85rem; cursor: pointer;
            text-decoration: none; margin-bottom: 1rem;
        }
        .rivalry-back:hover { color: #C9A86C; }

        .rivalry-section {
            max-width: 1000px; margin: 0 auto 2rem; padding: 0 1rem;
        }
        .rivalry-section-title {
            font-size: 1.2rem; font-weight: 700; color: #1B2A4A;
            margin-bottom: 1rem; padding-bottom: 0.5rem;
            border-bottom: 2px solid #C9A86C;
        }

        /* Timeline */
        .rivalry-timeline {
            display: flex; flex-direction: column; gap: 0.5rem;
        }
        .rivalry-decade-row {
            display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem;
        }
        .rivalry-decade-label {
            width: 50px; text-align: right; font-weight: 600; color: #4B5563;
            flex-shrink: 0;
        }
        .rivalry-decade-bar {
            flex: 1; display: flex; height: 28px; border-radius: 4px; overflow: hidden;
            background: #E5E7EB;
        }
        .rivalry-decade-bar > div {
            display: flex; align-items: center; justify-content: center;
            font-size: 0.72rem; font-weight: 700; color: #fff;
            min-width: 24px; transition: width 0.3s;
        }
        .rivalry-decade-counts {
            width: 70px; font-size: 0.78rem; color: #6B7280; flex-shrink: 0;
        }

        /* Biggest Wins */
        .rivalry-biggest-wins {
            display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
        }
        .rivalry-biggest-col h4 {
            display: flex; align-items: center; gap: 0.5rem;
            font-size: 0.95rem; color: #1B2A4A; margin-bottom: 0.75rem;
        }
        .rivalry-biggest-col h4 img {
            width: 24px; height: 24px; object-fit: contain;
        }
        .rivalry-win-item {
            display: flex; justify-content: space-between; align-items: center;
            padding: 0.5rem 0.75rem; background: #F9FAFB; border-radius: 0.5rem;
            margin-bottom: 0.4rem; font-size: 0.82rem;
        }
        .rivalry-win-margin {
            font-weight: 700; color: #1B2A4A;
        }
        .rivalry-win-date {
            color: #6B7280; font-size: 0.75rem;
        }

        /* Recent Meetings */
        .rivalry-recent-table {
            width: 100%; border-collapse: collapse; font-size: 0.85rem;
        }
        .rivalry-recent-table th {
            text-align: left; padding: 0.5rem 0.75rem; background: #1B2A4A;
            color: #C9A86C; font-weight: 600; font-size: 0.78rem;
        }
        .rivalry-recent-table th:first-child { border-radius: 0.5rem 0 0 0; }
        .rivalry-recent-table th:last-child { border-radius: 0 0.5rem 0 0; }
        .rivalry-recent-table td {
            padding: 0.5rem 0.75rem; border-bottom: 1px solid #E5E7EB;
        }
        .rivalry-recent-table tr:nth-child(even) { background: #FAFAF8; }
        .rivalry-recent-winner {
            font-weight: 700;
        }

        /* Quick Stats */
        .rivalry-stats-grid {
            display: grid; grid-template-columns: 1fr auto 1fr; gap: 0;
            border-radius: 0.75rem; overflow: hidden; border: 1px solid #E5E7EB;
        }
        .rivalry-stats-grid .rs-label {
            text-align: center; padding: 0.6rem 0.5rem;
            font-size: 0.78rem; font-weight: 600; color: #6B7280;
            background: #F3F4F6; border-bottom: 1px solid #E5E7EB;
        }
        .rivalry-stats-grid .rs-val {
            padding: 0.6rem 0.75rem; font-size: 0.9rem; font-weight: 700;
            border-bottom: 1px solid #E5E7EB;
        }
        .rivalry-stats-grid .rs-val-left { text-align: right; }
        .rivalry-stats-grid .rs-val-right { text-align: left; }
        .rivalry-stats-grid .rs-better { color: #1B6B3A; }

        .rivalry-compare-link {
            display: inline-flex; align-items: center; gap: 0.4rem;
            margin-top: 1.5rem; padding: 0.6rem 1.2rem; background: #1B2A4A;
            color: #C9A86C; border-radius: 0.5rem; text-decoration: none;
            font-size: 0.85rem; font-weight: 600; cursor: pointer;
            transition: background 0.2s;
        }
        .rivalry-compare-link:hover { background: #263a5e; }

        @media (max-width: 640px) {
            .rivalry-hero-team img { width: 70px; height: 70px; }
            .rivalry-hero-vs { font-size: 1.4rem; }
            .rivalry-hero-title { font-size: 1.2rem; }
            .rivalry-biggest-wins { grid-template-columns: 1fr; }
            .rivalries-grid { grid-template-columns: 1fr; }
            .rivalry-card-logos img { width: 48px; height: 48px; }
        }

