/* 
   PREMIUM CRICKET BLOG - ULTIMATE LUXURY DESIGN SYSTEM
   v3.0 - Premium White/Light Theme with Glassmorphism
   Features: Glass effects, 3D animations, magnetic buttons, parallax, gold accents
*/

:root {
    /* --- PREMIUM COLOR PALETTE --- */
    /* Primary Brand Colors */
    --brand-navy: #0f172a;
    --brand-navy-light: #1e293b;
    --brand-red: #DC143C;
    --brand-red-glow: rgba(220, 20, 60, 0.4);
    --brand-blue: #003893;
    --brand-blue-glow: rgba(0, 56, 147, 0.4);

    /* Premium Gold Accents */
    --gold-primary: #D4AF37;
    --gold-light: #F4D03F;
    --gold-dark: #B8860B;
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F4D03F 50%, #D4AF37 100%);

    /* Backgrounds - Premium Layers (Creamy White) */
    --bg-page: linear-gradient(135deg, #fdfcfa 0%, #f5f3ef 50%, #ebe8e3 100%);
    --bg-card: rgba(252, 250, 247, 0.9);
    --bg-card-solid: #fcfaf7;
    --bg-glass: rgba(252, 250, 247, 0.8);
    --bg-glass-hover: rgba(255, 254, 252, 0.95);
    --bg-surface: rgba(245, 243, 239, 0.9);
    --bg-elevated: rgba(255, 254, 252, 0.98);

    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverted: #ffffff;
    --text-gold: #B8860B;

    /* UI Elements */
    --border-subtle: rgba(220, 215, 208, 0.8);
    --border-focus: rgba(200, 195, 188, 0.9);
    --border-glass: rgba(252, 250, 247, 0.4);

    /* Premium Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(220, 20, 60, 0.3);
    --shadow-glow-blue: 0 0 20px rgba(0, 56, 147, 0.3);
    --shadow-glow-gold: 0 0 20px rgba(212, 175, 55, 0.4);

    /* Glass Effect */
    --glass-blur: blur(20px);
    --glass-blur-heavy: blur(40px);
    --glass-saturate: saturate(180%);

    /* Layout */
    --header-height: 130px;
    --header-height-scrolled: 100px;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Gradients */
    --grad-nepal: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-red) 100%);
    --grad-nepal-shine: linear-gradient(135deg, var(--brand-blue) 0%, #0050c9 25%, var(--brand-red) 50%, #ff1a4d 75%, var(--brand-blue) 100%);
    --grad-dark: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
    --grad-hero: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 50%, rgba(0, 56, 147, 0.85) 100%);
    --grad-gold-shine: linear-gradient(90deg, transparent 0%, rgba(244, 208, 63, 0.4) 50%, transparent 100%);

    /* Animation Timing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.3s;
    --duration-slow: 0.5s;
    --duration-slower: 0.8s;
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #f5f3ef;
    background: linear-gradient(135deg, #fdfcfa 0%, #f5f3ef 50%, #ebe8e3 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Premium Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--duration-fast) var(--ease-smooth);
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- SELECTION --- */
::selection {
    background: var(--brand-red);
    color: white;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--brand-blue), var(--brand-red));
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-red);
}

/* Old Navigation Styles Removed - See nav.css */

/* --- PREMIUM HERO SECTION --- */
.hero-section {
    max-width: 1440px;
    margin: calc(var(--header-height) + 2rem) auto 3rem;
    padding: 0 1.5rem;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 56, 147, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Featured Match Card - Premium Glass Effect */
.featured-match {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-glass);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-slow) var(--ease-out-expo);
}

.featured-match:hover {
    transform: translateY(-5px) scale(1.005);
    box-shadow:
        0 35px 60px -15px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset,
        var(--shadow-glow);
}

/* Animated Gradient Border */
.featured-match::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--grad-nepal-shine);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Shimmer Effect */
.featured-match::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 100%);
    animation: shimmer 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {

    0%,
    100% {
        left: -100%;
    }

    50% {
        left: 100%;
    }
}

.featured-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
}

.featured-tournament {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tournament-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.tournament-name {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--brand-navy);
}

.featured-match-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Live Indicator - Premium Animation */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--brand-red);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: var(--brand-red);
    border-radius: 50%;
    position: relative;
    animation: pulse-ring 2s ease-out infinite;
}

.live-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--brand-red);
    border-radius: 50%;
    animation: pulse-dot 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 20, 60, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(220, 20, 60, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 20, 60, 0);
    }
}

@keyframes pulse-dot {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
}

/* Featured Teams */
.featured-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    gap: 2rem;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    flex: 1;
    padding: 1.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    transition: all var(--duration-normal) var(--ease-out-back);
}

.team-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
    background: var(--bg-glass-hover);
}

.team-logo-wrapper {
    position: relative;
}

.team-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    border: 3px solid var(--border-glass);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transition: all var(--duration-normal) var(--ease-out-back);
}

.team-card:hover .team-logo {
    transform: scale(1.1);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

/* Glow ring for team logos */
.team-logo::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--grad-nepal);
    border-radius: 50%;
    opacity: 0;
    z-index: -1;
    transition: opacity var(--duration-normal);
    filter: blur(15px);
}

.team-card:hover .team-logo::before {
    opacity: 0.5;
}

.team-name {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--brand-navy);
    text-align: center;
}

.team-score {
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-navy);
    font-variant-numeric: tabular-nums;
    background: var(--grad-nepal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* VS Badge */
.match-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.vs-badge {
    background: var(--gold-gradient);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow:
        0 8px 20px rgba(184, 134, 11, 0.4),
        0 0 0 4px rgba(255, 255, 255, 0.3) inset;
    animation: float-vs 3s ease-in-out infinite;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes float-vs {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.05);
    }
}

.featured-match-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: center;
}

.match-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    background: var(--bg-surface);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-full);
}

.status-icon {
    font-size: 1rem;
}

/* --- SECTION STYLES --- */
section {
    max-width: 1440px;
    margin: 4rem auto;
    padding: 0 1.5rem;
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    position: relative;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--brand-navy);
    position: relative;
    padding-left: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 32px;
    background: var(--grad-nepal);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-glow);
}

/* Section badge/count */
.section-count {
    background: var(--bg-glass);
    color: var(--brand-red);
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glass);
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--brand-blue);
    padding: 0.625rem 1.25rem;
    background: var(--bg-glass);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glass);
    transition: all var(--duration-fast) var(--ease-out-back);
}

.view-all-link:hover {
    background: var(--brand-blue);
    color: white;
    transform: translateX(5px);
    box-shadow: var(--shadow-glow-blue);
}

/* --- TOURNAMENT SHOWCASE --- */
.tournament-showcase-section {
    position: relative;
}

.tournament-showcase {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0.5rem 2rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tournament-showcase::-webkit-scrollbar {
    display: none;
}

.tournament-card {
    min-width: 320px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: all var(--duration-normal) var(--ease-out-back);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tournament-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-nepal);
    transform: scaleX(0);
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.tournament-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    background: var(--bg-glass-hover);
}

.tournament-card:hover::before {
    transform: scaleX(1);
}

.tournament-card.active {
    border-color: var(--brand-red);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.tournament-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tournament-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    background-size: cover;
    background-position: center;
    border: 2px solid var(--border-glass);
}

.tournament-info {
    flex: 1;
}

.tournament-info .tournament-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 0.25rem;
}

.tournament-type {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tournament-status {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
}

.tournament-status.live {
    background: rgba(220, 20, 60, 0.15);
    color: var(--brand-red);
    animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(220, 20, 60, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(220, 20, 60, 0);
    }
}

.tournament-status.upcoming {
    background: rgba(0, 56, 147, 0.15);
    color: var(--brand-blue);
}

.tournament-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.tournament-stat {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-navy);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tournament-progress {
    margin-top: 1rem;
}

.progress-bar {
    height: 6px;
    background: var(--bg-surface);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--grad-nepal);
    border-radius: var(--radius-full);
    transition: width var(--duration-slow) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--grad-gold-shine);
    animation: shimmer 2s ease-in-out infinite;
}

.progress-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
}

/* --- TOURNAMENT TABS --- */
.tournament-filter-section {
    margin-top: 2rem;
}

.tournament-tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glass);
}

.tournament-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out-back);
    position: relative;
    overflow: hidden;
}

.tournament-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--grad-nepal);
    opacity: 0;
    transform: scale(0.9);
    transition: all var(--duration-fast) var(--ease-out-back);
    border-radius: var(--radius-full);
    z-index: -1;
}

.tournament-tab:hover,
.tournament-tab.active {
    color: white;
}

.tournament-tab:hover::before,
.tournament-tab.active::before {
    opacity: 1;
    transform: scale(1);
}

.tournament-tab:hover {
    transform: translateY(-2px);
}

.tab-icon {
    font-size: 1rem;
}

.tab-count {
    background: var(--bg-surface);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
    transition: all var(--duration-fast);
}

.tournament-tab.active .tab-count,
.tournament-tab:hover .tab-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* --- MATCH CARDS GRID --- */
.live-grid,
.video-grid,
.news-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Video Grid Responsive - 3-4 columns on desktop */
.video-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1400px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {

    .live-grid,
    .video-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}


@media (max-width: 480px) {

    .live-grid,
    .video-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.match-card,
.video-card,
.news-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    padding: 1.5rem;
    transition: all var(--duration-normal) var(--ease-out-back);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.match-card::before,
.video-card::before,
.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: var(--grad-nepal);
    transition: height var(--duration-fast) var(--ease-out-expo);
}

.match-card:hover,
.video-card:hover,
.news-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    background: var(--bg-glass-hover);
}

.match-card:hover::before,
.video-card:hover::before,
.news-card:hover::before {
    height: 4px;
}

/* Match Card Specific */
.match-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.match-tournament-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--bg-surface);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.match-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-time {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.match-card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.team-small {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.team-small-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-surface);
    background-size: cover;
    background-position: center;
    border: 2px solid var(--border-glass);
    flex-shrink: 0;
}

.team-small-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.team-small-score {
    font-weight: 800;
    font-size: 1.125rem;
    color: var(--brand-navy);
    font-variant-numeric: tabular-nums;
}

/* --- VIDEO CARDS --- */
.video-card {
    padding: 0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--bg-surface);
    background-size: cover;
    background-position: center;
    transition: all var(--duration-normal);
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out-expo);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-card:hover .video-thumbnail {
    transform: none;
}

.video-thumbnail .live-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--brand-red);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all var(--duration-normal) var(--ease-out-back);
    z-index: 2;
}

.video-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--brand-red);
    color: white;
}

.video-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.video-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 0.375rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .video-thumbnail {
        aspect-ratio: 16/9;
    }

    .play-button {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .video-info {
        padding: 0.875rem;
    }

    .video-title {
        font-size: 0.875rem;
    }

    .video-desc {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .video-thumbnail {
        aspect-ratio: 16/9;
    }

    .play-button {
        width: 44px;
        height: 44px;
        font-size: 1.125rem;
    }

    .video-info {
        padding: 0.75rem;
    }

    .video-title {
        font-size: 0.9375rem;
    }
}

/* Video Type Badge */
.video-type {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: auto;
}

.video-type.live {
    background: rgba(220, 20, 60, 0.15);
    color: var(--brand-red);
}

.video-type.highlight {
    background: rgba(0, 56, 147, 0.15);
    color: var(--brand-blue);
}

.video-type.video {
    background: var(--bg-surface);
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .video-type {
        font-size: 0.625rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Video Pagination */
.video-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1rem;
    flex-wrap: wrap;
}

.video-pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out-back);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-pagination-btn:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: white;
    transform: translateY(-2px);
}

.video-pagination-btn.active {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: white;
}

.video-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-surface);
    border-color: var(--border-glass);
    color: var(--text-muted);
    transform: none;
}

.video-pagination-info {
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: 0 0.5rem;
}

@media (max-width: 768px) {
    .video-pagination {
        gap: 0.375rem;
        margin-top: 1.5rem;
    }

    .video-pagination-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 0.625rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .video-pagination-btn {
        min-width: 32px;
        height: 32px;
        padding: 0 0.5rem;
        font-size: 0.75rem;
    }
}

/* --- FIXTURES & RESULTS --- */
.fixtures-results-section {
    position: relative;
}

.fixtures-tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glass);
}

.fixture-tab {
    padding: 0.625rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out-back);
    position: relative;
    overflow: hidden;
}

.fixture-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--grad-nepal);
    opacity: 0;
    transform: scale(0.9);
    transition: all var(--duration-fast) var(--ease-out-back);
    border-radius: var(--radius-full);
    z-index: -1;
}

.fixture-tab:hover,
.fixture-tab.active {
    color: white;
}

.fixture-tab:hover::before,
.fixture-tab.active::before {
    opacity: 1;
    transform: scale(1);
}

.fixtures-container {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal);
}

.fixtures-container.hidden {
    display: none;
}

/* Tables */
.fixture-table,
.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.fixture-table thead,
.standings-table thead {
    background: var(--bg-surface);
    border-bottom: 2px solid var(--border-glass);
}

.fixture-table th,
.standings-table th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
}

.fixture-table td,
.standings-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    color: var(--text-primary);
    vertical-align: middle;
    transition: all var(--duration-fast);
}

.fixture-table tbody tr:last-child td,
.standings-table tbody tr:last-child td {
    border-bottom: none;
}

.fixture-table tbody tr:hover,
.standings-table tbody tr:hover {
    background: rgba(241, 245, 249, 0.5);
}

.fixture-date-col {
    font-weight: 600;
    color: var(--brand-blue);
    white-space: nowrap;
}

.fixture-teams {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.fixture-team {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.fixture-team.away {
    flex-direction: row-reverse;
}

.team-flag {
    font-size: 1.5rem;
}

.fixture-team-name {
    font-weight: 600;
}

.fixture-vs {
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-surface);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.fixture-status {
    font-weight: 600;
}

.fixture-status.completed {
    color: var(--brand-red);
}

/* Standings Table Specific */
.team-position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-surface);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
}

.team-position.top {
    background: var(--gold-gradient);
    color: white;
    box-shadow: var(--shadow-glow-gold);
}

.standings-team {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.standings-team-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-surface);
    background-size: cover;
    background-position: center;
    border: 2px solid var(--border-glass);
}

/* Loading State */
.loading-text {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-style: italic;
}

/* --- STANDINGS WIDGET --- */
.standings-widget-section {
    position: relative;
}

.standings-widget {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* --- VIDEO SECTION TABS --- */
.video-tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glass);
}

.video-tab {
    padding: 0.625rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out-back);
    position: relative;
    overflow: hidden;
}

.video-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--grad-nepal);
    opacity: 0;
    transform: scale(0.9);
    transition: all var(--duration-fast) var(--ease-out-back);
    border-radius: var(--radius-full);
    z-index: -1;
}

.video-tab:hover,
.video-tab.active {
    color: white;
}

.video-tab:hover::before,
.video-tab.active::before {
    opacity: 1;
    transform: scale(1);
}

/* --- VIDEO MODAL --- */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
}

.video-modal-content {
    position: relative;
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur-heavy);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-glass);
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all var(--duration-slow) var(--ease-out-back);
}

.video-modal.active .video-modal-content {
    transform: scale(1) translateY(0);
}

.video-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--duration-fast) var(--ease-out-back);
}

.video-modal-close:hover {
    background: var(--brand-red);
    transform: rotate(90deg);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-modal-info {
    padding: 1.5rem 2rem;
    background: var(--bg-glass);
}

.video-modal-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 0.5rem;
}

.video-modal-info p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- PREMIUM FOOTER --- */
.main-footer {
    background: var(--grad-dark);
    color: #cbd5e1;
    padding: 5rem 1.5rem 2.5rem;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.main-footer::after {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    transition: all var(--duration-fast);
}

.footer-logo:hover {
    transform: translateX(5px);
}

.footer-logo .brand-icon {
    font-size: 2rem;
}

.footer-tagline {
    font-size: 0.875rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.footer-description {
    font-size: 0.9375rem;
    color: #94a3b8;
    line-height: 1.8;
    margin-top: 0.5rem;
}

.footer-title {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-glow-gold);
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-list a {
    color: #94a3b8;
    font-size: 0.9375rem;
    transition: all var(--duration-fast) var(--ease-out-back);
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-list a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all var(--duration-fast);
}

.footer-list a:hover {
    color: var(--gold-primary);
    padding-left: 20px;
}

.footer-list a:hover::before {
    opacity: 1;
    left: 0;
}

/* Fan Club Subscription */
.footer-fan-club {
    gap: 1rem;
}

.fan-club-desc {
    font-size: 0.9375rem;
    color: #94a3b8;
    line-height: 1.7;
}

.fan-subscribe-form {
    margin-top: 0.5rem;
}

.fan-input-group {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.375rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--duration-fast);
}

.fan-input-group:focus-within {
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-glow-gold);
}

.fan-email-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 0.9375rem;
    outline: none;
}

.fan-email-input::placeholder {
    color: #64748b;
}

.fan-subscribe-btn {
    padding: 0.75rem 1.5rem;
    background: var(--gold-gradient);
    border: none;
    border-radius: var(--radius-full);
    color: var(--brand-navy);
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out-back);
    white-space: nowrap;
}

@media (max-width: 400px) {
    .fan-input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 1rem;
    }

    .fan-email-input {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-full);
        width: 100%;
    }

    .fan-subscribe-btn {
        width: 100%;
    }
}

.fan-subscribe-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow-gold);
}

.fan-subscribe-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.fan-privacy-note {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #64748b;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 0.875rem;
    color: #64748b;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

/* --- FAN POPUP --- */
.fan-popup {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all var(--duration-slow) var(--ease-out-back);
}

.fan-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.fan-popup-content {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 350px;
}

.fan-popup.success .fan-popup-content {
    border-left: 4px solid var(--gold-primary);
}

.fan-popup.error .fan-popup-content {
    border-left: 4px solid var(--brand-red);
}

.fan-popup.info .fan-popup-content {
    border-left: 4px solid var(--brand-blue);
}

.fan-popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    background: var(--bg-surface);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: var(--text-muted);
    transition: all var(--duration-fast);
}

.fan-popup-close:hover {
    background: var(--brand-red);
    color: white;
    transform: rotate(90deg);
}

.fan-popup-icon {
    font-size: 2.5rem;
}

.fan-popup h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 0.25rem;
}

.fan-popup p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* --- UTILITIES --- */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- PREMIUM ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s var(--ease-out-expo) forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.4s var(--ease-smooth) forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.5s var(--ease-out-back) forwards;
}

/* Stagger animation delays */
[data-animate] {
    opacity: 0;
}

[data-animate="fadeInUp"] {
    animation: fadeInUp 0.6s var(--ease-out-expo) forwards;
}

[data-animate-delay="1"] {
    animation-delay: 0.1s;
}

[data-animate-delay="2"] {
    animation-delay: 0.2s;
}

[data-animate-delay="3"] {
    animation-delay: 0.3s;
}

[data-animate-delay="4"] {
    animation-delay: 0.4s;
}

[data-animate-delay="5"] {
    animation-delay: 0.5s;
}

[data-animate-delay="6"] {
    animation-delay: 0.6s;
}

/* ============================================
   NAVBAR - MODERN MOBILE MENU & SEARCH
   ============================================ */

/* --- SEARCH TOGGLE - MODERN --- */
.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    color: #475569;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-smooth);
}

.search-toggle:hover {
    background: rgba(220, 20, 60, 0.08);
    border-color: rgba(220, 20, 60, 0.2);
    color: var(--brand-red);
    transform: scale(1.05);
}

.search-toggle:focus-visible {
    outline: 2px solid var(--brand-red);
    outline-offset: 2px;
}

.search-toggle.active {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: white;
}

/* --- SEARCH BAR --- */
.search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--border-subtle);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-slow) var(--ease-out-expo);
    z-index: 999;
}

.search-bar.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

.search-form {
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 3rem;
    background: var(--bg-glass);
    border: 2px solid var(--border-glass);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all var(--duration-fast) var(--ease-smooth);
}

.search-input:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-close {
    position: absolute;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-smooth);
}

.search-close:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: white;
}

.search-suggestions {
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

/* Conflict removed - handled by nav.css */

/* Old Hamburger Menu Styles Removed */

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .footer-brand {
        grid-column: span 2;
    }
}



/* Prevent body scroll when menu is open */
html.nav-open,
html.nav-open body {
    overflow: hidden;
    touch-action: none;
}

/* Old Navigation Related Media Adjusted */







.featured-teams {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
}

.team-card {
    width: 100%;
}

.vs-badge {
    width: 60px;
    height: 60px;
    font-size: 1rem;
}

.team-logo {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
}

.team-score {
    font-size: 2.25rem;
}

/* Removed conflicting grid layout overrides */

.tournament-showcase {
    padding: 1rem 0;
}

.tournament-card {
    min-width: 280px;
}

.fixtures-container {
    overflow-x: auto;
}

.fixture-table,
.standings-table {
    min-width: 600px;
}


@media (max-width: 768px) {
    :root {
        --radius-lg: 20px;
        --radius-xl: 24px;
    }

    section {
        margin: 3rem auto;
        padding: 0 1rem;
    }

    .hero-section {
        margin-top: calc(var(--header-height) + 1rem);
    }

    .featured-match {
        padding: 1.5rem;
    }

    .featured-match-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .featured-teams {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .team-card {
        width: 100%;
        padding: 1.25rem;
    }

    .team-logo {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .team-name {
        font-size: 1.125rem;
    }

    .team-score {
        font-size: 1.75rem;
    }

    .match-center {
        order: -1;
    }

    .vs-badge {
        width: 50px;
        height: 50px;
        font-size: 0.875rem;
    }

    .section-title {
        font-size: 1.375rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .tournament-tabs,
    .fixtures-tabs,
    .video-tabs {
        flex-wrap: wrap;
        border-radius: var(--radius-md);
    }

    .tournament-tab,
    .fixture-tab,
    .video-tab {
        flex: 1;
        min-width: 100px;
        justify-content: center;
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .tournament-card {
        min-width: 260px;
        padding: 1.25rem;
    }

    .live-grid,
    .video-grid,
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .match-card {
        padding: 1.25rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .fan-popup {
        left: 1rem;
        right: 1rem;
        top: auto;
        bottom: 1rem;
        transform: translateY(100%);
    }

    .fan-popup.show {
        transform: translateY(0);
    }

    .fan-popup-content {
        min-width: auto;
        width: 100%;
    }

    .fixtures-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .fixture-table,
    .standings-table {
        min-width: 500px;
    }

    .video-thumbnail {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    .brand-icon {
        font-size: 1.75rem;
    }

    .navbar-container {
        padding: 0 1rem;
        position: relative;
    }

    .featured-match {
        padding: 1.25rem;
    }

    .featured-match-header {
        gap: 0.75rem;
    }

    .tournament-name {
        font-size: 1rem;
    }

    .team-logo {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }

    .team-name {
        font-size: 1rem;
    }

    .team-score {
        font-size: 1.5rem;
    }

    .vs-badge {
        width: 45px;
        height: 45px;
        font-size: 0.75rem;
    }

    .tournament-card {
        min-width: 240px;
        padding: 1rem;
    }

    .tournament-stat {
        text-align: center;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .tournament-tab,
    .fixture-tab,
    .video-tab {
        min-width: 80px;
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    .match-card {
        padding: 1rem;
    }

    .match-card-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .team-small {
        gap: 0.5rem;
    }

    .team-small-logo {
        width: 36px;
        height: 36px;
    }

    .team-small-name {
        font-size: 0.875rem;
    }

    .team-small-score {
        font-size: 1rem;
    }

    .video-thumbnail {
        height: 160px;
    }

    .video-title {
        font-size: 0.9375rem;
    }

    .video-modal-content {
        width: 95%;
        margin: 0.5rem;
    }

    .video-modal-info {
        padding: 1rem 1.25rem;
    }

    .video-modal-info h3 {
        font-size: 1rem;
    }

    .footer-container {
        padding: 2rem 1rem 1rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-list {
        align-items: center;
    }

    .footer-list li a:hover {
        transform: none;
    }

    .fixtures-container {
        margin: 0 -1rem;
        padding: 0 1rem;
        width: calc(100% + 2rem);
    }

    .fixture-table,
    .standings-table {
        min-width: 450px;
    }

    .fixture-table th,
    .standings-table th {
        padding: 1rem;
        font-size: 0.625rem;
    }

    .fixture-table td,
    .standings-table td {
        padding: 1rem;
    }

    .fixture-team-name {
        font-size: 0.875rem;
    }
}

/* --- ACCESSIBILITY --- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--brand-blue);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --bg-glass: rgba(255, 255, 255, 0.95);
        --border-glass: rgba(0, 0, 0, 0.3);
    }
}

/* Print styles */
@media print {

    .main-header,
    .main-footer,
    .fan-popup,
    .video-modal,
    .navbar-toggle {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .featured-match,
    .match-card,
    .video-card,
    .news-card {
        background: white;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}

/* Navbar styles are now consolidated in style.css for better maintenance and consistency */

/* ============================================
   BUTTON STYLES
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-red);
    box-shadow: var(--glow-red);
}

.btn-primary {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

.btn-primary:hover {
    background: #b01030;
    transform: translateY(-1px);
    box-shadow: var(--glow-red);
}

/* ============================================
   FOOTER STYLES
   ============================================ */

.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 1.5rem 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    gap: 0.75rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.footer-logo .brand-icon {
    font-size: 1.5rem;
}

.footer-logo .brand-text {
    font-size: 1.125rem;
    font-weight: 700;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--accent-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: var(--glow-red);
}

.footer-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 0.5rem;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--accent-red);
    border-radius: 2px;
    box-shadow: var(--glow-red);
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-list li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
    display: inline-block;
}

.footer-list li a:hover {
    color: var(--accent-red);
    transform: translateX(4px);
    text-shadow: var(--glow-red);
}

.footer-connect {
    gap: 1rem;
}

.footer-connect p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.copyright {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: span 2;
    }

    /* Tablet Navbar Adjustments Removed - Handled by nav.css */

}

/* Mobile Large (max-width: 768px) */
@media (max-width: 768px) {
    /* Mobile Navbar Adjustments Removed - Handled by nav.css */





    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Mobile Small (max-width: 480px) */
@media (max-width: 480px) {
    .navbar-container {
        padding: 0 1rem;
        height: 60px;
    }

    /* Consolidated in style.css */

    /* Consolidated in style.css */

    .footer-container {
        padding: 2rem 1rem 1rem !important;
    }

    .footer-section {
        text-align: center !important;
    }

    .footer-title::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

/* Consolidated in style.css */


/* Consolidated in style.css */

.footer-container {
    padding: 2rem 1rem 1rem;
}

.footer-section {
    text-align: center;
}

.footer-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.footer-list {
    align-items: center;
}

.footer-list li a:hover {
    transform: none;
}

/* Duplicate removed - handled by nav.css */

.videos-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ============================================
   VIDEO & FILTER STYLES
   ============================================ */

.video-featured {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-glass);
    margin-bottom: 2rem;
}

.video-featured .featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glass);
}

.filter-btn {
    padding: 0.625rem 1.5rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out-back);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--grad-nepal);
    opacity: 0;
    transform: scale(0.9);
    transition: all var(--duration-fast) var(--ease-out-back);
    border-radius: var(--radius-full);
    z-index: -1;
}

.filter-btn:hover {
    color: white;
    transform: translateY(-2px);
}

.filter-btn:hover::before {
    opacity: 1;
    transform: scale(1);
}

.filter-btn.active {
    color: white;
}

.filter-btn.active::before {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 768px) {
    .video-featured {
        padding: 1rem;
    }

    .filter-section {
        margin-bottom: 1.5rem;
    }

    .filter-tabs {
        padding: 0.75rem;
        gap: 0.5rem;
        border-radius: var(--radius-md);
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        flex: 1;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .filter-tabs {
        border-radius: var(--radius-md);
    }

    .filter-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
        min-width: 80px;
    }
}

/* Video Section Header */
.video-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.video-count {
    background: var(--bg-glass);
    color: var(--brand-red);
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glass);
}

@media (max-width: 768px) {
    .video-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* ============================================
   RULES PAGE - Navigation & Cards
   ============================================ */

.rules-nav-section {
    margin: 2rem auto;
    max-width: 1440px;
    padding: 0 1.5rem;
}

.rules-nav {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-sm);
}

.rules-nav-btn {
    padding: 0.625rem 1.5rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out-back);
    position: relative;
    overflow: hidden;
}

.rules-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--grad-nepal);
    opacity: 0;
    transform: scale(0.9);
    transition: all var(--duration-fast) var(--ease-out-back);
    border-radius: var(--radius-full);
    z-index: -1;
}

.rules-nav-btn:hover {
    color: white;
    transform: translateY(-2px);
}

.rules-nav-btn:hover::before {
    opacity: 1;
    transform: scale(1);
}

.rules-nav-btn.active {
    color: white;
}

.rules-nav-btn.active::before {
    opacity: 1;
    transform: scale(1);
}

/* Rules Sections */
.rules-section {
    margin-bottom: 3rem;
    scroll-margin-top: 100px;
}

.rules-section .section-title {
    margin-bottom: 1.5rem;
}

/* Rules Grid */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .rules-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.rule-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-glass);
    transition: all var(--duration-normal) var(--ease-out-back);
    position: relative;
    overflow: hidden;
}

.rule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: var(--grad-nepal);
    transition: height var(--duration-fast) var(--ease-out-expo);
}

.rule-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    background: var(--bg-glass-hover);
}

.rule-card:hover::before {
    height: 4px;
}

.rule-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.rule-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.rule-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Format Cards */
.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .formats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.format-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-glass);
    transition: all var(--duration-normal) var(--ease-out-back);
    position: relative;
    overflow: hidden;
}

.format-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transform: scaleX(0);
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.format-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    background: var(--bg-glass-hover);
}

.format-card:hover::before {
    transform: scaleX(1);
}

.format-card.test::before {
    background: #22c55e;
}

.format-card.odi::before {
    background: #3b82f6;
}

.format-card.t20::before {
    background: #a855f7;
}

.format-card.t10::before {
    background: #f97316;
}

.format-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.format-icon {
    font-size: 1.5rem;
}

.format-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--brand-navy);
}

.format-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.format-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.format-item .label {
    color: var(--text-muted);
    font-weight: 500;
}

.format-item .value {
    color: var(--text-primary);
    font-weight: 600;
}

.format-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
}

/* Terms Grid */
.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1rem;
}

@media (max-width: 768px) {
    .terms-grid {
        grid-template-columns: 1fr;
    }
}

.term-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    border: 1px solid var(--border-glass);
    transition: all var(--duration-fast) var(--ease-out-back);
}

.term-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-blue);
    box-shadow: var(--shadow-md);
}

.term-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 0.5rem;
}

.term-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Rules Page Responsive */
@media (max-width: 768px) {
    .rules-nav-section {
        margin: 1.5rem auto;
        padding: 0 1rem;
    }

    .rules-nav {
        padding: 0.75rem;
        gap: 0.5rem;
        border-radius: var(--radius-md);
    }

    .rules-nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        flex: 1;
        min-width: 100px;
    }

    .rule-card,
    .format-card,
    .term-card {
        padding: 1.25rem;
    }

    .rule-icon {
        font-size: 2rem;
    }

    .rule-card h4,
    .format-header h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .rules-nav {
        border-radius: var(--radius-md);
    }

    .rules-nav-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
        min-width: 80px;
    }

    .rule-card,
    .format-card,
    .term-card {
        padding: 1rem;
    }
}

/* ============================================
   CAROUSEL STYLES - Premium Video/Content Carousel
   ============================================ */

.featured-carousel {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
}

.featured-carousel-item {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s var(--ease-out-back);
}

.featured-carousel-item:hover {
    transform: scale(1.01);
}

.carousel-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

@media (max-width: 768px) {
    .featured-carousel {
        max-width: 100%;
    }
}

.carousel-video-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s var(--ease-out-expo);
}

.featured-carousel-item:hover .carousel-video-container img {
    transform: scale(1.05);
}

.carousel-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.featured-carousel-item:hover .carousel-play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.carousel-play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s var(--ease-out-back);
}

.carousel-play-button svg {
    width: 24px;
    height: 24px;
    margin-left: 3px;
}

.featured-carousel-item:hover .carousel-play-button {
    transform: scale(1.1);
    background: var(--brand-red);
}

.featured-carousel-item:hover .carousel-play-button svg {
    fill: white;
}

.carousel-live-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--brand-red);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: pulse-ring 2s ease-out infinite;
}

.carousel-info {
    padding: 1rem 1.5rem;
    background: var(--bg-glass);
}

.carousel-info h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 0.375rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .carousel-play-button {
        width: 50px;
        height: 50px;
    }

    .carousel-play-button svg {
        width: 20px;
        height: 20px;
    }

    .carousel-info {
        padding: 0.875rem 1rem;
    }

    .carousel-info h2 {
        font-size: 1rem;
    }

    .carousel-info p {
        font-size: 0.8125rem;
        margin-bottom: 0.5rem;
    }

    .carousel-live-badge {
        padding: 0.25rem 0.625rem;
        font-size: 0.625rem;
    }
}

@media (max-width: 480px) {
    .carousel-play-button {
        width: 44px;
        height: 44px;
    }

    .carousel-play-button svg {
        width: 18px;
        height: 18px;
    }

    .carousel-info {
        padding: 0.75rem;
    }

    .carousel-info h2 {
        font-size: 0.9375rem;
    }

    .carousel-info p {
        font-size: 0.75rem;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
}

.carousel-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.carousel-meta .status-badge {
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.carousel-meta .status-badge.live {
    background: rgba(220, 20, 60, 0.15);
    color: var(--brand-red);
}

.carousel-meta .status-badge.highlight {
    background: rgba(0, 56, 147, 0.15);
    color: var(--brand-blue);
}

.carousel-watch-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Carousel Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-navy);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s var(--ease-out-back);
    z-index: 10;
}

.carousel-nav:hover {
    background: var(--brand-red);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(220, 20, 60, 0.3);
}

.carousel-nav.prev {
    left: 1rem;
}

.carousel-nav.next {
    right: 1rem;
}

.carousel-nav svg {
    width: 24px;
    height: 24px;
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: white;
    border-color: var(--brand-red);
    transform: scale(1.3);
}

/* Rules Page Carousel Specific Styles */
/* Responsive Carousel Styles */
@media (max-width: 768px) {
    .carousel-video-container {
        aspect-ratio: 16/10;
    }

    .carousel-play-button {
        width: 60px;
        height: 60px;
    }

    .carousel-info {
        padding: 1.25rem;
    }

    .carousel-info h2 {
        font-size: 1.125rem;
    }

    .carousel-info p {
        font-size: 0.875rem;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }

    .carousel-nav.prev {
        left: 0.5rem;
    }

    .carousel-nav.next {
        right: 0.5rem;
    }

    .carousel-dots {
        bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .carousel-info {
        padding: 1rem;
    }

    .carousel-info h2 {
        font-size: 1rem;
    }

    .carousel-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .carousel-nav {
        display: none;
    }
}

/* 
   PREMIUM CRICKET BLOG - DARK MODE THEME
   v3.0 - Luxury Dark Theme with Glassmorphism
   Features: Deep navy backgrounds, neon accents, glass effects
*/

[data-theme="dark"] {
    /* --- DARK COLOR PALETTE --- */
    /* Primary Brand Colors - Brighter for dark */
    --brand-navy: #0a0f1a;
    --brand-navy-light: #151b2e;
    --brand-navy-lighter: #1e2540;
    --brand-red: #ff2d55;
    --brand-red-glow: rgba(255, 45, 85, 0.5);
    --brand-blue: #00d4ff;
    --brand-blue-glow: rgba(0, 212, 255, 0.5);

    /* Premium Gold Accents - Enhanced for dark */
    --gold-primary: #ffd700;
    --gold-light: #ffec8b;
    --gold-dark: #daa520;
    --gold-gradient: linear-gradient(135deg, #ffd700 0%, #ffec8b 50%, #ffd700 100%);

    /* Backgrounds - Deep Dark Layers */
    --bg-page: linear-gradient(135deg, #0a0f1a 0%, #0f1525 50%, #151b2e 100%);
    --bg-card: rgba(21, 27, 46, 0.7);
    --bg-card-solid: #151b2e;
    --bg-glass: rgba(30, 37, 64, 0.6);
    --bg-glass-hover: rgba(30, 37, 64, 0.8);
    --bg-surface: rgba(21, 27, 46, 0.5);
    --bg-elevated: rgba(30, 37, 64, 0.9);

    /* Text Colors */
    --text-primary: #f0f4f8;
    --text-secondary: #a0aec0;
    --text-muted: #64748b;
    --text-inverted: #0a0f1a;
    --text-gold: #ffd700;

    /* UI Elements */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(255, 255, 255, 0.15);
    --border-glass: rgba(255, 255, 255, 0.1);

    /* Premium Shadows - Glow effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(255, 45, 85, 0.4);
    --shadow-glow-blue: 0 0 30px rgba(0, 212, 255, 0.4);
    --shadow-glow-gold: 0 0 30px rgba(255, 215, 0, 0.5);

    /* Glass Effect */
    --glass-blur: blur(30px);
    --glass-blur-heavy: blur(50px);
    --glass-saturate: saturate(200%);

    /* Gradients */
    --grad-nepal: linear-gradient(135deg, #00d4ff 0%, #ff2d55 100%);
    --grad-nepal-shine: linear-gradient(135deg, #00d4ff 0%, #0099cc 25%, #ff2d55 50%, #ff1a4d 75%, #00d4ff 100%);
    --grad-dark: linear-gradient(180deg, #0a0f1a 0%, #151b2e 100%);
    --grad-hero: linear-gradient(135deg, rgba(10, 15, 26, 0.98) 0%, rgba(15, 21, 37, 0.95) 50%, rgba(21, 27, 46, 0.9) 100%);
    --grad-gold-shine: linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.3) 50%, transparent 100%);
}

/* --- DARK MODE BASE STYLES --- */
[data-theme="dark"] body {
    background: var(--bg-page);
    background-attachment: fixed;
    color: var(--text-primary);
}

/* --- SELECTION --- */
[data-theme="dark"] ::selection {
    background: var(--brand-red);
    color: white;
}

/* --- SCROLLBAR --- */
[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--brand-navy-light);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--brand-blue), var(--brand-red));
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: var(--brand-red);
}

/* Redundant Navigation and Search Dark Mode Styles Removed - Handled by nav.css */


/* --- ACTION BUTTONS DARK MODE --- */
[data-theme="dark"] .action-btn {
    color: #94a3b8;
}

[data-theme="dark"] .action-btn::before {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .action-btn:hover {
    color: #00d4ff;
}

[data-theme="dark"] .search-toggle.active {
    background: linear-gradient(135deg, #00d4ff, #ff2d55);
    border-color: transparent;
    color: white;
}

[data-theme="dark"] .admin-btn {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
    color: #00d4ff;
}

[data-theme="dark"] .admin-btn:hover {
    background: linear-gradient(135deg, #00d4ff, #ff2d55);
    border-color: transparent;
    color: white;
}

/* Redundant Mobile Navigation Dark Mode Styles Removed - Handled by nav.css */


/* --- LANGUAGE SWITCHER DARK MODE --- */
[data-theme="dark"] .lang-switcher {
    background: rgba(255, 255, 255, 0.03);
    border-color: transparent;
    color: #94a3b8;
}

[data-theme="dark"] .lang-switcher:hover {
    background: rgba(255, 45, 85, 0.15);
    border-color: rgba(255, 45, 85, 0.3);
    color: #ff2d55;
    box-shadow: none;
}

/* --- BUTTONS DARK MODE --- */
[data-theme="dark"] .btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border-color: transparent;
    color: #94a3b8;
}

[data-theme="dark"] .btn-outline:hover {
    background: rgba(255, 45, 85, 0.15);
    border-color: rgba(255, 45, 85, 0.3);
    color: #ff2d55;
    box-shadow: none;
}

[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #ff2d55 100%);
    box-shadow: 0 4px 20px rgba(255, 45, 85, 0.4);
}

[data-theme="dark"] .btn-primary:hover {
    box-shadow: var(--shadow-glow), 0 8px 30px rgba(0, 212, 255, 0.4);
}

/* --- FEATURED MATCH --- */
[data-theme="dark"] .featured-match {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

[data-theme="dark"] .featured-match:hover {
    box-shadow:
        0 35px 60px -15px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        var(--shadow-glow);
}

[data-theme="dark"] .featured-match-header {
    border-bottom-color: var(--border-glass);
}

[data-theme="dark"] .tournament-name {
    color: white;
}

/* --- LIVE INDICATOR --- */
[data-theme="dark"] .live-indicator {
    color: var(--brand-red);
}

[data-theme="dark"] .live-dot {
    background: var(--brand-red);
}

[data-theme="dark"] .live-dot::before {
    background: var(--brand-red);
}

@keyframes pulse-ring-dark {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 45, 85, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 45, 85, 0);
    }
}

[data-theme="dark"] .live-dot {
    animation: pulse-ring-dark 2s ease-out infinite;
}

/* --- TEAM CARDS --- */
[data-theme="dark"] .team-card {
    background: var(--bg-glass);
    border-color: var(--border-glass);
}

[data-theme="dark"] .team-card:hover {
    background: var(--bg-glass-hover);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .team-logo {
    background: var(--bg-elevated);
    border-color: var(--border-glass);
}

[data-theme="dark"] .team-name {
    color: white;
}

[data-theme="dark"] .team-score {
    background: linear-gradient(135deg, #00d4ff 0%, #ff2d55 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .vs-badge {
    box-shadow:
        0 8px 25px rgba(255, 215, 0, 0.3),
        0 0 0 4px rgba(255, 255, 255, 0.1) inset;
}

[data-theme="dark"] .match-status {
    background: var(--bg-surface);
    color: var(--text-muted);
}

/* --- SECTION HEADERS --- */
[data-theme="dark"] .section-title {
    color: white;
}

[data-theme="dark"] .section-count {
    background: var(--bg-glass);
    color: var(--brand-red);
    border-color: var(--border-glass);
}

[data-theme="dark"] .view-all-link {
    background: var(--bg-glass);
    border-color: var(--border-glass);
    color: var(--brand-blue);
}

[data-theme="dark"] .view-all-link:hover {
    background: var(--brand-blue);
    color: var(--brand-navy);
    box-shadow: var(--shadow-glow-blue);
}

/* --- TOURNAMENT CARDS --- */
[data-theme="dark"] .tournament-card {
    background: var(--bg-glass);
    border-color: var(--border-glass);
}

[data-theme="dark"] .tournament-card:hover {
    background: var(--bg-glass-hover);
}

[data-theme="dark"] .tournament-card.active {
    border-color: var(--brand-red);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
}

[data-theme="dark"] .tournament-info .tournament-name {
    color: white;
}

[data-theme="dark"] .tournament-type {
    color: var(--text-muted);
}

[data-theme="dark"] .tournament-status {
    background: var(--bg-surface);
}

[data-theme="dark"] .tournament-status.live {
    background: rgba(255, 45, 85, 0.2);
    color: var(--brand-red);
}

[data-theme="dark"] .tournament-status.upcoming {
    background: rgba(0, 212, 255, 0.2);
    color: var(--brand-blue);
}

[data-theme="dark"] .stat-value {
    color: white;
}

[data-theme="dark"] .stat-label {
    color: var(--text-muted);
}

[data-theme="dark"] .progress-bar {
    background: var(--bg-surface);
}

[data-theme="dark"] .progress-text {
    color: var(--text-muted);
}

/* --- TOURNAMENT TABS --- */
[data-theme="dark"] .tournament-tabs {
    background: var(--bg-glass);
    border-color: var(--border-glass);
}

[data-theme="dark"] .tournament-tab {
    color: var(--text-secondary);
}

[data-theme="dark"] .tournament-tab::before {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(255, 45, 85, 0.3) 100%);
}

[data-theme="dark"] .tournament-tab:hover,
[data-theme="dark"] .tournament-tab.active {
    color: white;
}

[data-theme="dark"] .tab-count {
    background: var(--bg-surface);
    color: var(--text-muted);
}

[data-theme="dark"] .tournament-tab.active .tab-count,
[data-theme="dark"] .tournament-tab:hover .tab-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* --- MATCH CARDS --- */
[data-theme="dark"] .match-card,
[data-theme="dark"] .video-card,
[data-theme="dark"] .news-card {
    background: var(--bg-glass);
    border-color: var(--border-glass);
}

[data-theme="dark"] .match-card:hover,
[data-theme="dark"] .video-card:hover,
[data-theme="dark"] .news-card:hover {
    background: var(--bg-glass-hover);
    box-shadow: var(--shadow-xl);
}

[data-theme="dark"] .match-tournament-badge {
    background: var(--bg-surface);
    color: var(--text-muted);
}

[data-theme="dark"] .match-time {
    color: var(--text-muted);
}

[data-theme="dark"] .team-small-logo {
    background: var(--bg-surface);
    border-color: var(--border-glass);
}

[data-theme="dark"] .team-small-name {
    color: var(--text-primary);
}

[data-theme="dark"] .team-small-score {
    color: white;
}

/* --- VIDEO CARDS --- */
[data-theme="dark"] .video-thumbnail {
    background: var(--bg-surface);
}

[data-theme="dark"] .play-button {
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-red);
}

[data-theme="dark"] .video-card:hover .play-button {
    background: var(--brand-red);
    color: white;
}

[data-theme="dark"] .video-title {
    color: white;
}

[data-theme="dark"] .video-desc {
    color: var(--text-secondary);
}

/* --- FIXTURES & TABLES --- */
[data-theme="dark"] .fixtures-tabs,
[data-theme="dark"] .video-tabs {
    background: var(--bg-glass);
    border-color: var(--border-glass);
}

[data-theme="dark"] .fixture-tab,
[data-theme="dark"] .video-tab {
    color: var(--text-secondary);
}

[data-theme="dark"] .fixture-tab::before,
[data-theme="dark"] .video-tab::before {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(255, 45, 85, 0.3) 100%);
}

[data-theme="dark"] .fixture-tab:hover,
[data-theme="dark"] .fixture-tab.active,
[data-theme="dark"] .video-tab:hover,
[data-theme="dark"] .video-tab.active {
    color: white;
}

[data-theme="dark"] .fixtures-container {
    background: var(--bg-glass);
    border-color: var(--border-glass);
}

[data-theme="dark"] .fixture-table thead,
[data-theme="dark"] .standings-table thead {
    background: var(--bg-surface);
    border-bottom-color: var(--border-glass);
}

[data-theme="dark"] .fixture-table th,
[data-theme="dark"] .standings-table th {
    color: var(--text-secondary);
}

[data-theme="dark"] .fixture-table td,
[data-theme="dark"] .standings-table td {
    border-bottom-color: var(--border-glass);
    color: var(--text-primary);
}

[data-theme="dark"] .fixture-table tbody tr:hover,
[data-theme="dark"] .standings-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .fixture-date-col {
    color: var(--brand-blue);
}

[data-theme="dark"] .fixture-team-name {
    color: var(--text-primary);
}

[data-theme="dark"] .fixture-vs {
    background: var(--bg-surface);
    color: var(--text-muted);
}

[data-theme="dark"] .fixture-status.completed {
    color: var(--brand-red);
}

[data-theme="dark"] .team-position {
    background: var(--bg-surface);
    color: white;
}

[data-theme="dark"] .team-position.top {
    background: var(--gold-gradient);
    color: var(--brand-navy);
}

[data-theme="dark"] .standings-team-logo {
    background: var(--bg-surface);
    border-color: var(--border-glass);
}

[data-theme="dark"] .loading-text {
    color: var(--text-muted);
}

[data-theme="dark"] .standings-widget {
    background: var(--bg-glass);
    border-color: var(--border-glass);
}

/* --- VIDEO MODAL --- */
[data-theme="dark"] .video-modal-overlay {
    background: rgba(10, 15, 26, 0.98);
}

[data-theme="dark"] .video-modal-content {
    background: var(--bg-glass);
    border-color: var(--border-glass);
}

[data-theme="dark"] .video-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-glass);
    color: white;
}

[data-theme="dark"] .video-modal-close:hover {
    background: var(--brand-red);
}

[data-theme="dark"] .video-modal-info {
    background: var(--bg-glass);
}

[data-theme="dark"] .video-modal-info h3 {
    color: white;
}

[data-theme="dark"] .video-modal-info p {
    color: var(--text-secondary);
}

/* --- FOOTER --- */
[data-theme="dark"] .main-footer {
    background: linear-gradient(180deg, #070a12 0%, #0a0f1a 100%);
}

[data-theme="dark"] .main-footer::before {
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

[data-theme="dark"] .footer-logo {
    color: white;
}

[data-theme="dark"] .footer-tagline {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .footer-description {
    color: var(--text-secondary);
}

[data-theme="dark"] .footer-title {
    color: white;
}

[data-theme="dark"] .footer-title::after {
    background: var(--gold-gradient);
}

[data-theme="dark"] .footer-list a {
    color: var(--text-secondary);
}

[data-theme="dark"] .footer-list a:hover {
    color: var(--gold-primary);
}

[data-theme="dark"] .fan-club-desc {
    color: var(--text-secondary);
}

[data-theme="dark"] .fan-input-group {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-glass);
}

[data-theme="dark"] .fan-input-group:focus-within {
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-glow-gold);
}

[data-theme="dark"] .fan-email-input {
    color: white;
}

[data-theme="dark"] .fan-email-input::placeholder {
    color: var(--text-muted);
}

[data-theme="dark"] .fan-subscribe-btn {
    background: var(--gold-gradient);
    color: var(--brand-navy);
}

[data-theme="dark"] .fan-privacy-note {
    color: var(--text-muted);
}

[data-theme="dark"] .footer-bottom {
    border-top-color: var(--border-glass);
}

[data-theme="dark"] .copyright {
    color: var(--text-muted);
}

[data-theme="dark"] .footer-meta {
    color: var(--text-muted);
}

/* --- FAN POPUP --- */
[data-theme="dark"] .fan-popup-content {
    background: var(--bg-glass);
    border-color: var(--border-glass);
    box-shadow: var(--shadow-xl);
}

[data-theme="dark"] .fan-popup.success .fan-popup-content {
    border-left-color: var(--gold-primary);
}

[data-theme="dark"] .fan-popup.error .fan-popup-content {
    border-left-color: var(--brand-red);
}

[data-theme="dark"] .fan-popup.info .fan-popup-content {
    border-left-color: var(--brand-blue);
}

[data-theme="dark"] .fan-popup-close {
    background: var(--bg-surface);
    color: var(--text-muted);
}

[data-theme="dark"] .fan-popup-close:hover {
    background: var(--brand-red);
    color: white;
}

[data-theme="dark"] .fan-popup h3 {
    color: white;
}

[data-theme="dark"] .fan-popup p {
    color: var(--text-secondary);
}

/* --- THEME TOGGLE BUTTON --- */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 999;
    transition: all var(--duration-normal) var(--ease-out-back);
    box-shadow: var(--shadow-lg);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--shadow-glow-gold);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Sun icon for dark mode */
[data-theme="dark"] .theme-toggle::before {
    content: '☀️';
}

/* Moon icon for light mode */
.theme-toggle::before {
    content: '🌙';
}

/* Responsive theme toggle */
@media (max-width: 768px) {
    .theme-toggle {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}

/* --- DARK MODE SPECIFIC ANIMATIONS --- */
@keyframes pulse-ring-dark {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 45, 85, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 45, 85, 0);
    }
}

[data-theme="dark"] .live-dot {
    animation: pulse-ring-dark 2s ease-out infinite;
}

@keyframes status-pulse-dark {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.5);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(255, 45, 85, 0);
    }
}

[data-theme="dark"] .tournament-status.live {
    animation: status-pulse-dark 2s ease-in-out infinite;
}

/* --- GLASS MORPHISM ENHANCEMENTS FOR DARK --- */
[data-theme="dark"] .featured-match::after {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 100%);
}

/* Neon glow effects */
[data-theme="dark"] .match-card:hover::before,
[data-theme="dark"] .video-card:hover::before,
[data-theme="dark"] .news-card:hover::before {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* --- RULES PAGE DARK MODE --- */
[data-theme="dark"] .rules-nav {
    background: var(--bg-glass);
    border-color: var(--border-glass);
}

[data-theme="dark"] .rules-nav-btn {
    color: var(--text-secondary);
}

[data-theme="dark"] .rules-nav-btn::before {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(255, 45, 85, 0.3) 100%);
}

[data-theme="dark"] .rules-nav-btn:hover,
[data-theme="dark"] .rules-nav-btn.active {
    color: white;
}

[data-theme="dark"] .rule-card,
[data-theme="dark"] .format-card,
[data-theme="dark"] .term-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
}

.rule-card,
.format-card,
.term-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.rule-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.rule-title,
.term-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 0.75rem;
}

[data-theme="dark"] .rule-title,
[data-theme="dark"] .term-title {
    color: var(--text-primary);
}

.rule-content,
.term-content {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

[data-theme="dark"] .rule-content,
[data-theme="dark"] .term-content {
    color: var(--text-secondary);
}

[data-theme="dark"] .format-item .label {
    color: var(--text-muted);
}


[data-theme="dark"] .format-item .value {
    color: var(--text-primary);
}

/* --- FILTER SECTION DARK MODE --- */
[data-theme="dark"] .video-featured {
    background: var(--bg-glass);
    border-color: var(--border-glass);
}

[data-theme="dark"] .filter-tabs {
    background: var(--bg-glass);
    border-color: var(--border-glass);
}

[data-theme="dark"] .filter-btn {
    color: var(--text-secondary);
}

[data-theme="dark"] .filter-btn::before {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(255, 45, 85, 0.3) 100%);
}

[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
    color: white;
}

[data-theme="dark"] .video-count {
    background: var(--bg-glass);
    color: var(--brand-red);
    border-color: var(--border-glass);
}

[data-theme="dark"] .video-type.live {
    background: rgba(255, 45, 85, 0.2);
    color: var(--brand-red);
}

[data-theme="dark"] .video-type.highlight {
    background: rgba(0, 212, 255, 0.2);
    color: var(--brand-blue);
}

[data-theme="dark"] .video-type.video {
    background: var(--bg-surface);
    color: var(--text-secondary);
}

[data-theme="dark"] .video-pagination-btn {
    background: var(--bg-glass);
    border-color: var(--border-glass);
    color: var(--text-secondary);
}

[data-theme="dark"] .video-pagination-btn:hover,
[data-theme="dark"] .video-pagination-btn.active {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: white;
}

[data-theme="dark"] .video-pagination-btn:disabled {
    background: var(--bg-surface);
    border-color: var(--border-glass);
    color: var(--text-muted);
}

[data-theme="dark"] .video-pagination-info {
    color: var(--text-muted);
}

/* --- CAROUSEL DARK MODE --- */
[data-theme="dark"] .featured-carousel {
    background: var(--bg-glass);
    border-color: var(--border-glass);
}

[data-theme="dark"] .carousel-info {
    background: var(--bg-glass);
}

[data-theme="dark"] .carousel-info h2 {
    color: white;
}

[data-theme="dark"] .carousel-nav {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--border-glass);
}

[data-theme="dark"] .carousel-nav:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
}

[data-theme="dark"] .carousel-dot {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .carousel-dot.active {
    background: white;
    border-color: var(--brand-red);
}

[data-theme="dark"] .carousel-play-button {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .featured-carousel-item:hover .carousel-play-button {
    background: var(--brand-red);
}

/* --- ACCESSIBILITY --- */
[data-theme="dark"] a:focus-visible,
[data-theme="dark"] button:focus-visible,
[data-theme="dark"] input:focus-visible,
[data-theme="dark"] select:focus-visible,
[data-theme="dark"] textarea:focus-visible {
    outline: 3px solid var(--brand-blue);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    [data-theme="dark"] *,
    [data-theme="dark"] *::before,
    [data-theme="dark"] *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   FORCED GRID LAYOUT FIXES
   ============================================ */
.video-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
    width: 100% !important;
    margin-top: 2rem !important;
}

/* 1200px and below: 3 columns */
@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* 900px and below: 2 columns */
@media (max-width: 900px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

/* 480px and below: 1 column */
@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr !important;
    }
}

.video-card {
    width: 100% !important;
    max-width: none !important;
    display: flex !important;
    flex-direction: column !important;
}

/* ============================================
   FIBER CEMENT BOARDS 3D VISUALIZATION
   ============================================ */
.scroll-section {
    width: 100%;
    height: 100vh;
    min-height: 800px;
    position: relative;
    overflow: hidden;
    background: var(--bg-page);
}

.scroll-section canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.board-3d-label {
    position: absolute;
    pointer-events: none;
    z-index: 10;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.board-3d-label span {
    font-size: 1.5rem;
    line-height: 1;
}

.board-3d-label small {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .scroll-section {
        min-height: 600px;
        height: 80vh;
    }

    .board-3d-label {
        padding: 0.4rem 0.8rem;
    }

    .board-3d-label span {
        font-size: 1.25rem;
    }

    .board-3d-label small {
        font-size: 0.75rem;
    }
}

/* ============================================
   MOBILE UI/UX HOTFIXES (ULTIMATE VERSION)
   ============================================ */

/* Universal Overflow Protection to stop 'squeezing' */
html,
body {
    width: 100% !important;
    overflow-x: hidden !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100vw !important;
}

/* Footer Responsive Fixes */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        /* Reduced gap for mobile */
    }

    .footer-section {
        align-items: center;
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-list {
        align-items: center;
    }

    .main-footer {
        padding: 3rem 1rem 2rem !important;
        margin-top: 3rem !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
    }

    .footer-list a {
        padding: 0.5rem 0 !important;
        word-break: break-word;
        /* Prevent long titles from breaking layout */
        text-align: center;
    }

    .footer-section.footer-brand {
        align-items: center;
    }

    .footer-section.footer-fan-club {
        align-items: center;
        text-align: center;
    }
}

/* Videos Page & Carousel Fixes */
.videos-container {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

.video-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    width: 100% !important;
    margin-right: 0 !important;
    padding: 0 !important;
}

.featured-carousel {
    max-width: 100% !important;
}

/* Loading state fixes for mobile */
@media (max-width: 480px) {

    .loading-text,
    .video-featured p,
    .video-grid p {
        padding: 1.5rem !important;
        font-size: 0.875rem !important;
    }

    .hero-section {
        padding: 1rem !important;
    }

    .video-modal-content {
        width: 100% !important;
        height: auto !important;
        max-height: 98vh !important;
    }

    /* Fix image fit in carousels */
    .carousel-video-container img {
        object-fit: cover !important;
    }
}

/* Prevent horizontal growth on large containers */
.main-content,
.hero-banner,
.footer-container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}