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

        /* ==========================================================
           Design tokens
           Cream ground, forest green primary, rust for "skip".
           ========================================================== */
        :root {
            color-scheme: light;

            /* Surfaces */
            --bg-primary: #f6f4ee;
            --bg-elevated: #fdfcf9;
            --bg-hover: #edeae2;
            --bg-active: #e3dfd5;
            --bg-active-alt: #d5d0c4;
            --bg-hero: #1f3d2e;

            /* Text */
            --text-primary: #14201a;
            --text-secondary: #5c635e;
            --text-muted: #8a908b;
            --text-on-hero: #f6f4ee;
            --text-on-hero-muted: rgba(246, 244, 238, 0.72);

            /* Lines */
            --border-primary: #d6d2c8;
            --border-secondary: #e6e2d9;

            /* Brand */
            --color-primary: #1f3d2e;
            --color-primary-hover: #27503b;
            --color-primary-contrast: #f6f4ee;
            --color-danger: #b0412d;

            /* Metric colors for score breakdown */
            --metric-tension: #b7cfc0;
            --metric-drama: #1f3d2e;
            --metric-finish: #3b7a57;

            /* Tiers */
            --accent-must-watch: #1f3d2e;
            --accent-recommended: #3b7a57;
            --accent-skip: #a24e36;
            --accent-average: #7d6f9a;

            /* Depth */
            --shadow-popover: 0 8px 24px rgba(20, 32, 26, 0.12), 0 1px 2px rgba(20, 32, 26, 0.06);
            --shadow-modal: 0 16px 48px rgba(20, 32, 26, 0.18);
            --shadow-card: 0 1px 2px rgba(20, 32, 26, 0.04);
            --overlay: rgba(20, 32, 26, 0.45);

            /* Shape */
            --radius-sm: 6px;
            --radius-card: 12px;
            --radius-pill: 999px;

            /* Type */
            --font-display: 'Newsreader', 'Tiempos Headline', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
            --font-headline: 'Big Shoulders Display', 'Oswald', 'Arial Narrow', Impact, sans-serif;
            --font-wordmark: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
            --font-condensed: 'Oswald', 'Arial Narrow', 'Helvetica Neue Condensed', Impact, sans-serif;
            --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
            --font-mono: 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

            /* Layout */
            --page-max-width: 1120px;
            --page-padding: 40px;
        }

        html {
            -webkit-text-size-adjust: 100%;
        }

        body {
            font-family: var(--font-body);
            font-size: 15px;
            line-height: 1.5;
            background-color: var(--bg-primary);
            min-height: 100vh;
            color: var(--text-primary);
            position: relative;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        button,
        input,
        select {
            font-family: inherit;
        }

        .container {
            position: relative;
            z-index: 1;
            max-width: calc(var(--page-max-width) + var(--page-padding) * 2);
            margin: 0 auto;
            padding: var(--page-padding);
        }

        .content-wrapper {
            max-width: 100%;
        }


        [hidden] {
            display: none !important;
        }

        /* ==========================================================
           Site header
           ========================================================== */
        .site-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border-primary);
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 14px;
            text-decoration: none;
            color: var(--text-primary);
        }

        .brand-mark {
            font-family: var(--font-wordmark);
            font-size: 38px;
            font-weight: 900;
            letter-spacing: -0.06em;
            line-height: 1;
            color: var(--text-primary);
        }

        .brand-mark-small {
            font-size: 22px;
        }

        .brand-name {
            font-family: var(--font-display);
            font-size: 12px;
            font-weight: 600;
            line-height: 1.15;
            letter-spacing: -0.005em;
            padding-left: 14px;
            border-left: 1px solid var(--text-primary);
        }

        .site-nav {
            display: flex;
            align-items: center;
            gap: 32px;
        }

        .site-nav-link {
            font-family: var(--font-display);
            font-size: 17px;
            font-weight: 500;
            color: var(--text-primary);
            text-decoration: none;
            background: none;
            border: none;
            padding: 0;
            cursor: pointer;
            transition: color 150ms ease;
        }

        .site-nav-link:hover {
            color: var(--color-primary);
        }

        .site-nav-link.active {
            text-decoration: underline;
            text-underline-offset: 6px;
            text-decoration-thickness: 1.5px;
        }

        /* ==========================================================
           Sport tabs
           ========================================================== */
        .sport-tabs {
            display: flex;
            justify-content: center;
            gap: 8px;
            border-bottom: 1px solid var(--border-primary);
            margin-bottom: 24px;
            overflow-x: auto;
            scrollbar-width: none;
        }

        .sport-tabs::-webkit-scrollbar {
            display: none;
        }

        .sport-tab {
            position: relative;
            background: none;
            border: none;
            padding: 20px 28px 18px;
            font-size: 15px;
            font-weight: 500;
            letter-spacing: 0.02em;
            color: var(--text-secondary);
            cursor: pointer;
            transition: color 150ms ease;
            white-space: nowrap;
        }

        .sport-tab:hover {
            color: var(--text-primary);
        }

        .sport-tab.active {
            color: var(--text-primary);
            font-weight: 700;
        }

        .sport-tab.active::after {
            content: '';
            position: absolute;
            left: 20px;
            right: 20px;
            bottom: -1px;
            height: 2px;
            background: var(--text-primary);
        }

        /* ==========================================================
           Control row: range, search, stepper
           ========================================================== */
        .control-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px 24px;
            flex-wrap: wrap;
            margin-bottom: 36px;
        }

        .controls-mount {
            margin: 28px 0 8px;
        }

        .controls-mount .control-row {
            margin-bottom: 0;
        }

        .controls-mount .control-left {
            width: 100%;
        }

        .control-left,
        .control-right {
            display: flex;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
        }

        .segmented {
            display: inline-flex;
            align-items: stretch;
            border: 1px solid var(--border-primary);
            border-radius: var(--radius-pill);
            background: var(--bg-elevated);
            padding: 0;
            overflow: hidden;
        }

        .segmented-option {
            background: none;
            border: none;
            border-right: 1px solid var(--border-primary);
            padding: 9px 20px;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
            cursor: pointer;
            border-radius: var(--radius-pill);
            margin: -1px 0 -1px -1px;
            transition: background 150ms ease, color 150ms ease;
            white-space: nowrap;
        }

        .segmented-option:first-child {
            margin-left: 0;
        }

        .segmented-option:last-child {
            border-right: none;
        }

        .segmented-option:hover {
            background: var(--bg-hover);
        }

        .segmented-option.active {
            background: var(--color-primary);
            color: var(--color-primary-contrast);
            border-color: var(--color-primary);
        }

        .segmented-option.active + .segmented-option {
            border-left: none;
        }

        .team-search {
            position: relative;
            display: flex;
            align-items: center;
        }

        .team-search-icon {
            position: absolute;
            left: 12px;
            display: flex;
            color: var(--text-muted);
            pointer-events: none;
        }

        .team-search-input {
            width: 200px;
            background: var(--bg-elevated);
            border: 1px solid var(--border-primary);
            border-radius: var(--radius-pill);
            padding: 9px 14px 9px 36px;
            font-size: 14px;
            color: var(--text-primary);
            outline: none;
            transition: border-color 150ms ease, width 200ms ease;
            -webkit-appearance: none;
            appearance: none;
        }

        .team-search-input::placeholder {
            color: var(--text-muted);
        }

        .team-search-input:focus {
            border-color: var(--color-primary);
            width: 260px;
        }

        .team-search-input::-webkit-search-cancel-button {
            -webkit-appearance: none;
        }

        .team-picker {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            min-width: 280px;
            max-height: 360px;
            overflow-y: auto;
            background: var(--bg-elevated);
            border: 1px solid var(--border-primary);
            border-radius: var(--radius-card);
            padding: 8px;
            z-index: 1000;
            display: none;
            box-shadow: var(--shadow-popover);
        }

        .team-picker.visible {
            display: block;
        }

        .stepper {
            position: relative;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .stepper-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 34px;
            height: 34px;
            border: none;
            background: none;
            border-radius: 50%;
            color: var(--text-primary);
            cursor: pointer;
            transition: background 150ms ease, color 150ms ease;
        }

        .stepper-btn:hover:not(:disabled) {
            background: var(--bg-hover);
        }

        .stepper-btn:disabled {
            color: var(--border-primary);
            cursor: default;
        }

        .stepper-label {
            background: none;
            border: none;
            padding: 6px 10px;
            font-family: var(--font-display);
            font-size: 18px;
            font-weight: 500;
            color: var(--text-primary);
            cursor: pointer;
            border-radius: var(--radius-sm);
            min-width: 180px;
            text-align: center;
            transition: background 150ms ease;
        }

        .stepper-label:hover {
            background: var(--bg-hover);
        }

        /* ==========================================================
           Page intro: headline
           ========================================================== */
        .page-intro {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 24px 40px;
            flex-wrap: nowrap;
            margin-bottom: 28px;
        }

        #mainContent > .page-intro #periodControls {
            flex-shrink: 0;
            margin-top: 10px;
        }

        /* Top Games hides both period controls; remove their empty flex row too. */
        #periodControls:has(> #periodStepper[hidden]):has(> #topGamesSelector[hidden]) {
            display: none;
        }

        .headline {
            font-family: var(--font-headline);
            font-size: 64px;
            font-weight: 700;
            letter-spacing: -0.01em;
            line-height: 1;
            color: var(--text-primary);
            margin-bottom: 8px;
            white-space: nowrap;
        }

        .page-intro-text {
            min-width: 0;
            flex: 1 1 auto;
        }

        #mainContent > .page-intro .headline {
            white-space: nowrap;
        }

        .subheadline {
            font-family: var(--font-display);
            font-size: 24px;
            font-weight: 400;
            letter-spacing: -0.01em;
            line-height: 1.25;
            color: var(--text-secondary);
        }

        /* Saved uses the editorial display face, not the athletic headline */
        .saved-content .headline {
            font-size: 40px;
            letter-spacing: -0.01em;
            line-height: 1.1;
            margin: 28px 0 28px;
        }

        .saved-content .subheadline {
            font-size: 18px;
        }

        /* ==========================================================
           Footer
           ========================================================== */
        .site-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px 24px;
            flex-wrap: wrap;
            margin-top: 64px;
            padding-top: 20px;
            border-top: 1px solid var(--border-primary);
            font-size: 12px;
            color: var(--text-secondary);
        }

        .site-footer-left {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .site-footer-tagline {
            font-family: var(--font-display);
            font-size: 13px;
            color: var(--text-secondary);
        }

        .site-footer-right {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .site-footer-link {
            color: var(--text-secondary);
            text-decoration: underline;
            text-underline-offset: 3px;
        }

        .site-footer-link:hover {
            color: var(--text-primary);
        }

        .site-footer-sep {
            color: var(--text-muted);
        }

        .nav-count {
            display: inline-block;
            min-width: 20px;
            padding: 1px 6px;
            margin-left: 4px;
            border-radius: var(--radius-pill);
            background: var(--color-primary);
            color: var(--color-primary-contrast);
            font-family: var(--font-body);
            font-size: 11px;
            font-weight: 600;
            text-align: center;
            vertical-align: middle;
            line-height: 16px;
        }

        /* ==========================================================
           Saved games view
           ========================================================== */
        .saved-content {
            padding-top: 32px;
        }

        .sport-pill {
            display: inline-block;
            padding: 3px 9px;
            border-radius: var(--radius-pill);
            border: 1px solid var(--border-primary);
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.08em;
            color: var(--text-secondary);
        }

        .saved-table .col-sport {
            width: 72px;
        }

        .saved-table .col-actions {
            text-align: right;
            white-space: nowrap;
        }

        .row-link {
            font-size: 13px;
            color: var(--text-secondary);
            text-decoration: underline;
            text-underline-offset: 3px;
            margin-right: 10px;
        }

        .row-link:hover {
            color: var(--text-primary);
        }

        .remove-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            border: none;
            background: none;
            border-radius: 50%;
            color: var(--text-muted);
            cursor: pointer;
            vertical-align: middle;
        }

        .remove-btn:hover {
            background: var(--bg-hover);
            color: var(--accent-skip);
        }

        /* ==========================================================
           Team schedule and single game views
           ========================================================== */
        .schedule-view {
            padding-top: 4px;
        }

        .schedule-season {
            display: block;
            font-family: var(--font-body);
            font-size: 14px;
            font-weight: 400;
            letter-spacing: 0;
            color: var(--text-secondary);
            margin-top: 4px;
        }

        .schedule-hint {
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 20px;
        }

        .schedule-list {
            display: flex;
            flex-direction: column;
            border-top: 1px solid var(--border-primary);
        }

        .schedule-row {
            display: grid;
            grid-template-columns: 110px 130px 1fr 80px auto;
            align-items: center;
            gap: 16px;
            width: 100%;
            padding: 14px 8px;
            border: none;
            border-bottom: 1px solid var(--border-secondary);
            background: none;
            font-size: 15px;
            text-align: left;
            color: var(--text-primary);
            cursor: pointer;
            transition: background 150ms ease;
        }

        .schedule-row:hover {
            background: var(--bg-hover);
        }

        .schedule-week,
        .schedule-date {
            color: var(--text-secondary);
            font-size: 14px;
        }

        .schedule-opponent {
            font-weight: 500;
        }

        .schedule-result {
            color: var(--text-secondary);
            font-variant-numeric: tabular-nums;
        }

        .schedule-go {
            font-size: 13px;
            color: var(--text-muted);
        }

        .schedule-row:hover .schedule-go {
            color: var(--color-primary);
        }

        /* Week Picker Dropdown */
        .week-picker {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            background: var(--bg-elevated);
            border: 1px solid var(--border-primary);
            border-radius: var(--radius-card);
            padding: 16px;
            z-index: 1000;
            display: none;
            min-width: 280px;
            box-shadow: var(--shadow-popover);
        }

        .week-picker.visible {
            display: block;
        }

        .week-picker-header {
            font-size: 12px;
            color: var(--text-muted);
            margin-bottom: 12px;
            letter-spacing: 0.05em;
            text-transform: uppercase;
        }

        .week-grid {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 8px;
            margin-bottom: 12px;
        }

        .week-item {
            font-size: 12px;
            color: var(--text-secondary);
            padding: 6px;
            text-align: center;
            cursor: pointer;
            border: 1px solid var(--border-secondary);
            border-radius: var(--radius-sm);
            transition: all 150ms ease;
        }

        .week-item:hover {
            background: var(--bg-hover);
            border-color: var(--border-primary);
            color: var(--text-primary);
        }

        .week-item.selected {
            background: var(--bg-active);
            border-color: var(--bg-active-alt);
            color: var(--text-primary);
        }

        .season-selector {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--border-secondary);
        }

        .season-selector-label {
            font-size: 12px;
            color: var(--text-muted);
            letter-spacing: 0.05em;
        }

        .season-buttons {
            display: flex;
            gap: 8px;
        }

        .season-btn {
            font-size: 12px;
            color: var(--text-secondary);
            padding: 4px 8px;
            cursor: pointer;
            border: 1px solid var(--border-secondary);
            border-radius: var(--radius-sm);
            transition: all 150ms ease;
        }

        .season-btn:hover {
            background: var(--bg-hover);
            border-color: var(--border-primary);
            color: var(--text-primary);
        }

        .season-btn.active {
            background: var(--bg-active);
            border-color: var(--bg-active-alt);
            color: var(--text-primary);
        }

        /* Statistics Line */
        .statistics-line {
            font-size: 14px;
            color: var(--text-muted);
            margin-bottom: 24px;
            line-height: 1.5;
        }

        .stat-number {
            color: var(--text-secondary);
        }

        /* ==========================================================
           Results: hero card, feature cards, rankings table
           ========================================================== */
        .statistics-line {
            font-size: 13px;
            color: var(--text-muted);
            margin-bottom: 20px;
            line-height: 1.5;
        }

        .stat-number {
            color: var(--text-secondary);
            font-weight: 500;
        }

        .rankings {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .visually-hidden {
            position: absolute;
            width: 1px;
            height: 1px;
            overflow: hidden;
            clip: rect(0 0 0 0);
            white-space: nowrap;
        }

        /* Team logos and monogram fallback */
        .team-logo {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            object-fit: contain;
        }

        .team-logo-fallback {
            border-radius: 50%;
            font-family: var(--font-condensed);
            font-weight: 600;
            letter-spacing: 0.02em;
            background: var(--bg-hover);
            color: var(--text-secondary);
        }

        .team-logo-lg {
            width: 72px;
            height: 72px;
            font-size: 22px;
        }

        .team-logo-md {
            width: 56px;
            height: 56px;
            font-size: 17px;
        }

        .team-logo-sm {
            width: 28px;
            height: 28px;
            font-size: 10px;
        }

        .hero-card .team-logo-fallback {
            background: rgba(246, 244, 238, 0.14);
            color: var(--text-on-hero);
        }

        .gei-label {
            font-family: var(--font-display);
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .tier-must-watch { color: var(--accent-must-watch); }
        .tier-recommended { color: var(--accent-recommended); }
        .tier-skip { color: var(--accent-skip); }

        .ot-badge {
            display: inline-block;
            margin-left: 8px;
            padding: 1px 6px;
            border: 1px solid currentColor;
            border-radius: var(--radius-sm);
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 0.08em;
            vertical-align: middle;
            opacity: 0.8;
        }

        .final-score {
            display: inline-block;
            margin-left: 12px;
            font-variant-numeric: tabular-nums;
        }

        /* Hero card */
        .hero-card {
            position: relative;
            overflow: hidden;
            background: var(--bg-hero);
            color: var(--text-on-hero);
            border-radius: var(--radius-card);
            padding: 32px 36px 36px;
            min-height: 360px;
            display: flex;
            align-items: stretch;
        }

        .hero-art {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            color: var(--text-on-hero);
            opacity: 0.8;
            pointer-events: none;
        }

        /* Home team's stadium photo, when we have one, replaces .hero-art behind the card */
        .hero-stadium {
            position: absolute;
            inset: 0;
            background-size: cover;
            background-position: center;
        }

        .hero-scrim {
            position: absolute;
            inset: 0;
            pointer-events: none;
            background: linear-gradient(100deg, rgba(31, 61, 46, 0.94) 0%, rgba(31, 61, 46, 0.86) 46%, rgba(31, 61, 46, 0.42) 100%);
        }

        .hero-body {
            position: relative;
            z-index: 1;
            display: flex;
            flex-direction: column;
            gap: 18px;
            max-width: 640px;
        }

        .hero-eyebrow {
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 0.16em;
            text-transform: uppercase;
            color: var(--text-on-hero-muted);
        }

        .hero-matchup {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .hero-team {
            display: flex;
            align-items: center;
            gap: 20px;
            min-width: 0;
        }

        .hero-team-home {
            padding-left: 12px;
        }

        .hero-team-name {
            font-family: var(--font-condensed);
            font-size: 72px;
            font-weight: 700;
            text-transform: uppercase;
            line-height: 0.95;
            letter-spacing: 0.01em;
            color: var(--text-on-hero);
            min-width: 0;
            /* The card clips its overflow for the stadium art, so a name with no
               break opportunity (Diamondbacks) has to break rather than vanish. */
            overflow-wrap: break-word;
        }

        .hero-vs {
            font-family: var(--font-condensed);
            font-size: 18px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--text-on-hero-muted);
            padding: 4px 0;
            border-top: 1px solid var(--text-on-hero-muted);
            border-bottom: 1px solid var(--text-on-hero-muted);
            align-self: center;
        }

        .hero-date {
            font-size: 15px;
            color: var(--text-on-hero-muted);
        }

        .hero-score-line {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .hero-score {
            font-family: var(--font-display);
            font-size: 44px;
            font-weight: 500;
            line-height: 1;
            letter-spacing: -0.02em;
            font-variant-numeric: tabular-nums;
        }

        .hero-divider {
            width: 1px;
            height: 32px;
            background: var(--text-on-hero-muted);
        }

        .hero-tier {
            font-family: var(--font-display);
            font-size: 24px;
            font-weight: 500;
            letter-spacing: -0.01em;
        }

        .hero-card .hero-tier {
            color: var(--text-on-hero);
        }

        .hero-actions {
            display: flex;
            align-items: center;
            gap: 28px;
            margin-top: 6px;
        }

        /* Buttons and links shared by cards and rows */
        .save-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            border: 1px solid var(--border-primary);
            background: var(--bg-elevated);
            color: var(--text-primary);
            border-radius: var(--radius-sm);
            padding: 10px 18px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
        }

        .save-btn:hover {
            border-color: var(--text-secondary);
        }

        .save-btn.saved {
            background: var(--color-primary);
            border-color: var(--color-primary);
            color: var(--color-primary-contrast);
        }

        .save-btn-hero {
            background: var(--bg-primary);
            border-color: var(--bg-primary);
            color: var(--text-primary);
            padding: 12px 22px;
        }

        .save-btn-hero.saved {
            background: transparent;
            border-color: var(--text-on-hero);
            color: var(--text-on-hero);
        }

        .save-icon {
            display: inline-flex;
        }

        .save-btn-icon {
            padding: 6px;
            border: none;
            background: none;
            color: var(--text-muted);
            border-radius: 50%;
        }

        .save-btn-icon:hover {
            color: var(--text-primary);
            background: var(--bg-hover);
            border: none;
        }

        .save-btn-icon.saved {
            background: none;
            color: var(--color-primary);
        }

        .why-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: none;
            border: none;
            padding: 0;
            font-size: 14px;
            font-weight: 500;
            color: inherit;
            text-decoration: underline;
            text-underline-offset: 4px;
            cursor: pointer;
            opacity: 0.9;
        }

        .why-link:hover {
            opacity: 1;
        }

        .why-link[aria-expanded="true"] svg {
            transform: rotate(90deg);
        }

        .why-link svg {
            transition: transform 150ms ease;
        }

        .hero-card .why-link {
            color: var(--text-on-hero);
        }

        .feature-card .why-link {
            color: var(--text-primary);
        }


        /* Feature cards */
        .feature-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 16px;
        }

        .feature-grid > .feature-card:first-of-type {
            order: 1;
        }

        .feature-grid > .feature-card:nth-of-type(2) {
            order: 2;
        }

        .feature-grid > .game-detail {
            grid-column: 1 / -1;
        }

        .feature-grid > .feature-detail-first {
            order: 3;
        }

        .feature-grid > .feature-detail-second {
            order: 4;
        }

        .feature-grid > .game-detail:not([hidden]) {
            margin-top: 0;
        }

        .feature-card {
            background: var(--bg-elevated);
            border: 1px solid var(--border-secondary);
            border-radius: var(--radius-card);
            padding: 24px 24px 20px;
            box-shadow: var(--shadow-card);
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .feature-rank {
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--text-muted);
        }

        .feature-main {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .feature-matchup {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 6px;
            min-width: 0;
        }

        .feature-team {
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 0;
        }

        .feature-team-home {
            padding-left: 8px;
        }

        .feature-team-name {
            font-family: var(--font-condensed);
            font-size: 34px;
            font-weight: 700;
            text-transform: uppercase;
            line-height: 1;
            letter-spacing: 0.01em;
            color: var(--text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            min-width: 0;
            overflow-wrap: break-word;
        }

        .feature-vs {
            font-family: var(--font-condensed);
            font-size: 11px;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--text-muted);
            padding: 2px 0;
            border-top: 1px solid var(--border-primary);
            border-bottom: 1px solid var(--border-primary);
            flex-shrink: 0;
            align-self: center;
        }

        .feature-side {
            border-left: 1px solid var(--border-secondary);
            padding-left: 20px;
            display: flex;
            flex-direction: column;
            gap: 4px;
            min-width: 128px;
        }

        .feature-date {
            font-size: 14px;
            color: var(--text-secondary);
        }

        .feature-context {
            font-size: 12px;
            color: var(--text-muted);
        }

        .feature-score-line {
            display: flex;
            align-items: baseline;
            gap: 10px;
            margin-top: 4px;
        }

        .feature-score {
            font-family: var(--font-display);
            font-size: 34px;
            font-weight: 500;
            line-height: 1;
            letter-spacing: -0.02em;
            color: var(--text-primary);
            font-variant-numeric: tabular-nums;
        }

        .feature-tier {
            font-family: var(--font-display);
            font-size: 18px;
            font-weight: 500;
            color: var(--text-primary);
        }

        .feature-card .final-score {
            margin-left: 0;
            font-size: 13px;
            color: var(--text-secondary);
        }

        .feature-actions {
            display: flex;
            align-items: center;
            gap: 24px;
        }

        /* Rankings table */
        .rankings-section {
            margin-top: 24px;
        }

        .section-heading {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 12px;
            flex-wrap: wrap;
        }

        .section-heading-actions {
            display: flex;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
        }

        .saved-heading {
            align-items: center;
            margin-bottom: 16px;
        }

        .saved-heading .statistics-line {
            margin-bottom: 0;
        }

        .show-scores-toggle {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
            cursor: pointer;
            user-select: none;
        }

        .show-scores-input {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        .show-scores-switch {
            position: relative;
            flex-shrink: 0;
            width: 36px;
            height: 22px;
            border-radius: var(--radius-pill);
            background: var(--bg-active);
            border: 1px solid var(--border-primary);
            transition: background 160ms ease, border-color 160ms ease;
        }

        .show-scores-switch::after {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: var(--bg-elevated);
            box-shadow: 0 1px 2px rgba(20, 32, 26, 0.18);
            transition: transform 160ms ease;
        }

        .show-scores-input:checked + .show-scores-switch {
            background: var(--color-primary);
            border-color: var(--color-primary);
        }

        .show-scores-input:checked + .show-scores-switch::after {
            transform: translateX(14px);
            background: var(--color-primary-contrast);
        }

        .show-scores-input:focus-visible + .show-scores-switch {
            outline: 2px solid var(--color-primary);
            outline-offset: 2px;
        }

        .show-scores-toggle:hover .show-scores-switch {
            border-color: var(--text-muted);
        }

        .show-scores-toggle:hover .show-scores-input:checked + .show-scores-switch {
            background: var(--color-primary-hover);
            border-color: var(--color-primary-hover);
        }

        .section-title {
            font-family: var(--font-display);
            font-size: 32px;
            font-weight: 700;
            letter-spacing: -0.03em;
            line-height: 1.1;
            color: var(--text-primary);
        }

        .section-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: none;
            border: none;
            padding: 0;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
            cursor: pointer;
        }

        .section-link:hover {
            color: var(--color-primary);
        }

        .rankings-table-wrap {
            overflow-x: auto;
        }

        .rankings-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 15px;
        }

        .rankings-table th {
            text-align: left;
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: var(--text-muted);
            padding: 12px 12px;
            border-top: 1px solid var(--border-primary);
            border-bottom: 1px solid var(--border-primary);
            white-space: nowrap;
        }

        .rankings-table td {
            padding: 14px 12px;
            border-bottom: 1px solid var(--border-secondary);
            vertical-align: middle;
            color: var(--text-primary);
        }

        .rankings-table .col-game {
            width: 44%;
        }

        .rankings-table .col-date,
        .rankings-table .col-final {
            color: var(--text-secondary);
            white-space: nowrap;
        }

        .rankings-table td.col-gei {
            font-family: var(--font-display);
            font-size: 18px;
            font-weight: 500;
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
        }

        .rankings-table td.col-rec {
            font-family: var(--font-display);
            font-size: 16px;
            white-space: nowrap;
        }

        .rankings-table .col-save {
            width: 48px;
            text-align: right;
        }

        .rankings-table th.col-save {
            color: var(--text-muted);
        }

        .rankings-row:hover td {
            background: var(--bg-hover);
        }

        .rankings-row .col-game {
            cursor: pointer;
        }

        .rankings-row .col-game:hover .row-teams {
            text-decoration: underline;
            text-underline-offset: 3px;
        }

        .row-matchup {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .row-logos {
            display: inline-flex;
            gap: 6px;
        }

        .row-names {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .row-teams {
            font-weight: 500;
        }

        .row-vs {
            color: var(--text-muted);
            font-weight: 400;
            margin: 0 2px;
        }

        .row-rank {
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.1em;
            color: var(--text-muted);
        }

        .row-context {
            font-size: 12px;
            color: var(--text-muted);
        }

        .rankings-detail-row td {
            padding: 0 0 16px;
            background: transparent;
        }

        /* Detail panel: why this game */
        .game-detail {
            background: var(--bg-elevated);
            border: 1px solid var(--border-secondary);
            border-radius: var(--radius-card);
            padding: 28px 28px 24px;
            position: relative;
        }

        .rankings-detail-row .game-detail {
            margin-top: 8px;
        }

        .detail-panel {
            display: flex;
            flex-direction: column;
            gap: 22px;
            max-width: 720px;
        }

        .detail-heading {
            font-family: var(--font-display);
            font-size: 28px;
            font-weight: 600;
            letter-spacing: -0.02em;
            line-height: 1.15;
            color: var(--text-primary);
        }

        .detail-copy {
            font-size: 14px;
            line-height: 1.6;
            color: var(--text-secondary);
            max-width: 58ch;
            margin-top: -8px;
        }

        .detail-note {
            font-size: 13px;
            line-height: 1.5;
            color: var(--accent-skip);
        }

        .detail-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            flex-wrap: wrap;
            padding-top: 4px;
        }

        .detail-vote {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 13px;
            color: var(--text-secondary);
        }

        .detail-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
            text-decoration: underline;
            text-underline-offset: 4px;
        }

        .detail-link:hover {
            color: var(--color-primary);
        }

        /* Score breakdown: stacked bar + dimension rows */
        .score-breakdown {
            display: flex;
            flex-direction: column;
            gap: 28px;
            position: relative;
        }

        .score-section {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .score-section-label {
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--text-muted);
        }

        .score-stack-bar {
            display: flex;
            height: 18px;
            width: 100%;
            border-radius: 4px;
            overflow: hidden;
            background: var(--bg-hover);
        }

        .score-stack-seg {
            display: block;
            height: 100%;
            min-width: 0;
        }

        .score-legend {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px 18px;
        }

        .score-legend-item {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: var(--text-primary);
            cursor: default;
        }

        .score-legend-swatch {
            width: 10px;
            height: 10px;
            border-radius: 2px;
            flex-shrink: 0;
        }

        .score-legend-label {
            color: var(--text-secondary);
        }

        .score-legend-value {
            font-variant-numeric: tabular-nums;
            font-weight: 600;
            color: var(--text-primary);
        }

        .score-legend-shortfall {
            margin-left: auto;
            font-size: 13px;
            color: var(--text-muted);
            font-variant-numeric: tabular-nums;
        }

        .score-dims {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .score-dim-row {
            display: grid;
            grid-template-columns: max-content minmax(0, 1fr) 2.75rem;
            align-items: center;
            column-gap: 12px;
        }

        .score-dim-label {
            font-size: 14px;
            font-weight: 600;
            line-height: 1;
            color: var(--text-primary);
        }

        .score-dim-track {
            position: relative;
            height: 10px;
            border-radius: var(--radius-pill);
            background: var(--bg-hover);
        }

        .score-dim-fill {
            display: block;
            height: 100%;
            border-radius: inherit;
            min-width: 0;
            background: var(--metric-drama);
        }

        .score-dim-avg {
            position: absolute;
            top: -3px;
            bottom: -3px;
            width: 2px;
            margin-left: -1px;
            background: var(--text-primary);
            border-radius: 1px;
            opacity: 0.55;
        }

        .score-dim-value {
            font-size: 14px;
            font-weight: 600;
            line-height: 1;
            font-variant-numeric: tabular-nums;
            text-align: right;
            color: var(--text-primary);
        }

        .detail-highlights {
            display: block;
        }

        .detail-highlights[hidden] {
            display: none;
        }

        .highlights-disclosure {
            border-top: 1px solid var(--border-secondary);
            border-bottom: 1px solid var(--border-secondary);
        }

        .highlights-summary {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 14px 0;
            cursor: pointer;
            list-style: none;
        }

        .highlights-summary::-webkit-details-marker {
            display: none;
        }

        .highlights-summary::after {
            content: '';
            width: 8px;
            height: 8px;
            margin-right: 3px;
            flex: 0 0 auto;
            border-right: 1.5px solid var(--text-secondary);
            border-bottom: 1.5px solid var(--text-secondary);
            transform: rotate(45deg);
            transition: transform 150ms ease;
        }

        .highlights-disclosure[open] .highlights-summary::after {
            transform: rotate(225deg);
        }

        .highlights-summary:focus-visible {
            outline: 2px solid var(--color-primary);
            outline-offset: 4px;
            border-radius: var(--radius-sm);
        }

        .highlights-summary-label {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
        }

        .highlights-spoiler-note {
            padding: 3px 7px;
            border: 1px solid var(--border-primary);
            border-radius: 999px;
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 0.08em;
            line-height: 1.2;
            text-transform: uppercase;
            color: var(--text-secondary);
        }

        .highlights-content {
            display: flex;
            flex-direction: column;
            gap: 12px;
            padding: 2px 0 16px;
        }

        .highlight-player {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .highlight-player[hidden] {
            display: none;
        }

        .highlight-video {
            width: 100%;
            max-height: 360px;
            border-radius: var(--radius-sm);
            background: #0f1612;
            aspect-ratio: 16 / 9;
        }

        .highlight-caption {
            font-size: 13px;
            line-height: 1.4;
            color: var(--text-secondary);
        }

        .highlight-row {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 12px;
        }

        .highlight-card {
            display: flex;
            flex-direction: column;
            gap: 8px;
            text-align: left;
            padding: 0;
            border: none;
            background: transparent;
            color: inherit;
            cursor: pointer;
            min-width: 0;
            font: inherit;
        }

        .highlight-card:hover .highlight-title {
            color: var(--color-primary);
        }

        .highlight-media {
            position: relative;
            display: block;
            aspect-ratio: 16 / 9;
            border-radius: var(--radius-sm);
            overflow: hidden;
            background: var(--bg-hover);
        }

        .highlight-thumb {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .highlight-thumb-empty {
            background: linear-gradient(135deg, var(--bg-hover), var(--bg-active));
        }

        .highlight-play {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(20, 32, 26, 0.72);
            color: var(--text-on-hero);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            padding-left: 2px;
        }

        .highlight-duration {
            position: absolute;
            right: 8px;
            bottom: 8px;
            padding: 2px 6px;
            border-radius: 4px;
            background: rgba(20, 32, 26, 0.75);
            color: var(--text-on-hero);
            font-size: 11px;
            font-variant-numeric: tabular-nums;
        }

        .highlight-title {
            font-size: 13px;
            line-height: 1.35;
            color: var(--text-primary);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .games-list {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        /* Date Picker - Custom Calendar */
        .date-picker {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            background: var(--bg-elevated);
            border: 1px solid var(--border-primary);
            border-radius: var(--radius-card);
            padding: 16px;
            z-index: 1000;
            display: none;
            min-width: 280px;
            box-shadow: var(--shadow-popover);
        }

        .date-picker.visible {
            display: block;
        }

        .date-picker-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--border-secondary);
        }

        .date-picker-month {
            font-size: 12px;
            color: var(--text-primary);
            letter-spacing: 0.05em;
        }

        .date-picker-nav {
            display: flex;
            gap: 12px;
        }

        .date-picker-nav-btn {
            display: inline-flex;
            align-items: center;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 4px 6px;
            border: 1px solid var(--border-secondary);
            border-radius: var(--radius-sm);
            transition: all 150ms ease;
            background: transparent;
        }

        .date-picker-nav-btn:hover {
            background: var(--bg-hover);
            border-color: var(--border-primary);
            color: var(--text-primary);
        }

        .date-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 4px;
        }

        .date-grid-header {
            font-size: 10px;
            color: var(--text-muted);
            text-align: center;
            padding: 6px 0;
            letter-spacing: 0.05em;
            text-transform: uppercase;
        }

        .date-item {
            font-size: 12px;
            color: var(--text-secondary);
            padding: 8px;
            text-align: center;
            cursor: pointer;
            border: 1px solid transparent;
            border-radius: var(--radius-sm);
            transition: all 150ms ease;
        }

        .date-item:hover:not(.disabled) {
            background: var(--bg-hover);
            border-color: var(--border-primary);
            color: var(--text-primary);
        }

        .date-item.selected {
            background: var(--bg-active);
            border-color: var(--bg-active-alt);
            color: var(--text-primary);
        }

        .date-item.disabled {
            color: var(--border-primary);
            cursor: not-allowed;
        }

        .date-item.other-month {
            color: var(--border-primary);
        }

        /* Radar Chart */
        .game-breakdown {
            margin-top: 8px;
            display: flex;
            justify-content: flex-start;
        }

        .radar-chart {
            margin: 8px 0 0 0;
        }

        .radar-grid {
            fill: none;
            stroke: var(--bg-active-alt);
            stroke-width: 1;
        }

        .radar-axis {
            stroke: var(--text-muted);
            stroke-width: 1.5;
        }

        .radar-fill {
            fill: var(--accent-must-watch);
            fill-opacity: 0.4;
            stroke: var(--accent-must-watch);
            stroke-width: 2;
        }

        .radar-average {
            fill: var(--accent-average);
            fill-opacity: 0.15;
            stroke: var(--accent-average);
            stroke-opacity: 0.7;
            stroke-width: 2;
            stroke-dasharray: 6 4;
        }

        .radar-label {
            font-family: var(--font-mono);
            font-size: 12px;
            fill: var(--text-secondary);
            text-anchor: middle;
            font-weight: 500;
        }

        .radar-value {
            font-family: var(--font-mono);
            font-size: 12px;
            fill: var(--text-primary);
            text-anchor: middle;
            font-weight: 600;
        }

        .radar-label-group {
            cursor: help;
        }

        .radar-label-group:hover .radar-label {
            fill: var(--text-primary);
        }

        .radar-label-group:hover .radar-value {
            fill: var(--accent-must-watch);
        }

        .metric-tooltip {
            position: absolute;
            background: var(--bg-hover);
            border: 1px solid var(--bg-active-alt);
            padding: 8px 12px;
            border-radius: var(--radius-sm);
            font-size: 12px;
            color: var(--text-primary);
            pointer-events: none;
            z-index: 1000;
            max-width: 200px;
            display: none;
        }

        .radar-legend {
            display: flex;
            justify-content: center;
            gap: 16px;
            margin-top: 8px;
        }

        .radar-legend-item {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            color: var(--text-secondary);
        }

        /* Vote Buttons */
        .vote-container {
            display: flex;
            align-items: center;
            gap: 4px;
            position: relative;
        }

        .vote-btn {
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 17px;
            line-height: 1;
            padding: 4px 6px;
            cursor: pointer;
            transition: all 150ms ease;
            font-family: inherit;
            opacity: 0.4;
        }

        .vote-btn:hover {
            color: var(--text-secondary);
            opacity: 0.8;
        }

        .vote-btn.upvote.active {
            color: var(--accent-must-watch);
            opacity: 1;
        }

        .vote-btn.downvote.active {
            color: var(--accent-skip);
            opacity: 1;
        }

        .vote-tooltip {
            display: none !important;
            position: absolute;
            background: var(--bg-hover);
            border: 1px solid var(--bg-active-alt);
            padding: 6px 10px;
            border-radius: var(--radius-sm);
            font-size: 12px;
            color: var(--text-primary);
            pointer-events: none;
            z-index: 1000;
            white-space: nowrap;
            display: none;
            left: 0;
            bottom: calc(100% + 4px);
        }

        .vote-container:hover .vote-tooltip {
            display: block;
        }

        /* Loading State */
        .loading {
            padding: 60px 0;
        }

        .loading-text {
            font-size: 14px;
            color: var(--text-muted);
            animation: pulse-opacity 1.4s ease-in-out infinite;
        }

        @keyframes pulse-opacity {
            0%, 100% {
                opacity: 0.5;
            }
            50% {
                opacity: 1;
            }
        }

        /* Empty State */
        .empty-state {
            padding: 60px 0;
        }

        .empty-message {
            font-size: 14px;
            color: var(--text-muted);
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .container {
                --page-padding: 20px;
                overflow-x: hidden;
            }

            .site-header {
                flex-wrap: wrap;
                gap: 14px 0;
                padding-bottom: 14px;
            }

            .brand-mark {
                font-size: 32px;
            }

            .brand-name {
                font-size: 11px;
            }

            .site-nav {
                width: 100%;
                justify-content: flex-start;
                gap: 16px;
            }

            .site-nav-link {
                font-size: 15px;
                white-space: nowrap;
            }

            .sport-tabs {
                justify-content: flex-start;
                gap: 0;
            }

            .sport-tab {
                padding: 16px 16px 14px;
            }

            .sport-tab.active::after {
                left: 12px;
                right: 12px;
            }

            .control-row {
                margin-bottom: 24px;
            }

            .control-right {
                width: 100%;
                justify-content: space-between;
            }

            .team-search-input,
            .team-search-input:focus {
                width: 160px;
            }

            .stepper-label {
                min-width: 0;
                font-size: 16px;
            }

            .week-picker,
            .date-picker {
                right: auto;
                left: 0;
            }

            .headline {
                font-size: 38px;
            }

            #mainContent > .page-intro .headline {
                white-space: normal;
            }

            .saved-content .headline {
                font-size: 32px;
                margin: 20px 0 20px;
            }

            .subheadline {
                font-size: 18px;
            }

            .page-intro {
                align-items: flex-start;
                flex-wrap: wrap;
            }

            #mainContent > .page-intro #periodControls {
                margin-top: 0;
                width: 100%;
                justify-content: flex-start;
            }

            .site-footer {
                flex-direction: column;
                align-items: flex-start;
            }

            .schedule-row {
                grid-template-columns: 1fr auto;
                grid-template-areas: "week go" "opponent go" "date go" "result go";
                gap: 2px 12px;
            }

            .schedule-week { grid-area: week; }
            .schedule-date { grid-area: date; }
            .schedule-opponent { grid-area: opponent; }
            .schedule-result { grid-area: result; }
            .schedule-go { grid-area: go; }

            .saved-table .col-sport,
            .saved-table .col-date {
                display: none;
            }

            .site-nav-link .nav-count {
                display: none;
            }

            /* Mobile spacing adjustments */
            .statistics-line {
                margin-bottom: 16px;
            }

            .hero-card {
                padding: 24px 20px 24px;
                min-height: 0;
            }

            .hero-art {
                opacity: 0.3;
            }

            .hero-body {
                max-width: 100%;
            }

            .hero-team {
                gap: 10px;
            }

            /* Fluid across phone widths rather than one fixed step at 768px.
               Each matchup steps down by its longer name (see matchupLengthClass)
               so short names stay large and long ones clear the card. The home
               row is the tighter of the two, since it also carries the vs rule. */
            .hero-team-name {
                font-size: clamp(28px, 16vw - 23px, 40px);
            }

            .hero-matchup.is-long .hero-team-name {
                font-size: clamp(25px, 15vw - 23px, 40px);
            }

            .hero-matchup.is-xlong .hero-team-name {
                font-size: clamp(20px, 14.3vw - 25px, 40px);
            }

            /* The home row also spends width on the vs rule, so give it back
               the indent and trim the marker. */
            .hero-team-home {
                padding-left: 0;
            }

            .hero-vs {
                font-size: 14px;
            }

            .team-logo-lg {
                width: 44px;
                height: 44px;
                font-size: 15px;
            }

            .hero-score {
                font-size: 36px;
            }

            .hero-tier {
                font-size: 20px;
            }

            .hero-actions {
                gap: 18px;
                flex-wrap: wrap;
            }

            .feature-grid {
                grid-template-columns: 1fr;
            }

            .feature-grid > .feature-card:first-of-type,
            .feature-grid > .feature-card:nth-of-type(2),
            .feature-grid > .feature-detail-first,
            .feature-grid > .feature-detail-second {
                order: initial;
            }

            .feature-grid > .game-detail {
                grid-column: auto;
            }

            .feature-card {
                padding: 18px 16px 16px;
            }

            .feature-team-name {
                font-size: clamp(21px, 7vw - 1px, 26px);
            }

            .feature-matchup.is-long .feature-team-name {
                font-size: clamp(19px, 6.5vw - 2px, 26px);
            }

            .feature-matchup.is-xlong .feature-team-name {
                font-size: clamp(17px, 12vw - 18px, 26px);
            }

            .team-logo-md {
                width: 40px;
                height: 40px;
                font-size: 13px;
            }

            .feature-main {
                flex-direction: column;
                align-items: stretch;
                gap: 14px;
            }

            .feature-team-name {
                white-space: normal;
                overflow: visible;
            }

            .feature-side {
                min-width: 0;
                padding-left: 0;
                padding-top: 12px;
                border-left: none;
                border-top: 1px solid var(--border-secondary);
                flex-direction: row;
                align-items: baseline;
                gap: 16px;
                flex-wrap: wrap;
            }

            .feature-score-line {
                margin-top: 0;
            }

            .hero-art {
                transform: translateX(28%);
            }

            .section-title {
                font-size: 26px;
            }

            .rankings-table {
                font-size: 14px;
            }

            .rankings-table th,
            .rankings-table td {
                padding: 10px 8px;
            }

            .rankings-table .col-date,
            .rankings-table .row-logos,
            .saved-table .row-link {
                display: none;
            }

            .rankings-table .col-game {
                width: auto;
            }

            .rankings-table td.col-gei {
                font-size: 16px;
            }

            .rankings-table td.col-rec {
                font-size: 14px;
                white-space: normal;
            }

            .rankings-table th.col-rec {
                font-size: 10px;
            }

            .rankings-table .col-save {
                width: 36px;
            }

            .game-detail {
                padding: 20px 16px;
            }

            .detail-heading {
                font-size: 24px;
            }

            .detail-panel {
                max-width: none;
                gap: 18px;
            }

            .score-dim-row {
                grid-template-columns: max-content minmax(0, 1fr) 2.5rem;
                column-gap: 10px;
            }

            .score-legend-shortfall {
                margin-left: 0;
                width: 100%;
            }

        }

        .team-list {
            max-height: 300px;
            overflow-y: auto;
        }

        .team-item {
            font-size: 14px;
            color: var(--text-primary);
            padding: 9px 12px;
            cursor: pointer;
            border-radius: var(--radius-sm);
            transition: background 150ms ease;
        }

        .team-item:hover {
            background: var(--bg-hover);
        }

        .schedule-header {
            font-family: var(--font-display);
            font-size: 28px;
            font-weight: 600;
            letter-spacing: -0.02em;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .back-link {
            font-size: 13px;
            color: var(--text-secondary);
            text-decoration: none;
            display: inline-block;
            margin-bottom: 32px;
            transition: color 150ms ease;
            cursor: pointer;
        }

        .back-link:hover {
            color: var(--text-primary);
            text-decoration: underline;
        }

        .schedule-season {
            color: var(--text-secondary);
        }

        .schedule-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .schedule-row {
            font-size: 14px;
            color: var(--text-secondary);
            cursor: pointer;
            transition: color 150ms ease;
        }

        .schedule-row:hover {
            color: var(--text-primary);
        }

        .schedule-week {
            color: var(--text-muted);
        }

        .schedule-result {
            color: var(--text-primary);
        }

        /* Hidden utility */
        .hidden {
            display: none;
        }

        /* Season Export Modal */
        .export-modal {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: var(--bg-elevated);
            border: 1px solid var(--border-primary);
            border-radius: var(--radius-card);
            padding: 32px;
            z-index: 2000;
            display: none;
            min-width: 400px;
            box-shadow: var(--shadow-modal);
        }

        .export-modal.visible {
            display: block;
        }

        .export-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--overlay);
            z-index: 1999;
            display: none;
        }

        .export-modal-overlay.visible {
            display: block;
        }

        .export-modal-header {
            font-family: var(--font-display);
            font-size: 26px;
            font-weight: 600;
            letter-spacing: -0.02em;
            color: var(--text-primary);
            margin-bottom: 24px;
        }

        .export-form-group {
            margin-bottom: 20px;
        }

        .export-label {
            font-size: 12px;
            color: var(--text-muted);
            letter-spacing: 0.05em;
            text-transform: uppercase;
            margin-bottom: 8px;
            display: block;
        }

        .export-select {
            width: 100%;
            background: var(--bg-hover);
            border: 1px solid var(--border-primary);
            border-radius: var(--radius-sm);
            padding: 8px 12px;
            font-size: 14px;
            color: var(--text-primary);
            outline: none;
            cursor: pointer;
        }

        .export-select:focus {
            border-color: var(--bg-active-alt);
        }

        .export-actions {
            display: flex;
            gap: 12px;
            margin-top: 24px;
        }

        .export-btn {
            flex: 1;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
            background: var(--bg-elevated);
            border: 1px solid var(--border-primary);
            border-radius: var(--radius-pill);
            padding: 10px 16px;
            cursor: pointer;
            transition: all 150ms ease;
        }

        .export-btn:hover {
            background: var(--bg-hover);
            border-color: var(--text-secondary);
        }

        .export-btn.primary {
            background: var(--color-primary);
            border-color: var(--color-primary);
            color: var(--color-primary-contrast);
        }

        .export-btn.primary:hover {
            background: var(--color-primary-hover);
            border-color: var(--color-primary-hover);
        }

        .export-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .export-progress {
            margin-top: 16px;
            display: none;
        }

        .export-progress.visible {
            display: block;
        }

        .export-progress-text {
            font-size: 12px;
            color: var(--text-secondary);
            margin-bottom: 8px;
        }

        .export-progress-bar {
            width: 100%;
            height: 4px;
            background: var(--bg-hover);
            border-radius: var(--radius-sm);
            overflow: hidden;
        }

        .export-progress-fill {
            height: 100%;
            background: var(--accent-must-watch);
            transition: width 300ms ease;
        }

        .export-warning {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 16px;
            line-height: 1.5;
        }

        .export-presets {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 12px;
        }

        .export-preset-btn {
            font-size: 13px;
            font-weight: 500;
            color: var(--text-primary);
            background: var(--bg-elevated);
            border: 1px solid var(--border-primary);
            border-radius: var(--radius-pill);
            padding: 6px 14px;
            cursor: pointer;
            transition: all 150ms ease;
        }

        .export-preset-btn:hover {
            background: var(--bg-hover);
        }

        .export-preset-btn.active {
            background: var(--color-primary);
            border-color: var(--color-primary);
            color: var(--color-primary-contrast);
        }

        .export-custom-range {
            margin-top: 12px;
        }

        .export-range-inputs {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .export-range-select {
            flex: 1;
            background: var(--bg-hover);
            border: 1px solid var(--border-primary);
            border-radius: var(--radius-sm);
            padding: 8px 12px;
            font-size: 14px;
            color: var(--text-primary);
            outline: none;
            cursor: pointer;
        }

        .export-range-select:focus {
            border-color: var(--bg-active-alt);
        }

        .export-date-input {
            flex: 1;
            background: var(--bg-hover);
            border: 1px solid var(--border-primary);
            border-radius: var(--radius-sm);
            padding: 8px 12px;
            font-size: 14px;
            color: var(--text-primary);
            outline: none;
        }

        .export-date-input:focus {
            border-color: var(--bg-active-alt);
        }

        .export-range-separator {
            font-size: 12px;
            color: var(--text-muted);
            letter-spacing: 0.05em;
        }

        .export-validation-message {
            font-size: 12px;
            color: var(--color-danger);
            margin-top: 12px;
            line-height: 1.5;
        }

/* Watch now */
.live-content { padding-top: 32px; }
.live-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; color: var(--text-secondary); font-size: 13px; }
.live-scores-toggle { display: flex; gap: 8px; align-items: center; white-space: nowrap; cursor: pointer; }
.live-scores-toggle input { accent-color: var(--color-primary); }
.live-refresh { border: 1px solid var(--border-primary); border-radius: var(--radius-pill); padding: 10px 20px; background: var(--bg-elevated); color: var(--text-primary); font: inherit; cursor: pointer; }
.live-refresh:disabled { opacity: .5; cursor: wait; }
.live-subtitle { display: flex; align-items: center; gap: 10px; }
.live-info { position: relative; flex-shrink: 0; }
.live-info summary { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 1px solid var(--border-primary); border-radius: 50%; color: var(--text-secondary); font: 600 13px var(--font-body); cursor: pointer; list-style: none; }
.live-info summary::-webkit-details-marker { display: none; }
.live-info summary:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
.live-tooltip { position: absolute; top: calc(100% + 10px); right: 0; z-index: 20; width: min(320px, calc(100vw - 48px)); padding: 14px 16px; background: var(--bg-elevated); border: 1px solid var(--border-primary); border-radius: var(--radius-sm); box-shadow: var(--shadow-popover); color: var(--text-secondary); font: 13px/1.5 var(--font-body); }
.live-content > .live-toolbar { margin-bottom: 28px; }
.live-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.live-card { background: var(--bg-elevated); border: 1px solid var(--border-primary); border-radius: var(--radius-card); padding: 24px; }
.live-card-featured { border-color: var(--color-primary); border-top: 4px solid var(--color-primary); }
.live-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.live-label { color: var(--color-primary); font-weight: 600; }
.live-clock { font-family: var(--font-mono); font-size: 12px; white-space: nowrap; color: var(--text-secondary); }
.live-card h2 { font-family: var(--font-display); font-size: 26px; font-weight: 500; line-height: 1.2; }
.live-at { color: var(--text-secondary); font-size: 18px; }
.live-reason { margin-top: 12px; font-size: 13px; color: var(--text-secondary); }
.live-score { margin-top: 14px; font-family: var(--font-mono); font-size: 13px; }
.live-empty { padding: 48px 24px; border: 1px solid var(--border-primary); border-radius: var(--radius-card); background: var(--bg-elevated); text-align: center; }
.live-empty h2, .live-upcoming h2 { font-family: var(--font-display); font-weight: 500; margin-bottom: 8px; }
.live-empty p { color: var(--text-secondary); }
.live-upcoming { margin-top: 36px; }
.live-upcoming-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-primary); }
.live-upcoming-row time { color: var(--text-secondary); white-space: nowrap; font-size: 13px; }
@media (max-width: 640px) {
  .live-grid { grid-template-columns: 1fr; }
  .live-toolbar { align-items: flex-start; flex-direction: column; }
  .live-upcoming-row { flex-direction: column; gap: 4px; }
  .site-nav { gap: 12px; }
  .site-nav-link { font-size: 12px; }
}

.live-probability { margin-top: 18px; }
.live-chart-caption { font-size: 11px; color: var(--text-secondary); margin-bottom: 6px; }
.live-sparkline { display: block; width: 100%; height: auto; aspect-ratio: 320 / 112; }
.live-chart-midline { stroke: var(--border-primary); stroke-width: 1; stroke-dasharray: 3 5; }
.live-chart-path { fill: none; stroke: var(--color-primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.live-chart-end { fill: var(--color-primary); }
.live-chart-axis { font: 9px var(--font-mono); fill: var(--text-secondary); }
.live-chart-values { font: 12px var(--font-mono); color: var(--text-secondary); margin-top: 6px; }

.live-chart-quarter-line { stroke: var(--border-secondary); stroke-width: 1; }
.live-chart-quarter { font: 9px var(--font-mono); fill: var(--text-secondary); }
