/* ═══════════════════════════════════════════════════════════
   FOXFOT SPORTS — Premium Royal Gold & Onyx Theme
   ═══════════════════════════════════════════════════════════ */

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

:root {
    /* Color Palette - Royal Onyx (Dark Mode Default) */
    --bg:               #0a0806;
    --bg-deep:          #060504;
    --surface:          #12100c;
    --surface2:         #1c1814;
    --surface-glass:    rgba(10, 8, 6, 0.95);
    
    /* Royal Gold Accents */
    --primary:          #D4A017;
    --primary-hover:    #B8860B;
    --primary-glow:     rgba(212, 160, 23, 0.15);
    --primary-glow-solid: rgba(212, 160, 23, 0.3);

    /* Rich Gold Highlights */
    --accent:           #F5C842;
    --accent-glow:      rgba(245, 200, 66, 0.15);

    /* System Colors */
    --live-red:         #ff453a;
    --live-glow:        rgba(255, 69, 58, 0.25);
    --border:           #1f2330;
    --border-hover:     #353b50;
    
    /* Typography */
    --font:             'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono:        'JetBrains Mono', monospace;

    /* Text Colors */
    --text:             #f8fafc;
    --text-secondary:   #94a3b8;
    --text-muted:       #64748b;

    /* Spacing & Rounding */
    --radius-xs:        4px;
    --radius-sm:        8px;
    --radius:           12px;
    --radius-lg:        16px;
    --radius-xl:        24px;
    --radius-full:      9999px;
    --transition:       all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow:           0 12px 24px -10px rgba(0, 0, 0, 0.5);
}

/* Light Theme Override (Warm Ivory & Gold) */
body.light {
    --bg:               #fdf8f0;
    --bg-deep:          #f5ede0;
    --surface:          #ffffff;
    --surface2:         #f5ede0;
    --surface-glass:    rgba(255, 255, 255, 0.95);
    
    --primary:          #B8860B;
    --primary-hover:    #9A7209;
    --primary-glow:     rgba(184, 134, 11, 0.1);
    --primary-glow-solid: rgba(184, 134, 11, 0.2);

    --accent:           #D4A017;
    --accent-glow:      rgba(212, 160, 23, 0.1);

    --border:           #e8dcc8;
    --border-hover:     #d4c4a8;
    
    --text:             #1a150e;
    --text-secondary:   #6b5c44;
    --text-muted:       #a09078;
    --shadow:           0 10px 20px -10px rgba(26, 21, 14, 0.08);
}

/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
    position: relative;
}

a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* ─── Container ──────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Top Navigation Bar ─────────────────────────────────── */
.topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 900;
    height: 70px;
    background: var(--surface-glass);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header-content {
    display: flex; align-items: center; justify-content: space-between;
    height: 100%;
}

.topbar-brand {
    display: flex; align-items: center; gap: 12px;
}
.brand-icon {
    width: 38px; height: 38px; border-radius: var(--radius-sm);
    background: var(--surface2);
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border);
    overflow: hidden;
}
.brand-icon img { width: 100%; height: 100%; object-fit: cover; }

.brand-logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text) 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.brand-accent {
    background: linear-gradient(135deg, var(--accent), #D4A017, #8B6914);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.brand-wc-badge {
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.05em;
    background: linear-gradient(135deg, #8B6914, #D4A017);
    color: #fff; 
    border: 1px solid rgba(212, 160, 23, 0.4);
    padding: 2px 8px; border-radius: var(--radius-xs);
    align-self: center;
}

.topbar-right { display: flex; align-items: center; gap: 12px; }

.pill-online {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius-sm); padding: 5px 12px;
    font-size: 0.75rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: 6px;
}

.pill-live {
    background: rgba(255, 69, 58, 0.1);
    border: 1px solid rgba(255, 69, 58, 0.25);
    color: var(--live-red); border-radius: var(--radius-sm); padding: 5px 12px;
    font-size: 0.75rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px;
}
.pill-live .dot {
    width: 6px; height: 6px; background: var(--live-red); border-radius: 50%;
    animation: liveFlash 1.6s infinite;
}
@keyframes liveFlash {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.icon-btn {
    width: 36px; height: 36px; border-radius: var(--radius-sm);
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: inline-flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.icon-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 12px rgba(212, 160, 23, 0.2);
    transform: scale(1.02);
}

/* ─── Main Content Container ────────────────────────────── */
.main-container {
    position: relative; z-index: 1;
    padding-top: 100px;
    padding-bottom: 60px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding-left: 200px;
    padding-right: 200px;
}

@media (max-width: 1200px) {
    .main-container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* ─── Clean Hero Banner ─────────────────────────────────── */
.hero {
    text-align: center;
    padding: 40px 0 20px;
    margin-bottom: 30px;
}

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.08), rgba(245, 200, 66, 0.04));
    border: 1px solid rgba(212, 160, 23, 0.2);
    color: var(--accent); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 6px 14px; border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 12px;
}
.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--primary), #8B6914);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--text-secondary); font-size: 0.95rem; max-width: 540px; margin: 0 auto 20px;
    line-height: 1.6;
}

.hero-flags {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    flex-wrap: wrap;
}
.hero-flag {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs); padding: 5px 12px;
    font-size: 0.75rem; font-weight: 600; color: var(--text-secondary);
}

.gold-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), var(--primary), transparent);
    border: none;
    margin: 20px 0 30px;
    opacity: 0.6;
}

/* ─── Stats Dashboard Bar ───────────────────────────────── */
.wc-stats-bar {
    display: flex; gap: 12px;
    margin-bottom: 40px;
}
.wc-stat {
    flex: 1; padding: 18px; text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.wc-stat::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}
.wc-stat:hover {
    border-color: rgba(212, 160, 23, 0.3);
}
.wc-stat-value {
    font-size: 1.8rem;
    font-weight: 850;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.wc-stat-label {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--accent); margin-top: 6px;
    opacity: 0.8;
}

/* ─── Floating Video Ads ──────────────────────────────────── */
.ad-float {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 160px;
    z-index: 800;
    overflow: hidden;
    display: block;
    text-decoration: none;
    border: none;
    background-repeat: repeat-y;
    background-size: 160px auto;
}
.ad-float-left {
    left: 0;
    background-image: url('ADS2.jpg');
    background-position: top left;
}
.ad-float-right {
    right: 0;
    background-image: url('ADS2.jpg');
    background-position: top right;
}

@media (max-width: 1200px) {
    .ad-float { display: none; }
}

/* ─── Section Header & Search / Filters ──────────────────── */
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; flex-wrap: wrap; gap: 16px;
}
.section-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.section-title {
    font-size: 1.25rem; font-weight: 800;
    display: flex; align-items: center; gap: 8px;
    letter-spacing: -0.01em;
    color: var(--accent);
}
.section-count {
    background: var(--surface2);
    color: var(--text); font-size: 0.75rem; font-weight: 700;
    padding: 3px 10px; border-radius: var(--radius-xs);
    border: 1px solid var(--border);
}

/* Filter Tabs */
.filter-tabs {
    display: flex; gap: 6px;
    background: var(--surface);
    padding: 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.filter-tab {
    padding: 6px 14px; border-radius: var(--radius-xs);
    color: var(--text-secondary);
    font-size: 0.75rem; font-weight: 600;
    transition: var(--transition);
}
.filter-tab:hover { color: var(--text); }
.filter-tab.active {
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.12), rgba(245, 200, 66, 0.08));
    color: var(--primary); font-weight: 700;
    border: 1px solid rgba(212, 160, 23, 0.3);
}

/* Search Box with SVG Icon */
.section-right { position: relative; width: 280px; max-width: 100%; }
.search-input {
    width: 100%; padding: 10px 16px 10px 42px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text); font-size: 0.8rem; outline: none;
    transition: var(--transition);
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1);
    background: var(--surface2);
}
.search-icon-svg {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); pointer-events: none;
    transition: color 0.3s;
}
.search-input:focus + .search-icon-svg { color: var(--primary); }

/* ─── Match Grid ──────────────────────────────────────────── */
.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

/* ─── Professional Match Card (SofaScore / BeinMatch Style) ── */
.match-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    color: var(--text);
    transition: var(--transition);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    cursor: pointer;
}

.match-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 160, 23, 0.3);
    background: var(--surface2);
    box-shadow: 0 12px 28px -8px rgba(212, 160, 23, 0.1), var(--shadow);
}

.match-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    flex: 1;
}

.match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 36%;
    flex-shrink: 0;
}

.match-team .team-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    transition: transform 0.3s var(--ease);
}

.match-card:hover .team-logo {
    transform: scale(1.06);
}

.match-team .team-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.7em;
    line-height: 1.35;
}

.match-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 28%;
    gap: 6px;
}

.match-tournament {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
}

.match-time {
    font-size: 1.15rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent);
    background: var(--bg-deep);
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid var(--primary);
    border-color: color-mix(in srgb, var(--primary) 40%, transparent);
    min-width: 58px;
    text-align: center;
}

/* Fallback for single events without two teams */
.match-card-body.single-event {
    justify-content: flex-start;
    gap: 16px;
    text-align: left;
}
.match-card-body.single-event .match-team {
    width: auto;
}
.match-card-body.single-event .match-info {
    width: 75%;
    align-items: flex-start;
}
.match-card-body.single-event .match-info .team-name {
    font-size: 0.95rem;
    font-weight: 700;
    text-align: left;
    height: auto;
    display: block;
    overflow: visible;
}

/* Day & Sport Badges */
.card-sport-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--primary-glow);
    border: 1px solid rgba(212, 160, 23, 0.3);
    padding: 2px 8px;
    border-radius: var(--radius-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.card-day-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--surface2);
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: var(--radius-xs);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Bottom Status Bar */
.match-status-bar {
    padding: 8px 12px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--bg-deep);
    color: var(--text-secondary);
}

.match-status-bar.live {
    background: rgba(255, 69, 58, 0.08);
    color: var(--live-red);
    border-top-color: rgba(255, 69, 58, 0.15);
}

.match-status-bar.upcoming {
    color: var(--text-secondary);
}

.match-status-bar.ended {
    color: var(--text-muted);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--live-red);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(255, 69, 58, 0.5); }
    70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(255, 69, 58, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(255, 69, 58, 0); }
}

/* ─── Stream Page & Split Layout ─────────────────────────── */
.stream-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-top: 15px;
}
.stream-main { flex: 3; min-width: 0; }
.stream-sidebar { flex: 1.1; min-width: 320px; position: sticky; top: 90px; }

.stream-container {
    background: #000; border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 16 / 9; width: 100%;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
}

.stream-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.stream-header h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}

.btn-back {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 8px 16px; border-radius: var(--radius-sm);
    font-size: 0.78rem; font-weight: 600;
    transition: var(--transition);
}
.btn-back:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.stream-panel {
    margin-top: 20px; padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stream-panel-title {
    font-size: 0.95rem; font-weight: 700;
    color: var(--text); margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}
.stream-panel-title::before {
    content: '';
    display: inline-block; width: 3px; height: 14px;
    background: var(--primary);
    border-radius: var(--radius-xs);
}

.chat-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    height: 580px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}
.chat-container {
    flex: 1;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-deep);
}

.share-row {
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 12px;
}
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
    padding: 8px 14px; color: #fff;
    border-radius: var(--radius-sm); font-weight: 600; font-size: 0.75rem;
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 6px;
}
.share-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.share-btn.wa  { background: #25D366; }
.share-btn.tw  { background: #111; border: 1px solid var(--border); }
.share-btn.fb  { background: #1877F2; }
.share-btn.srv {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
}
.share-btn.srv:hover {
    border-color: var(--primary);
    color: var(--primary);
    opacity: 1;
}
.share-btn.srv.active {
    background: linear-gradient(135deg, #A07810, #D4A017, #F5C842);
    color: #000;
    font-weight: 700;
    border-color: transparent;
    box-shadow: 0 0 10px rgba(212, 160, 23, 0.3);
    opacity: 1;
}

.related-divider {
    height: 1px; background: var(--border);
    margin: 16px 0;
}
.related-scroll {
    display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px;
    scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
    position: relative; margin-top: 60px;
    padding: 30px 20px;
    text-align: center;
    font-size: 0.74rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    line-height: 1.6;
    background: var(--bg-deep);
}
.site-footer strong { color: var(--accent); }

/* ─── Mobile Bottom Navigation ────────────────────────────── */
.bottom-nav {
    display: none;
}

@media (max-width: 992px) {
    .stream-layout {
        flex-direction: column;
        align-items: stretch;
    }
    .stream-sidebar {
        position: static;
        min-width: 100%;
    }
    .chat-panel {
        height: 440px;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 75px; /* Prevent content cutoff behind bottom nav */
    }
    .main-container {
        padding-top: 90px;
    }
    
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 58px;
        background: var(--surface-glass);
        backdrop-filter: blur(20px) saturate(1.8);
        -webkit-backdrop-filter: blur(20px) saturate(1.8);
        border-top: 1px solid var(--border);
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    }
    
    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: var(--text-secondary);
        font-size: 0.65rem;
        font-weight: 600;
        gap: 3px;
        width: 20%;
        height: 100%;
        transition: color 0.2s var(--ease);
        position: relative;
    }
    
    .nav-item .nav-icon {
        width: 20px;
        height: 20px;
        transition: transform 0.2s var(--ease);
    }
    
    .nav-item:hover, .nav-item.active {
        color: var(--primary);
    }
    
    .nav-item.active .nav-icon {
        transform: scale(1.08);
        color: var(--primary);
    }
    
    .nav-item.active::after {
        content: '';
        position: absolute;
        top: 0;
        width: 18px;
        height: 3px;
        background: var(--primary);
        border-radius: 0 0 4px 4px;
    }

    .nav-badge-container {
        position: relative;
        display: inline-block;
    }
    
    .nav-badge-dot {
        position: absolute;
        top: -1px;
        right: -1px;
        width: 6px;
        height: 6px;
        background-color: var(--live-red);
        border-radius: 50%;
        border: 1px solid var(--bg);
        animation: liveFlash 1.6s infinite;
    }
}

@media (max-width: 640px) {
    .wc-stats-bar { display: none; }
    .search-input { width: 100%; }
    .hero-flags { display: none; }
    .section-left { gap: 8px; }
    .hero h1 { font-size: 2rem; }
    .match-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .topbar-brand span:not(.brand-wc-badge) { font-size: 1.3rem; }
    .brand-wc-badge { display: none; }
    .pill-online { padding: 4px 8px; font-size: 0.65rem; }
    .pill-live { padding: 4px 8px; font-size: 0.65rem; }
    .topbar { padding: 0 12px; }
    .search-input { width: 100%; margin-top: 8px; }
    .section-header { flex-direction: column; align-items: stretch; }
    .section-right { width: 100%; }
    
    .match-card-body {
        padding: 16px 10px;
    }
    .match-team .team-logo {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }
    .match-team .team-name {
        font-size: 0.76rem;
        height: 2.7em;
    }
    .match-time {
        font-size: 1rem;
        min-width: 48px;
        padding: 2px 6px;
    }
    .match-tournament {
        font-size: 0.58rem;
    }
}

/* ─── Entrance Animations ───────────────────────────────── */
@keyframes cardIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.match-card {
    animation: cardIn 0.4s var(--ease) both;
}
