/* ===== BINGEBRACKET - NEON GAMING THEME ===== */
/* Complete CSS with all visual effects */

/* ==========================================
   TABLE OF CONTENTS - RESPONSIVE BREAKPOINTS
   
   DESKTOP/BASE STYLES (line 1-1780)
   - Variables & Design System
   - Navigation  
   - Tournament Gameplay
   - Movie Posters
   - Winner Display
   - Leaderboards
   
   TABLET: @media (max-width: 768px) (line ~1781)
   - 6 separate blocks throughout file
   - Search for "max-width: 768px" to find all
   
   MOBILE: @media (max-width: 480px) (line ~1950+)
   - 3 separate blocks
   - Search for "max-width: 480px" to find all
   
   SMALL MOBILE: @media (max-width: 375px) (line ~1997)
   - iPhone SE specific adjustments
   
   ========================================== */


/* === CSS VARIABLES - DESIGN SYSTEM === */
:root {
    /* Primary Brand Colors */
    --color-primary: #8B5CF6;           /* Main purple - buttons, CTAs */
    --color-primary-hover: #7C3AED;     /* Darker purple for hover states */
    --color-primary-light: #A855F7;     /* Lighter purple for accents */

    /* Secondary Colors */
    --color-secondary: #00d4ff;         /* Cyan */
    --color-accent: #ff0080;            /* Pink */
    --color-pink: #EC4899;              /* Pink accent */

    /* Gradients as colors for inline styles */
    --color-gradient-purple: #8B5CF6;   /* Start of purple gradient */
    --color-gradient-pink: #EC4899;     /* End of purple gradient */

    /* Supporting Colors */
    --color-purple-dark: #7928ca;
    --color-blue-dark: #090979;
    --color-white: #ffffff;
    --color-success: #00ff88;
    --color-success-green: #4caf50;
    --color-success-bright: #22C55E;
    --color-danger: #EF4444;
    --color-danger-dark: #DC2626;
    --color-danger-red: #f44336;
    --color-error: #e50914;
    --color-error-bright: #f40612;
    --color-warning: #fd7e14;

    /* Background Colors */
    --bg-primary: #000000;
    --bg-secondary: #0f0f0f;
    --bg-tertiary: #111111;
    --bg-dark: #1a1a1a;
    --bg-darker: #222222;
    --bg-card: #2a2a2a;

    /* Text Colors - Improved contrast for readability */
    --text-primary: #ffffff;
    --text-secondary: #d1d1d1;   /* Brighter for better readability */
    --text-muted: #b3b3b3;       /* Brighter for better readability */
    --text-light: #999999;
    --text-lighter: #888888;
    --text-subtle: #808080;      /* Slightly brighter */

    /* Border Colors */
    --border-primary: #333333;
    --border-secondary: #444444;
    --border-light: #555555;

    /* Overlay Colors with transparency */
    --overlay-dark: rgba(0, 0, 0, 0.8);
    --overlay-darker: rgba(0, 0, 0, 0.9);
    --overlay-light: rgba(255, 255, 255, 0.05);
    --overlay-lighter: rgba(255, 255, 255, 0.1);

    /* Primary color with alpha variations */
    --primary-alpha-10: rgba(139, 92, 246, 0.1);
    --primary-alpha-20: rgba(139, 92, 246, 0.2);
    --primary-alpha-30: rgba(139, 92, 246, 0.3);
    --primary-alpha-40: rgba(139, 92, 246, 0.4);

    /* Danger color with alpha variations */
    --danger-alpha-10: rgba(220, 53, 69, 0.1);
    --danger-alpha-20: rgba(220, 53, 69, 0.2);
    --danger-alpha-90: rgba(220, 53, 69, 0.9);

    /* Divider */
    --divider-color: rgba(255, 255, 255, 0.1);

    /* Common Gradients - Using the variables above */
    --gradient-pink: linear-gradient(135deg, #ff0080, #7928ca);
    --gradient-blue: linear-gradient(135deg, #00d4ff, #090979);
    --gradient-purple: linear-gradient(135deg, #8B5CF6, #EC4899);
    --gradient-main: linear-gradient(90deg, #ff0080 0%, #00d4ff 100%);

    /* Typography Scale - Using rem for scalability */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px - Secondary text */
    --text-base: 1rem;       /* 16px - Body text (standard) */
    --text-md: 1.0625rem;    /* 17px - Emphasized body */
    --text-lg: 1.125rem;     /* 18px - Subheadings */
    --text-xl: 1.5rem;       /* 24px - Section titles */
    --text-2xl: 2rem;        /* 32px - Page titles */
    --text-3xl: 2.5rem;      /* 40px - Hero text */

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Line Heights - Optimized for scanning */
    --leading-tight: 1.25;
    --leading-normal: 1.4;
    --leading-relaxed: 1.5;

    /* Spacing Scale - 8px Base Unit System */
    --space-1: 0.25rem;  /* 4px  - Tiny gaps */
    --space-2: 0.5rem;   /* 8px  - Small gaps */
    --space-3: 0.75rem;  /* 12px - Compact spacing */
    --space-4: 1rem;     /* 16px - Default spacing */
    --space-6: 1.5rem;   /* 24px - Medium spacing */
    --space-8: 2rem;     /* 32px - Large spacing */
    --space-12: 3rem;    /* 48px - Section spacing */
    --space-16: 4rem;    /* 64px - Major sections */
    --space-20: 5rem;    /* 80px - Hero spacing */

    /* Border Radius */
    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-lg: 15px;
    --radius-xl: 25px;
    --radius-full: 50%;

    /* Common Sizes */
    --content-max-width: 1250px; /* Balanced width for content */
    --poster-width-sm: 150px;
    --poster-width-md: 200px;
    --poster-width-lg: 300px;

    /* Button System */
    --btn-radius: 8px;
    --btn-radius-pill: 100px;
    --btn-transition: all 0.2s ease;
}

/* === UTILITY CLASSES === */

/* Display utilities */
.hidden { display: none !important; }
.display-block { display: block !important; }
.display-flex { display: flex !important; }
.display-inline-flex { display: inline-flex !important; }
.flex { display: flex !important; }
.flex-center {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.flex-column {
    display: flex !important;
    flex-direction: column !important;
}
.flex-between {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}
.inline-block { display: inline-block !important; }

/* Position utilities */
.fixed { position: fixed !important; }
.absolute { position: absolute !important; }
.relative { position: relative !important; }

/* Text utilities */
.text-primary { color: var(--color-primary) !important; }
.text-white { color: var(--color-white) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-light { color: var(--text-light) !important; }
.text-lighter { color: var(--text-lighter) !important; }
.text-subtle { color: var(--text-subtle) !important; }
.text-success { color: var(--color-success) !important; }
.text-error { color: var(--color-error) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-center { text-align: center !important; }
.text-xs { font-size: var(--text-xs) !important; }
.text-sm { font-size: var(--text-sm) !important; }
.text-base { font-size: var(--text-base) !important; }
.text-lg { font-size: var(--text-lg) !important; }
.text-xl { font-size: var(--text-xl) !important; }
.text-2xl { font-size: var(--text-2xl) !important; }
.font-semibold { font-weight: var(--font-semibold) !important; }
.font-bold { font-weight: var(--font-bold) !important; }

/* Background utilities */
.bg-primary { background: var(--color-primary) !important; }
.bg-dark { background: var(--bg-dark) !important; }
.bg-card { background: var(--bg-card) !important; }
.bg-gradient-purple { background: linear-gradient(135deg, var(--color-primary), var(--color-pink)) !important; }

/* Border utilities */
.border-primary { border-color: var(--color-primary) !important; }
.border-divider { border-color: var(--divider-color) !important; }
.rounded-md { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }

/* Spacing utilities */
.m-0 { margin: 0 !important; }
.mt-2 { margin-top: var(--space-4) !important; }
.mt-4 { margin-top: var(--space-8) !important; }
.mb-1 { margin-bottom: var(--space-2) !important; }
.mb-2 { margin-bottom: var(--space-4) !important; }
.mb-3 { margin-bottom: var(--space-6) !important; }
.mb-4 { margin-bottom: var(--space-8) !important; }
.p-2 { padding: var(--space-4) !important; }
.p-4 { padding: var(--space-8) !important; }
.px-4 { padding-left: var(--space-8) !important; padding-right: var(--space-8) !important; }
.py-2 { padding-top: var(--space-4) !important; padding-bottom: var(--space-4) !important; }
.gap-2 { gap: var(--space-4) !important; }

/* Opacity utilities */
.opacity-0 { opacity: 0 !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-70 { opacity: 0.7 !important; }
.opacity-100 { opacity: 1 !important; }

/* Common component patterns */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-container {
    background: var(--bg-dark);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 90%;
    border: 1px solid var(--primary-alpha-30);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-primary);
    border-top-color: var(--color-error);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.divider {
    margin: var(--space-8) 0;
    border-color: var(--divider-color);
}

.footer-legal {
    text-align: center;
    padding: var(--space-8);
    color: var(--text-lighter);
    font-size: var(--text-sm);
}

.footer-legal a {
    color: var(--color-primary);
    text-decoration: none;
}

.footer-legal a:hover {
    text-decoration: underline;
}

.icon-large {
    font-size: 3rem;
    margin-bottom: var(--space-4);
}

.helper-text {
    color: var(--text-subtle);
    margin-top: var(--space-2);
    font-size: var(--text-sm);
}

.close-button {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close-button:hover {
    color: var(--text-primary);
}

/* === BUTTON SYSTEM === */
/* Base button - consistent foundation for all buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    font-family: inherit;
    border-radius: var(--btn-radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--btn-transition);
    white-space: nowrap;
    user-select: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Primary - main CTAs (purple gradient) */
.btn-primary {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

/* Secondary - less prominent actions (purple outline) */
.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--color-primary);
    color: white;
}

/* Danger - destructive actions (red) */
.btn-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Ghost - minimal, text-like buttons */
.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
}

.btn-ghost:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
}

/* Size variants */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

/* Shape variants */
.btn-pill {
    border-radius: var(--btn-radius-pill);
}

.btn-square {
    border-radius: 4px;
}

/* Full width */
.btn-block {
    width: 100%;
    display: flex;
}

/* Icon button - square with icon only */
.btn-icon {
    padding: var(--space-3);
    aspect-ratio: 1;
}

/* === POSTER GALLERY LAYOUTS === */
/* CSS Grid - for responsive wrapping poster galleries */
.poster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: var(--space-4);
    width: 100%;
}

.poster-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: var(--space-2);
}

.poster-grid-large {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-6);
}

/* Flexbox horizontal scroll - for fixed-width showcase */
.poster-flex-scroll {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.poster-flex-scroll > * {
    flex-shrink: 0;
    scroll-snap-align: start;
}

/* Hide scrollbar but keep functionality */
.poster-flex-scroll::-webkit-scrollbar {
    display: none;
}

.poster-flex-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Loading Indicator Overlay */
#loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === BASE STYLES === */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0c0c1d 0%, #1a1a2e 50%, #16213e 100%);
    color: var(--color-white);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-size: var(--text-base); /* 16px - standard readable size */
    line-height: var(--leading-normal); /* 1.4 */
    font-weight: var(--font-normal);
}

h1 {
    font-size: var(--text-3xl);
    line-height: var(--leading-tight);
    font-weight: var(--font-bold);
    margin: 0 0 1rem;
    color: var(--color-white);
}

h2 {
    font-size: var(--text-2xl);
    line-height: var(--leading-tight);
    font-weight: var(--font-bold);
    margin: 0 0 1rem;
    color: var(--color-white);
}

h3 {
    font-size: var(--text-xl);
    line-height: var(--leading-tight);
    font-weight: var(--font-semibold);
    margin: 0 0 0.75rem;
    color: var(--color-white);
}

h4 {
    font-size: var(--text-lg);
    line-height: var(--leading-tight);
    font-weight: var(--font-semibold);
    margin: 0 0 0.5rem;
    color: var(--color-white);
}

p {
    font-size: var(--text-base); /* 16px for readability */
    line-height: var(--leading-relaxed); /* 1.5 for paragraph text */
    font-weight: var(--font-normal);
    margin: 0 0 1rem;
}

/* Star particles removed for cleaner UI */

/* === TOP NAVIGATION - REMOVED SEPARATE LINE === */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: transparent; /* No background */
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

/* === APP NAVIGATION === */
.landing-header {
    background: #0f0f0f; /* Solid background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Clear separation */
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 var(--space-8);
    height: 56px;
    display: flex;
    align-items: center;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    height: 100%; /* Fill parent height */
}

.desktop-nav .logo {
    margin-right: var(--space-12);
}

.desktop-menu {
    display: flex;
    gap: var(--space-8);
    flex: 1;
}

.desktop-menu a {
    color: white;
    text-decoration: none;
    font-size: var(--text-base); /* 16px - standard for navigation */
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.desktop-menu a:hover {
    color: var(--color-primary);
}

.logo {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-primary);
    cursor: pointer;
    text-decoration: none;
    letter-spacing: -0.02em;
}

/* Apply new button system to account button */
.account-btn {
    background: none;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--btn-radius-pill);
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    transition: var(--btn-transition);
}

.account-btn:hover {
    background: var(--color-primary);
    color: white;
}

/* Mobile Navigation for app navigation */
.mobile-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%; /* Fill parent height */
}

.nav-dropdown {
    position: relative;
    flex: 0 0 auto; /* Left side - don't grow */
}

.mobile-nav .logo {
    flex: 1; /* Center - takes remaining space */
    text-align: center;
}

.mobile-nav .account-menu {
    flex: 0 0 auto; /* Right side - don't grow */
}

.nav-dropdown-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px); /* Space below button */
    left: 0;
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Clear border */
    border-radius: 8px;
    padding: var(--space-2) 0;
    min-width: 180px;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); /* Depth */
}

.nav-dropdown-menu.show {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1rem;
    transition: background 0.2s;
}

.nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none;
    }
    
    .desktop-nav {
        display: flex;
    }
}

@media (max-width: 767px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav {
        display: flex;
    }
}

.logo-small {
    display: flex;
    align-items: center;
}

.brand-name {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-primary);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.brand-name:hover {
    color: #A855F7;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}




/* === TOURNAMENT GAMEPLAY === */
#app {
    max-width: 650px;
    margin: 0 auto;
    padding: var(--space-4);
    text-align: center;
    background: linear-gradient(135deg, #0c0c1d 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
}

#tournament-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    text-transform: capitalize;
    margin-bottom: var(--space-8);
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Progress indicators */
#round-display {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-4);
}

.round-indicators {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-4);
    position: relative;
    padding: 0 20px;
    max-width: 200px;
    margin: 0 auto 20px;
}

.round-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #34495E;
    position: relative;
    transition: background-color 0.3s ease;
    z-index: 1;
}

.round-dot.active {
    background: var(--color-secondary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    transform: scale(1.1);
}

.round-dot.completed {
    background: var(--color-success);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.connector-line {
    position: absolute;
    height: 2px;
    background: #34495E;
    top: 50%;
    left: 30px;
    right: 30px;
    z-index: 0;
}

#progress-bar {
    width: 100%;
    height: 25px;
    background-color: #34495E;
    margin: var(--space-4) auto;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

#progress {
    height: 100%;
    width: 0%;
    transition: width 0.5s ease-in-out;
    overflow: hidden;
    position: relative;
}

#progress-content {
    position: absolute;
    height: 100%;
    width: 150%;
    left: 0;
    background: var(--gradient-main);
}

#progress.round1 {
    background-color: var(--color-accent);
}

#progress.round2 {
    background-color: var(--color-purple-dark);
}

#progress.round3 {
    background-color: var(--color-secondary);
}

#progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-white);
    font-weight: bold;
}

/* Pair skip button container */
.pair-skip-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding: 0 20px;
    position: relative;
    z-index: 9999 !important;
}

/* Main pair skip button */
/* Updated to solid red button */
.pair-skip-button {
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 8px;
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    min-width: 200px;
    justify-content: center;
    position: relative;
    z-index: 10000 !important;
    pointer-events: auto !important;
}

.pair-skip-button:hover {
    background: #ee5a52;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

.pair-skip-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.pair-skip-button:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
    box-shadow: none;
}

.pair-skip-button i {
    font-size: 14px;
}

.skip-count {
    font-size: 12px;
    opacity: 0.8;
    font-weight: 400;
    margin-left: 5px;
}

/* Skip status display in round info */
.skip-status {
    text-align: center;
    margin-top: 10px;
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.skip-text {
    color: #ff6b6b;
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    justify-content: center;
}

.skip-text i {
    font-size: 12px;
}

/* Content container transition for skip animation */
#content-container {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Skip messages */
.skip-message {
    animation: slideDown 0.3s ease;
}

.skip-message.warning {
    border-left: 4px solid #ff9800;
}

.skip-message.info {
    border-left: 4px solid #2196f3;
}

.skip-message.error {
    border-left: 4px solid #ff5722;
}

/* === MOVIE POSTERS === */
.content-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch; /* Ensure equal height */
}

/* Reset any potential browser-specific rendering */
.content-container * {
    box-sizing: border-box;
}

/* === LAZY LOADING STYLES === */
.poster-image.lazy {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background: linear-gradient(45deg, #2a2a3a 25%, transparent 25%), 
                linear-gradient(-45deg, #2a2a3a 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #2a2a3a 75%), 
                linear-gradient(-45deg, transparent 75%, #2a2a3a 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    animation: shimmer 1.5s infinite linear;
}

.poster-image.loading {
    opacity: 0.5;
}

.poster-image.loaded, .poster-image:not(.lazy) {
    opacity: 1;
    background: none;
    animation: none;
}

@keyframes shimmer {
    0% { background-position: 0 0, 0 10px, 10px -10px, -10px 0px; }
    100% { background-position: 20px 20px, 20px 30px, 30px 10px, 10px 20px; }
}

/* === PROGRESSIVE LOADING STYLES === */
.tournament-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    width: 100%;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-content p {
    margin: 15px 0 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.loading-spinner-small {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top-color: var(--color-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.content-poster {
    width: calc(50% - 10px);
    max-width: 300px;
    height: 530px;
    border: 3px solid var(--color-secondary);
    margin: 0;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    background-color: #1a1a2e;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3);
    /* Force consistent rendering */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.content-poster:hover {
    border-color: var(--color-accent);
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 0, 128, 0.4);
}

/* Ensure consistent styling for both posters */
.content-poster:first-child,
.content-poster:last-child {
    border-width: 3px;
    border-style: solid;
}

/* Remove default focus outline on posters */
.content-poster:focus {
    outline: none;
    border-color: var(--color-secondary);
}

/* Ensure hover state takes precedence over focus */
.content-poster:hover,
.content-poster:focus:hover {
    border-color: var(--color-accent) !important;
}

.content-poster img {
    width: 100% !important;
    height: 450px !important;
    object-fit: cover;
    display: block;
}

.info-button, .trailer-button {
    position: absolute;
    left: 0;
    width: 100%;
    padding: var(--space-3);
    border: none;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
}

.info-button {
    bottom: 37px;
    background: linear-gradient(135deg, var(--color-purple-dark), var(--color-accent));
    color: white;
    z-index: 10; /* Ensure button stays on top */
}

.trailer-button {
    bottom: 0;
    background: var(--gradient-blue);
    color: white;
    /* Removed hover color change */
}

.content-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 80px);
    background-color: rgba(0, 0, 0, 0.95); /* Reverted to original readable background */
    color: white; /* Original white text for readability */
    padding: var(--space-4);
    box-sizing: border-box;
    overflow-y: auto;
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    text-align: left;
}

.content-info.hidden {
    display: none;
}

.content-info h3 {
    margin-top: 0;
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-4);
    color: var(--color-secondary);
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.content-info p {
    margin-bottom: var(--space-3);
}

.content-info strong {
    color: var(--color-accent);
}

.content-info .overview {
    margin-top: var(--space-4);
    font-style: italic;
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

/* === WINNER DISPLAY === */
#winner-display {
    display: none;
    text-align: center;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0c0c1d 0%, #1a1a2e 50%, #16213e 100%);
    z-index: 900;
    overflow-y: auto;
    padding-top: 80px;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

#winner-display h2 {
    margin-bottom: var(--space-4);
    color: white;
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

#winner-display .winner-poster {
    margin: 0 auto 20px;
    max-width: 300px;
    width: 100%;
    height: 530px;
    border: 3px solid var(--color-success);
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.4);
}

#winner-display .winner-poster img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.winner-actions {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Removed old restart-button styles - now uses .action-button classes */

/* === TRAILER CONTAINERS === */
.trailer-container {
    display: none;
    width: 100%;
    height: 450px;
}

.trailer-container iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* === ERROR HANDLING STYLES === */
.trailer-error {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.error-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    padding: 40px 20px;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.error-content {
    background: linear-gradient(135deg, rgba(12, 12, 29, 0.95), rgba(26, 26, 46, 0.95));
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 20px;
    max-width: 400px;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.error-content i {
    font-size: 48px;
    color: var(--color-accent);
    margin-bottom: var(--space-4);
}

.error-content p {
    font-size: 18px;
    margin: 15px 0;
    line-height: 1.4;
}

.close-error {
    background: var(--gradient-pink);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    margin-top: var(--space-4);
    font-size: 16px;
    font-weight: 600;
}

.close-error:hover {
    background: var(--gradient-blue);
}
.retry-button, .home-button {
    padding: 14px 28px;
    border: none;
    border-radius: 50px; /* Extra pill-shaped */
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
}

.retry-button {
    background: var(--gradient-blue);
    color: white;
}

.retry-button:hover {
    background: linear-gradient(135deg, #00b8e6, #0a0a6b);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.home-button {
    background: var(--gradient-blue);
    color: white;
}

.home-button:hover {
    background: linear-gradient(135deg, #00b8e6, #0a0a6b);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

/* === LOADING SPINNER === */
.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--color-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content p {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: var(--font-medium);
}
/* === POSTER FALLBACK FOR MISSING IMAGES === */
.poster-fallback {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #2d1b69 0%, #11998e 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.fallback-content {
    text-align: center;
    color: white;
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.fallback-content i {
    font-size: 56px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.fallback-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.2;
    text-align: center;
    max-width: 240px;
    word-wrap: break-word;
}

.fallback-info {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 8px 0;
}

.mini-overview {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.3;
    margin-top: 8px;
    max-width: 240px;
    text-align: center;
    word-wrap: break-word;
}

.fallback-info {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: var(--space-4);
}

.fallback-info span {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.rating {
    color: #ffd700;
}
/* === MODALS === */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(12, 12, 29, 0.9), rgba(26, 26, 46, 0.9));
    backdrop-filter: blur(20px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: var(--space-4);
    box-sizing: border-box;
}

.modal-content {
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    position: relative;
    margin: auto;
    border-radius: 20px;
    overflow: hidden;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
}

.close-modal {
    position: absolute;
    top: -50px;
    right: 0;
    background: var(--gradient-pink);
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 25px;
    font-weight: 600;
}

.close-modal:hover {
    background: var(--gradient-blue);
}

/* === TMDB ATTRIBUTION === */
#tmdb-attribution {
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 1000;
    text-align: left;
    pointer-events: none;
}

#tmdb-attribution p {
    font-size: 10px;
    margin-bottom: 2px;
    color: rgba(255, 255, 255, 0.5);
}

#tmdb-attribution a {
    pointer-events: auto;
    display: block;
}

.tmdb-logo {
    height: 14px;
    width: auto;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.tmdb-logo:hover {
    opacity: 0.8;
}

/* Share Options Modal */
.share-options-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.share-options-content {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.share-options-content h3 {
    color: white;
    margin: 0 0 20px 0;
    text-align: center;
    font-size: 24px;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: var(--space-4);
}

.share-option {
    background: #2a2a3e;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.share-option:hover {
    background: #3a3a4e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.share-option i {
    font-size: 20px;
}

/* Brand-specific colors - always visible */
.share-buttons .share-option:nth-child(1) {
    background: #000000; /* X (Twitter) black */
}

.share-buttons .share-option:nth-child(2) {
    background: #1877F2; /* Facebook blue */
}

.share-buttons .share-option:nth-child(3) {
    background: #FF4500; /* Reddit orange */
}

.share-buttons .share-option:nth-child(4) {
    background: #25D366; /* WhatsApp green */
}

.share-buttons .share-option:nth-child(5) {
    background: #EA4335; /* Email red */
}

.share-buttons .share-option:nth-child(6) {
    background: #6c757d; /* Copy gray */
}

/* Lighter shades on hover */
.share-buttons .share-option:nth-child(1):hover {
    background: #333333 !important;
}

.share-buttons .share-option:nth-child(2):hover {
    background: #4c8ef8 !important;
}

.share-buttons .share-option:nth-child(3):hover {
    background: #ff6b3d !important;
}

.share-buttons .share-option:nth-child(4):hover {
    background: #4fdb78 !important;
}

.share-buttons .share-option:nth-child(5):hover {
    background: #f45c51 !important;
}

.share-buttons .share-option:nth-child(6):hover {
    background: #8e969d !important;
}

.close-modal {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: #999;
    border: 1px solid #444;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: white;
    border-color: #666;
}

/* Tournament Bracket Styles */
.bracket-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.bracket-modal:not(.hidden) {
    display: flex;
}

.bracket-content {
    background: #1a1a2e;
    border-radius: 12px;
    width: 95%;
    max-width: 1200px;
    height: 90%;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.7);
    animation: modalFadeIn 0.3s ease-out;
}

.bracket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    border-bottom: 1px solid #333;
}

.bracket-header h2 {
    color: white;
    margin: 0 0 -13px 0;
    font-size: 28px;
    text-align: center;
}

.bracket-close {
    background: none;
    border: none;
    color: #999;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.bracket-close:hover {
    background: #333;
    color: white;
}

.bracket-crowd-stats-btn {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: #EC4899;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.bracket-crowd-stats-btn:hover {
    background: #DB2777;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(236, 72, 153, 0.4);
}

.bracket-crowd-stats-btn i {
    font-size: 1.1rem;
}

.bracket-container {
    flex: 1;
    padding: var(--space-4);
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

.bracket-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 25px;
    width: 100%;
    height: 100%;
    max-width: 1000px;
}

.bracket-headers {
    display: contents;
}

.bracket-header {
    color: white;
    text-align: center;
    margin: 0 0 -11px 0;
    font-size: 20px;
    opacity: 0.9;
    padding-bottom: 0px;
    border-bottom: 1px solid #333;
}

.bracket-header.connector-header {
    border: none;
    opacity: 0;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 100%;
    position: relative;
}

.bracket-round.round-1 {
    justify-content: flex-start;
    gap: var(--space-2);
    padding-top: 0px;
}

.bracket-round.round-2 {
    justify-content: flex-start;
    gap: var(--space-2);
    padding-top: 0px;
}

.bracket-round.round-3 {
    justify-content: flex-start;
    gap: var(--space-2);
    padding-top: 0px;
}

.bracket-round.winner {
    justify-content: flex-start;
    padding-top: 0px;
}

.bracket-matchup {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}

.bracket-movie {
    background: #2a2a3e;
    border: 2px solid #333;
    border-radius: 6px;
    padding: 6px;
    color: white;
    font-size: 17px;
    text-align: left;
    min-height: 53px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.3s ease;
    position: relative;
}

.bracket-movie.winner {
    background: #2d5a3d;
    border-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.bracket-movie.loser {
    opacity: 0.5;
    background: #2a2a2a;
}

.bracket-movie img {
    width: 35px;
    height: 53px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 8px;
}

/* Ensure bracket matchups have relative positioning */
.bracket-matchup {
    position: relative;
}

/* Bracket connectors for winner screen */
.bracket-grid .bracket-round:not(.winner) .bracket-matchup::after {
    content: '';
    position: absolute;
    left: -15px;
    top: 25%;
    width: 12px;
    height: calc(25% + 2px);
    border-left: 2px solid #00ffff;
    border-top: 2px solid #00ffff;
    z-index: 100;
}

.bracket-grid .bracket-round:not(.winner) .bracket-matchup::before {
    content: '';
    position: absolute;
    left: -15px;
    bottom: 25%;
    width: 12px;
    height: calc(25% + 2px);
    border-left: 2px solid #00ffff;
    border-bottom: 2px solid #00ffff;
    z-index: 100;
}

/* Additional bracket component styles */
.bracket-discovery, .bracket-curated {
    padding: var(--space-4);
    color: white;
}

.bracket-match {
    background: #2a2a4a;
    border-radius: 8px;
    padding: var(--space-4);
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.bracket-round-label {
    background: #7C3AED;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    min-width: 45px;
    text-align: center;
}

.bracket-poster {
    width: 50px;
    height: 75px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.bracket-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bracket-movie-title {
    font-size: 14px;
    margin-top: 5px;
    text-align: center;
    line-height: 1.2;
}

.bracket-vs {
    color: #7C3AED;
    font-weight: bold;
    font-size: 16px;
    padding: 0 10px;
}

.bracket-winner {
    text-align: center;
    margin-top: 30px;
    padding: var(--space-4);
    background: #2a2a4a;
    border-radius: 12px;
}

.winner-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.winner-poster {
    width: 120px;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.3);
}

.winner-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.winner-title {
    font-size: 24px;
    font-weight: bold;
    color: #7C3AED;
}

.bracket-error {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 18px;
}

.bracket-info {
    background: #1a1a2e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    color: #ccc;
    text-align: center;
}

.bracket-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 24px;
}

/* === BRACKET BRANDING === */
.bracket-branding {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.bracket-brand-name {
    background: linear-gradient(135deg, var(--color-primary), #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.bracket-brand-tagline {
    color: white;
    font-size: 16px;
    opacity: 0.8;
    margin: 0;
}

/* === CROWD STATS MODAL === */
.crowd-stats-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.crowd-stats-modal.display-flex {
    display: flex;
}

.crowd-stats-content {
    background: #1a1a2e;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.crowd-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #333;
}

.crowd-stats-header h2 {
    color: white;
    margin: 0;
    font-size: 24px;
    text-align: center;
    flex: 1;
}

.crowd-stats-close {
    background: none;
    border: none;
    color: #999;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.crowd-stats-close:hover {
    background: #333;
    color: white;
}

.crowd-stats-container {
    flex: 1;
    padding: 20px 30px;
    overflow-y: auto;
}

.crowd-stats-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 40px;
}

.crowd-stats-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--space-4);
}

.crowd-movie-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crowd-movie-item {
    display: flex;
    align-items: center;
    background: #2a2a3e;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s ease;
}

.crowd-movie-item.user-picked {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(124, 58, 237, 0.1));
}

.crowd-movie-rank {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-primary);
    min-width: 30px;
    margin-right: 15px;
}

.crowd-movie-poster {
    width: 40px;
    aspect-ratio: 2 / 3; /* Modern responsive approach */
    border-radius: 4px;
    object-fit: cover;
    margin-right: 15px;
}

.crowd-movie-info {
    flex: 1;
    color: white;
}

.crowd-movie-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.crowd-percentage-bar {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}

.crowd-percentage-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary), #7C3AED);
    border-radius: 4px;
    transition: width 0.8s ease;
}

.crowd-percentage-text {
    font-size: 14px;
    color: #ccc;
}

.crowd-user-indicator {
    color: var(--color-primary);
    font-size: 18px;
    margin-left: 10px;
}

.crowd-stats-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-top: 1px solid #333;
}

.crowd-nav-left {
    display: flex;
    justify-content: flex-start;
    min-width: 150px;
}

.crowd-nav-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.crowd-nav-right {
    display: flex;
    justify-content: flex-end;
    min-width: 150px;
}

.my-bracket-button {
    background: #00D4FF;
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: all 0.2s ease;
}

.my-bracket-button:hover {
    background: #00BFEA;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.crowd-nav-button {
    background: linear-gradient(135deg, var(--color-primary), #7C3AED);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: center;
}

.crowd-nav-button:hover {
    background: linear-gradient(135deg, #7C3AED, #6D28D9);
    transform: translateY(-1px);
}

.crowd-nav-button:disabled {
    background: #444;
    cursor: not-allowed;
    transform: none;
}

.crowd-round-indicator {
    color: #ccc;
    font-size: 14px;
    text-align: center;
}



/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
    /* Top nav */
    .top-nav {
        height: 50px;
        padding: 0 15px;
    }

    .brand-name {
        font-size: 24px;
    }

    /* App nav mobile */
    .app-nav-container {
        padding: 12px 15px;
    }

    .app-logo {
        font-size: 20px;
    }

    .app-nav-menu {
        gap: 15px;
    }

    .app-nav-menu a {
        font-size: 12px;
        padding: 6px 10px;
    }

    .bracket-btn {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 36px;
        height: 28px;
    }

    .bracket-btn i {
        font-size: 14px;
    }

    .pair-skip-container {
        margin-top: var(--space-4);
        padding: 0 10px;
    }
    
    .pair-skip-button {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 180px;
        border-radius: 25px;
    }
    
    .skip-count {
        font-size: 11px;
    }
    
    .skip-status {
        padding: 6px 12px;
        margin-top: 8px;
    }
    
    .skip-text {
        font-size: 12px;
    }
    
    .skip-message {
        max-width: 95%;
        padding: 12px 20px;
        font-size: 14px;
    }


    .fallback-content h4 {
        font-size: 16px;
        max-width: 180px;
    }
    
    .mini-overview {
        font-size: 12px;
        max-width: 180px;
    }

    /* Mobile touch feedback */
    .content-poster:active {
        border-color: var(--color-accent) !important;
        transform: scale(1.02) !important;
        box-shadow: 0 15px 40px rgba(255, 0, 128, 0.4) !important;
    }

    /* Movie posters */
    .content-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 10;
        width: 100%;
        margin: 0 auto;
    }

    .content-poster {
        width: 100% !important;
        height: 380px !important;
        margin: 0 !important;
        max-width: none !important;
        display: flex;
        flex-direction: column;
        position: relative;
    }

    .content-poster img {
        height: 310px !important;
        width: 100%;
        object-fit: cover;
        display: block;
        margin-bottom: 0;
        background-color: #1a1a2e;
    }

    .content-info {
        bottom: 70px;
        padding: var(--space-3);
    }

    .content-info h3 {
        font-size: 14px;
        margin: 0 0 8px 0;
    }

    .content-info p {
        font-size: 12px;
        margin: 4px 0;
        line-height: 1.2;
    }

    .poster-fallback {
        height: 310px;
    }
    
    .fallback-content i {
        font-size: 48px;
    }
    
    .fallback-content h4 {
        font-size: 16px;
        max-width: 150px;
    }

    /* Winner display */
    #winner-display .winner-poster {
        height: 380px !important;
        width: 100% !important;
        max-width: 210px !important;
        margin: 0 auto;
        position: relative;
    }

    #winner-display .winner-poster img {
        height: 310px !important;
        width: 100%;
        object-fit: contain;
        background-color: #1a1a2e;
    }

    .winner-actions {
        flex-direction: column;
        gap: 10px;
    }

    /* Progress indicators */
    .round-indicators {
        max-width: 150px;
    }

    .round-dot {
        width: 15px;
        height: 15px;
    }

    #progress-bar {
        height: 20px;
        margin: 15px auto;
    }

    #progress-text {
        font-size: 14px;
    }
    
    /* Share modal mobile adjustments */
    .share-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .share-options-content {
        padding: var(--space-4);
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 20px;
    }
    
    /* Share modal adjustments for very small screens */
    .share-buttons {
        grid-template-columns: 1fr !important;
    }
    
    .share-options-content {
        padding: 15px !important;
        max-width: 95% !important;
    }



    .content-poster {
        height: 280px;
    }

    .content-poster img {
        height: 220px;
    }



    #tmdb-attribution {
        bottom: 5px;
        left: 5px;
    }

    #tmdb-attribution p {
        font-size: 8px;
    }

    .tmdb-logo {
        height: 12px;
    }
}

@media (max-width: 430px) {
    .content-poster {
        height: 340px !important;
        max-width: 200px !important;
    }
    .content-poster img {
        height: 270px !important;
    }
}
/* === FIX FOR VERY SMALL SCREENS (iPhone SE, etc.) === */
@media (max-width: 375px) {

    .content-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2);
        padding: 5px;
        width: 100%;
        margin: 0 auto;
    }

    .content-poster {
        width: 100% !important;
        height: 320px !important;
        margin: 0 !important;
        max-width: none !important;
        min-width: 0; /* Prevent flex from making one larger */
    }

    .content-poster img {
        height: 250px !important;
        width: 100%;
        object-fit: cover;
    }
    
    .poster-fallback {
        height: 250px !important;
    }
    
    .fallback-content h4 {
        font-size: 14px;
        max-width: 140px;
    }
    
    .mini-overview {
        font-size: 11px;
        max-width: 140px;
    }
}

/* Touch optimizations */
@media (hover: none) {
    .content-poster:hover,
    #restart-button:hover,
    #view-stats-button:hover {
        transform: none;
        background: initial;
        border-color: initial;
        box-shadow: initial;
    }
    
    .trailer-button:hover {
        background: initial;
    }
    .pair-skip-button {
        padding: 10px 16px;
        font-size: 13px;
        min-width: 160px;
    }
    
    .pair-skip-button i {
        font-size: 12px;
    }
    
    .skip-count {
        font-size: 10px;
    }
}

/* Additional utilities */
button {
    -webkit-tap-highlight-color: transparent;
}

/* === ENHANCED WINNER SCREEN STYLES === */

.tournament-insights {
    width: 100%;
    max-width: 700px;
    margin: 25px auto;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    animation: slideInUp 0.6s ease 0.5s both;
}

.insights-content h3 {
    color: var(--color-secondary);
    text-align: center;
    margin: 0 0 25px 0;
    font-size: 24px;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.insight-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: var(--space-4);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insight-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

.insight-card:hover::before {
    opacity: 1;
}

.insight-icon {
    font-size: 32px;
    min-width: 50px;
    text-align: center;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.insight-content {
    flex: 1;
}

.insight-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 5px;
    line-height: 1.3;
}

.insight-subtext {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    line-height: 1.3;
}

@keyframes achievementPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Enhanced Share Button */
/* Removed old share button styles - now uses .action-button classes */

/* Loading State for Insights */
.loading-insights {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

.loading-insights .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--color-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--space-4);
}

.loading-insights p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 16px;
    text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .tournament-insights {
        margin: 20px 10px;
        padding: var(--space-4);
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .insight-card {
        padding: var(--space-4);
        gap: 12px;
    }
    
    .insight-icon {
        font-size: 28px;
        min-width: 40px;
    }
    
    .insight-text {
        font-size: 16px;
    }
    
    .insight-subtext {
        font-size: 13px;
    }
    
    .insights-content h3 {
        font-size: 20px;
        margin-bottom: var(--space-4);
    }
    
    .achievement-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .insights-grid {
        gap: 10px;
    }
    
    .insight-card {
        padding: 12px;
        gap: 10px;
    }
    
    .insight-icon {
        font-size: 24px;
        min-width: 35px;
    }
    
    .insight-text {
        font-size: 15px;
    }
    
    .insight-subtext {
        font-size: 12px;
    }
}

/* Animation for insights appearance */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === SIDE-BY-SIDE WINNER LAYOUT === */

/* Update tournament insights for side layout */
.winner-left .tournament-insights {
    margin: 0;
    padding: var(--space-4);
    max-width: none;
}

.winner-left .insights-grid {
    grid-template-columns: 1fr;
    gap: 12px;
}

.winner-left .insight-card {
    padding: var(--space-4);
    gap: 12px;
}

.winner-left .insight-icon {
    font-size: 24px;
    min-width: 35px;
}

.winner-left .insight-text {
    font-size: 16px;
}

.winner-left .insights-content h3 {
    font-size: 20px;
    margin-bottom: var(--space-4);
}

/* Ensure winner poster maintains good size */
.winner-right .winner-poster {
    width: 100%;
    max-width: 320px;
}

/* Mobile: Stack vertically */
@media (max-width: 768px) {
    .winner-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .winner-left,
    .winner-right {
        flex: none;
        width: 100%;
    }
    
    .winner-left .tournament-insights {
        padding: var(--space-4);
    }
    
    .winner-left .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .winner-right {
        justify-content: center;
    }
    
    .winner-right .winner-poster {
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .winner-layout {
        gap: 15px;
    }
    
    .winner-left .tournament-insights {
        padding: 12px;
    }
    
    .winner-right .winner-poster {
        max-width: 250px;
    }
}

/* === STREAMLINED WINNER SCREEN === */

/* Update the main layout for 2-section design: Poster left, Actions right */
.winner-layout {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    align-items: flex-start;
}

.winner-left {
    flex: 0 0 350px;
    display: flex;
    justify-content: center;
}

.winner-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* === STREAMING BUTTONS (Replace info/trailer) === */
.watch-now-button {
    position: absolute;
    left: 0;
    width: 100%;
    padding: 12px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.primary-watch {
    bottom: 37px;
    background: linear-gradient(135deg, var(--color-secondary), #0099cc);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.primary-watch:hover {
    background: linear-gradient(135deg, #00b8e6, #007aa3);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.secondary-watch {
    bottom: 0;
    background: linear-gradient(135deg, var(--color-primary), #7C3AED);
    color: white;
    font-size: 13px;
}

.secondary-watch:hover {
    background: linear-gradient(135deg, #7C3AED, #6D28D9);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* === WHERE TO WATCH SECTION === */
.where-to-watch {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: var(--space-4);
}

.where-to-watch h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.streaming-providers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.provider-badge {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

.provider-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.provider-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.provider-attribution {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.provider-attribution a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.provider-attribution a:hover {
    color: var(--color-secondary);
}

/* === STREAMLINED INSIGHTS === */
.winner-left .tournament-insights {
    margin: 0;
    padding: var(--space-4);
    max-width: none;
}

.insights-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.insight-card.streamlined {
    padding: var(--space-4);
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
}

.insight-card.streamlined .insight-icon {
    font-size: 24px;
    min-width: 35px;
}

.insight-card.streamlined .insight-text {
    font-size: 16px;
    font-weight: 600;
}

.insight-card.streamlined .insight-subtext {
    font-size: 13px;
    margin-top: 3px;
}

.insights-content h3 {
    font-size: 18px;
    margin-bottom: var(--space-4);
    text-align: center;
}

/* === ACHIEVEMENT BADGE === */
.achievement-earned {
    margin-top: var(--space-4);
    text-align: center;
}

.achievement-badge-large {
    background: linear-gradient(135deg, var(--color-success), var(--color-secondary));
    color: #000;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.4);
    animation: achievementPulse 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes achievementPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 255, 136, 0.4);
    }
    50% {
        box-shadow: 0 6px 25px rgba(0, 255, 136, 0.6);
        transform: scale(1.02);
    }
}

/* === ACTION BUTTONS (Right Side) === */
.winner-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 200px;
}

/* Winner screen action buttons - color coded by type */
.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem 1.25rem; /* var(--space-4) */
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem; /* 15px */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 50px;
    color: white;
}

.action-button i {
    font-size: 16px;
}

/* Play Again - Purple (brand color) */
.primary-action {
    background: #8B5CF6;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.primary-action:hover {
    background: #7C3AED;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

/* View Stats - Cyan (data/analytics) */
.secondary-action {
    background: #00D4FF;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.secondary-action:hover {
    background: #00BFEA;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 212, 255, 0.4);
}

/* Share Results - Muted Green/Teal (social/sharing) */
.tertiary-action {
    background: #10B981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.tertiary-action:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* Tournament Results - Orange (achievements/results) */
.quaternary-action {
    background: #FF8C42;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
}

.quaternary-action:hover {
    background: #FF7A29;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 140, 66, 0.4);
}

/* What Other Players Did - Pink (community stats) */
.quinary-action {
    background: #EC4899;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.quinary-action:hover {
    background: #DB2777;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(236, 72, 153, 0.4);
}

/* === MOBILE RESPONSIVENESS === */
@media (max-width: 768px) {
    .winner-layout {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .winner-left,
    .winner-center,
    .winner-right {
        flex: none;
        width: 100%;
        max-width: 350px;
    }
    
    .winner-actions {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        max-width: none;
        gap: 10px;
    }
    
    .action-button {
        flex: 1;
        min-width: 140px;
        max-width: 160px;
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .action-button span {
        font-size: 12px;
    }
    
    .action-button i {
        font-size: 14px;
    }
    
    .winner-center .winner-poster {
        max-width: 280px;
    }
    
    .insights-content h3 {
        font-size: 16px;
    }
    
    .insight-card.streamlined .insight-text {
        font-size: 15px;
    }
    
    .insight-card.streamlined .insight-subtext {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .winner-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .action-button {
        max-width: 200px;
        width: 100%;
    }
    
    .winner-center .winner-poster {
        max-width: 250px;
    }
    
    .watch-now-button {
        font-size: 13px;
        padding: var(--space-3);
    }
    
    .secondary-watch {
        font-size: 11px;
    }
}

/* ===== LEADERBOARD STYLES ===== */

.leaderboard-container {
    max-width: 1600px; /* Wider for modern displays */
    margin: 0 auto;
    padding: 120px 16px 32px; /* Reduced padding: 140px→120px top, 20px→16px sides, 40px→32px bottom */
    min-height: 100vh;
}

.leaderboard-header {
    text-align: center;
    margin-bottom: 24px; /* Reduced from 40px */
}

.leaderboard-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    margin-bottom: var(--space-4);
}

.leaderboard-header p {
    font-size: var(--text-md); /* 17px - Emphasized body */
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.leaderboard-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px; /* Reduced from 20px */
    align-items: center;
    justify-content: center;
    padding: 20px; /* Reduced from 25px */
    background: rgba(255, 255, 255, 0.03); /* More subtle */
    border-radius: 12px; /* Reduced from 15px */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08); /* More subtle */
    margin-bottom: 24px; /* Reduced from var(--space-8) which was 32px */
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 150px;
}

.filter-section label {
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-primary);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.filter-select:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

/* Updated to solid purple button */
.refresh-btn {
    padding: 0.75rem 1.25rem; /* var(--space-3) */
    background: #8B5CF6;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.refresh-btn:hover {
    background: #7C3AED;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.loading-state, .error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 212, 255, 0.2);
    border-top-color: var(--color-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--space-4);
}

.error-state i {
    font-size: 3rem;
    color: #ff4757;
    margin-bottom: var(--space-4);
}

.retry-btn {
    margin-top: var(--space-4);
    padding: 12px 24px;
    background: var(--color-primary);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.leaderboard-content {
    animation: fadeIn 0.5s ease-in-out;
}

.leaderboard-info {
    text-align: center;
    margin-bottom: 40px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.leaderboard-info h2 {
    font-size: 2.2rem;
    margin-bottom: var(--space-3);
    color: var(--color-secondary);
}

.leaderboard-info p {
    font-size: 1.1rem;
    color: #b8b8b8;
    margin-bottom: var(--space-3);
}

.leaderboard-meta {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--color-primary);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Reduced from 15px - tighter list spacing */
    margin-bottom: 32px; /* Reduced from 50px */
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 16px; /* Reduced from 20px */
    padding: 16px; /* More explicit than var(--space-4) */
    background: rgba(255, 255, 255, 0.03); /* More subtle background */
    border-radius: 12px; /* Reduced from 15px */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08); /* More subtle border */
    transition: all 0.2s ease; /* Faster transition */
    position: relative;
    overflow: hidden;
}

.ranking-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 212, 255, 0.3);
}

.ranking-item:nth-child(1) {
    border-color: rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.ranking-item:nth-child(2) {
    border-color: rgba(192, 192, 192, 0.5);
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.ranking-item:nth-child(3) {
    border-color: rgba(205, 127, 50, 0.5);
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.rank-number {
    font-size: var(--text-xl); /* 24px */
    font-weight: 800;
    color: var(--color-secondary);
    min-width: 45px;
    text-align: center;
}

.ranking-item .movie-poster {
    flex-shrink: 0;
    width: 100px; /* Reduced from 115px - tighter layout */
    display: flex;
    align-items: center;
}

.ranking-item .movie-poster img {
    width: 100px; /* Reduced from 115px */
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(139, 92, 246, 0.2); /* More subtle */
    transition: all 0.2s ease; /* Faster */
}

.ranking-item:hover .movie-poster img {
    border-color: var(--color-secondary);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.movie-info {
    flex: 1;
    min-width: 0;
}

.movie-title {
    font-size: var(--text-lg); /* 18px */
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-1); /* 4px */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-meta {
    display: flex;
    gap: var(--space-3); /* 12px */
    color: var(--text-muted);
    font-size: var(--text-sm); /* 14px */
}

.movie-year, .movie-rating {
    display: flex;
    align-items: center;
}

.metric-value {
    text-align: center;
    flex-shrink: 0;
    min-width: 100px; /* Reduced from 120px */
}

.primary-metric {
    display: block;
    font-size: var(--text-2xl); /* 32px */
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1;
}

.metric-label {
    display: block;
    font-size: var(--text-xs); /* 12px */
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.secondary-metric {
    display: block;
    font-size: var(--text-sm); /* 14px */
    color: var(--text-muted);
    margin-top: var(--space-1); /* 4px */
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #b8b8b8;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: var(--space-4);
    color: var(--color-primary);
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-3);
    color: white;
}

/* Tournament Stats Section */
.tournament-stats-section {
    margin-top: 50px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.tournament-stats-section h3 {
    color: var(--color-secondary);
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.tournament-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.tournament-stat-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: var(--space-4);
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
}

.tournament-stat-card:hover {
    border-color: var(--color-secondary);
    transform: translateY(-2px);
}

.stat-header {
    margin-bottom: var(--space-4);
}

.stat-header h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.tournament-type {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--color-primary);
}

.stat-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #b8b8b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .leaderboard-container {
        padding: 120px 15px 30px;
    }
    
    .leaderboard-header h1 {
        font-size: 2.2rem;
    }
    
    .leaderboard-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-section {
        width: 100%;
        max-width: 280px;
    }
    
    .refresh-btn {
        width: 100%;
        max-width: 280px;
        align-self: center;
    }
    
    .ranking-item {
        gap: 15px;
        padding: var(--space-4);
    }
    
    .rank-number {
        min-width: 40px;
        font-size: 1.2rem;
    }
    
    .movie-poster img {
        width: 50px;
        /* aspect-ratio inherited from base style */
    }
    
    .movie-title {
        font-size: 1.1rem;
    }
    
    .metric-value {
        min-width: 100px;
    }
    
    .primary-metric {
        font-size: 1.5rem;
    }
    
    .tournament-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-metrics {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: var(--space-2) var(--space-4);
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Focus indicators */
*:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}


/* Keyboard Help Overlay */
.keyboard-help-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.keyboard-help-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1a2a 100%);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
}

.keyboard-help-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.keyboard-help-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
}

.keyboard-help-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
}

.keyboard-help-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.keyboard-help-body {
    padding: 1.5rem;
}

.shortcut-section {
    margin-bottom: 2rem;
}

.shortcut-section:last-child {
    margin-bottom: 0;
}

.shortcut-section h3 {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.shortcut-item kbd {
    background: var(--gradient-purple);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    min-width: 50px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.shortcut-item span {
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
}

.keyboard-help-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    text-align: center;
}

.keyboard-help-footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.keyboard-help-footer kbd {
    background: rgba(139, 92, 246, 0.3);
    color: var(--color-primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

/* Keyboard hint badge */
.keyboard-hint {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--gradient-purple);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.2s;
}

.keyboard-hint:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.6);
}

.keyboard-hint kbd {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    margin: 0 0.2rem;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(22, 33, 62, 0.98) 100%);
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 -4px 20px rgba(255, 107, 107, 0.3);
    padding: 1.5rem 2rem;
    z-index: 9999;
    animation: slideUpCookie 0.5s ease-out;
}

@keyframes slideUpCookie {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-hidden {
    animation: slideDownCookie 0.5s ease-out;
}

@keyframes slideDownCookie {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text p {
    margin: 0;
    line-height: 1.6;
    color: var(--color-white);
}

.cookie-consent-text strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.cookie-consent-text a {
    color: var(--primary-color);
    text-decoration: underline;
    margin-left: 0.5rem;
}

.cookie-consent-text a:hover {
    color: #ff8888;
}

.cookie-consent-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn.accept {
    background: linear-gradient(135deg, var(--primary-color), #cc4444);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.cookie-btn.accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.cookie-btn.essential {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn.essential:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 1rem;
    }

    .cookie-consent-content {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-consent-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }
}

/* Footer styles for legal links */
.legal-footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
}

.legal-footer a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.9rem;
}

.legal-footer a:hover {
    text-decoration: underline;
    color: #ff8888;
}

/* Auto-hiding navbar */
.landing-header {
    transition: transform 0.3s ease-in-out;
}

.landing-header.nav-hidden {
    transform: translateY(-100%);
}

/* ========================================
   MODERN RESPONSIVE UTILITIES & CLEANUP
   ======================================== */

/* Fluid Typography - Auto-scales smoothly */
.text-fluid-sm { font-size: clamp(0.875rem, 2vw, 1rem); }
.text-fluid-base { font-size: clamp(1rem, 2.5vw, 1.125rem); }
.text-fluid-lg { font-size: clamp(1.125rem, 3vw, 1.5rem); }
.text-fluid-xl { font-size: clamp(1.5rem, 4vw, 2rem); }
.text-fluid-2xl { font-size: clamp(2rem, 5vw, 3rem); }
.text-fluid-3xl { font-size: clamp(2.5rem, 6vw, 4rem); }

/* Fluid Spacing - Responsive padding/margin */
.p-fluid-sm { padding: clamp(0.5rem, 2vw, 1rem); }
.p-fluid-md { padding: clamp(1rem, 3vw, 1.5rem); }
.p-fluid-lg { padding: clamp(1.5rem, 4vw, 2.5rem); }
.px-fluid-sm { padding-left: clamp(0.5rem, 2vw, 1rem); padding-right: clamp(0.5rem, 2vw, 1rem); }
.px-fluid-md { padding-left: clamp(1rem, 3vw, 1.5rem); padding-right: clamp(1rem, 3vw, 1.5rem); }
.py-fluid-sm { padding-top: clamp(0.5rem, 2vw, 1rem); padding-bottom: clamp(0.5rem, 2vw, 1rem); }
.py-fluid-md { padding-top: clamp(1rem, 3vw, 1.5rem); padding-bottom: clamp(1rem, 3vw, 1.5rem); }

.m-fluid-sm { margin: clamp(0.5rem, 2vw, 1rem); }
.m-fluid-md { margin: clamp(1rem, 3vw, 1.5rem); }
.m-fluid-lg { margin: clamp(1.5rem, 4vw, 2.5rem); }

/* Common Utility Classes */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.flex-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Gradient Text Utility */
.text-gradient {
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-pink {
    background: var(--gradient-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gradient Backgrounds */
.bg-gradient-pink { background: var(--gradient-pink); }
.bg-gradient-blue { background: var(--gradient-blue); }
.bg-gradient-purple { background: var(--gradient-purple); }
.bg-gradient-main { background: var(--gradient-main); }

/* Responsive Grid - No media queries needed! */
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(1rem, 3vw, 2rem);
}

.grid-auto-fill {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
    gap: clamp(0.5rem, 2vw, 1rem);
}

/* Common Button Styles */
.btn-neon {
    background: var(--gradient-pink);
    color: var(--color-white);
    border: none;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-xl);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-neon:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 128, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Container Utilities */
.container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

/* Neon Glow Effects */
.glow-primary {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.glow-secondary {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.glow-accent {
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.5);
}

/* Card Utilities */
.card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Additional text alignment utility (used in footer layouts) */
.text-left { text-align: left !important; }


/* === LEGAL PAGES (Privacy, Terms) === */
.legal-container {
    max-width: 900px;
    margin: var(--space-8) auto;
    padding: var(--space-8);
    background: var(--overlay-light);
    border-radius: var(--radius-md);
}

.legal-container h1 {
    color: var(--color-primary);
    margin-bottom: var(--space-2);
}

.legal-container .last-updated {
    color: var(--text-lighter);
    font-size: var(--text-sm);
    margin-bottom: var(--space-8);
}

.legal-container h2 {
    color: var(--color-primary);
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
    font-size: var(--text-xl);
}

.legal-container h3 {
    color: var(--text-primary);
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
    font-size: var(--text-lg);
}

.legal-container p,
.legal-container li {
    line-height: 1.8;
    margin-bottom: var(--space-4);
}

.legal-container ul {
    margin-left: var(--space-8);
    margin-bottom: var(--space-4);
}

.legal-container a {
    color: var(--color-primary);
    text-decoration: none;
}

.legal-container a:hover {
    text-decoration: underline;
}

.legal-container strong {
    color: var(--text-primary);
}

.back-link {
    display: inline-block;
    margin-bottom: var(--space-4);
    color: var(--color-primary);
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.highlight-box {
    background: rgba(255, 107, 107, 0.1);
    border-left: 4px solid var(--color-primary);
    padding: var(--space-4);
    margin: var(--space-4) 0;
}

.warning-box {
    background: rgba(255, 107, 107, 0.15);
    border-left: 4px solid var(--color-danger);
    padding: var(--space-4);
    margin: var(--space-4) 0;
}

.caps-warning {
    text-transform: uppercase;
    font-weight: var(--font-bold);
    color: var(--color-danger);
    letter-spacing: 0.05em;
}

/* ==========================================
   LANDING PAGE STYLES
   Extracted from landing.html
   ========================================== */

/* Landing Page Specific Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

h1, h2, h3, h4, h5, h6, .logo, .section-title, .cta-btn {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.landing-header {
    background: var(--bg-secondary); /* Solid background */
    border-bottom: 1px solid var(--overlay-lighter);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 2rem; /* var(--space-8) */
    height: 56px;
    display: flex;
    align-items: center;
}

/* Mobile Navigation */
.mobile-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.nav-dropdown {
    position: relative;
    flex: 0 0 auto; /* Left side */
}

.mobile-nav .logo {
    flex: 1; /* Center */
    text-align: center;
}

.mobile-nav .account-menu {
    flex: 0 0 auto; /* Right side */
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    height: 100%;
}

.desktop-nav .logo {
    margin-right: 3rem; /* var(--space-12) */
}

.desktop-menu {
    display: flex;
    gap: 2rem; /* var(--space-8) = 32px */
    flex: 1;
}

.desktop-menu a {
    color: white;
    text-decoration: none;
    font-size: 1rem; /* var(--text-base) = 16px - standard for navigation */
    font-weight: 500; /* var(--font-medium) */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.desktop-menu a:hover {
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none;
    }
    
    .desktop-nav {
        display: flex;
    }
}

/* Dropdown menu styles matching styles.css */
.nav-dropdown-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem; /* var(--text-lg) */
    cursor: pointer;
    padding: 0.5rem; /* var(--space-2) */
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--overlay-lighter);
    border-radius: 8px;
    padding: 0.5rem 0; /* var(--space-2) */
    min-width: 180px;
    display: none;
    box-shadow: 0 4px 12px var(--overlay-dark);
}

.nav-dropdown-menu.show {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1rem; /* var(--space-3) var(--space-4) */
    transition: background 0.2s;
}

.nav-dropdown-menu a:hover {
    background: var(--overlay-lighter);
}

.logo {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.563rem; /* var(--text-xl) = 25px */
    font-weight: 700; /* var(--font-bold) */
    color: var(--color-primary);
    cursor: pointer;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.account-menu {
    position: relative;
}

.account-btn {
    background: none;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem; /* var(--text-base) = 16px */
    font-weight: 500; /* var(--font-medium) */
    transition: all 0.3s;
}

.account-btn:hover {
    background: var(--color-primary);
    color: white;
}

.hero-section {
    padding: 2rem; /* var(--space-8) */
    max-width: 1400px;
    margin: 0 auto;
    min-height: 600px;
}

.hero-container {
    display: flex;
    gap: 3rem; /* var(--space-12) = 48px */
    align-items: stretch;
    height: 100%;
}

.hero-left {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: var(--overlay-dark);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    text-align: center;
}

.hero-right {
    flex: 0 0 500px;
    display: flex;
    align-items: stretch;
}

.hero-background-top {
    position: absolute;
    top: 10%;
    left: 2rem;
    right: 2rem;
    height: 120px;
    z-index: 1;
    opacity: 0.4;
    filter: blur(2px);
    overflow: hidden;
    background-size: auto 100%;
    background-position: 0 center;
    background-repeat: repeat-x;
    animation: scrollPosters 200s linear infinite;
}

.hero-background-bottom {
    position: absolute;
    bottom: 10%;
    left: 2rem;
    right: 2rem;
    height: 120px;
    z-index: 1;
    opacity: 0.4;
    filter: blur(2px);
    overflow: hidden;
    background-size: auto 100%;
    background-position: 0 center;
    background-repeat: repeat-x;
    animation: scrollPosters 200s linear infinite;
}

/* Only load background images on desktop */
@media (min-width: 769px) {
    .hero-background-top {
        background-image: url('/assets/top-poster-strip-B4MHbYLt.png');
    }
    .hero-background-bottom {
        background-image: url('/assets/bottom-poster-strip-9iGuNxA-.png');
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: radial-gradient(ellipse at center, 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(0, 0, 0, 0.7) 100%);
}

@keyframes scrollPosters {
    0% { background-position: 0 center; }
    100% { background-position: -3000px center; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    white-space: nowrap;
}

.hero-title {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 2rem; /* 32px - Bold headline */
    color: white;
    line-height: 1.2;
    margin-bottom: 1rem; /* Reduced from 1.5rem */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
}

.hero-tagline {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.5rem; /* 24px - Supporting detail */
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin-bottom: 1.5rem; /* Reduced from 2rem */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    text-align: center;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem; /* Reduced from 1rem 2rem */
    font-size: 1.125rem; /* 18px */
    font-weight: 600;
    color: white;
    background: var(--color-primary); /* Solid purple */
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

.hero-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.6);
    background: var(--color-primary-hover); /* Darker purple on hover */
}

.cta-icon {
    font-size: 1rem;
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
    /* Hide poster animations on mobile for performance */
    .hero-background-top,
    .hero-background-bottom {
        display: none !important;
    }

    /* Fix the main hero section spacing */
    .hero-section {
        padding: 0.5rem 1rem !important; /* Much smaller padding */
        min-height: auto !important;
    }

    .hero-container {
        gap: 0.5rem !important; /* Very small gap between left and right */
    }

    .hero-left {
        padding: 0 !important; /* Remove all internal padding */
        min-height: auto !important;
        margin-bottom: 0 !important; /* Remove any bottom margin */
    }

    .hero-content {
        padding: 1rem 0.5rem 0.3rem !important; /* Reduced bottom padding */
        margin-bottom: 0 !important;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem; /* Reduced from 1.5rem */
    }

    .hero-title {
        font-size: 1.75rem; /* Smaller on mobile but still prominent */
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .hero-tagline {
        font-size: 1.125rem; /* 18px on mobile */
        margin-bottom: 1.5rem;
    }

    .hero-cta-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    /* Mini tournament adjustments */
    .mini-tournament {
        padding: 0.5rem 1rem 1rem; /* Reduced top padding even more */
        margin: 0 !important; /* No margins at all */
    }

    .hero-right {
        margin: 0 !important;
        padding: 0 !important;
    }

    .try-it-title {
        font-size: 1.563rem; /* var(--text-xl) = 25px on mobile */
        margin-bottom: 0.5rem;
    }

    /* Make section titles same size as try-it-title */
    .section-title {
        font-size: 1.563rem !important; /* var(--text-xl) = 25px on mobile */
    }

    /* VS divider smaller and reduce spacing between posters */
    .vs-divider {
        font-size: 1rem; /* var(--text-base) = 16px - ON SCALE */
        margin: 0; /* No margin at all around VS */
        padding: 0 0.2rem; /* Tiny padding just for the VS text */
        width: auto;
        flex-shrink: 0;
    }

    .tournament-matchup {
        gap: 0; /* No gap at all between flex items */
        padding: 0 1.5rem; /* More padding for edge protection */
        justify-content: center; /* Center the content */
        align-items: center;
        display: flex;
        width: 100%;
        box-sizing: border-box;
    }

    .movie-poster-large {
        width: 140px; /* Restore original size */
        height: 210px; /* Restore original size */
        flex-shrink: 0; /* Prevent shrinking */
    }
}

/* iPhone 12 Pro and similar (390px width) */
@media (max-width: 390px) {
    .tournament-matchup {
        padding: 0 2.5rem !important; /* More padding for edge protection */
        gap: 0 !important;
    }
    .movie-poster-large {
        width: 140px !important;
        height: 210px !important;
    }
    .vs-divider {
        font-size: 0.875rem !important; /* var(--text-sm) = 14px - ON SCALE */
        padding: 0 0.3rem !important; /* Small padding for VS visibility */
        margin: 0 !important; /* No margins */
    }
    .movie-option {
        margin: 0 !important; /* Remove any margins */
    }
}

/* Smaller mobile phones (iPhone SE, etc.) */
@media (max-width: 375px) {
    .tournament-matchup {
        padding: 0 2rem !important; /* Even more padding for small screens */
    }

    .movie-poster-large {
        width: 120px !important; /* Smaller posters for very small screens */
        height: 180px !important;
    }

    .vs-divider {
        font-size: 0.75rem !important; /* var(--text-xs) = 12px - ON SCALE */
        padding: 0 0.15rem !important;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .tournament-matchup {
        padding: 0 1rem !important;
    }

    .movie-poster-large {
        width: 100px !important;
        height: 150px !important;
    }

    .vs-divider {
        font-size: 0.75rem !important; /* var(--text-xs) = 12px - ON SCALE */
        padding: 0 0.1rem !important;
    }

    .movie-option {
        flex-shrink: 0; /* Prevent the option containers from shrinking */
        display: flex;
        justify-content: center;
        margin: 0; /* Remove any default margins */
    }

    /* Simplified mobile hero without heavy animations */
    .hero-overlay {
        background: linear-gradient(to bottom, 
            rgba(0, 0, 0, 0.5) 0%, 
            rgba(0, 0, 0, 0.8) 100%);
    }

    /* Force minimal spacing on mobile - highest specificity */
    .landing-header {
        padding: 0 1rem !important;
    }

    .mobile-nav {
        padding: 0.3rem 0 !important;
    }

    .hero-section {
        padding: 0.3rem 0.5rem 0.5rem !important;
        margin-top: -0.5rem !important; /* Pull up closer to header */
    }
}

/* Mini Tournament Styles */
.try-it-title {
    font-size: 1.953rem; /* var(--text-2xl) = 31px */
    font-weight: 700; /* var(--font-bold) */
    text-align: center;
    margin-bottom: 0.5rem;
    color: white;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

.mini-tournament {
    padding: 2rem; /* var(--space-8) */
    width: 100%;
    height: 100%;
    min-height: 500px;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}

.tournament-round-indicator {
    text-align: center;
    margin-bottom: 2rem;
}

#mini-round-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem; /* var(--text-lg) = 20px */
    font-weight: 600; /* var(--font-semibold) */
    display: block;
    margin-bottom: 0.5rem;
}

.tournament-matchup {
    display: flex;
    gap: 1rem; /* var(--space-4) = 16px - ON SCALE */
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.movie-option {
    flex: 1;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.movie-option:hover .movie-poster-large {
    transform: scale(1.05);
    border-color: var(--color-accent);
    box-shadow: 0 0 20px var(--primary-alpha-40);
}

.movie-option.selected .movie-poster-large {
    transform: scale(1.08);
    border-color: var(--color-accent);
    box-shadow: 0 0 25px var(--primary-alpha-40);
}

.movie-option.eliminated {
    opacity: 0.3;
    transform: scale(0.95);
    pointer-events: none;
}

.movie-poster-large {
    width: 189px;
    height: 284px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--border-primary);
    border: 2px solid var(--color-secondary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.vs-divider {
    font-size: 1.25rem; /* var(--text-lg) = 20px */
    font-weight: 700; /* var(--font-bold) */
    color: var(--color-primary);
    flex-shrink: 0;
}

.tournament-progress {
    text-align: center;
}

.progress-bar-mini {
    width: 100%;
    height: 8px;
    background: var(--overlay-lighter);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-pink));
    transition: width 0.3s ease;
}

.progress-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem; /* var(--text-sm) = 14px */
    font-weight: 400; /* var(--font-normal) */
}

.winner-display-mini {
    text-align: center;
    padding: 0 2rem;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
}

.winner-display-mini h2 {
    font-size: 1.953rem; /* var(--text-2xl) = 31px */
    font-weight: 700; /* var(--font-bold) */
    text-align: center;
    margin-bottom: 0.5rem;
    color: white;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

.winner-poster {
    width: 189px;
    height: 284px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto 0.8rem;
    display: block;
    border: 2px solid var(--color-secondary);
    box-shadow: 0 8px 30px var(--primary-alpha-40);
}

.winner-copy {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem; /* var(--text-lg) = 20px */
    font-weight: 500; /* var(--font-medium) */
    line-height: 1.4;
    margin-bottom: 0.8rem;
    text-align: center;
}

.winner-buttons {
    display: flex;
    gap: 1.5rem; /* var(--space-6) = 24px */
    justify-content: center;
    width: 100%;
    margin-top: 0.2rem;
}

.winner-option {
    text-align: center;
    flex: 1;
    max-width: 180px;
}

/* Use new button system - Winner selection buttons */
.winner-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem; /* var(--space-3) var(--space-6) */
    border-radius: 8px;
    font-size: 1rem; /* var(--text-base) = 16px */
    font-weight: 600; /* var(--font-semibold) */
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-bottom: 0.5rem; /* var(--space-2) */
}

.winner-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
}

.winner-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem; /* var(--text-sm) = 14px */
    font-weight: 400; /* var(--font-normal) */
    line-height: 1.3;
    margin: 0;
}

.section {
    padding: 2rem 1rem; /* Increased horizontal padding for better content alignment */
    max-width: 1250px; /* Balanced width */
    margin: 0 auto;
}

/* Reduce spacing between hero and first section */
.section.tournament-section {
    padding-top: 0.5rem;
}

.how-it-works-section {
    padding: 2rem 1rem; /* Reduced from 3rem/2rem - match tighter spacing */
    max-width: 1250px; /* Balanced width */
    margin: 0 auto;
}

.section-title {
    font-size: 1.953rem; /* var(--text-2xl) = 31px */
    font-weight: 700; /* var(--font-bold) */
    text-align: left;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    padding-left: 8px; /* Align with movie poster grid padding */
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.discovery-section, .tournament-section {
    /* Removed background/border-radius - let content breathe without containers */
    margin-bottom: 2rem; /* Reduced from 3rem for tighter spacing */
}

/* Tournament title and description - left aligned */
#current-tournament-name {
    text-align: left;
    padding-left: 8px; /* Align with movie poster grid padding */
}

#current-tournament-desc {
    text-align: left;
    padding-left: 8px; /* Align with movie poster grid padding */
}

/* Removed duplicate - primary definition is in TOURNAMENTS PAGE STYLES section */

.how-it-works {
    overflow-x: auto;
    padding: 1rem 0 2rem 0;
}

.how-it-works-container {
    display: flex;
    gap: 2rem; /* var(--space-8) = 32px */
    min-width: 800px;
}

.step {
    flex: 1;
    text-align: left;
    padding: 2rem; /* var(--space-8) */
    background: var(--overlay-light);
    border-radius: 15px;
}

.step h3 {
    font-size: 1.25rem; /* var(--text-lg) = 20px */
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

.step p {
    font-size: 1rem; /* var(--text-base) = 16px */
    line-height: 1.6;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 1.5rem;
    font-weight: bold;
}

.cta-section {
    background: linear-gradient(135deg, var(--color-primary), var(--color-pink));
    text-align: center;
    padding: 2rem 2rem; /* var(--space-8) - ON SCALE (was 2.5rem) */
    border-radius: 20px;
    margin: 0; /* Remove extra margin - sections have their own padding */
}

/* Use new button system - Primary CTA */
.cta-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 1rem 2rem; /* var(--space-4) var(--space-8) */
    border-radius: 8px;
    font-size: 1rem; /* var(--text-base) = 16px */
    font-weight: 600; /* var(--font-semibold) */
    cursor: pointer;
    transition: all 0.2s ease;
}

.cta-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--primary-alpha-30);
}

.movies-section {
    margin: 1.5rem 0; /* var(--space-6) */
}

.movies-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem; /* var(--space-12) = 48px */
}

.tournaments-section {
    margin: 1.5rem 0; /* var(--space-6) */
}

.tournaments-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem; /* var(--space-8) = 32px */
}

.single-column {
    max-width: 600px;
    width: 100%;
}

.top-10-list {
    background: var(--overlay-light);
    border-radius: 15px;
    padding: 1rem; /* var(--space-4) = 16px - reduced from 1.5rem */
}

.top-10-item {
    display: flex;
    align-items: center;
    padding: 0.5rem; /* var(--space-2) = 8px - compact, just bigger than poster */
    border-bottom: 1px solid var(--overlay-lighter);
    transition: background 0.2s;
    border-radius: 4px;
    gap: 0.75rem; /* var(--space-3) = 12px - spacing between elements */
}

.top-10-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.rank {
    font-size: 1.563rem; /* var(--text-xl) = 25px - ON SCALE */
    font-weight: 700; /* var(--font-bold) */
    color: var(--color-primary);
    min-width: 30px;
    flex-shrink: 0;
}

.movie-poster-small {
    width: 70px;  /* Increased from 58px */
    aspect-ratio: 2 / 3; /* Modern responsive approach - no fixed height needed */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 4px;
    background-color: var(--border-primary);
    flex-shrink: 0;
    border: 2px solid var(--overlay-lighter);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.movie-poster-small:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

/* Add info overlay to top 10 movie posters */
.top-10-item {
    position: relative;
}

.movie-poster-small::before {
    content: attr(data-rating);
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: #FFD700;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-poster-small:hover::before {
    opacity: 1;
}

.movie-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.movie-title {
    font-weight: 600; /* var(--font-semibold) - more prominent */
    color: white;
    font-size: 1.25rem; /* var(--text-lg) = 20px - ON SCALE */
}

.tournament-name {
    font-weight: 600; /* var(--font-semibold) */
    color: white;
    font-size: 1.25rem; /* var(--text-lg) = 20px - ON SCALE */
}

.bingebracket-score {
    background: linear-gradient(135deg, var(--color-primary), var(--color-pink));
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.875rem; /* var(--text-sm) = 14px */
    font-weight: 600; /* var(--font-semibold) */
    min-width: 45px;
    text-align: center;
}

.stories-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; /* var(--space-8) = 32px */
    margin: 3rem 0; /* var(--space-12) */
}

.story-card {
    background: var(--overlay-light);
    border-radius: 15px;
    padding: 2rem; /* var(--space-8) */
    transition: transform 0.2s;
}

.story-card:hover {
    transform: translateY(-5px);
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        gap: 0.5rem !important; /* Much smaller gap for tablets/mobile */
    }
    
    .hero-left {
        width: 100%;
        min-height: 300px; /* Reduced height */
        margin-bottom: 0 !important;
    }
    
    .hero-right {
        flex: 1;
        width: 100%;
        min-height: 400px; /* Reduced height */
        margin-top: 0 !important;
    }
    
    .hero-content {
        padding: 2rem; /* var(--space-8) */
    }
}

@media (max-width: 768px) {
    /* Override with even tighter spacing */
    .hero-section {
        padding: 0.5rem 1rem !important;
    }

    .hero-title {
        font-size: 1.5rem !important;
    }

    .hero-tagline {
        font-size: 1rem !important;
    }

    .hero-cta-btn {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.9375rem !important;
    }
    
    .mini-tournament {
        padding: 1rem !important; /* Match our optimization */
    }
    
    .movie-poster-large {
        width: 152px;
        height: 228px;
        border-width: 2px;
    }
    
    .winner-poster {
        width: 152px;
        height: 228px;
    }
    
    .tournament-matchup {
        gap: 0.8rem;
    }
    
    #mini-round-text {
        font-size: 1.25rem; /* var(--text-lg) = 20px - ON SCALE */
    }
    
    .try-it-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .winner-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .winner-copy {
        font-size: 1rem; /* var(--text-base) = 16px - ON SCALE */
    }

    .winner-btn {
        padding: 0.7rem 1.2rem;
        font-size: 1rem; /* var(--text-base) = 16px - ON SCALE */
    }

    .winner-description {
        font-size: 0.875rem; /* var(--text-sm) = 14px - ON SCALE */
    }
    
    .tournaments-grid {
        grid-template-columns: 1fr;
        gap: 2rem; /* var(--space-8) = 32px */
    }
    
    .movies-grid {
        grid-template-columns: 1fr;
        gap: 2rem; /* var(--space-8) = 32px */
    }
}

/* Additional utility classes for landing page inline styles */
.cta-section-title {
    margin-bottom: 1rem;
}

.cta-section-text {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.tournament-list-title {
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.story-card-title {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.story-card-text {
    color: var(--text-muted);
    margin-top: 1rem;
}

.legal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.tmdb-attribution {
    text-align: left;
}

.tmdb-logo-container {
    margin-bottom: 0.25rem;
}

.tmdb-logo {
    height: 14px;
    opacity: 0.5;
    vertical-align: middle;
}

.tmdb-disclaimer {
    font-size: 0.75rem;
    color: var(--text-lighter);
}

/* ========================================== */
/* TOURNAMENTS PAGE STYLES */
/* ========================================== */

.tournaments-container {
    max-width: 1250px; /* Balanced width */
    margin: 0 auto;
    padding: 40px 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

/* Featured Tournament Section */
.featured-section {
    margin-bottom: 40px; /* Reduced from 60px for tighter spacing */
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

/* Featured section title - keep centered */
.featured-section-title {
    font-size: 1.953rem; /* var(--text-2xl) = 31px */
    font-weight: 700; /* var(--font-bold) */
    text-align: center;
    margin-bottom: 0.5rem;
    color: white;
}

.featured-tournament-name {
    font-size: var(--text-xl);
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.featured-tournament-desc {
    color: var(--text-muted);
    margin-bottom: 20px; /* Reduced from 30px */
    font-size: var(--text-base);
    text-align: center;
}

.tournament-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: visible; /* Allow posters to expand vertically on hover */
    gap: 8px; /* Reduced from 10px */
    margin: 1rem 0;
    padding: 8px 8px 0.5rem 8px; /* Extra padding on all sides for hover effects */
    justify-content: center;
    /* Hide scrollbar by default */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

/* Always hide scrollbar */
.tournament-grid::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.movie-poster {
    width: 135px; /* Increased from 115px */
    aspect-ratio: 2 / 3;
    background: var(--border-primary);
    border-radius: 8px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--overlay-lighter);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.movie-poster:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4),
                0 0 0 1px rgba(139, 92, 246, 0.2);
    filter: brightness(1.1);
}

/* Title overlay on hover */
.movie-poster::after {
    content: attr(data-title);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 8px 8px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 60%, transparent 100%);
    color: white;
    font-size: var(--text-xs);
    font-weight: 600;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    text-align: center;
}

.movie-poster:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Rating badge on hover (if data-rating attribute exists) */
.movie-poster[data-rating]::before {
    content: "★ " attr(data-rating);
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    color: #ffd700;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.movie-poster[data-rating]:hover::before {
    opacity: 1;
    transform: translateY(0);
}

/* Tournament action buttons - on landing page (side by side) */
.tournament-section .tournament-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.tournament-section .tournament-actions button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* Secondary solid button variant for results */
.cta-btn.secondary-solid {
    background: rgba(139, 92, 246, 0.15);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.cta-btn.secondary-solid:hover {
    background: var(--color-primary);
    color: white;
}

.featured-cta {
    margin-top: 20px; /* Reduced from 30px */
}

.cta-btn {
    background: var(--color-primary);
    color: var(--text-primary);
    padding: var(--space-4) var(--space-8);
    border: none;
    border-radius: 8px;
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    transition: var(--btn-transition);
    text-decoration: none;
    display: inline-block;
}

.cta-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--primary-alpha-30);
}

/* Tournament List Section */
.tournament-list-section {
    margin-top: 60px;
}

.tournament-list-title {
    font-size: 1.953rem; /* Match section-title size */
    font-weight: 700;
    color: white;
    text-align: left;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    padding-left: 8px; /* Align with content */
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.tournament-list {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Increased from 12px to provide space for hover effects and prevent border clipping */
}

.tournament-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.2); /* Purple border instead of white */
    border-radius: 12px;
    padding: 16px; /* Reduced from 20px to give more space and prevent border clipping */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: visible; /* Changed from hidden to visible so hover effects don't get clipped */
    animation: fadeInUp 0.5s ease-out backwards;
}

/* Staggered animation delay for each card */
.tournament-item:nth-child(1) { animation-delay: 0.1s; }
.tournament-item:nth-child(2) { animation-delay: 0.2s; }
.tournament-item:nth-child(3) { animation-delay: 0.3s; }
.tournament-item:nth-child(4) { animation-delay: 0.4s; }
.tournament-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle gradient overlay on hover */
.tournament-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tournament-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(139, 92, 246, 0.1);
    z-index: 10; /* Bring card above siblings on hover */
}

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

.tournament-info {
    flex: 0 0 280px; /* Reduced from 300px */
    padding-right: 16px; /* Reduced from 30px */
}

.tournament-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tournament-description {
    color: var(--text-muted);
    font-size: var(--text-base);
    line-height: 1.4;
}

.tournament-stats {
    color: var(--color-primary);
    font-size: var(--text-sm);
    margin-top: 5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.tournament-stats i {
    color: var(--color-primary);
    font-size: 12px;
}

.tournament-posters {
    flex: 1;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: visible; /* Allow posters to expand vertically on hover */
    padding: 8px; /* Extra padding on all sides for hover effects */
}

.tournament-poster {
    width: 80px;
    aspect-ratio: 2 / 3;
    background: var(--border-primary);
    border-radius: 6px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--overlay-lighter);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.tournament-poster:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: var(--color-primary);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4),
                0 0 0 1px rgba(139, 92, 246, 0.2);
    filter: brightness(1.1);
}

/* Title overlay on hover for tournament posters */
.tournament-poster::after {
    content: attr(data-title);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 6px 6px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 60%, transparent 100%);
    color: white;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    text-align: center;
}

.tournament-poster:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Rating badge for tournament posters */
.tournament-poster[data-rating]::before {
    content: "★ " attr(data-rating);
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    color: #ffd700;
    font-size: 9px;
    font-weight: 700;
    border-radius: 3px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.tournament-poster[data-rating]:hover::before {
    opacity: 1;
    transform: translateY(0);
}

/* Tournament Actions */
.tournament-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-left: auto;
    padding-left: 2rem;
}

.action-btn {
    padding: var(--space-2) var(--space-4);
    border-radius: 8px;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--btn-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.play-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    color: var(--text-primary);
    border: none;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.play-btn:hover {
    background: linear-gradient(135deg, var(--color-primary-hover), var(--color-primary));
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    transform: translateY(-1px);
}

.results-btn {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.results-btn:hover {
    background: var(--color-primary);
    color: var(--text-primary);
}

/* Loading states */
.loading {
    text-align: center;
    color: var(--text-light);
    padding: 40px;
}

/* Loading Skeleton */
.tournament-skeleton {
    display: flex;
    align-items: center;
    background: var(--overlay-light);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-info {
    flex: 0 0 300px;
    padding-right: 30px;
}

.skeleton-title {
    height: 24px;
    background: var(--overlay-lighter);
    border-radius: 4px;
    margin-bottom: 12px;
    width: 80%;
}

.skeleton-description {
    height: 16px;
    background: var(--overlay-lighter);
    border-radius: 4px;
    margin-bottom: 8px;
    width: 100%;
}

.skeleton-description:last-child {
    width: 70%;
}

.skeleton-stats {
    height: 14px;
    background: var(--primary-alpha-20);
    border-radius: 4px;
    width: 60%;
    margin-top: 8px;
}

.skeleton-posters {
    flex: 1;
    display: flex;
    gap: 8px;
}

.skeleton-poster {
    width: 80px;
    height: 120px;
    background: var(--overlay-lighter);
    border-radius: 6px;
    flex-shrink: 0;
}

@keyframes skeleton-pulse {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0.7;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: var(--text-xl);
    margin-bottom: 15px;
    color: var(--text-primary);
}

.empty-state p {
    font-size: var(--text-base);
    line-height: 1.5;
    max-width: 500px;
    margin: 0 auto 25px;
}

.empty-state-cta {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    color: var(--text-primary);
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.empty-state-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--primary-alpha-30);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: var(--text-xl);
    }

    .tournament-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .tournament-info {
        flex: none;
        padding-right: 0;
        width: 100%;
    }

    .tournament-posters {
        width: 100%;
        justify-content: center;
    }

    .tournament-poster {
        width: 70px;
    }

    .tournament-actions {
        width: 100%;
        align-items: center;
        padding-left: 0;
        margin-top: 1rem;
    }

    .action-btn {
        width: 200px;
        justify-content: center;
    }
}

/* ========================================== */
/* DISCOVER PAGE STYLES */
/* ========================================== */

.discover-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.discover-header {
    text-align: center;
    margin-bottom: 20px;
    padding-top: 20px;
    position: relative;
}

.discover-header h1 {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

/* Content Type Display & Dropdown */
.content-type-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--overlay-light);
    border: 1px solid var(--border-primary);
    transition: all 0.2s ease;
}

.content-type-display:hover {
    background: var(--overlay-lighter);
    border-color: var(--color-primary);
}

.content-type-display.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.content-type-display.locked:hover {
    background: var(--overlay-light);
    border-color: var(--border-primary);
}

.content-type-label {
    font-size: var(--text-base);
    color: var(--text-primary);
    font-weight: 500;
}

.content-type-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.content-type-toggle:hover {
    color: var(--color-primary);
}

.content-type-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.content-type-dropdown.show {
    display: flex;
}

.dropdown-option {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 10px 16px;
    text-align: left;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-base);
}

.dropdown-option:hover {
    background: var(--overlay-light);
}

.dropdown-option.active {
    background: var(--color-primary);
    color: white;
}

.dropdown-option i {
    width: 20px;
}

/* Wizard Progress Indicator */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0 40px;
    padding: 0 20px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--overlay-lighter);
    border: 2px solid var(--overlay-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.step-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: 500;
}

.progress-step.active .step-label {
    color: white;
}

.progress-connector {
    width: 80px;
    height: 2px;
    background: var(--overlay-lighter);
    margin: 0 10px;
    margin-bottom: 25px;
}

/* Wizard Steps */
.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Wizard Navigation */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding-bottom: 40px;
}

.wizard-navigation:has(button:only-child) {
    justify-content: center;
}

/* Secondary button style */
.secondary-btn {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--overlay-lighter);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.secondary-btn:hover {
    background: var(--overlay-light);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-1px);
}

/* Streaming Info */
.streaming-info {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.type-btn {
    padding: var(--space-3) var(--space-8);
    font-size: var(--text-base);
    font-weight: 600;
    background: var(--overlay-light);
    color: rgba(255, 255, 255, 0.7);
    border: 2px solid var(--overlay-lighter);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.type-btn:hover {
    background: var(--overlay-lighter);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.type-btn.active {
    background: var(--color-primary);
    color: var(--text-primary);
    border-color: var(--color-primary);
}

.divider {
    height: 1px;
    background: var(--border-primary);
    margin: 30px 0;
    border: none;
}

.genre-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: flex-start;
}

.genre-controls button {
    padding: 8px 20px;
    font-size: var(--text-base);
    font-weight: 500;
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.genre-controls button:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

.genres-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}

.genre-item {
    padding: 16px;
    background: var(--bg-card);
    border: 2px solid var(--border-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    user-select: none;
    color: var(--text-primary);
}

.genre-item:hover {
    background: var(--border-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.genre-item.selected {
    background: var(--color-primary);
    border-color: transparent;
    color: var(--text-primary);
}

.providers-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}

.provider-item {
    padding: 16px;
    background: var(--bg-card);
    border: 2px solid var(--border-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    user-select: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.provider-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.provider-item .provider-name {
    font-size: var(--text-sm);
    font-weight: 500;
}

.provider-item:hover {
    background: var(--border-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.provider-item.selected {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    border-color: transparent;
    color: var(--text-primary);
}

.provider-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: flex-start;
}

.provider-controls button {
    padding: var(--space-2) 1.25rem;
    font-size: var(--text-base);
    font-weight: 500;
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.provider-controls button:hover {
    background: var(--color-primary);
    color: var(--text-primary);
}

.section-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.optional-label {
    color: var(--text-light);
    font-size: var(--text-sm);
    font-weight: 400;
}

/* Removed - using .cta-btn class styles instead */

.selection-info {
    text-align: left;
    color: var(--text-primary);
    font-size: var(--text-base);
    margin-top: 10px;
    line-height: 1.5;
}

/* Discover Page Responsive - Tablet */
@media (max-width: 768px) {
    .discover-header h1 {
        font-size: 2rem;
    }

    .genres-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .genre-item {
        padding: 14px 8px;
        font-size: var(--text-sm);
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .genre-controls {
        flex-wrap: wrap;
        gap: 8px;
    }

    .genre-controls button {
        padding: 10px 16px;
        font-size: 1rem;
    }

    .providers-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .provider-item {
        padding: 12px 8px;
    }

    .provider-item img {
        width: 40px;
        height: 40px;
    }

    .provider-item .provider-name {
        font-size: 0.8rem;
    }
}

/* Discover Page Responsive - Mobile */
@media (max-width: 480px) {
    .discover-container {
        padding: 20px 15px;
    }

    .discover-header h1 {
        font-size: var(--text-2xl);
    }

    .discover-header p {
        font-size: 1rem;
    }

    .genres-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .genre-item {
        padding: 16px 8px;
        font-size: var(--text-sm);
        min-height: 60px;
    }

    .genre-controls {
        justify-content: center;
    }

    .genre-controls button {
        flex: 1;
        max-width: 140px;
        padding: 12px 8px;
        font-size: var(--text-sm);
    }

    .providers-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .provider-item {
        padding: 14px 8px;
    }

    .provider-item img {
        width: 35px;
        height: 35px;
    }

    .provider-item .provider-name {
        font-size: 0.75rem;
    }

    .provider-controls {
        justify-content: center;
        flex-wrap: wrap;
    }

    .provider-controls button {
        flex: 1;
        max-width: 140px;
        padding: 12px 8px;
        font-size: var(--text-sm);
    }

    .content-type-selector {
        gap: 8px;
    }

    .type-btn {
        padding: 10px 20px;
        font-size: var(--text-sm);
    }

    .selection-info {
        font-size: var(--text-base);
        padding: 0 10px;
    }

    /* Hide certain genres on mobile */
    .genre-item.mobile-hidden {
        display: none;
    }

    /* Wizard navigation on mobile */
    .wizard-navigation {
        gap: 15px;
    }

    .wizard-navigation .cta-btn,
    .wizard-navigation .secondary-btn {
        flex: 1;
    }

    /* Removed - using .cta-btn class styles instead */
}

/* Discover Page Responsive - Very Small Screens */
@media (max-width: 360px) {
    .genres-container {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .genre-item {
        padding: 14px 6px;
        font-size: 0.8rem;
        min-height: 55px;
    }

    .discover-header h1 {
        font-size: 1.6rem;
    }
}

/* ========================================== */
/* ABOUT PAGE STYLES */
/* ========================================== */

.about-container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-header h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}

.about-header p {
    font-size: var(--text-lg);
    color: var(--text-muted);
    line-height: 1.6;
}

.about-section {
    background: var(--overlay-light);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.about-section h2 {
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: var(--text-2xl);
}

.about-section p {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.about-section ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.about-section li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.about-section li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--primary-alpha-10);
    border: 1px solid var(--primary-alpha-30);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.5);
}

.feature-card i {
    font-size: var(--text-3xl);
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--color-primary);
    margin: 0.5rem 0;
}

.feature-card p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: 1.5;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Page Responsive - Tablet and Mobile */
@media (max-width: 768px) {
    .about-header h1 {
        font-size: 2rem;
    }

    .about-header p {
        font-size: 1rem;
    }

    .about-section {
        padding: 1.5rem;
    }

    .about-section h2 {
        font-size: var(--text-xl);
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ADMIN EDIT TOURNAMENT PAGE STYLES
   ======================================== */

.edit-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
    text-decoration: none;
}

.back-button:hover {
    text-decoration: underline;
}

.tournament-details {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.movie-item {
    position: relative;
    background: var(--bg-darker);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    cursor: grab;
}

.movie-item:active {
    cursor: grabbing;
}

.movie-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.movie-item.drag-over {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--color-primary);
}

.movie-item:hover {
    transform: scale(1.05);
}

.movie-item img {
    width: 100%;
    height: 225px;
    object-fit: cover;
}

.movie-item .movie-info {
    padding: 0.5rem;
    font-size: 0.875rem;
}

.movie-item .remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--danger-alpha-90);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.movie-item:hover .remove-btn {
    opacity: 1;
}

.add-movies-section {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 2rem;
}

.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-box input {
    flex: 1;
}

.movie-results {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 1rem;
}

.movie-result {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    background: var(--bg-darker);
    margin-bottom: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
}

.movie-result:hover {
    background: var(--border-primary);
}

.movie-result img {
    width: 50px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
}

.movie-result .movie-details {
    flex: 1;
}

.movie-result .add-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 0.25rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.position-number {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--overlay-dark);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.btn {
    background: var(--border-primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.btn:hover {
    background: var(--border-secondary);
}

.btn-primary {
    background: var(--color-error);
}

.btn-primary:hover {
    background: var(--color-error-bright);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Form styles */
.details-form {
    background: var(--bg-darker);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
    margin-bottom: 1rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 500;
}

.form-input {
    width: 100%;
    background: var(--border-primary);
    border: 1px solid var(--border-light);
    color: white;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--primary-alpha-20);
}

.icon-input {
    text-align: center;
    font-size: 1.2rem;
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

select.form-input {
    cursor: pointer;
}

input[type="checkbox"] {
    margin-right: 0.5rem;
}

.form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-subtle);
}

.loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

input[type="text"] {
    background: var(--bg-darker);
    border: 1px solid var(--border-secondary);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 1rem;
}

.added {
    color: var(--color-success-green);
    font-weight: bold;
}

/* ========================================
   ADMIN DASHBOARD STYLES
   ======================================== */

/* Admin Header */
.admin-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    padding: 1rem 2rem;
    color: white;
    box-shadow: 0 2px 10px var(--overlay-dark);
}

.admin-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
}

.admin-title i {
    font-size: 1.5rem;
}

/* Navigation */
.admin-nav {
    background: var(--overlay-light);
    padding: 1rem 2rem;
    display: flex;
    gap: 2rem;
}

.nav-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.nav-tab:hover,
.nav-tab.active {
    background: var(--primary-alpha-20);
    color: var(--color-primary);
}

/* Main Content */
.admin-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Tournament Form */
.tournament-form {
    background: var(--overlay-light);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--primary-alpha-30);
    padding-bottom: 0.5rem;
}

/* Movie Search */
.movie-search {
    margin-bottom: 2rem;
}

.search-input {
    position: relative;
    margin-bottom: 1rem;
}

.search-input input {
    padding-right: 3rem;
}

.search-input .search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
}

.search-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-select {
    min-width: 150px;
}

.search-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

.movie-card {
    background: var(--overlay-light);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    max-width: 200px;
    justify-self: start;
}

.movie-card:hover {
    background: var(--overlay-lighter);
    transform: translateY(-2px);
}

.movie-card.selected {
    border-color: var(--color-primary);
    background: var(--primary-alpha-10);
}

.about-container .movie-poster {
    width: 100%;
    height: 225px;
    background: var(--border-primary);
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    margin-bottom: 0.5rem;
}

.movie-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.movie-year {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Selected Movies */
.selected-movies {
    background: var(--overlay-light);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.selected-movies h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* Movie Selection Split Layout */
.movie-selection-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.movie-selection-left {
    flex: 1;
    background: var(--overlay-light);
    border-radius: 15px;
    padding: 2rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
}

.movie-selection-left .search-results {
    flex: 1;
}

.movie-selection-right {
    flex: 1;
    background: var(--overlay-light);
    border-radius: 15px;
    padding: 2rem;
}

.selected-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.movie-pair {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 1rem;
}

.vs-divider {
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selected-movie {
    position: relative;
    background: var(--overlay-light);
    border-radius: 8px;
    padding: 0;
    cursor: grab;
    transition: all 0.2s;
    flex: 1;
    border: 2px solid transparent;
    min-width: 150px;
    overflow: hidden;
    aspect-ratio: 2/3;
    display: flex;
    flex-direction: column;
    width: 150px;
}

.selected-movie:active {
    cursor: grabbing;
}

.selected-movie.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.selected-movie.drag-over {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--color-primary);
}

.selected-movie .movie-poster {
    width: 100%;
    flex: 1;
    background: var(--border-primary);
    border-radius: 8px 8px 0 0;
    background-size: cover;
    background-position: center;
}

.selected-movie .movie-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    margin-bottom: 0.1rem;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-movie .movie-year {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.remove-movie {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255,0,0,0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.selected-movie:hover .remove-movie {
    opacity: 1;
}

.movie-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-width: 150px;
    aspect-ratio: 2/3;
    overflow: hidden;
    width: 150px;
}

.movie-count {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-weight: 500;
}

/* Buttons */
.btn-secondary {
    background: var(--overlay-lighter);
    border: 1px solid var(--divider-color);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
}

.btn-danger {
    background: linear-gradient(135deg, var(--color-danger), var(--color-danger-dark));
}

.btn-danger:hover {
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

/* Existing Tournaments */
.tournaments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tournament-item {
    background: var(--overlay-light);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tournament-info h4 {
    color: var(--color-primary);
    margin: 0 0 0.5rem 0;
}

.tournament-info p {
    color: var(--text-muted);
    margin: 0 0 0.25rem 0;
}

.tournament-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Messages */
.message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--color-success-bright);
}

.message.error {
    background: var(--danger-alpha-10);
    border: 1px solid var(--danger-alpha-20);
    color: var(--color-danger);
}

/* Responsive */
@media (max-width: 1024px) {
    .movie-selection-container {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .admin-nav {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .search-filters {
        flex-direction: column;
    }

    .search-results {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .movie-pair {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .vs-divider {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }

    .selected-movie,
    .movie-placeholder {
        width: 120px;
        min-width: 120px;
    }
}
