/* ==========================================================================
   Modern Professional Basketball Live Stats + Dual Navigation
   December 26, 2025 - Updated with modernizations
   ========================================================================== */

:root {
    --bg: #0a0e17;
    --surface: #111827;
    --surface-hover: #1f2937;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-tertiary: #6b7280;
    
    --accent: #6366f1;
    --accent-light: #818cf8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --home: #dc2626;
    --visitor: #3b82f6;
    
    --border: #1f2937;
    --border-subtle: #374151;
    --status-txt: #feffff;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 36px rgba(0,0,0,0.5);
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    padding: 1.5rem;
}

.container {
    max-width: 1480px;
    margin: 0 auto;
    padding-top: 80px;           /* Breathing room below fixed navigation */
}

/* ── Shared Status Pill ─────────────────────────────────────────────── */
.status-pill {
    display: inline-block;
    font-family: system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.6rem 1.6rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    min-width: 120px;
    text-align: center;
    transition: background-color 0.4s ease;
}

.status-live {
    background-color: #c62828;
    color: white;
    animation: slowPulse 3.5s infinite ease-in-out;
}

@keyframes slowPulse {
    0%, 100% { opacity: 0.65; }
    50%      { opacity: 1; }
}

.status-final {
    background-color: #424242;
    color: #e0e0e0;
}

/* ==========================================================================
   Fixed Top Navigation - Mobile + Desktop
   ========================================================================== */

.fixed-top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1480px;
    margin: 0 auto;
    height: 100%;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    color: var(--accent-light);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-logo:hover {
    color: white;
}

/* ── Desktop Links ─────────────────────────────────────────────── */
.desktop-links {
    display: none;
}

.desktop-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.desktop-links a:hover {
    background: var(--surface-hover);
    color: var(--accent-light);
}

/* ── Hamburger Button ───────────────────────────────────────────── */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.35s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ── Mobile Slide-down Menu ─────────────────────────────────────── */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    z-index: 999;
}

.mobile-menu.active {
    max-height: 300px;
    padding: 1.5rem;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.mobile-menu a:hover {
    background: var(--surface-hover);
    color: var(--accent-light);
}

/* ── Responsive Navigation Switching ───────────────────────────────── */
@media (min-width: 1024px) {
    .hamburger { display: none; }
    .desktop-links { display: flex; align-items: center; gap: 1.5rem; }
    .mobile-menu { display: none; }
}

@media (max-width: 1023px) {
    .desktop-links { display: none; }
}

/* ==========================================================================
   SCOREBOARD HEADER - With boxed last-updated and countdown
   ========================================================================== */

.scoreboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #0f172a;
    border-bottom: 1px solid var(--border);
    flex-wrap: nowrap;
    gap: 1rem;
    min-height: 60px;
}

.header-box {
    background: rgba(55, 65, 81, 0.5);       /* subtle dark gray background */
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.next-refresh-box {
    background: rgba(99, 102, 241, 0.15);    /* subtle indigo tint */
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--accent-light);
    font-weight: 600;
    white-space: nowrap;
}

.status-container {
    flex: 1;
    text-align: center;
    min-width: 100px;
}

.status-box {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .scoreboard-header {
        padding: 0.9rem 1rem;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }

    .header-box,
    .next-refresh-box {
        font-size: 0.7rem;
        padding: 0.45rem 0.9rem;
    }

    .status-container {
        min-width: 60px;
    }

.next-refresh-box {

    padding: .45rem .9rem;
    font-size: 0.7rem;
}

    .status-box {
        font-size: 0.7rem;
        padding: 0.45rem 0.9rem;
    }

    /* Graceful wrap fallback */
    .scoreboard-header.wrapped {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.6rem 1.2rem;
    }
}
/* ==========================================================================
   SCOREBOARD MAIN CONTENT
   ========================================================================== */

.scoreboard {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.score-main {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    align-items: center;
    background: linear-gradient(to bottom, #0f172a, #0a0e17);
}

@media (max-width: 640px) {
    .score-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }
}

.team-block {
    text-align: center;
}

.team-name-main {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.visitor .team-name-main { color: var(--visitor); }
.home    .team-name-main { color: var(--home); }

.score-big {
    font-family: 'Segoe UI', system-ui, monospace;
    font-size: clamp(4.5rem, 18vw, 7.5rem);
    font-weight: 800;
    line-height: 0.9;
}

.visitor .score-big { color: var(--visitor); opacity: 0.95; }
.home    .score-big { color: var(--home);   opacity: 0.95; }

.score-big.updated {
    animation: scorePop 0.7s ease-out;
}

@keyframes scorePop {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.18); }
    100% { transform: scale(1); }
}

.center-score-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: 'Segoe UI', system-ui, monospace;
    color: white;
}

.period-display {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent-light);
    line-height: 1;
}

.clock-display {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
}

.period-scores {
    padding: 1rem 1.5rem;
    background: #0a0e17;
    overflow-x: auto;
}

.period-scores table {
    width: 100%;
    min-width: 420px;
    border-collapse: collapse;
}

.period-scores th,
.period-scores td {
    padding: 0.75rem 0.6rem;
    text-align: center;
    font-size: 0.95rem;
}

.period-scores th {
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}

.period-scores .team-name-cell {
    text-align: left;
    font-weight: 600;
    padding-left: 1rem;
}

.period-scores .total {
    font-weight: 800;
    color: white;
    background: #172554;
}

/* ==========================================================================
   PLAY-BY-PLAY SECTION
   ========================================================================== */

.pbp-section {
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.pbp-section h2 {
    margin-bottom: 1.25rem;
    color: var(--accent-light);
}

.pbp-list {
    max-height: 520px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--border-subtle);
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.pbp-entry {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    gap: 1rem;
    transition: background-color 0.2s;
}

.pbp-entry:hover {
    background: rgba(99, 102, 241, 0.06);
}

.pbp-time {
    min-width: 90px;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.pbp-desc {
    flex: 1;
}

.pbp-entry.visitor .pbp-desc { color: var(--visitor); }
.pbp-entry.home    .pbp-desc { color: var(--home);   }

.pbp-entry.new {
    background: rgba(99, 102, 241, 0.12);
    animation: fadeInHighlight 2.5s ease-out;
}

@keyframes fadeInHighlight {
    from { background: rgba(99, 102, 241, 0.25); }
    to   { background: rgba(99, 102, 241, 0.12); }
}

/* ==========================================================================
   TEAM STATS & BOX SCORE
   ========================================================================== */

.team-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 1024px) {
    .team-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.box-score-section {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 640px) {
    .box-score-section { gap: 2rem; }
}

.stats-card,
.box-score-card {
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    container-type: inline-size;
}

.stats-card h2,
.box-score-card h2 {
    background: #0f172a;
    padding: 1rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-light);
    border-bottom: 1px solid var(--border);
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table th,
.stats-table td {
    padding: 0.9rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
}

.stats-table th {
    background: #0f172a;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stats-table tr:hover {
    background: rgba(99, 102, 241, 0.06);
    transition: background-color 0.18s ease;
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.box-score-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}

.box-score-table th,
.box-score-table td {
    padding: 0.85rem 0.9rem;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.95rem;
}

.box-score-table th {
    background: #0f172a;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.box-score-table .player-col {
    text-align: left;
    padding-left: 1.25rem;
    font-weight: 500;
    min-width: 140px;
}

.box-score-table .player-name small {
    color: var(--text-tertiary);
    font-size: 0.85em;
}

.box-score-table tr:hover {
    background: rgba(99, 102, 241, 0.06);
    transition: background-color 0.18s ease;
}

.box-score-table tr.on-court {
    background: rgba(16, 197, 109, 0.08) !important;
    border-left: 4px solid #10b981 !important;
    transition: all 0.3s ease;
}

.box-score-table tr.on-court:hover {
    background: rgba(16, 197, 109, 0.18) !important;
}

.box-score-table .total-row {
    background: #172554;
    font-weight: 700;
    color: white;
}

.box-score-table .total-row td {
    border-top: 2px solid var(--border);
}

/* ==========================================================================
   LOADING / ERROR / PRE-GAME STATES
   ========================================================================== */

.loading, .error-message {
    text-align: center;
    padding: 6rem 1rem;
    color: var(--text-secondary);
    font-size: 1.4rem;
}

.error-message { color: var(--danger); }

/* ==========================================================================
   PRE-GAME / WAITING STATE - Professional Design
   ========================================================================== */

.starting-soon {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: var(--bg);
}

.pre-game-content {
    background: linear-gradient(145deg, #111827 0%, #1a2332 50%, #0f172a 100%);
    border-radius: 24px;
    padding: 4rem 3.5rem;
    border: 1px solid rgba(99, 102, 241, 0.15);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    text-align: center;
    max-width: 520px;
    width: 100%;
    margin: auto;
    position: relative;
    overflow: hidden;
}

/* Subtle background glow effect */
.pre-game-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Basketball icon */
.pre-game-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    position: relative;
}

.basketball-icon {
    width: 100%;
    height: 100%;
    color: var(--accent);
    opacity: 0.6;
    animation: gentleFloat 4s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.pre-game-content h2 {
    font-size: clamp(2.2rem, 6vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, #f3f4f6 0%, #d1d5db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
    position: relative;
}

.pre-game-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Status pill */
.pre-game-status {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(31, 41, 55, 0.8);
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    border: 1px solid rgba(75, 85, 99, 0.4);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--warning);
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { 
        opacity: 0.4;
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% { 
        opacity: 1;
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }
}

.pre-game-hint {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* Archive link button */
.archive-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.75rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.25s ease;
}

.archive-link:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0.15) 100%);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

.archive-link .arrow-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
}

.archive-link:hover .arrow-icon {
    transform: translateX(4px);
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .pre-game-content {
        padding: 3rem 2rem;
        border-radius: 20px;
    }
    
    .pre-game-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 1.5rem;
    }
    
    .pre-game-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .pre-game-status {
        font-size: 0.85rem;
        padding: 0.65rem 1.25rem;
    }
    
    .pre-game-hint {
        font-size: 0.85rem;
    }
    
    .archive-link {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   GAME ENDED ALERT
   ========================================================================== */

.game-ended-alert {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(220, 38, 38, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    color: white;
    text-align: center;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
    z-index: 1000;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    animation: fadeIn 0.6s ease-out;
}

.game-ended-alert .alert-content small {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE CONTAINER QUERIES & ACCESSIBILITY
   ========================================================================== */

@container (max-width: 480px) {
    .stats-table th,
    .stats-table td {
        font-size: 0.82rem;
        padding: 0.7rem 0.8rem;
    }
    
    .box-score-table .player-col {
        min-width: 120px;
    }
}

a:focus,
button:focus,
input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.4);
}

footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem 0;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
}

/* ==========================================================================
   HIGH TRAFFIC NOTICE
   ========================================================================== */

.high-traffic-notice {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s;
}

.high-traffic-notice.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.traffic-icon {
    font-size: 1.1rem;
}

.traffic-message {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.traffic-viewer-count,
.traffic-refresh-rate {
    color: var(--warning);
    font-weight: 700;
}

.traffic-dismiss {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.traffic-dismiss:hover {
    opacity: 1;
}

@media (max-width: 640px) {
    .high-traffic-notice {
        top: 75px;
        left: 1rem;
        right: 1rem;
        transform: translateX(0) translateY(-100px);
        padding: 0.65rem 1rem;
    }
    
    .high-traffic-notice.visible {
        transform: translateX(0) translateY(0);
    }
    
    .traffic-message {
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   GAME ENDED MODAL
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
    padding: 1rem;
}

.modal-content {
    background: linear-gradient(135deg, #1a1f35 0%, #252b45 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease-out;
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 0.6s ease-out;
}

.modal-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.modal-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .modal-content {
        padding: 2rem 1.5rem;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
    
    .modal-icon {
        font-size: 3rem;
    }
}

/* =============================================================================
   VIEWER COUNT STYLES
   Add this to the end of your styles.css file
   ============================================================================= */

/* Main viewer count container */
.viewer-count {
    display: none; /* Hidden until JS shows it */
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(248, 250, 252, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    color: #e2e8f0;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.viewer-count:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
}

/* Eye icon */
.viewer-icon {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Viewer number */
#viewer-number {
    font-weight: 700;
    font-size: 1.05rem;
    color: #f59e0b;
    min-width: 1.5ch;
    text-align: center;
    transition: transform 0.15s ease;
}

/* Number change animation */
#viewer-number.count-change {
    animation: countPulse 0.3s ease;
}

@keyframes countPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); color: #fbbf24; }
    100% { transform: scale(1); }
}

/* Label (watching/waiting) */
#viewer-label {
    font-weight: 500;
    opacity: 0.85;
    font-size: 0.85rem;
}

/* +1 pop animation (YouTube style) */
.viewer-pop {
    position: absolute;
    top: -8px;
    right: -5px;
    background: #22c55e;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.45rem;
    border-radius: 20px;
    opacity: 0;
    transform: translateY(0) scale(0.5);
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
}

.viewer-pop.pop-animate {
    animation: popUp 1.5s ease-out forwards;
}

@keyframes popUp {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    15% {
        opacity: 1;
        transform: translateY(-5px) scale(1.1);
    }
    30% {
        transform: translateY(-8px) scale(1);
    }
    80% {
        opacity: 1;
        transform: translateY(-15px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-25px) scale(0.8);
    }
}

/* Live pulse effect when game is active */
.viewer-count.is-live::before {
    content: '';
    position: absolute;
    left: 10px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

/* Adjust padding when live indicator is shown */
.viewer-count.is-live {
    padding-left: 1.8rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .viewer-count {
        bottom: 15px;
        right: 15px;
        padding: 0.5rem 0.85rem;
        font-size: 0.8rem;
    }
    
    #viewer-number {
        font-size: 0.95rem;
    }
    
    #viewer-label {
        font-size: 0.75rem;
    }
    
    .viewer-icon {
        font-size: 1rem;
    }
}

/* Small screens - move to bottom center */
@media (max-width: 480px) {
    .viewer-count {
        right: 50%;
        transform: translateX(50%);
        bottom: 10px;
    }
    
    .viewer-count:hover {
        transform: translateX(50%) translateY(-2px);
    }
}

/* =============================================================================
   FOOTER & LEGAL LINKS - Add this to the end of your styles.css
   ============================================================================= */

.site-footer {
    margin-top: 60px;
    padding: 25px 20px;
    text-align: center;
    border-top: 1px solid #333;
    color: #888;
    font-size: 14px;
}

.site-footer p {
    margin: 0;
    line-height: 1.6;
}

.footer-links {
    margin-top: 10px !important;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #f59e0b;
    text-decoration: underline;
}

.footer-divider {
    color: #555;
    margin: 0 12px;
}

/* =============================================================================
   COOKIE NOTICE BANNER
   ============================================================================= */

.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.98);
    border-top: 1px solid #333;
    padding: 0;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-notice.visible {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.cookie-content p {
    flex: 1;
    min-width: 280px;
    margin: 0;
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-content a {
    color: #f59e0b;
    text-decoration: none;
}

.cookie-content a:hover {
    text-decoration: underline;
}

.cookie-accept-btn {
    background: #f59e0b;
    color: #000;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.cookie-accept-btn:hover {
    background: #d97706;
}

/* Mobile adjustments for cookie notice */
@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        min-width: auto;
    }
    
    .cookie-accept-btn {
        width: 100%;
    }
}

