/* ================================================================
   STREAMZONE — DESIGN SYSTEM v2
   Aesthetic: "Stadium Broadcast Maximalism"
   Fonts: Bebas Neue (display) + Outfit (body) + DM Mono (data)
   Philosophy: Bold, editorial, feels like a premium sports channel
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;500;600;700;800;900&family=DM+Mono:wght@400;500&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
    --black:        #000000;
    --surface-0:    #080808;
    --surface-1:    #0f0f0f;
    --surface-2:    #161616;
    --surface-3:    #1d1d1d;
    --surface-4:    #252525;
    --border:       rgba(255,255,255,0.07);
    --border-hi:    rgba(255,255,255,0.14);

    --text-primary:  #f5f5f5;
    --text-secondary: rgba(245,245,245,0.55);
    --text-dim:       rgba(245,245,245,0.28);

    /* Cricket accent — Emerald */
    --cricket:        #10b981;
    --cricket-dim:    rgba(16,185,129,0.12);
    --cricket-border: rgba(16,185,129,0.22);
    --cricket-glow:   rgba(16,185,129,0.25);

    /* Football accent — Volt green */
    --football:       #84cc16;
    --football-dim:   rgba(132,204,22,0.1);
    --football-border:rgba(132,204,22,0.2);
    --football-glow:  rgba(132,204,22,0.2);

    /* Live red */
    --live:           #ef4444;
    --live-dim:       rgba(239,68,68,0.15);
    --live-border:    rgba(239,68,68,0.3);

    /* Typography */
    --font-display: 'Bebas Neue', 'Arial Black', sans-serif;
    --font-body:    'Outfit', 'Helvetica Neue', sans-serif;
    --font-mono:    'DM Mono', 'Courier New', monospace;

    /* Spacing */
    --container: 1200px;
    --radius-sm:  8px;
    --radius-md:  14px;
    --radius-lg:  20px;

    /* Navbar height */
    --nav-h: 64px;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--surface-0);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    /* Subtle grain overlay for texture */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    height: var(--nav-h);
    background: rgba(0,0,0,0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.navbar-container {
    max-width: var(--container);
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}
.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    flex-shrink: 0;
    line-height: 1;
}
.logo .logo-accent { color: var(--cricket); }
.logo-text { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.05em; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
.nav-link {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
    background: none;
}
.nav-link:hover { color: var(--text-primary); background: var(--surface-3); }
.nav-link.active, .nav-link.nav-highlight {
    color: var(--cricket);
    border-color: var(--cricket-border);
    background: var(--cricket-dim);
}
.nav-link.nav-highlight-football {
    color: var(--football);
    border-color: var(--football-border);
    background: var(--football-dim);
}

/* dropdown */
.nav-dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; gap: 5px; }
.dropdown-arrow { transition: transform 0.2s; }
.nav-dropdown.open .dropdown-arrow { transform: rotate(180deg); }
.dropdown-menu {
    display: none !important;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-1);
    border: 1px solid var(--border-hi);
    border-radius: var(--radius-md);
    padding: 6px;
    min-width: 160px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    z-index: 2000;
}
.nav-dropdown.open .dropdown-menu { display: block !important; }
/* belt-and-suspenders: never show on CSS hover */
.nav-dropdown:hover .dropdown-menu { display: none !important; }
.nav-dropdown:hover.open .dropdown-menu { display: block !important; }
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.15s;
}
.dropdown-item:hover { background: var(--surface-3); color: var(--text-primary); }
.dropdown-menu-grid { display: grid; grid-template-columns: 1fr 1fr; min-width: 280px; }
.flag-small { border-radius: 3px; }

/* mode switcher */
.mode-switcher {
    display: flex;
    align-items: center;
    gap: 3px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 3px;
    margin-left: 8px;
}
.mode-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.2s;
    color: var(--text-dim);
}
.mode-btn.active {
    background: var(--cricket-dim);
    color: var(--cricket);
    border: 1px solid var(--cricket-border);
}
.mode-btn.football-active {
    background: var(--football-dim);
    color: var(--football);
    border: 1px solid var(--football-border);
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}
.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all 0.25s;
}

/* ── MAIN CONTENT ───────────────────────────────────────── */
.main-content { padding-top: 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ── HERO — SPORT SWITCHER STYLE ──────────────────────── */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 72px 24px 56px;
    text-align: center;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(16,185,129,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cricket);
    margin-bottom: 20px;
    padding: 6px 16px;
    border: 1px solid var(--cricket-border);
    border-radius: 100px;
    background: var(--cricket-dim);
}
.hero-eyebrow.football { color: var(--football); border-color: var(--football-border); background: var(--football-dim); }
.blink-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: blink 1.3s ease-in-out infinite;
    box-shadow: 0 0 8px currentColor;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 10vw, 7rem);
    letter-spacing: 0.02em;
    line-height: 0.95;
    color: var(--text-primary);
    margin-bottom: 20px;
}
.hero-title .accent-cricket { color: var(--cricket); }
.hero-title .accent-football { color: var(--football); }
.hero-title .accent-live { color: var(--live); }

.hero-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}
.hero-sub strong { color: var(--text-primary); }

.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.25s;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--cricket);
    color: #000;
    box-shadow: 0 0 30px rgba(16,185,129,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(16,185,129,0.5); }
.btn-primary-football {
    background: var(--football);
    color: #000;
    box-shadow: 0 0 30px rgba(132,204,22,0.3);
}
.btn-primary-football:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(132,204,22,0.5); }
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-hi);
}
.btn-ghost:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.25); background: var(--surface-3); }

/* ── SECTION HEADERS ────────────────────────────────────── */
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}
.section-label {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 0.04em;
    color: var(--text-primary);
}
.section-count {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
}
.section-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--cricket);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.section-link:hover { color: var(--text-primary); }

/* ── LIVE BADGE ─────────────────────────────────────────── */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--live);
    padding: 3px 10px;
    border: 1px solid var(--live-border);
    border-radius: 4px;
    background: var(--live-dim);
}

/* ── MATCH / EVENT CARDS ────────────────────────────────── */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
    margin-bottom: 40px;
}

.event-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}
.event-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(255,255,255,0.015) 100%);
    pointer-events: none;
}
.event-card:hover {
    border-color: var(--cricket-border);
    background: var(--surface-2);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px var(--cricket-border);
}
.event-card.football:hover {
    border-color: var(--football-border);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px var(--football-border);
}

.event-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.event-team-flag {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-hi);
    background: var(--surface-3);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.event-team-flag img { width: 100%; height: 100%; object-fit: cover; }
/* Club initials badge — used when no country flag is available */
.event-team-flag.team-initials {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
    border-color: rgba(255,255,255,0.15);
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.event-vs {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.event-title {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    line-height: 1.3;
}
.event-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
}
.event-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    align-self: center;
}
.event-status.live, .event-status.upcoming {
    background: var(--cricket-dim);
    color: var(--cricket);
    border: 1px solid var(--cricket-border);
}
.event-status.football-live, .event-status.football-upcoming {
    background: var(--football-dim);
    color: var(--football);
    border: 1px solid var(--football-border);
}
.event-status.ended {
    background: rgba(255,255,255,0.04);
    color: var(--text-dim);
    border: 1px solid var(--border);
}
.event-status.upcoming-badge {
    background: rgba(245,158,11,0.08);
    color: #f5a623;
    border: 1px solid rgba(245,158,11,0.25);
}

/* Banner/featured card */
.event-card.banner {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    background: linear-gradient(120deg, #0b1a10 0%, #0f2416 100%);
    border-color: var(--cricket-border);
    padding: 24px 28px;
    gap: 24px;
}
.event-card.banner .event-teams { flex-direction: row; }
.banner-content { flex: 1; }
.banner-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cricket);
    margin-bottom: 8px;
}
.banner-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 0.03em;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.banner-sub { font-size: 0.85rem; color: var(--text-secondary); }

/* ── FILTER TABS ─────────────────────────────────────────── */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.filter-tab {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.filter-tab:hover { border-color: var(--border-hi); color: var(--text-primary); }
.filter-tab.active {
    background: var(--cricket-dim);
    border-color: var(--cricket-border);
    color: var(--cricket);
}
.filter-tab.active.football {
    background: var(--football-dim);
    border-color: var(--football-border);
    color: var(--football);
}

/* ── LEAGUE BADGE ────────────────────────────────────────── */
.league-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 3px 9px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface-2);
}

/* ── TEAM PAGES ──────────────────────────────────────────── */
.team-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 40px 0 28px;
}
.team-header-flag {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid var(--border-hi);
    object-fit: cover;
}
.page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 4rem);
    letter-spacing: 0.03em;
    color: var(--text-primary);
    line-height: 1;
}
.page-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* ── STATS ROW ───────────────────────────────────────────── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 40px;
}
.stat-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    text-align: center;
}
.stat-num {
    font-family: var(--font-display);
    font-size: 2.4rem;
    letter-spacing: 0.02em;
    color: var(--cricket);
    line-height: 1;
}
.stat-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 6px;
}

/* ── SEARCH ──────────────────────────────────────────────── */
.search-bar {
    width: 100%;
    padding: 12px 18px;
    background: var(--surface-2);
    border: 1px solid var(--border-hi);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    transition: border-color 0.2s;
    outline: none;
}
.search-bar::placeholder { color: var(--text-dim); }
.search-bar:focus { border-color: var(--cricket-border); }

/* ── TABLES (rankings) ───────────────────────────────────── */
.rankings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.rankings-table th {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-align: left;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
}
.rankings-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}
.rankings-table tr:hover td { background: var(--surface-1); }
.rank-num {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-dim);
    width: 32px;
}
.rank-team { font-weight: 600; color: var(--text-primary); }
.rank-arrow-up { color: var(--cricket); }
.rank-arrow-down { color: var(--live); }

/* ── SCHEDULE ────────────────────────────────────────────── */
.schedule-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-1);
    margin-bottom: 10px;
    transition: all 0.2s;
}
.schedule-item:hover { border-color: var(--border-hi); }
.schedule-date { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); min-width: 80px; }
.schedule-teams { font-weight: 600; flex: 1; }
.schedule-league { font-size: 0.75rem; color: var(--text-secondary); margin-top: 3px; }

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-dim);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.5; }
.empty-state-text { font-size: 0.9rem; color: var(--text-secondary); }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    margin-top: 60px;
}
.footer-content {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--text-dim);
}
.footer-content a { color: var(--text-dim); transition: color 0.2s; }
.footer-content a:hover { color: var(--text-primary); }

/* ── SYNC STATUS ─────────────────────────────────────────── */
.sync-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    padding: 8px 16px;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 24px;
}
/* sync-dot is defined in the sync indicator section below */

/* ── LOADING SHIMMER ─────────────────────────────────────── */
@keyframes shimmer {
    0% { background-position: -800px 0; }
    100% { background-position: 800px 0; }
}
.skeleton {
    background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 6px;
}

/* ── FOOTBALL HERO ───────────────────────────────────────── */
.football-hero {
    background: linear-gradient(135deg, #060f08 0%, #091408 50%, #0b1a0b 100%);
    border: 1px solid var(--football-border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    overflow: hidden;
}
.football-hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(132,204,22,0.06) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}
.football-hero-left { flex: 1; }
.football-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.03em;
    color: var(--text-primary);
    line-height: 0.95;
    margin-bottom: 10px;
}
.football-hero-title span { color: var(--football); }
.football-hero-sub {
    font-size: 0.88rem;
    color: var(--text-secondary);
    max-width: 480px;
    line-height: 1.6;
}

/* ── FOOTBALL CARD LEAGUE COLOURS ────────────────────────── */
.lg-ucl { border-top: 2px solid #3a86ff; }
.lg-pl  { border-top: 2px solid #9b59b6; }
.lg-ll  { border-top: 2px solid #e63946; }
.lg-bl  { border-top: 2px solid #e85d04; }
.lg-sa  { border-top: 2px solid #06d6a0; }
.lg-l1  { border-top: 2px solid #c77dff; }
.lg-el  { border-top: 2px solid #ff9f1c; }

/* ── PAGE-SPECIFIC HERO (landing cards) ──────────────────── */
.hero-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    max-width: 800px;
    margin: 0 auto 40px;
}
.hero-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    text-align: center;
    transition: all 0.25s;
    cursor: pointer;
}
.hero-card:hover {
    border-color: var(--cricket-border);
    background: var(--surface-3);
    transform: translateY(-2px);
}
.hero-card-icon { font-size: 2rem; margin-bottom: 8px; }
.hero-card-title { font-weight: 700; font-size: 0.88rem; }
.hero-card-sub { font-size: 0.72rem; color: var(--text-secondary); margin-top: 3px; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .navbar-container { gap: 16px; }
    .nav-menu { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: flex-start; background: #000; border-bottom: 1px solid var(--border); padding: 16px; gap: 4px; z-index: 998; }
    .nav-menu.open { display: flex; }
    .mobile-menu-btn { display: flex; }
    .hero-title { font-size: clamp(2.5rem, 12vw, 5rem); }
    .football-hero { flex-direction: column; text-align: center; }
    .events-grid { grid-template-columns: 1fr; }
    .event-card.banner { flex-direction: column; text-align: center; }
    .footer-content { flex-direction: column; text-align: center; }
    .mode-switcher { display: none; }
    .dropdown-menu { position: static; transform: none; box-shadow: none; background: var(--surface-2); margin-top: 4px; }
    .nav-dropdown { width: 100%; }
    .dropdown-toggle { width: 100%; justify-content: space-between; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-section { padding: 48px 16px 40px; }
    .filter-tabs { gap: 6px; }
    .filter-tab { padding: 6px 12px; font-size: 0.72rem; }
}

/* ── PAGE LOAD ANIMATIONS ────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease forwards; opacity: 0; }
.fade-up-1 { animation-delay: 0.05s; }
.fade-up-2 { animation-delay: 0.12s; }
.fade-up-3 { animation-delay: 0.2s; }
.fade-up-4 { animation-delay: 0.3s; }
.fade-up-5 { animation-delay: 0.4s; }

/* Staggered card reveals */
.events-grid .event-card:nth-child(1)  { animation: fadeUp 0.4s 0.05s ease both; }
.events-grid .event-card:nth-child(2)  { animation: fadeUp 0.4s 0.10s ease both; }
.events-grid .event-card:nth-child(3)  { animation: fadeUp 0.4s 0.15s ease both; }
.events-grid .event-card:nth-child(4)  { animation: fadeUp 0.4s 0.20s ease both; }
.events-grid .event-card:nth-child(5)  { animation: fadeUp 0.4s 0.25s ease both; }
.events-grid .event-card:nth-child(6)  { animation: fadeUp 0.4s 0.30s ease both; }
.events-grid .event-card:nth-child(7)  { animation: fadeUp 0.4s 0.35s ease both; }
.events-grid .event-card:nth-child(8)  { animation: fadeUp 0.4s 0.40s ease both; }
.events-grid .event-card:nth-child(9)  { animation: fadeUp 0.4s 0.45s ease both; }
.events-grid .event-card:nth-child(10) { animation: fadeUp 0.4s 0.50s ease both; }
.events-grid .event-card:nth-child(11) { animation: fadeUp 0.4s 0.55s ease both; }
.events-grid .event-card:nth-child(12) { animation: fadeUp 0.4s 0.60s ease both; }
.events-grid .event-card:nth-child(n+13){ animation: fadeUp 0.4s 0.65s ease both; }

/* ── COUNTDOWN TIMER ─────────────────────────────────────── */
.countdown-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 8px 0 4px;
    flex-wrap: wrap;
}
.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(56, 139, 253, 0.12);
    border: 1px solid rgba(56, 139, 253, 0.2);
    border-radius: 8px;
    padding: 6px 8px;
    min-width: 44px;
}
.countdown-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #58a6ff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.countdown-label {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}
.countdown-sep {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(56, 139, 253, 0.5);
    align-self: flex-start;
    margin-top: 6px;
}
.countdown-container.expired .countdown-value { color: rgba(255,255,255,0.4); }
.countdown-container.expired .countdown-unit {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}

/* ── LIVE PULSE ──────────────────────────────────────────── */
.live-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    margin-right: 4px;
    animation: livePulseAnim 1.5s infinite;
    vertical-align: middle;
}
@keyframes livePulseAnim {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

/* ── SYNC INDICATOR ──────────────────────────────────────── */
.sync-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid rgba(56, 139, 253, 0.3);
    border-radius: 24px;
    padding: 8px 16px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    z-index: 1000;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.sync-indicator:hover {
    border-color: rgba(56, 139, 253, 0.6);
    background: rgba(13, 17, 23, 0.98);
}
.sync-indicator:hover .sync-text {
    max-width: 200px;
    opacity: 1;
}
.sync-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.sync-dot.live {
    background: #3fb950;
    box-shadow: 0 0 8px rgba(63, 185, 80, 0.6);
    animation: syncPulse 2s infinite;
}
.sync-dot.syncing {
    background: #d29922;
    animation: syncPulse 1s infinite;
}
.sync-dot.offline { background: #f85149; }
.sync-dot.error   { background: #f85149; animation: none; }
.sync-text {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    transition: max-width 0.3s ease, opacity 0.3s ease;
}
@keyframes syncPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.sync-toast {
    position: fixed;
    bottom: 60px;
    left: 20px;
    z-index: 1001;
    pointer-events: none;
}
.sync-toast-msg {
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid rgba(63, 185, 80, 0.4);
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 0.8rem;
    color: #3fb950;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    animation: toastSlide 3s forwards;
}
@keyframes toastSlide {
    0%   { opacity: 0; transform: translateY(10px); }
    10%  { opacity: 1; transform: translateY(0); }
    80%  { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}
@media (max-width: 768px) {
    .sync-indicator { bottom: 12px; left: 12px; padding: 6px 12px; font-size: 0.7rem; }
}

/* ── PRINT ───────────────────────────────────────────────── */
@media print {
    .navbar, .sync-indicator, .sync-toast, #backToTop { display: none !important; }
    body { background: #fff; color: #000; }
    .event-card { break-inside: avoid; border: 1px solid #ccc; }
}