@media (max-width: 600px) {
    #githubFileSelect {
        width: 100% !important;
        min-width: 0 !important;
        margin: 10px 0 0 0 !important;
        font-size: 0.9em;
        padding: 10px 8px;
        box-sizing: border-box;
        border-radius: 8px;
        margin-left: 0;
        margin-top: 8px;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }
}

/* Responsive: Player cards span full width on small screens */
@media (max-width: 600px) {
    .players-grid,
    #teamActionsGrid {
        grid-template-columns: 1fr !important;
    }
    .stat-card,
    .match-card,
    .team-summary-card {
        width: 100%;
        grid-column: auto !important;
        margin-left: 0;
        margin-right: 0;
        padding: 18px 12px 18px 12px !important;
        font-size: 1rem !important;
        box-sizing: border-box;
    }
}
/* --- GitHub Import UI --- */
#githubFileSelect {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--primary);
    background: var(--surface-2);
    color: var(--primary);
    font-size: 1rem;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(37,99,235,0.08);
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-left: 10px;
    min-width: 160px;
    max-width: 100%;
}
#githubFileSelect:focus, #githubFileSelect:hover {
    border-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(37,99,235,0.15);
    outline: none;
}
@media (max-width: 600px) {
    #githubFileSelect {
        width: 100% !important;
        min-width: 0 !important;
        margin: 10px 0 0 0 !important;
        font-size: 1.1em;
        padding: 12px 10px;
        box-sizing: border-box;
        border-radius: 8px;
        margin-left: 0;
        margin-top: 8px;
    }
}

.team-summary-card {
    grid-column: span 2;
    background: var(--surface-3);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 16px 0 rgba(37,99,235,0.07);
    padding: 24px 24px 18px 24px;
    font-size: 1.08rem;
    margin-bottom: 10px;
}
/* Modern summary table styles */
.summary-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 8px 0 rgba(31,41,55,0.06);
    overflow: hidden;
    margin-bottom: 10px;
    font-size: 0.8rem;
    margin-top: 6px;
}
.summary-table th, .summary-table td {
    padding: 10px 14px;
    text-align: center;
    border-bottom: 1px solid var(--border-strong);
}
.summary-table th {
    background: var(--table-head-bg);
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}
.summary-table tr:last-child td {
    border-bottom: none;
}
.summary-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text-main);
    background: var(--surface-2);
    border-radius: 8px 0 0 8px;
}
.summary-table td:last-child {
    border-radius: 0 8px 8px 0;
}
.summary-table tr {
}
.highlight-good {
    color: var(--success) !important;
    font-weight: bold;
    background: var(--good-bg);
    border-radius: 6px;
}
.highlight-bad {
    color: var(--danger) !important;
    font-weight: bold;
    background: var(--bad-bg);
    border-radius: 6px;
}
.highlight-regular {
    color: var(--regular-text) !important;
    font-weight: bold;
    background: var(--regular-bg);
    border-radius: 6px;
}
/* Volleyball Analytics Dashboard Styles */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;
    --bg: #f3f4f6;
    --bg-grad-1: #eef2ff;
    --bg-grad-2: #f3f4f6;
    --card-bg: #ffffff;
    --surface-2: #f8fafc;
    --surface-3: #f1f5f9;
    --border: #e2e8f0;
    --border-strong: #e5e7eb;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --text-soft: #64748b;
    --text-faint: #94a3b8;
    --text-strong: #0f172a;
    --bar-track: #f3f4f6;
    --table-head-bg: #f3f4f6;
    --good-bg: #f0fdf4;
    --good-text: #15803d;
    --good-border: #86efac;
    --bad-bg: #fef2f2;
    --bad-text: #dc2626;
    --bad-border: #fca5a5;
    --regular-bg: #fef3c7;
    --regular-text: #d97706;
    --win-bg: #dcfce7;
    --win-text: #16a34a;
    --loss-bg: #fee2e2;
    --loss-text: #dc2626;
    --pos-bg: #e0e7ff;
    --pos-text: #4338ca;
    --primary-soft: #eef2ff;
    --info-bg: #eff6ff;
    --info-text: #1d4ed8;
    --info-border: #93c5fd;
    --regular-border: #fcd34d;
    --heading-grad-1: #1e293b;
    --heading-grad-2: #2563eb;
}

/* Dark theme tokens. Applied when the user explicitly picks dark, or when the
   OS prefers dark and the user has not picked light. */
:root[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-hover: #93c5fd;
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #f87171;
    --bg: #0f172a;
    --bg-grad-1: #0b1120;
    --bg-grad-2: #0f172a;
    --card-bg: #1e293b;
    --surface-2: #273449;
    --surface-3: #223047;
    --border: #334155;
    --border-strong: #3b4a63;
    --text-main: #e5e7eb;
    --text-muted: #94a3b8;
    --text-soft: #94a3b8;
    --text-faint: #64748b;
    --text-strong: #f1f5f9;
    --bar-track: #334155;
    --table-head-bg: #273449;
    --good-bg: rgba(34,197,94,0.16);
    --good-text: #4ade80;
    --good-border: rgba(134,239,172,0.4);
    --bad-bg: rgba(248,113,113,0.16);
    --bad-text: #f87171;
    --bad-border: rgba(252,165,165,0.4);
    --regular-bg: rgba(251,191,36,0.16);
    --regular-text: #fbbf24;
    --win-bg: rgba(34,197,94,0.18);
    --win-text: #4ade80;
    --loss-bg: rgba(248,113,113,0.18);
    --loss-text: #f87171;
    --pos-bg: rgba(99,102,241,0.22);
    --pos-text: #c7d2fe;
    --primary-soft: rgba(96,165,250,0.16);
    --info-bg: rgba(96,165,250,0.16);
    --info-text: #93c5fd;
    --info-border: rgba(147,197,253,0.4);
    --regular-border: rgba(252,211,77,0.4);
    --heading-grad-1: #93c5fd;
    --heading-grad-2: #60a5fa;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --primary: #3b82f6;
        --primary-hover: #93c5fd;
        --success: #4ade80;
        --warning: #fbbf24;
        --danger: #f87171;
        --bg: #0f172a;
        --bg-grad-1: #0b1120;
        --bg-grad-2: #0f172a;
        --card-bg: #1e293b;
        --surface-2: #273449;
        --surface-3: #223047;
        --border: #334155;
        --border-strong: #3b4a63;
        --text-main: #e5e7eb;
        --text-muted: #94a3b8;
        --text-soft: #94a3b8;
        --text-faint: #64748b;
        --text-strong: #f1f5f9;
        --bar-track: #334155;
        --table-head-bg: #273449;
        --good-bg: rgba(34,197,94,0.16);
        --good-text: #4ade80;
        --good-border: rgba(134,239,172,0.4);
        --bad-bg: rgba(248,113,113,0.16);
        --bad-text: #f87171;
        --bad-border: rgba(252,165,165,0.4);
        --regular-bg: rgba(251,191,36,0.16);
        --regular-text: #fbbf24;
        --win-bg: rgba(34,197,94,0.18);
        --win-text: #4ade80;
        --loss-bg: rgba(248,113,113,0.18);
        --loss-text: #f87171;
        --pos-bg: rgba(99,102,241,0.22);
        --pos-text: #c7d2fe;
        --primary-soft: rgba(96,165,250,0.16);
        --info-bg: rgba(96,165,250,0.16);
        --info-text: #93c5fd;
        --info-border: rgba(147,197,253,0.4);
        --regular-border: rgba(252,211,77,0.4);
        --heading-grad-1: #93c5fd;
        --heading-grad-2: #60a5fa;
    }
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(160deg, var(--bg-grad-1) 0%, var(--bg-grad-2) 60%);
    color: var(--text-main);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.input-section {
    background: var(--card-bg);
    padding: 24px 24px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 24px -4px rgba(37,99,235,0.10), 0 1px 4px rgba(0,0,0,0.06);
    margin-bottom: 30px;
    border-top: 4px solid var(--primary);
}

.input-section h2 {
    margin: 0 0 6px;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--primary);
}

.input-section p {
    margin: 0 0 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

textarea {
    width: 100%;
    height: 80px;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: monospace;
    font-size: 0.85rem;
    margin-bottom: 10px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--surface-2);
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
    background: var(--card-bg);
}

.btn-group { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
button {
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    border: none;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
    letter-spacing: 0.1px;
}
button:hover { transform: translateY(-1px); }
button:active { transform: translateY(0); }
.btn-primary {
    background: linear-gradient(135deg, #1e293b 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}
.btn-success {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(22,163,74,0.25);
}
.btn-success:hover {
    background: linear-gradient(135deg, #166534 0%, #15803d 100%);
    box-shadow: 0 4px 14px rgba(22,163,74,0.35);
}

.dashboard {
    display: none;
    background: var(--card-bg);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 24px -4px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
}

.report-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-strong);
}

.report-header h1 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--heading-grad-1) 0%, var(--heading-grad-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.report-header #reportDate {
    color: var(--text-muted);
    margin: 4px 0 0;
    font-size: 0.8rem;
}

.youtube-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 12px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border: 1px solid #fecaca;
    border-radius: 10px;
    flex-wrap: wrap;
}

.youtube-banner__label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.youtube-banner__icon {
    width: 22px;
    height: 22px;
    color: #dc2626;
    flex-shrink: 0;
}

.youtube-banner__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.youtube-set-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    background: #dc2626;
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none !important;
    transition: background 0.15s ease, transform 0.1s ease;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.youtube-set-link:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.4);
}

.youtube-set-link::before {
    content: '▶';
    font-size: 0.65rem;
}

.general-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.stat-card {
    background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface-3) 100%);
    padding: 16px 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--text-main); line-height: 1; margin-bottom: 4px; }
.stat-label { color: var(--text-muted); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.7px; font-weight: 600; }

.players-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-card,
.match-card {
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-bg);
    page-break-inside: avoid;
}

.card-header {
    background: linear-gradient(135deg, #1e293b 0%, #2d3f5e 100%);
    color: white;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-number { font-weight: 800; font-size: 1rem; letter-spacing: 0.2px; }
.player-rating {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.95rem;
    border: 1px solid rgba(255,255,255,0.25);
    letter-spacing: 0.3px;
}

.card-body { padding: 12px; }

.result-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}
.result-win  { background: var(--win-bg); color: var(--win-text); }
.result-loss { background: var(--loss-bg); color: var(--loss-text); }

.position-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 8px;
    background: var(--pos-bg);
    color: var(--pos-text);
    -webkit-text-fill-color: var(--pos-text);
    letter-spacing: 0.3px;
}

.metric-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; font-size: 0.75rem; font-weight: 500; color: var(--text-muted); }
.metric-row span:last-child { font-weight: 800; font-size: 0.88rem; color: var(--text-main); }
.bar-container { height: 6px; background: var(--bar-track); border-radius: 3px; margin-bottom: 6px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; }

.action-section {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
}

.action-title { font-size: 0.7rem; text-transform: uppercase; color: var(--text-faint); margin-bottom: 5px; font-weight: 600; }

.action-grid { display: flex; flex-wrap: wrap; gap: 6px; }

.action-pill {
    display: flex;
    align-items: center;
    background: var(--surface-2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    border: 1px solid var(--border);
    transition: background 0.1s;
}

.action-pill.high-perf { border-color: var(--good-border); background-color: var(--good-bg); color: var(--good-text); }
.action-pill.low-perf { border-color: var(--bad-border); background-color: var(--bad-bg); color: var(--bad-text); }

.action-name { color: var(--text-soft); margin-right: 4px; font-weight: 500; }
.action-count { font-weight: 500; color: var(--text-strong); }
.action-pct { margin-left: 6px; color: var(--text-soft); font-weight: 500; }
.action-rating { margin-left: 6px; font-weight: 700; padding: 0 6px; border-radius: 10px; background: var(--card-bg); }

/* Count inherits the pill's semantic color on high/low performance */
.action-pill.high-perf .action-name { color: var(--good-text); }
.action-pill.high-perf .action-count { color: var(--good-text); font-weight: 800; }
.action-pill.high-perf .action-pct { color: var(--good-text); }
.action-pill.low-perf .action-name { color: var(--bad-text); }
.action-pill.low-perf .action-count { color: var(--bad-text); font-weight: 800; }
.action-pill.low-perf .action-pct { color: var(--bad-text); }

/* Section title headings */
.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin: 22px 0 12px;
    padding: 0;
    cursor: pointer;
    user-select: none;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, var(--primary) 0%, #818cf8 100%);
    border-radius: 2px;
    flex-shrink: 0;
}

.section-title .section-title-text {
}

.section-title .chevron {
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.2s ease;
    color: var(--text-faint);
    flex-shrink: 0;
    -webkit-text-fill-color: var(--text-faint);
}

.section-title.collapsed .chevron {
    transform: rotate(-90deg);
}

.section-content {
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    max-height: 9999px;
    opacity: 1;
}

.section-content.collapsed {
    max-height: 0 !important;
    opacity: 0;
}

.section-title:first-of-type {
    margin-top: 4px;
}

/* ===== Dashboard Hub Styles ===== */

.hub-hero {
    text-align: center;
    padding: 32px 24px 24px;
    margin-bottom: 28px;
    background: linear-gradient(160deg, var(--bg-grad-1) 0%, var(--surface-2) 100%);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.hub-hero h1 {
    margin: 0 0 8px;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--heading-grad-1) 0%, var(--heading-grad-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hub-hero .hub-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0 0 16px;
}

.hub-hero-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hub-hero-stat {
    text-align: center;
}

.hub-hero-stat .stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
}

.hub-hero-stat .stat-label {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Navigation Tiles */
.hub-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.hub-tile {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 18px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hub-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
    border-color: var(--primary);
}

.hub-tile-icon {
    font-size: 2rem;
    line-height: 1;
}

.hub-tile-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.hub-tile-stat {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.hub-tile-stat strong {
    color: var(--text-main);
    font-weight: 700;
}

.hub-tile-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 20px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

/* Last match banner */
.hub-last-match {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    flex-wrap: wrap;
}

.hub-last-match-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
}

.hub-last-match-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.hub-last-match-rating {
    font-weight: 800;
    font-size: 0.95rem;
    margin-left: auto;
}

.hub-last-match a {
    padding: 6px 16px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.hub-last-match a:hover {
    background: var(--primary-hover);
}

/* Page header for intermediate pages */
.page-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.page-header h1 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--heading-grad-1) 0%, var(--heading-grad-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header .back-link {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.page-header .back-link:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .hub-nav {
        grid-template-columns: 1fr;
    }
    .hub-hero-stats {
        gap: 16px;
    }
    .hub-last-match {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .hub-last-match-rating {
        margin-left: 0;
    }
}

/* ===== Dark mode ===== */

/* Fixed light/dark toggle, present on every generated page. */
.theme-toggle {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 1000;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-main);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    border-color: var(--primary);
}

@media print {
    .theme-toggle { display: none !important; }
}

/* Targeted overrides for gradient/tinted panels that cannot be cleanly
   tokenized; darken them so they read on a dark background. */
:root[data-theme="dark"] .youtube-banner {
    background: linear-gradient(135deg, #2a1416 0%, #1e293b 100%);
    border-color: #7f1d1d;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .youtube-banner {
        background: linear-gradient(135deg, #2a1416 0%, #1e293b 100%);
        border-color: #7f1d1d;
    }
}

/* --- Season Objectives (progress rings) --- */
.objectives-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.objective-ring {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px;
}

.objective-ring-svg {
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
}

.objective-ring-track {
    fill: none;
    stroke: var(--border);
    stroke-width: 10;
}

.objective-ring-fill {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
}

.objective-ring-value {
    transform: rotate(90deg);
    transform-origin: center;
    text-anchor: middle;
    dominant-baseline: central;
    font-size: 20px;
    font-weight: 700;
}

.objective-ring-label {
    margin-top: 10px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
}

.hub-hero-objectives {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.hub-objectives-title {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 14px;
}

@media (max-width: 600px) {
    .objectives-grid {
        gap: 16px;
    }
}
