/* ========== STREAM2WATCH PROFESSIONAL MEDIA PLATFORM 2026 ========== */
/* Enhanced for ESPN/Prime Video quality standards */

:root {
    /* Enhanced Professional Media Colors */
    --primary-blue: #0066ff;
    --primary-dark: #0033cc;
    --accent-red: #ff0033;
    --accent-green: #00cc66;
    --accent-yellow: #ffcc00;
    
    /* Professional Neutral Foundation */
    --bg-primary: #0a0a0f;
    --bg-secondary: #121218;
    --bg-surface: #1a1a24;
    --bg-elevated: #252532;
    --bg-dropdown: #2d2d40;
    --bg-overlay: rgba(0, 0, 0, 0.8);
    
    /* Optimized Text Hierarchy */
    --text-primary: #ffffff;
    --text-secondary: #c8c8d8;
    --text-muted: #8a8a9a;
    --text-accent: var(--primary-blue);
    --text-on-dark: var(--text-primary);
    --text-on-light: #1a1a1a;
    
    /* Professional Gradients */
    --gradient-blue: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    --gradient-surface: linear-gradient(180deg, var(--bg-surface), var(--bg-elevated));
    --gradient-hero: linear-gradient(180deg, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.7) 100%);
    
    /* Enhanced Borders & Shadows */
    --border-color: rgba(255, 255, 255, 0.12);
    --border-heavy: rgba(255, 255, 255, 0.2);
    --border-light: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    
    /* Enhanced Spacing System */
    --space-unit: 4px;
    --space-xs: calc(var(--space-unit) * 1);   /* 4px */
    --space-sm: calc(var(--space-unit) * 2);   /* 8px */
    --space-md: calc(var(--space-unit) * 4);   /* 16px */
    --space-lg: calc(var(--space-unit) * 6);   /* 24px */
    --space-xl: calc(var(--space-unit) * 8);   /* 32px */
    --space-2xl: calc(var(--space-unit) * 12); /* 48px */
    --space-3xl: calc(var(--space-unit) * 16); /* 64px */
    --space-4xl: calc(var(--space-unit) * 24); /* 96px */
    
    /* Professional Border Radius */
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-3xl: 32px;
    --radius-full: 9999px;
    
    /* Professional Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Z-index Layers */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    
    /* Professional Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, 
                    'Helvetica Neue', Arial, sans-serif;
    --font-mono: ui-monospace, 'Cascadia Code', 'Roboto Mono', monospace;
    
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;
    
    --tracking-tight: -0.01em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
}

/* ========== CSS RESET & BASE STYLES ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: var(--leading-normal);
    font-size: var(--text-base);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    text-rendering: optimizeLegibility;
    -webkit-tap-highlight-color: transparent;
}

/* ========== PROFESSIONAL TYPOGRAPHY SYSTEM ========== */
h1, .h1 {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    margin-bottom: var(--space-xl);
    color: var(--text-primary);
}

h2, .h2 {
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    font-weight: 700;
    line-height: var(--leading-tight);
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

h3, .h3 {
    font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
    font-weight: 600;
    line-height: var(--leading-tight);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

h4, .h4 {
    font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl));
    font-weight: 600;
    line-height: var(--leading-tight);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

h5, .h5 {
    font-size: clamp(var(--text-base), 2vw, var(--text-xl));
    font-weight: 600;
    line-height: var(--leading-normal);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

h6, .h6 {
    font-size: var(--text-base);
    font-weight: 600;
    line-height: var(--leading-normal);
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

p {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    max-width: 65ch;
}

.lead {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
}

.small {
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    color: var(--text-muted);
}

.caption {
    font-size: var(--text-xs);
    line-height: var(--leading-normal);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

/* ========== PROFESSIONAL LAYOUT SYSTEM ========== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

@media (min-width: 1400px) {
    .container {
        padding: 0;
    }
}

.container-narrow {
    max-width: 800px;
}

.container-wide {
    max-width: 1600px;
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .md\:grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
}

/* Flex System */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* Section Spacing */
.section {
    padding: var(--space-3xl) 0;
}

.section-sm {
    padding: var(--space-xl) 0;
}

.section-lg {
    padding: var(--space-4xl) 0;
}

/* ========== PROFESSIONAL HEADER ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: var(--z-fixed);
    height: 72px;
    display: flex;
    align-items: center;
    transition: all var(--transition-base);
}

.site-header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: var(--shadow-md);
}

.header-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo img {
    height: 40px;
    width: auto;
    display: block;
    transition: transform var(--transition-base);
}

.site-logo:hover img {
    transform: scale(1.05);
}

/* ========== PROFESSIONAL NAVIGATION ========== */
.main-nav {
    display: flex;
    gap: var(--space-xs);
    margin-left: auto;
}

.nav-link {
    position: relative;
    padding: var(--space-sm) var(--space-lg);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(0, 102, 255, 0.15);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: var(--space-lg);
    right: var(--space-lg);
    height: 2px;
    background: var(--gradient-blue);
    border-radius: 1px;
    animation: slideIn var(--transition-base) forwards;
}

@keyframes slideIn {
    from { width: 0; }
    to { width: calc(100% - var(--space-lg) * 2); }
}

/* ========== PROFESSIONAL DROPDOWNS ========== */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    padding: var(--space-sm) var(--space-lg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--bg-dropdown);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
    min-width: 240px;
    max-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-dropdown);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-size: var(--text-sm);
    font-weight: 500;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary-blue);
    padding-left: var(--space-lg);
    transform: translateX(4px);
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-menu-btn {
    display: none;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: var(--z-modal);
    flex-shrink: 0;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-blue);
}

.mobile-menu-btn[aria-expanded="true"] {
    background: rgba(0, 102, 255, 0.1);
    border-color: var(--primary-blue);
}

.mobile-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: var(--z-modal);
    padding: var(--space-xl);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    border-top: 1px solid var(--border-color);
    display: block !important;
    overscroll-behavior: contain;
}

.mobile-nav.active {
    transform: translateX(0);
}

@supports (-webkit-touch-callout: none) {
    .mobile-nav {
        height: -webkit-fill-available;
        height: fill-available;
    }
}

.mobile-nav-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: var(--space-xl);
}

.mobile-nav-close {
    width: 48px;
    height: 48px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-blue);
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.mobile-nav-link {
    padding: var(--space-md) var(--space-lg);
    color: var(--text-primary);
    text-decoration: none;
    font-size: var(--text-lg);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-blue);
    border-color: rgba(0, 102, 255, 0.3);
    transform: translateX(4px);
}

.mobile-dropdown {
    margin-bottom: var(--space-sm);
}

.mobile-dropdown-toggle {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-lg);
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-fast);
    min-height: 44px;
}

.mobile-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-blue);
}

.mobile-dropdown-menu {
    padding: var(--space-md) 0;
    border-left: 2px solid var(--primary-blue);
    margin-left: var(--space-lg);
    margin-top: var(--space-sm);
}

.mobile-dropdown-menu a {
    display: block;
    padding: var(--space-sm) var(--space-lg);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-base);
    transition: all var(--transition-fast);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.mobile-dropdown-menu a:hover {
    color: var(--primary-blue);
    padding-left: var(--space-xl);
    background: rgba(0, 102, 255, 0.05);
}

/* ========== HERO SECTION ========== */
.hero-section {
    padding: 160px 0 var(--space-3xl);
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
    opacity: 0.5;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    text-align: center;
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: 700;
    line-height: var(--leading-tight);
    margin: 0 auto var(--space-md);
    color: var(--text-primary);
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.hero-description {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== PROFESSIONAL SEARCH ========== */
.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: var(--space-lg) var(--space-xl);
    padding-right: 68px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    font-size: var(--text-base);
    font-family: var(--font-primary);
    transition: all var(--transition-base);
    height: 56px;
}

.search-box input:hover {
    border-color: var(--border-heavy);
    background: var(--bg-elevated);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1), var(--shadow-md);
    background: var(--bg-elevated);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--gradient-blue);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--shadow-md);
}

.search-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* ========== QUICK LINKS ========== */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-2xl);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.quick-link {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
    white-space: nowrap;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-link:hover {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ========== CATEGORY SECTIONS ========== */
.category-section {
    padding: var(--space-3xl) 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.category-section:last-of-type {
    border-bottom: none;
}

.category-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    color: var(--text-primary);
}

.category-title svg {
    color: var(--primary-blue);
    flex-shrink: 0;
}

/* ========== PROFESSIONAL EVENTS GRID ========== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
    width: 100%;
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

/* ========== PROFESSIONAL EVENT CARD ========== */
.event-button {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    /* THE FIX: Change from block to flex */
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures all cards in a row are the same height */
    min-height: 200px; /* Adjust this to your preferred mobile height */
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.event-button:hover {
    transform: translateY(-4px);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
    background: var(--bg-elevated);
}

.event-button:hover::before {
    opacity: 1;
}

.event-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-blue);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
}

.card-header {
    padding: var(--space-md) var(--space-lg);
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    min-height: 56px;
}

.card-body {
    padding: var(--space-xl) var(--space-lg);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-md);
    align-items: center;
    min-height: 140px;
}

/* ========== PROFESSIONAL TEAM STYLES ========== */
.team {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-logo {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-sm);
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-base);
    border: 2px solid;
    transition: border-color var(--transition-base);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.team-name {
    font-size: var(--text-sm);
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.2;
    max-width: 100%;
    /* THE FIX: Allow 2 lines of text then truncate */
    white-space: normal; 
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

/* ========== PROFESSIONAL MATCH INFO ========== */
.match-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    min-width: 80px;
}

.match-badge {
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    min-width: 80px;
    transition: all var(--transition-fast);
}

.live-glow {
    background: var(--accent-red);
    color: white;
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.3);
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 0 20px rgba(255, 0, 51, 0.3);
    }
    50% { 
        opacity: 0.8;
        box-shadow: 0 0 30px rgba(255, 0, 51, 0.5);
    }
}

.vs-text {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== PROFESSIONAL CONTENT CARDS ========== */
.content-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-xl);
    margin: var(--space-3xl) 0;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-blue);
    z-index: 1;
}

.content-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--primary-blue);
}

/* ========== ENHANCED CONTENT CARD CONTENT STYLES ========== */
.content-card h2 {
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
    position: relative;
    padding-bottom: var(--space-sm);
}

.content-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-blue);
    border-radius: var(--radius-full);
}

.content-card p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

.content-card p:last-child {
    margin-bottom: 0;
}

.content-card strong {
    color: var(--text-primary);
    font-weight: 600;
}

.content-card .cta-link {
    margin-top: var(--space-lg);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

/* ========== ENHANCED FAQ STYLING ========== */
.content-card h2 + p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.content-card p strong {
    display: block;
    color: var(--text-primary);
    font-size: var(--text-base);
    margin-bottom: var(--space-xs);
    font-weight: 700;
}

.content-card p:has(strong) {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-light);
}

.content-card p:has(strong):last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* ========== PROFESSIONAL FEATURE GRID ========== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.feature-item {
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    height: 100%;
}

.feature-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary-blue);
    background: rgba(0, 102, 255, 0.05);
    box-shadow: var(--shadow-md);
}

.feature-item h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    font-size: var(--text-lg);
    font-weight: 600;
}

.feature-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ========== PROFESSIONAL CTA LINK ========== */
.cta-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    padding: var(--space-xs) 0;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
    position: relative;
}

.cta-link:hover {
    color: var(--text-primary);
    border-bottom-color: var(--primary-blue);
    transform: translateX(4px);
}

.cta-link::after {
    content: '→';
    opacity: 0;
    transform: translateX(-4px);
    transition: all var(--transition-fast);
}

.cta-link:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* ========== PROFESSIONAL MOBILE BOTTOM NAV ========== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    display: none;
    justify-content: space-around;
    padding: var(--space-sm) 0;
    z-index: var(--z-sticky);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-bottom-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-xs);
    transition: all var(--transition-fast);
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    min-height: 44px;
    justify-content: center;
    flex: 1;
    max-width: 80px;
}

.mobile-bottom-link:hover,
.mobile-bottom-link.active {
    color: var(--primary-blue);
    background: rgba(0, 102, 255, 0.1);
    transform: translateY(-2px);
}

.mobile-bottom-link svg {
    width: 20px;
    height: 20px;
    transition: all var(--transition-fast);
}

.mobile-bottom-link.active svg {
    color: var(--primary-blue);
}

/* ========== PROFESSIONAL FOOTER - UPDATED FOR CENTERING ========== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--space-3xl) 0 var(--space-2xl);
    margin-top: var(--space-3xl);
    text-align: center; /* Ensures base text is centered */
}

.footer-grid {
    display: grid;
    /* Adjusted minmax for better responsiveness */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    text-align: center; /* Centers text within the grid cells */
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the list and heading vertically */
}

.footer-section h3 {
    color: var(--text-primary);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--primary-blue);
    font-weight: 600;
    /* Changed width to fit-content and used margin:auto to center the underline */
    width: fit-content; 
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.footer-links li {
    margin-bottom: var(--space-sm);
    text-align: center; /* Ensures link text is centered */
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    display: inline-block;
    padding: 2px 0;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    /* Centers the hover underline */
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--primary-blue);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.footer-links a:hover {
    color: var(--text-primary);
    /* Removed translateX to keep it centered on hover */
    transform: translateY(-2px); 
}

.footer-links a:hover::before {
    width: 100%;
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: var(--text-sm);
    max-width: 1200px; /* Increased for wider desktop display */
    margin: 0 auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    
    /* Layout Logic: Vertical/Centered on Mobile */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0; /* Reset margin since parent uses 'gap' */
    color: var(--text-muted);
    line-height: var(--leading-relaxed);
    /* THE FIX: Override the global 65ch limit that causes off-centering */
    max-width: none !important; 
    width: 100%;
}
/* Desktop: Switch to Professional 2-Column "Media" Layout */
@media (min-width: 1024px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .footer-bottom p {
        width: 48%; /* Split into two columns */
        text-align: left;
    }

    /* Right-align the disclaimer on desktop for balance */
    .footer-bottom p:last-child {
        text-align: right;
    }
}

/* Ensure centering on very small screens */
@media (max-width: 480px) {
    .footer-grid {
        gap: var(--space-xl);
    }
    .footer-section h3 {
        margin-bottom: var(--space-md);
    }
}

/* ========== PROFESSIONAL FILTER SYSTEM ========== */
.filter-container {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin: var(--space-3xl) 0;
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    align-items: center;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .filter-container {
        grid-template-columns: 2fr 1fr;
        gap: var(--space-xl);
        padding: var(--space-xl) var(--space-2xl);
    }
}

@media (max-width: 767px) {
    .filter-container {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        padding: var(--space-lg);
        margin: var(--space-2xl) var(--space-md);
    }
}

.filter-group {
    position: relative;
    width: 100%;
}

#search-input {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-base);
    font-family: inherit;
    transition: all var(--transition-base);
    height: 48px;
}

#search-input:hover {
    border-color: var(--border-heavy);
    background: var(--bg-surface);
}

#search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
    background: var(--bg-surface);
}

#league-dropdown {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    padding-right: var(--space-2xl);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-base);
    font-family: inherit;
    appearance: none;
    cursor: pointer;
    transition: all var(--transition-base);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c8c8d8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
    background-size: 16px;
    height: 48px;
}

#league-dropdown:hover {
    background-color: var(--bg-surface);
    border-color: var(--border-heavy);
}

#league-dropdown:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
    background-color: var(--bg-surface);
}

/* ========== PROFESSIONAL LEAGUE SECTION ========== */
.league-section {
    margin-bottom: var(--space-3xl);
    scroll-margin-top: var(--space-2xl);
}

.league-section h2 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    color: var(--text-primary);
    scroll-margin-top: var(--space-3xl);
}

.league-section h2 svg {
    color: var(--primary-blue);
    flex-shrink: 0;
}

/* ========== PROFESSIONAL BROADCAST INFO ========== */
.broadcast-info {
    background: rgba(0, 102, 255, 0.08);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
    position: relative;
    overflow: hidden;
}

.broadcast-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-blue);
}

.broadcast-info h3 {
    color: var(--primary-blue);
    margin-bottom: var(--space-md);
    font-size: var(--text-xl);
    font-weight: 600;
}

.broadcast-info p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.broadcast-info p:last-child {
    margin-bottom: 0;
}

.broadcast-info ul {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

.broadcast-info li {
    margin-bottom: var(--space-xs);
}

/* ========== PROFESSIONAL FAQ GRID ========== */
.faq-grid {
    display: grid;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.faq-item:hover {
    border-color: var(--primary-blue);
    background: rgba(0, 102, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.faq-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-blue);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.faq-item:hover::before {
    opacity: 1;
}

.faq-q {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    font-size: var(--text-lg);
    line-height: var(--leading-tight);
}

.faq-a {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

/* ========== PROFESSIONAL SEASON INFO ========== */
.season-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin: var(--space-2xl) 0;
}

.season-info-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    height: 100%;
}

.season-info-item:hover {
    border-color: var(--primary-blue);
    background: rgba(0, 102, 255, 0.05);
    transform: translateY(-2px);
}

.season-info-item h4 {
    color: var(--primary-blue);
    margin-bottom: var(--space-sm);
    font-size: var(--text-lg);
    font-weight: 600;
}

.season-info-item p {
    color: var(--text-secondary);
    margin: 0;
    line-height: var(--leading-relaxed);
}

/* ========== NO EVENTS MESSAGE ========== */
.no-events-message {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

.no-events-message h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.no-events-message p {
    max-width: 600px;
    margin: 0 auto var(--space-md);
    line-height: var(--leading-relaxed);
}

/* ========== PROFESSIONAL BREADCRUMB ========== */
.breadcrumb {
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
}

.breadcrumb a:hover {
    color: var(--text-primary);
}

.breadcrumb a::after {
    content: '→';
    margin-left: var(--space-xs);
    opacity: 0.5;
}

/* ========== PROFESSIONAL TEAM BOX ========== */
.team-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-box > div:last-child {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--text-primary);
    margin-top: var(--space-sm);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== PROFESSIONAL UTILITY CLASSES ========== */
.text-gradient {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--accent-red);
    color: white;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.3);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========== PROFESSIONAL ACCESSIBILITY ========== */
:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-blue);
    color: white;
    padding: var(--space-sm) var(--space-md);
    text-decoration: none;
    border-radius: var(--radius-sm);
    z-index: var(--z-tooltip);
    transition: top var(--transition-fast);
}

.skip-to-main:focus {
    top: var(--space-sm);
}

/* High contrast support */
@media (prefers-contrast: high) {
    :root {
        --text-secondary: #ffffff;
        --border-color: #ffffff;
        --bg-dropdown: #1a1a1a;
        --bg-surface: #000000;
    }
    
    .event-button:hover {
        outline: 2px solid var(--primary-blue);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .live-indicator,
    .live-glow {
        animation: none;
    }
}

/* ========== PROFESSIONAL RESPONSIVE BREAKPOINTS ========== */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .content-card {
        padding: var(--space-xl) var(--space-lg);
        margin: var(--space-2xl) 0;
    }
    
    .hero-section {
        padding: 140px 0 var(--space-2xl);
    }
    
    .event-button {
        min-height: 60px;
    }
    
    .filter-container {
        margin: var(--space-2xl) var(--space-md);
    }
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero-title {
        font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    }
    
    .hero-description {
        font-size: var(--text-base);
    }
    
    .content-card {
        padding: var(--space-lg);
        margin: var(--space-xl) 0;
    }
    
    .feature-grid,
    .season-info-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
        text-align: center;
    }
    
    .footer-section {
        align-items: center;
    }
    
    .footer-section h3 {
        text-align: center;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links li {
        text-align: center;
    }
    
    .site-footer {
        padding: var(--space-2xl) 0 var(--space-xl);
    }
    
    .quick-links {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: var(--space-sm);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 calc(-1 * var(--space-md)) var(--space-2xl);
        padding: 0 var(--space-md) var(--space-sm);
    }
    
    .quick-links::-webkit-scrollbar {
        display: none;
    }
    
    .quick-link {
        flex-shrink: 0;
    }
    
    .card-body {
    padding: var(--space-xl) var(--space-lg);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-md);
    align-items: center;
    flex-grow: 1; /* This pushes everything else down */
}
    
    .team-logo {
        width: 48px;
        height: 48px;
        font-size: var(--text-sm);
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-section {
        padding: 120px 0 var(--space-xl);
    }
    
    .content-card {
        padding: var(--space-lg) var(--space-md);
        margin: var(--space-xl) 0;
    }
    
    .content-card h2 {
        font-size: var(--text-lg);
    }
    
    .mobile-nav {
        padding: var(--space-lg);
    }
    
    .filter-container {
        padding: var(--space-md);
        margin: var(--space-xl) var(--space-sm);
    }
    
    .breadcrumb {
        font-size: var(--text-xs);
    }
    
    .match-badge {
        font-size: var(--text-xs);
        padding: 4px 8px;
        min-width: 70px;
    }
}

/* Print styles */
@media print {
    .site-header,
    .mobile-bottom-nav,
    .timezone-selector-wrapper,
    .search-box,
    .quick-links {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
}
