/* Base Setup */
:root {
    --bg-primary: #020306;
    --bg-secondary: #080911;
    --bg-surface: rgba(12, 14, 23, 0.45);
    --bg-glass: rgba(8, 9, 17, 0.82);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-bright: rgba(255, 255, 255, 0.18);

    --text-primary: #ffffff;
    --text-secondary: #a1b0c7;
    --text-muted: #6b7c93;

    --accent-blue: #0ea5e9;
    --accent-purple: #8b5cf6;
    --accent-indigo: #6366f1;
    --accent-red: #f43f5e;
    --accent-green: #10b981;
    --accent-gold: #f59e0b;

    --neon-blue: 0 0 20px rgba(14, 165, 233, 0.5);
    --neon-purple: 0 0 30px rgba(139, 92, 246, 0.4);
    --neon-gold: 0 0 25px rgba(245, 158, 11, 0.3);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hidden {
    display: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Glow Effects with Noise Texture */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
}

.bg-glow {
    position: fixed;
    width: 80vw;
    height: 80vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    top: -30vh;
    left: -20vw;
    z-index: -1;
    pointer-events: none;
    animation: floatingGlow 15s ease-in-out infinite;
}

.bg-glow-secondary {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    top: 40vh;
    left: 50vw;
    animation: floatingGlow 20s ease-in-out infinite reverse;
}

@keyframes floatingGlow {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(50px, 30px);
    }

    66% {
        transform: translate(-30px, 50px);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #2a2e40;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* Typography & Utilites */
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul,
li {
    list-style: none;
}

button {
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    border: none;
    background: none;
}

.mt-20 {
    margin-top: 20px;
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-red);
    box-shadow: 0 0 0 0 rgba(255, 51, 102, 0.7);
    animation: pulseRed 1.5s infinite;
    vertical-align: middle;
    margin-right: 5px;
}

@keyframes pulseRed {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================
   LIVE TICKER STRIP (Below Navbar)
   =============================== */
.live-ticker-strip {
    width: 100%;
    height: 38px;
    background: rgba(5, 6, 15, 0.95);
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
    display: flex;
    align-items: center;
    overflow: hidden;
    position: sticky;
    top: 80px;
    z-index: 99;
}

.ticker-strip-label {
    flex-shrink: 0;
    background: #ef4444;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 16px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #fff;
}

.ticker-strip-track {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-strip-inner {
    display: flex;
    gap: 80px;
    white-space: nowrap;
    animation: scrollTicker 25s linear infinite;
}

.ticker-strip-item {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
}

.ticker-strip-item i {
    color: var(--accent-green);
    font-size: 14px;
}

.ticker-strip-item strong {
    color: #fff;
    font-weight: 800;
}

@keyframes scrollTicker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ===============================
   PLAYER SCORE BAR (Above Video)
   =============================== */
.player-score-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(90deg, rgba(4, 6, 18, 0.98), rgba(10, 12, 28, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: none;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.psb-live {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 10px;
    font-weight: 900;
    color: #ef4444;
    letter-spacing: 1.5px;
    flex-shrink: 0;
}

.psb-team {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text-primary);
}

.psb-flag {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.psb-flag[src=""],
.psb-flag:not([src]) {
    display: none;
}

.psb-score {
    font-weight: 800;
    color: var(--accent-blue);
    font-size: 14px;
}

.psb-divider {
    font-size: 10px;
    font-weight: 900;
    color: var(--text-muted);
    letter-spacing: 2px;
    padding: 0 4px;
}

.psb-status {
    margin-left: auto;
    font-size: 11px;
    color: var(--accent-gold);
    font-weight: 600;
    font-style: italic;
    flex-shrink: 0;
}

/* =============================== */

/* ===============================
   NAVBAR LIVE SCORE CHIP
   =============================== */
.nav-score-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 6px 14px 6px 8px;
    backdrop-filter: blur(12px);
}

.nav-chip-live {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.45);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 900;
    color: #ef4444;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.nav-chip-teams {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
}

.chip-flag {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.chip-flag[src=""],
.chip-flag:not([src]) {
    display: none;
}

.chip-team {
    color: var(--text-primary);
    font-weight: 800;
    font-size: 12px;
}

.chip-score {
    color: var(--accent-blue);
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.chip-dim {
    color: var(--text-muted);
}

.chip-sep {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    padding: 0 2px;
}

/* =============================== */

/* Navigation Menu */
.navbar {
    min-height: 80px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background: var(--bg-glass);
    backdrop-filter: blur(30px) saturate(200%);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), var(--accent-purple), transparent);
    opacity: 0.3;
}

/* New Navbar Center Ticker */
.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    padding: 0 10px;
}

.nav-ticker-box {
    width: 100%;
    max-width: 850px;
    height: 38px;
    background: rgba(14, 165, 233, 0.05);
    /* Subtle blue tint */
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.1), inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.nav-ticker-box::before {
    content: 'BREAKING';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 90px;
    background: linear-gradient(90deg, var(--accent-red), #ff6b6b);
    color: white;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    clip-path: polygon(0 0, 85% 0, 100% 100%, 0 100%);
    box-shadow: 5px 0 15px rgba(239, 68, 68, 0.3);
}

.nav-ticker-box::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to left, var(--bg-secondary), transparent);
    z-index: 2;
    opacity: 0.8;
}

.ticker-track {
    width: 100%;
    overflow: hidden;
}

.ticker-content {
    display: flex;
    gap: 80px;
    white-space: nowrap;
    animation: scrollNavTicker 25s linear infinite;
    padding-left: 10px;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    /* Slightly larger */
    font-weight: 700;
    color: #fff;
    /* Bright white for better visibility */
    letter-spacing: 0.2px;
}

.ticker-item i {
    color: var(--accent-gold);
    /* Gold ball for premium look */
    font-size: 16px;
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5));
}

.ticker-item strong {
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.5px;
}

@keyframes scrollNavTicker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive Ticker Control */
@media (max-width: 1200px) {
    .nav-center {
        padding: 0 20px;
    }
}

@media (max-width: 1024px) {
    .nav-center {
        display: none;
        /* Hide on mobile/tablet to save space */
    }
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #fff;
    cursor: pointer;
}

.logo-icon {
    color: var(--accent-blue);
    margin-right: 12px;
    font-size: 32px;
    filter: drop-shadow(var(--neon-blue));
    animation: rotateIcon 4s linear infinite;
}

@keyframes rotateIcon {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.logo-text-highlight {
    color: transparent;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    position: relative;
}

.logo-text-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-blue);
    opacity: 0.15;
    filter: blur(4px);
}

.nav-links a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-secondary);
    padding: 10px 15px;
    border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

#liveTvLink.active {
    color: var(--accent-red) !important;
    background: rgba(255, 51, 102, 0.1);
    font-weight: 700;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 8px 15px;
    width: 250px;
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.1);
}

.search-bar i {
    color: var(--text-secondary);
    margin-right: 10px;
}

.search-bar input {
    background: none;
    border: none;
    color: var(--text-primary);
    outline: none;
    width: 100%;
    font-family: inherit;
    font-size: 14px;
}

.nav-icon {
    font-size: 22px;
    color: var(--text-secondary);
    position: relative;
    cursor: pointer;
}

.nav-icon:hover {
    color: var(--text-primary);
}

.badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--accent-red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.user-profile img {
    border-radius: 50%;
    width: 38px;
    height: 38px;
    object-fit: cover;
    border: 2px solid var(--accent-blue);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.user-profile img:hover {
    transform: scale(1.05);
}

/* Main Application Layout (3 Columns) */
.app-container {
    display: flex;
    flex-direction: row;
    height: calc(100vh - 70px);
    width: 100%;
}

.sidebar {
    background: rgba(10, 12, 18, 0.6);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--border-glass);
    border-left: 1px solid var(--border-glass);
    padding: 20px;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 10;
}

.left-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.left-sidebar {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-chat-section {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-glass);
    padding-top: 20px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.sidebar-chat-section.collapsed-content {
    min-height: 0;
}

.sidebar-chat-section.collapsed-content .chat-collapsible-area {
    display: none;
}

#chatChevron {
    transition: transform 0.3s ease;
    font-size: 20px;
    color: var(--text-secondary);
}

.sidebar-chat-section:not(.collapsed-content) #chatChevron {
    transform: rotate(180deg);
}

.chat-collapsible-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    justify-content: space-between;
}

/* Fullscreen Overlay Chat Logic */
/* In normal mode, it's just a sidebar. In FS mode, it overlays. */
:fullscreen .fullscreen-overlay-chat,
:-webkit-full-screen .fullscreen-overlay-chat,
:-ms-fullscreen .fullscreen-overlay-chat {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    height: 100% !important;
    width: 350px !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(15px) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-top: none !important;
    margin-top: 0 !important;
    z-index: 2147483647 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
}

:fullscreen .fullscreen-overlay-chat .chat-messages,
:-webkit-full-screen .fullscreen-overlay-chat .chat-messages {
    max-height: none !important;
    flex: 1 !important;
}

:fullscreen .fullscreen-overlay-chat .sidebar-header,
:-webkit-full-screen .fullscreen-overlay-chat .sidebar-header {
    padding: 15px;
    margin: 0;
}

.fs-chat-toggle {
    display: none;
    /* Hidden globally, shown via JS or FS trigger if needed */
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    z-index: 10;
    cursor: pointer;
}

:fullscreen .fs-chat-toggle,
:-webkit-full-screen .fs-chat-toggle,
:-ms-fullscreen .fs-chat-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-content {
    flex: 1;
    padding: 20px 30px;
    overflow-y: auto;
    min-width: 0;
}

/* Featured Match Card */
.featured-match-premium {
    background: linear-gradient(165deg, rgba(3, 4, 8, 0.8), rgba(15, 20, 35, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(139, 92, 246, 0.05);
    backdrop-filter: blur(15px);
}

.featured-match-premium::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background: var(--accent-gold);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.2;
}

.featured-match-premium::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: var(--accent-blue);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.2;
}

.featured-badge {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-gold);
    border: 1px solid rgba(245, 158, 11, 0.3);
    font-size: 9px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 22px;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}

.featured-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.team-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.flag-icon-mini {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    background: var(--bg-secondary);
}

.team-initials {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.vs-mini {
    font-size: 20px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    letter-spacing: 2px;
}

.featured-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.meta-item {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item-live {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item-live::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-red);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-red);
    animation: pulseRed 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Sidebar Headers */
.sidebar-header h3 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

/* Match Cards */
.match-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid var(--border-glass);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.match-card.active {
    border-color: rgba(0, 210, 255, 0.4);
    box-shadow: inset 0 0 20px rgba(0, 210, 255, 0.05);
}

.match-status {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 10px;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
}

.live-status {
    background: rgba(255, 51, 102, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(255, 51, 102, 0.3);
}

.upcoming-status {
    background: rgba(160, 165, 186, 0.1);
    color: var(--text-secondary);
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.team {
    display: flex;
    align-items: center;
    flex: 1;
}

.team:last-child {
    justify-content: flex-end;
}

.team-name {
    font-weight: 600;
    font-size: 14px;
}

.team-score {
    margin-left: auto;
    font-weight: 700;
    font-size: 14px;
    color: var(--accent-green);
}

.team:last-child .team-score {
    margin-left: 0;
    margin-right: auto;
}

.team-flag {
    width: 20px;
    height: 14px;
    border-radius: 3px;
    margin-right: 8px;
    display: inline-block;
}

.team:last-child .team-flag {
    margin-right: 0;
    margin-left: 8px;
}

/* Mock Flag Colors */
.ind {
    background: linear-gradient(to bottom, #FF9933 33%, #FFFFFF 33%, #FFFFFF 66%, #138808 66%);
}

.pak {
    background: #01411C;
    border: 1px solid #fff;
}

.aus {
    background: #FFD700;
    border: 1px solid #00502F;
}

.eng {
    background: #fff;
    border: 1px solid #CE1124;
}

.sl {
    background: #000080;
    border: 1px solid #FFBE00;
}

.nz {
    background: #000;
}

.wi {
    background: #7B0041;
}

.sa {
    background: #007A4D;
    border: 1px solid #FFB81C;
}

.ban {
    background: #006A4E;
}

.usa {
    background: linear-gradient(to bottom, #B31942 50%, #0A3161 50%);
}

.vs {
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.6;
}

.match-info {
    font-size: 12px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-glass);
    padding-top: 8px;
}

/* Channels Sidebar */
.channel-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: background 0.2s;
}

.channel-item:hover,
.channel-item.active {
    background: rgba(255, 255, 255, 0.05);
}

.channel-logo {
    width: 45px;
    height: 35px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 12px;
    border: 1px solid #333;
}

.channel-info {
    display: flex;
    flex-direction: column;
}

.channel-name {
    font-size: 14px;
    font-weight: 600;
}

.channel-playing {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 3px;
}

/* ------------------- PLAYER SECTION ------------------- */
.player-wrapper {
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.9);
    border: 1px solid var(--border-bright);
    animation: floatPlayer 6s ease-in-out infinite, slideInUp 0.8s ease-out;
}

.player-wrapper::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
    pointer-events: none;
}

@keyframes floatPlayer {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.video-container {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.player-overlay-actions {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 100;
    display: flex;
    gap: 10px;
}

.player-float-btn {
    background: rgba(15, 18, 26, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.player-float-btn:hover {
    background: var(--accent-blue);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 153, 255, 0.4);
}

.player-float-btn i {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.video-poster {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.player-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: opacity 0.3s;
}

.live-badge-top {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 51, 102, 0.8);
    backdrop-filter: blur(4px);
    color: white;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    letter-spacing: 1px;
}

.watermark {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 20px;
    font-weight: 800;
    opacity: 0.3;
}

.center-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(0, 210, 255, 0.8);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: all 0.2s;
}

.center-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.player-controls {
    padding: 20px;
    width: 100%;
}

.progress-area {
    margin-bottom: 12px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    position: relative;
    cursor: pointer;
}

.progress-filled {
    height: 100%;
    background: var(--accent-red);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
}

.controls-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.controls-left,
.controls-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    color: white;
    font-size: 24px;
    opacity: 0.8;
    transition: opacity 0.2s, color 0.2s;
}

.control-btn:hover {
    opacity: 1;
    color: var(--accent-blue);
}

.time-display.live {
    font-size: 14px;
    font-weight: 500;
    margin-left: 10px;
}

/* Page Info Below player */
.stream-info {
    margin-top: 35px;
    padding: 30px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.stream-header-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.live-indicator-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
    width: fit-content;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.stream-title {
    font-size: 36px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 30%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ============================
   CREATIVE LIVE SCORE TICKER
   ============================ */
.score-ticker-premium {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(6, 8, 20, 0.9), rgba(14, 20, 40, 0.95));
    padding: 20px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.07);
    gap: 0;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* Background glow lines */
.score-ticker-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(14, 165, 233, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

/* Team Blocks */
.ticker-team-block {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.ticker-team-block.right {
    justify-content: flex-end;
}

/* Flag Wrapper */
.ticker-flag-wrap {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.ticker-flag-lg {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.ticker-flag-lg[src=""],
.ticker-flag-lg:not([src]) {
    display: none;
}

/* Fallback text in circle when no image */
.ticker-flag-fallback {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
    position: absolute;
    top: 0;
    left: 0;
}

/* Team Info */
.ticker-team-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ticker-team-info.right-align {
    text-align: right;
    align-items: flex-end;
}

.ticker-team-code {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ticker-score-big {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}

.ticker-overs {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Center VS Block */
.ticker-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0 28px;
    position: relative;
    z-index: 1;
}

.ticker-live-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 900;
    color: #ef4444;
    letter-spacing: 1.5px;
}

.pulse-ring {
    width: 7px;
    height: 7px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 8px #ef4444;
    animation: pulseRed 1.2s infinite;
    flex-shrink: 0;
}

@keyframes pulseRed {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

.ticker-vs-text {
    font-size: 28px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.12);
    letter-spacing: 4px;
    line-height: 1;
}

.ticker-status-text {
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-gold);
    text-align: center;
    max-width: 120px;
    line-height: 1.4;
}


.stream-actions-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-glass);
    padding-top: 25px;
}

.meta-group {
    display: flex;
    gap: 20px;
}

.social-share-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 20px;
    border-left: 1px solid var(--border-glass);
}

.share-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.share-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    transition: var(--transition);
}

.x-bg {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.wa-bg {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
}

.share-link:hover {
    transform: translateY(-3px) scale(1.1);
    background: rgba(255, 255, 255, 0.15);
}

.ticker-flag {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    background: var(--bg-surface);
    flex-shrink: 0;
}

.ticker-flag[src=""],
.ticker-flag:not([src]) {
    display: none;
}

.meta-tag-premium {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.meta-tag-premium i {
    color: var(--accent-blue);
    font-size: 18px;
}

.action-group {
    display: flex;
    gap: 12px;
}

.btn-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 20px;
    transition: var(--transition);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--border-bright);
}

.btn-primary-glass {
    padding: 0 30px;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(14, 165, 233, 0.4);
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary-glass:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(139, 92, 246, 0.3));
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.4);
    border-color: var(--accent-blue);
}

.live-label {
    background: var(--accent-red);
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.replay-label {
    background: #555;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.stream-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(0, 153, 255, 0.05);
    border: 1px solid rgba(0, 153, 255, 0.2);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    padding: 2px;
}

.notice-close:hover {
    color: var(--accent-red);
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-blue);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: white;
}

.modal-body {
    padding: 20px;
}

.help-item {
    margin-bottom: 20px;
}

.help-item h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    margin-bottom: 8px;
    font-size: 15px;
}

.help-item p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.help-item b {
    color: var(--accent-purple);
}

.stream-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.stream-meta {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.meta-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
}

.server-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.server-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    padding: 18px 20px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.server-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.6s;
}

.server-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-bright);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.server-btn:hover::before {
    left: 100%;
}

.server-btn.active {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.4);
    color: var(--accent-blue);
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.2);
}

/* Sidebar Specific Server List */
.sidebar-server-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.sidebar-server-list .server-btn {
    width: 100%;
    padding: 12px 15px;
    font-size: 13px;
    text-align: left;
    justify-content: flex-start;
    height: auto;
    display: block;
}

.server-details-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.ch-team-flags {
    display: flex;
    align-items: center;
    gap: -4px;
    /* Slight overlap for premium look */
}

.ch-flag-mini {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    background: var(--bg-surface);
}

.ch-flag-mini:nth-child(2) {
    margin-left: -5px;
    /* Overlap effect */
}

.ch-flag-mini[src=""],
.ch-flag-mini:not([src]) {
    display: none;
}

.server-match-teams {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.server-name {
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.server-meta {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 400;
}

.server-status {
    font-weight: 700;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 3px;
}

.server-status.live {
    color: var(--accent-red);
    background: rgba(255, 51, 102, 0.1);
}

.server-status.replay {
    color: #888;
    background: rgba(255, 255, 255, 0.05);
}


/* Stats box styling */
.stats-box {
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    padding: 15px;
}

.team-score-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 15px;
}

.team-score-row .score strong {
    font-size: 20px;
    color: var(--accent-green);
}

.req-run-rate {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.commentary-snippet p {
    font-size: 13px;
    line-height: 1.5;
    color: #ddd;
}


/* Modal System */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 1;
    visibility: visible;
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-bright);
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-blue);
}

.modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.help-item {
    margin-bottom: 20px;
}

.help-item h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.help-item p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}


/* ------------------- RESPONSIVE DESIGN ------------------- */

@media (max-width: 1024px) {
    .app-container {
        height: calc(100vh - 80px);
        /* Fill remaining height */
    }

    /* Keep Sidebar as a Drawer instead of stacking at bottom */
    .left-sidebar {
        position: fixed !important;
        left: -320px !important;
        top: 80px !important;
        bottom: 0 !important;
        width: 300px !important;
        z-index: 1000;
        transition: var(--transition);
        backdrop-filter: blur(20px);
        background: rgba(3, 4, 8, 0.95) !important;
        border-right: 1px solid var(--border-glass);
    }

    .left-sidebar.active-sidebar {
        left: 0 !important;
    }

    .main-content {
        width: 100% !important;
        padding: 15px !important;
    }

    .menu-toggle {
        display: flex !important;
        /* Show toggle button */
    }

    .navbar {
        flex-wrap: wrap;
        padding: 10px 20px;
        gap: 10px;
        height: auto;
    }

    .nav-left,
    .nav-right {
        flex: 1;
        width: auto;
    }

    .nav-center {
        display: flex;
        order: 3;
        width: 100%;
        padding: 0;
        margin-top: 5px;
    }

    .nav-ticker-box {
        max-width: 100%;
        height: 32px;
    }

    .ticker-item {
        font-size: 11px;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
    }

    .left-sidebar {
        top: 70px !important;
    }

    .nav-score-chip {
        padding: 4px 10px 4px 6px;
        gap: 6px;
    }

    .nav-chip-live {
        padding: 2px 6px;
        font-size: 8px;
    }

    .nav-chip-teams {
        font-size: 11px;
        gap: 5px;
    }

    .chip-flag {
        width: 14px;
        height: 14px;
    }

    .stream-title {
        font-size: 18px;
    }

    .video-container {
        border-radius: 0;
        margin: -15px -15px 15px -15px;
        /* Edge-to-edge video on mobile */
    }

    .server-btn {
        padding: 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 12px;
    }

    .logo-text-highlight {
        display: none;
    }

    /* Extra compact score chip on tiny screens */
    .nav-chip-live {
        display: none;
        /* Hide 'LIVE' text to save space */
    }

    .nav-score-chip {
        background: transparent;
        border-color: transparent;
        padding: 0;
    }

    .chip-sep {
        display: none;
    }

    .chip-team {
        display: none;
        /* Only show scores and flags */
    }

    .chip-score {
        font-size: 14px;
        background: rgba(14, 165, 233, 0.1);
        padding: 2px 6px;
        border-radius: 4px;
    }

    .player-float-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .stream-actions-premium {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .social-share-group {
        padding-left: 0;
        border-left: none;
        width: 100%;
        justify-content: flex-start;
    }

    .btn-primary-glass {
        width: 100%;
        justify-content: center;
    }

    .action-group {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .btn-icon {
        width: 100%;
    }
}

/* Modal Responsive */
@media (max-width: 600px) {
    .modal-content {
        width: 92%;
        margin: 0;
        /* Centered by flex parent */
        max-height: 80vh;
    }

    .modal-header {
        padding: 16px 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .help-item h4 {
        font-size: 14px;
        gap: 6px;
    }

    .help-item p {
        font-size: 12.5px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════
   SEO CONTENT SECTION
═══════════════════════════════════════════════════ */
.seo-content-section {
    width: 100%;
    background: linear-gradient(180deg, rgba(2, 3, 6, 0) 0%, rgba(5, 7, 20, 0.95) 30%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 40px 40px;
    position: relative;
    z-index: 1;
}

.seo-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 60px;
}

.seo-about h2 {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #fff, var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.seo-about p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 10px;
}

.seo-about strong,
.seo-channels strong {
    color: #b8d4f0;
}

.seo-channels h3,
.seo-faq h3,
.seo-tournaments h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
}

.seo-channels ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.seo-channels ul li {
    font-size: 13px;
    color: var(--text-secondary);
    padding-left: 14px;
    position: relative;
    line-height: 1.6;
}

.seo-channels ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-size: 11px;
    top: 2px;
}

/* FAQ */
.seo-faq {
    grid-column: 1 / -1;
}

.faq-item {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 12px;
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: rgba(14, 165, 233, 0.25);
}

.faq-item h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Tournaments */
.seo-tournaments {
    grid-column: 1 / -1;
}

.tournament-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tournament-tags li {
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.tournament-tags li:hover {
    background: rgba(14, 165, 233, 0.18);
    color: #fff;
    border-color: rgba(14, 165, 233, 0.5);
}

/* ═══════════════════════════════════════════════════
   SITE FOOTER
═══════════════════════════════════════════════════ */
.site-footer {
    width: 100%;
    background: rgba(4, 5, 14, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 40px 30px;
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 40px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
}

.footer-brand .footer-logo i {
    color: var(--accent-blue);
    filter: drop-shadow(var(--neon-blue));
}

.footer-brand .footer-logo span {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-links h4,
.footer-disclaimer h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links ul li a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: var(--accent-blue);
}

.footer-disclaimer p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 16px 40px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Responsive SEO Section */
@media (max-width: 768px) {
    .seo-content-section {
        padding: 40px 20px 30px;
    }

    .seo-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .seo-faq {
        grid-column: 1;
    }

    .seo-tournaments {
        grid-column: 1;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        padding: 30px 20px 20px;
        gap: 24px;
    }

    .footer-bottom {
        padding: 14px 20px;
    }
}