        :root {
            --ff-primary: #0057ff;
            --ff-primary-dark: #0047d5;
            --ff-secondary: #2f6cff;
            --ff-accent: #233b9e;
        }

        [data-theme="dark"] {
            --bg-primary: #08111f;
            --bg-secondary: #0d1930;
            --surface: rgba(11, 22, 37, 0.92);
            --surface-light: rgba(17, 27, 44, 0.92);
            --surface-hover: rgba(24, 38, 57, 0.96);
            --border: rgba(148, 168, 198, 0.18);
            --border-light: rgba(148, 168, 198, 0.26);
            --text-primary: #f3f7ff;
            --text-secondary: #c2d0e6;
            --text-muted: #8ea2c0;
            --input-bg: rgba(17, 27, 44, 0.92);
            --row-alt: rgba(17, 27, 44, 0.64);
            --row-hover: rgba(24, 38, 57, 0.88);
            --badge-qb: rgba(228, 139, 139, 0.18);
            --badge-qb-text: #f2b6b6;
            --badge-rb: rgba(156, 179, 255, 0.16);
            --badge-rb-text: #cfdcff;
            --badge-wr: rgba(132, 208, 183, 0.16);
            --badge-wr-text: #bcebd9;
            --badge-te: rgba(246, 199, 114, 0.18);
            --badge-te-text: #f8d899;
            --badge-k: rgba(194, 166, 255, 0.18);
            --badge-k-text: #dbc7ff;
            --badge-def: rgba(169, 180, 209, 0.18);
            --badge-def-text: #e3e9ff;
        }

        [data-theme="light"] {
            --bg-primary: #eff4fb;
            --bg-secondary: #f7fbff;
            --surface: rgba(255, 255, 255, 0.92);
            --surface-light: rgba(241, 245, 251, 0.96);
            --surface-hover: #edf3fb;
            --border: rgba(7, 16, 31, 0.08);
            --border-light: rgba(7, 16, 31, 0.14);
            --text-primary: #07101f;
            --text-secondary: #42516c;
            --text-muted: #7d8ca8;
            --input-bg: rgba(255, 255, 255, 0.94);
            --row-alt: rgba(241, 245, 251, 0.72);
            --row-hover: rgba(229, 238, 247, 0.92);
            --badge-qb: rgba(189, 71, 71, 0.12);
            --badge-qb-text: #9c3333;
            --badge-rb: rgba(35, 59, 158, 0.1);
            --badge-rb-text: #233b9e;
            --badge-wr: rgba(23, 95, 75, 0.1);
            --badge-wr-text: #175f4b;
            --badge-te: rgba(214, 141, 58, 0.12);
            --badge-te-text: #b66b16;
            --badge-k: rgba(111, 121, 144, 0.14);
            --badge-k-text: #566078;
            --badge-def: rgba(69, 85, 112, 0.14);
            --badge-def-text: #34405b;
        }

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

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: transparent;
            color: var(--text-primary);
            min-height: 100vh;
            -webkit-font-smoothing: antialiased;
        }

        /* Header handled by gpt-header.js */

        /* ── Controls bar ── */
        .controls-bar {
            background: var(--surface);
            border-bottom: 1px solid var(--border);
            padding: 12px 24px;
        }
        .controls-inner {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        /* Search */
        .search-box {
            position: relative;
            flex: 0 1 280px;
            min-width: 180px;
        }
        .search-box svg {
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            width: 15px;
            height: 15px;
            color: var(--text-muted);
            pointer-events: none;
        }
        .search-box input {
            width: 100%;
            padding: 7px 10px 7px 32px;
            background: var(--input-bg);
            border: 1px solid var(--border);
            border-radius: 7px;
            color: var(--text-primary);
            font-size: 13px;
            font-family: inherit;
            outline: none;
            transition: border-color 0.15s ease;
        }
        .search-box input::placeholder { color: var(--text-muted); }
        .search-box input:focus { border-color: var(--ff-primary); }

        /* Button groups */
        .btn-group {
            display: flex;
            border-radius: 7px;
            overflow: hidden;
            border: 1px solid var(--border);
        }
        .btn-group button {
            padding: 7px 12px;
            background: var(--input-bg);
            border: none;
            border-right: 1px solid var(--border);
            color: var(--text-muted);
            font-size: 12px;
            font-weight: 500;
            font-family: inherit;
            cursor: pointer;
            transition: all 0.15s ease;
            white-space: nowrap;
        }
        .btn-group button:last-child { border-right: none; }
        .btn-group button:hover { color: var(--text-primary); background: var(--surface-hover); }
        .btn-group button.active {
            background: var(--ff-primary);
            color: #fff;
        }

        .controls-spacer { flex: 1; }

        .player-count {
            font-size: 12px;
            color: var(--text-muted);
            white-space: nowrap;
        }

        /* ── Table ── */
        .table-wrap {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 24px 40px;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: thin;
            scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
        }
        .table-wrap::-webkit-scrollbar { height: 6px; }
        .table-wrap::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.18);
            border-radius: 3px;
        }

        .mobile-projection-cards { display: none; }

        table {
            width: 100%;
            border-collapse: collapse;
            min-width: 700px;
        }

        thead {
            position: sticky;
            top: 0;
            z-index: 10;
        }
        thead th {
            background: var(--surface);
            border-bottom: 2px solid var(--ff-primary);
            padding: 10px 14px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: var(--text-muted);
            text-align: left;
            cursor: pointer;
            user-select: none;
            white-space: nowrap;
            transition: color 0.15s ease;
            position: relative;
        }
        thead th:hover { color: var(--text-primary); }
        thead th.sort-asc,
        thead th.sort-desc { color: var(--ff-primary); }
        thead th .sort-arrow {
            display: inline-block;
            margin-left: 4px;
            font-size: 10px;
            opacity: 0;
            transition: opacity 0.15s ease;
        }
        thead th:hover .sort-arrow { opacity: 0.4; }
        thead th.sort-asc .sort-arrow,
        thead th.sort-desc .sort-arrow { opacity: 1; }

        /* Right-align numeric columns */
        th.col-num, td.col-num { text-align: right; }

        tbody tr {
            border-bottom: 1px solid var(--border);
            transition: background 0.1s ease;
        }
        tbody tr:nth-child(even) { background: var(--row-alt); }
        tbody tr:hover { background: var(--row-hover); }

        td {
            padding: 9px 14px;
            font-size: 13px;
            color: var(--text-secondary);
            white-space: nowrap;
        }

        td.col-rank {
            font-weight: 600;
            color: var(--text-muted);
            font-size: 12px;
            width: 50px;
        }
        td.col-name {
            font-weight: 600;
            color: var(--text-primary);
            max-width: 200px;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        td.col-team {
            font-weight: 500;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.03em;
        }

        /* Position badges */
        .pos-badge {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.03em;
        }
        .pos-QB  { background: var(--badge-qb);  color: var(--badge-qb-text); }
        .pos-RB  { background: var(--badge-rb);  color: var(--badge-rb-text); }
        .pos-WR  { background: var(--badge-wr);  color: var(--badge-wr-text); }
        .pos-TE  { background: var(--badge-te);  color: var(--badge-te-text); }
        .pos-K   { background: var(--badge-k);   color: var(--badge-k-text); }
        .pos-DEF { background: var(--badge-def); color: var(--badge-def-text); }

        td.col-pts {
            font-weight: 700;
            color: var(--text-primary);
        }
        td.col-ppg {
            font-weight: 600;
            color: var(--ff-secondary);
        }

        /* ── Empty state ── */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-muted);
        }
        .empty-state p:first-child {
            font-size: 15px;
            font-weight: 500;
            margin-bottom: 6px;
            color: var(--text-secondary);
        }
        .empty-state p:last-child {
            font-size: 13px;
        }

        /* ── Loading state ── */
        .loading-state {
            text-align: center;
            padding: 80px 20px;
            color: var(--text-muted);
            font-size: 14px;
        }
        .loading-spinner {
            width: 28px;
            height: 28px;
            border: 3px solid var(--border);
            border-top-color: var(--ff-primary);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin: 0 auto 16px;
        }
        @keyframes spin { to { transform: rotate(360deg); } }

        /* ── Footer ── */
        .page-footer {
            background: var(--surface);
            border-top: 1px solid var(--border);
            padding: 16px 24px;
            text-align: center;
        }
        .footer-inner {
            max-width: 1400px;
            margin: 0 auto;
            font-size: 12px;
            color: var(--text-muted);
        }
        .footer-inner a {
            color: var(--ff-primary);
            text-decoration: none;
        }
        .footer-inner a:hover { text-decoration: underline; }

        /* ── Responsive ── */
        @media (max-width: 768px) {
            .controls-bar { padding: 10px 16px; }
            .controls-inner { gap: 8px; }
            .search-box { flex: 1 1 100%; order: -1; }
            .search-box input { min-height: 44px; font-size: 16px; }

            .btn-group {
                flex: 1 1 100%;
                flex-wrap: wrap;
                overflow: visible;
            }
            .btn-group button {
                flex: 1 1 auto;
                min-width: 44px;
                min-height: 44px;
                padding: 9px 10px;
                font-size: 12px;
            }

            .table-wrap {
                overflow-x: visible;
                padding: 0 16px 32px;
            }

            .table-wrap > table { display: none; }

            .mobile-projection-cards {
                display: grid;
                gap: 12px;
            }

            .mobile-projection-card {
                display: grid;
                gap: 12px;
                padding: 14px;
                border: 1px solid var(--border);
                border-radius: 8px;
                background: var(--surface);
                box-shadow: 0 10px 24px rgba(7, 16, 31, 0.08);
            }

            .mobile-projection-card-head {
                display: grid;
                grid-template-columns: auto minmax(0, 1fr);
                gap: 12px;
                align-items: center;
            }

            .mobile-projection-rank {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                min-width: 42px;
                min-height: 42px;
                border-radius: 8px;
                background: var(--ff-primary);
                color: #fff;
                font-weight: 800;
            }

            .mobile-projection-card strong {
                color: var(--text-primary);
                overflow-wrap: anywhere;
            }

            .mobile-projection-meta {
                display: flex;
                flex-wrap: wrap;
                gap: 8px;
                align-items: center;
                margin-top: 6px;
                color: var(--text-muted);
                font-size: 12px;
            }

            .mobile-projection-grid {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 8px;
            }

            .mobile-projection-grid div {
                display: grid;
                gap: 3px;
                padding: 10px;
                border-radius: 8px;
                background: var(--surface-light);
            }

            .mobile-projection-grid span {
                color: var(--text-muted);
                font-size: 10px;
                font-weight: 700;
                letter-spacing: 0.05em;
                text-transform: uppercase;
            }

            thead th { padding: 8px 10px; font-size: 10px; }
            td { padding: 8px 10px; font-size: 12px; }

            /* Sticky first column (rank + name) on mobile */
            thead th:first-child,
            tbody td:first-child {
                position: sticky;
                left: 0;
                z-index: 3;
                background: var(--surface, #f8fafc);
            }
            tbody tr:nth-child(even) td:first-child {
                background: var(--row-alt, #f1f5f9);
            }
            tbody tr:hover td:first-child {
                background: var(--row-hover, #e8f0fe);
            }
        }

        @media (max-width: 480px) {
            .controls-inner { gap: 6px; }
            .btn-group button { min-width: 44px; min-height: 44px; padding: 8px 7px; font-size: 11px; }
            .player-count { display: none; }
        }
