:root {
    /* Color Palette */
    --bg-primary: #0a0e17; /* Very dark blue/black */
    --bg-secondary: #121929; /* Slightly lighter dark blue */
    --accent-primary: #00d2ff; /* Vibrant cyan */
    --accent-secondary: #3a7bd5; /* Deep blue gradient end */
    --accent: #00d2ff; /* Vibrant cyan */
    --text-primary: #f0f4f8; /* Off-white for readability */
    --text-secondary: #a0aec0; /* Muted grey/blue */
    --glass-bg: rgba(18, 25, 41, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* Simulator variables */
    --panel-bg: rgba(18, 25, 41, 0.85);
    --panel-border: rgba(255, 255, 255, 0.08);
    --accent-green: #00ff88;
    --gold: #f59e0b;
    
    /* Typography */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Layout */
    --sidebar-width: 260px;
    --navbar-height: 80px;
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Simulator Layout Variables (Desktop defaults) */
    --sim-scoreboard-height: 200px;
    --sim-scoreboard-padding: 30px 40px;
    --sim-team-logo-size: 80px;
    --sim-team-name-size: 32px;
    --sim-score-size: 80px;
    --sim-match-time-size: 30px;
    
    --sim-pitch-height: 1010px;
    --sim-dot-size: 54px;
    --sim-player-number-size: 24px;
    --sim-player-name-size: 19px;
    --sim-player-name-padding: 4px 10px;
    --sim-player-name-margin-top: 8px;
    
    --sim-badge-card-width: 24px;
    --sim-badge-card-height: 34px;
    --sim-badge-card-top: -12px;
    --sim-badge-card-left: -16px;
    
    --sim-badge-sub-size: 32px;
    --sim-badge-sub-font-size: 16px;
    --sim-badge-sub-bottom: -12px;
    --sim-badge-sub-right: -16px;
    
    --sim-badge-goal-size: 32px;
    --sim-badge-goal-font-size: 16px;
    --sim-badge-goal-top: -12px;
    --sim-badge-goal-right: -16px;
    
    --sim-events-height: 692px;
    --sim-events-padding: 30px 40px;
    --sim-events-header-size: 26px;
    --sim-live-indicator-size: 26px;
    --sim-live-dot-size: 14px;
    --sim-event-minute-size: 34px;
    --sim-event-icon-size: 48px;
    --sim-event-details-size: 28px;
    
    --sim-countdown-number-size: 150px;
    --sim-countdown-lbl-size: 38px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* --- Landing Page --- */
.landing-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

.landing-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('images/final.jpg') center/cover no-repeat;
    opacity: 0.52; /* Using user-provided final.jpg at 0.52 opacity for optimal contrast and detail */
    z-index: 0;
    pointer-events: none;
}

.landing-page.fade-out {
    opacity: 0;
    visibility: hidden;
}

.landing-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 14, 23, 0.4) 0%, rgba(10, 14, 23, 0.85) 100%);
    z-index: 1;
    pointer-events: none;
}

.landing-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    padding: 0 24px;
    animation: slideUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.landing-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.5));
}

.landing-logo h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, #a0aec0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Landing Layout Grid */
.landing-main-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    width: 100%;
    align-items: center;
}

.landing-left-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
}

.landing-right-col {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.landing-copy {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.landing-copy h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.landing-copy p.landing-desc {
    font-size: 1.05rem;
    color: #cbd5e1; /* Lighter color for contrast */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    line-height: 1.5;
    margin-bottom: 24px;
    max-width: 500px;
}

.landing-search-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    margin-bottom: 24px;
    border-radius: 100px;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.landing-search-container:focus-within {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 210, 255, 0.5);
}

.landing-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.landing-search-input {
    width: 100%;
    padding: 16px 20px 16px 52px;
    border-radius: 100px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1.1rem;
    outline: none;
}

.landing-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Landing Features */
.landing-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
    width: 100%;
}

.feature-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.feature-item i {
    font-size: 1.1rem;
    color: var(--accent-primary);
    margin-top: 3px;
    filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.3));
}

.feature-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.feature-item p {
    font-size: 0.85rem;
    color: #cbd5e1; /* Lighter color for contrast */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

.landing-action-btns {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
    width: 100%;
}

.skip-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    border: none;
    color: #000;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.35);
}

.skip-btn:hover {
    background: linear-gradient(135deg, #FFE033 0%, #FFA01A 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(255, 215, 0, 0.55);
    filter: brightness(1.05);
    gap: 14px;
}

.worldcup-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    border: none;
    color: #000;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.35);
}

.worldcup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.55);
    filter: brightness(1.1);
}

/* Demo Video Card */
.demo-video-card {
    width: 100%;
    max-width: 360px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--glass-border);
}

.demo-video-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--glass-border);
}

.demo-video-body {
    width: 100%;
    position: relative;
    background: #000;
}

.demo-iframe-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
}

.demo-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.demo-video-footer {
    padding: 12px 16px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

/* --- Layout --- */

/* App Wrapper Layout */
#app-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    border-right: 1px solid var(--glass-border);
    transition: transform var(--transition-smooth);
    overflow-y: auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
    padding: 0 12px;
}

.sidebar-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.3));
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-link.active {
    background: linear-gradient(90deg, rgba(0, 210, 255, 0.1), transparent);
    color: var(--accent-primary);
    border-left: 3px solid var(--accent-primary);
}

.nav-link i {
    font-size: 1.1rem;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition-smooth);
}

/* Navbar */
.navbar {
    height: var(--navbar-height);
    position: sticky;
    top: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    border-bottom: 1px solid var(--glass-border);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius-sm);
    transition: background var(--transition-fast);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-container {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(0, 210, 255, 0.1);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

/* Content Area */
.content-area {
    padding: 40px;
    flex: 1;
}

.section-header {
    margin-bottom: 32px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Thinner columns for reels */
    gap: 24px;
}

/* Video Card */
.video-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

.thumbnail-container {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16; /* Vertical Reels Format */
    overflow: hidden;
}

.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.video-card:hover .thumbnail {
    transform: scale(1.05);
}

.duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* --- Player View --- */
#player-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 16px 0;
    animation: fadeIn var(--transition-smooth);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 480px;
    margin-bottom: 12px;
    padding: 0 8px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-4px);
}

.player-container {
    /* Available height = 100vh minus navbar (80px) minus player-view padding (32px) */
    height: calc(100vh - var(--navbar-height) - 32px);
    /* Never wider than 480px to keep it elegant on desktop */
    max-width: 480px;
    /* Width determined by aspect ratio from height */
    width: auto;
    aspect-ratio: 9/16;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.85);
    flex-shrink: 0;
    position: relative;
    background-color: var(--bg-primary);
    margin: 0 auto;
}

/* ==========================================
   In-Player / Fullscreen Match Mode
   ========================================== */
body.in-player-mode {
    overflow-x: hidden;
}

body.in-player-mode .navbar {
    display: none !important;
}

body.in-player-mode .sidebar {
    display: none !important;
}

body.in-player-mode .main-content {
    margin-left: 0 !important;
    min-height: 100dvh;
}

body.in-player-mode .content-area {
    padding: 0 !important;
    max-width: 100% !important;
}

body.in-player-mode #player-view {
    padding: 0 !important;
    width: 100% !important;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

body.in-player-mode .player-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: max(8px, env(safe-area-inset-top)) 12px 8px 12px;
    background: rgba(10, 14, 23, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.in-player-mode .player-container {
    height: calc(100dvh - 54px);
    max-height: calc(100dvh - 54px);
    aspect-ratio: 9/16;
    max-width: 100vw;
    width: auto;
    border-radius: 0;
    margin: 0 auto;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.iframe-container {
    width: 100%;
    height: 100%;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 16px;
}

.video-title {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.dot-separator {
    width: 3px;
    height: 3px;
    background: var(--text-secondary);
    border-radius: 50%;
}

/* --- News List --- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 800px;
}

.news-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

.news-source {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.news-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.news-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.read-more {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: gap var(--transition-fast);
}

.news-card:hover .read-more {
    gap: 12px;
}

/* Empty State / Not Found */
.empty-state {
    text-align: center;
    padding: 64px 24px;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 240px;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .navbar {
        padding: 0 20px;
        gap: 16px;
    }

    .search-container {
        max-width: none;
    }

    .content-area {
        padding: 24px 20px;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .video-info {
        padding: 12px;
    }

    .video-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .video-info {
        padding: 10px;
    }

    .video-title {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .video-meta {
        font-size: 0.75rem;
        gap: 4px;
    }

    .duration-badge {
        padding: 2px 6px;
        font-size: 0.7rem;
    }

    .content-area {
        padding: 16px 12px;
    }
}


.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transform: scale(0.8);
    transition: transform var(--transition-fast);
}

.video-card:hover .play-icon {
    transform: scale(1);
}

/* Utility classes for toggling views */
.d-none {
    display: none !important;
}

@media (max-width: 768px) {
    .landing-page {
        height: 100vh;
        overflow-y: auto;
        padding: 40px 16px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    .landing-content {
        max-width: 600px;
        padding: 0;
    }
    .landing-logo {
        margin-bottom: 32px;
    }
    .landing-main-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .landing-left-col {
        align-items: center;
        text-align: center;
    }
    .landing-copy {
        text-align: center;
        align-items: center;
    }
    .landing-copy h2 {
        font-size: 2.2rem;
    }
    .landing-copy p.landing-desc {
        text-align: center;
    }
    .landing-search-container {
        margin-bottom: 24px;
    }
    .landing-features {
        align-items: center;
    }
    .feature-item {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
    .demo-video-card {
        margin: 0 auto;
    }
}

/* Language Selectors */
.landing-lang-selector {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 10;
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
}

.navbar-lang-selector {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.flag-icon {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.lang-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
}

@media (max-width: 768px) {
    .landing-lang-selector {
        top: 16px;
        right: 16px;
    }
    .navbar-lang-selector {
        padding: 2px;
    }
    .lang-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
        gap: 4px;
    }
}

/* ==========================================
   Estilos del Simulador de Partidos Vertical
   ========================================== */

.simulation-container {
    position: absolute;
    width: 1080px;
    height: 1920px;
    transform-origin: center center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.23); /* Se ajusta dinámicamente en JS */
    background-color: var(--bg-primary);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.sim-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
}

.sim-screen.active {
    display: flex;
    flex-direction: column;
}

/* Pantalla de Carga (Loading) */
#screen-loading {
    justify-content: center;
    align-items: center;
    background: #0f172a;
}

.loading-spinner {
    border: 12px solid #1e293b;
    border-top: 12px solid var(--accent-primary);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 1s linear infinite;
    margin-bottom: 30px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#screen-loading h2 {
    font-size: 44px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}

/* Scoreboard Header */
.scoreboard {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.8) 100%);
    border-bottom: 1px solid var(--panel-border);
    padding: var(--sim-scoreboard-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--sim-scoreboard-height);
    box-sizing: border-box;
    z-index: 10;
}

.team {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-name {
    font-family: 'Outfit', sans-serif;
    font-size: var(--sim-team-name-size);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
    margin-top: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

.team-logo {
    width: var(--sim-team-logo-size);
    height: var(--sim-team-logo-size);
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.4));
}

.score-container {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score {
    font-family: 'Outfit', sans-serif;
    font-size: var(--sim-score-size);
    font-weight: 900;
    margin-bottom: 16px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.6);
    display: flex;
    gap: 20px;
    justify-content: center;
    letter-spacing: 4px;
    line-height: 1;
}

.score span {
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.match-time {
    color: #00d2ff;
    font-weight: 800;
    font-size: var(--sim-match-time-size);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 195, 255, 0.15);
    padding: 8px 28px;
    border-radius: 40px;
    border: 2px solid rgba(0, 140, 255, 0.35);
    line-height: 1;
    box-shadow: 0 0 20px rgba(0, 119, 255, 0.15);
}

.match-time.pulsing::after {
    content: "'";
    animation: blink 1.2s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Pitch Section */
.pitch-container {
    height: var(--sim-pitch-height);
    background-image: url('images/campo.svg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    margin: 0;
    border-radius: 0;
    border: none;
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.7);
}

.pitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 65%, rgba(5, 11, 20, 0.35) 90%, rgba(5, 11, 20, 0.65) 100%);
    z-index: 1;
    pointer-events: none;
}

.player-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5) translateY(-30px);
}

.player-dot.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) translateY(0);
}

.dot-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dot {
    width: var(--sim-dot-size);
    height: var(--sim-dot-size);
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 6px 12px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dot.home {
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    border-color: #000;
}
.dot.home .player-number {
    color: #000;
}

.dot.away {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #ffffff;
}
.dot.away .player-number {
    color: #ffffff;
}

.player-number {
    font-size: var(--sim-player-number-size);
    font-weight: 800;
}

.player-name {
    font-size: var(--sim-player-name-size);
    font-weight: 700;
    margin-top: var(--sim-player-name-margin-top);
    background-color: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--sim-player-name-padding);
    border-radius: 12px;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    letter-spacing: -0.2px;
}

/* Card and Sub Badges on Pitch */
.badge-card {
    position: absolute;
    top: var(--sim-badge-card-top);
    left: var(--sim-badge-card-left);
    width: var(--sim-badge-card-width);
    height: var(--sim-badge-card-height);
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.6);
    z-index: 6;
    animation: popBadge 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.badge-card.yellow {
    background-color: var(--gold);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.badge-card.red {
    background-color: #ef4444;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.badge-sub {
    position: absolute;
    bottom: var(--sim-badge-sub-bottom);
    right: var(--sim-badge-sub-right);
    width: var(--sim-badge-sub-size);
    height: var(--sim-badge-sub-size);
    background: linear-gradient(135deg, var(--accent) 0%, #0088cc 100%);
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: var(--sim-badge-sub-font-size);
    box-shadow: 0 4px 8px rgba(0,0,0,0.6);
    z-index: 6;
    animation: popBadge 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.badge-goal {
    position: absolute;
    top: var(--sim-badge-goal-top);
    right: var(--sim-badge-goal-right);
    width: var(--sim-badge-goal-size);
    height: var(--sim-badge-goal-size);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: var(--sim-badge-goal-size);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.85));
    z-index: 6;
    animation: popBadge 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popBadge {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Match Events Log */
.events-panel {
    height: var(--sim-events-height);
    background: var(--panel-bg);
    border-top: 2px solid var(--panel-border);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding: var(--sim-events-padding);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    z-index: 10;
    box-sizing: border-box;
}

.events-header {
    font-size: var(--sim-events-header-size);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.live-indicator {
    color: var(--accent-green);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: var(--sim-live-indicator-size);
}

.live-dot {
    width: var(--sim-live-dot-size);
    height: var(--sim-live-dot-size);
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-green);
    animation: blink 1.2s infinite;
}

.events-container {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-right: 10px;
    scroll-behavior: smooth;
}

/* Custom scrollbar */
.events-container::-webkit-scrollbar { width: 6px; }
.events-container::-webkit-scrollbar-track { background: transparent; }
.events-container::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 6px; }

.event-item {
    background-color: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 30px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    animation: simEventFadeIn 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
    border-left: 8px solid transparent;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.event-item.goal { 
    border-left-color: var(--accent-green); 
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.1) 0%, rgba(30, 41, 59, 0.4) 100%); 
}
.event-item.yellow { 
    border-left-color: var(--gold); 
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.08) 0%, rgba(30, 41, 59, 0.4) 100%);
}
.event-item.red { 
    border-left-color: #ef4444; 
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.08) 0%, rgba(30, 41, 59, 0.4) 100%);
}
.event-item.sub { 
    border-left-color: var(--accent); 
    background: linear-gradient(90deg, rgba(0, 210, 255, 0.08) 0%, rgba(30, 41, 59, 0.4) 100%);
}

@keyframes simEventFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-minute {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: var(--sim-event-minute-size);
    color: #00d2ff;
    min-width: 60px;
    text-align: right;
}

.event-icon-img {
    width: var(--sim-event-icon-size);
    height: var(--sim-event-icon-size);
    object-fit: contain;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-details {
    flex: 1;
    font-size: var(--sim-event-details-size);
    line-height: 1.5;
    color: #e2e8f0;
}

.event-player {
    font-weight: 700;
    color: #fff;
}

.event-sub-player {
    color: var(--text-muted);
}

/* Overlay/Start Screen with Glassmorphism inside simulation */
.start-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    text-align: center;
    transition: all 0.5s ease;
}

.start-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Countdown display */
.countdown-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.countdown-number {
    font-family: 'Outfit', sans-serif;
    font-size: var(--sim-countdown-number-size);
    font-weight: 900;
    color: var(--accent);
    text-shadow: 0 0 40px rgba(0, 210, 255, 0.6);
    animation: pulseCount 1s infinite;
}

.countdown-lbl {
    font-size: var(--sim-countdown-lbl-size);
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Next Reel Transition Panel (Large, prominent & modern glassmorphism banner) */
#reel-auto-next-overlay {
    padding: 30px;
}

.reel-next-panel {
    background: linear-gradient(150deg, rgba(14, 21, 37, 0.98) 0%, rgba(6, 10, 20, 0.99) 100%);
    border: 3px solid rgba(0, 210, 255, 0.5);
    border-radius: 40px;
    padding: 48px 40px;
    width: 92%;
    max-width: 960px;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.92), 0 0 60px rgba(0, 210, 255, 0.35);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    animation: scaleUpPanel 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUpPanel {
    from {
        opacity: 0;
        transform: scale(0.88) translateY(25px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.reel-next-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
    padding: 0 10px;
}

.reel-next-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 34px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    text-shadow: 0 0 18px rgba(0, 210, 255, 0.6);
}

.reel-progress-pill {
    background: rgba(0, 210, 255, 0.15);
    border: 2px solid rgba(0, 210, 255, 0.4);
    color: #e2e8f0;
    font-size: 30px;
    font-weight: 800;
    padding: 8px 26px;
    border-radius: 30px;
}

.reel-next-matchup {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 30px 20px;
    gap: 16px;
}

.reel-team-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.reel-team-logo-lg {
    width: 130px;
    height: 130px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.65));
    transition: transform 0.2s ease;
}

.reel-team-name-lg {
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
}

.reel-vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reel-vs-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.25), rgba(0, 255, 135, 0.25));
    border: 2px solid rgba(0, 210, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    color: #00ff87;
    box-shadow: 0 0 25px rgba(0, 255, 135, 0.35);
}

.reel-next-teams-subtext {
    font-size: 44px;
    font-weight: 800;
    color: #ffffff;
}

.reel-countdown-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.reel-countdown-label {
    font-size: 28px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.reel-countdown-big {
    font-family: 'Outfit', sans-serif;
    font-size: 130px !important;
    line-height: 1;
    font-weight: 900;
    color: #00d2ff;
    text-shadow: 0 0 35px rgba(0, 210, 255, 0.85);
    margin: 8px 0 12px;
}

.reel-next-actions {
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: center;
}

.reel-btn-primary {
    flex: 1.4;
    background: linear-gradient(135deg, #00d2ff 0%, #00ff87 100%);
    color: #050b14;
    border: none;
    border-radius: 24px;
    padding: 24px 44px;
    font-size: 36px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    box-shadow: 0 12px 36px rgba(0, 210, 255, 0.5);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.reel-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 44px rgba(0, 210, 255, 0.65);
    filter: brightness(1.06);
}

.reel-btn-primary:active {
    transform: translateY(1px);
}

.reel-btn-secondary {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    border-radius: 24px;
    padding: 24px 32px;
    font-size: 32px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.reel-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

/* --- VAR Review Overlay --- */
#var-overlay {
    padding: 24px;
    z-index: 102;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.var-panel {
    width: 92%;
    max-width: 760px;
    background: linear-gradient(180deg, rgba(8, 18, 38, 0.98) 0%, rgba(4, 9, 20, 0.98) 100%);
    border: 4px solid #00e5ff;
    border-radius: 36px;
    box-shadow: 0 0 60px rgba(0, 229, 255, 0.45), 0 30px 70px rgba(0, 0, 0, 0.95);
    padding: 34px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: varPanelEntrance 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

@keyframes varPanelEntrance {
    0% { transform: scale(0.85); opacity: 0; filter: blur(8px); }
    100% { transform: scale(1); opacity: 1; filter: blur(0); }
}

.var-header-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(0, 229, 255, 0.14);
    border: 2px solid rgba(0, 229, 255, 0.45);
    padding: 10px 30px;
    border-radius: 40px;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2.5px;
    color: #00e5ff;
    text-shadow: 0 0 16px rgba(0, 229, 255, 0.6);
}

.var-icon-pulse {
    font-size: 34px;
    animation: varIconPulse 1.2s infinite ease-in-out;
}

@keyframes varIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.var-rec-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #ff1744;
    box-shadow: 0 0 12px #ff1744;
    animation: blink 0.8s infinite alternate;
}

.var-screen-container {
    width: 100%;
    min-height: 220px;
    background: radial-gradient(circle, rgba(0, 40, 70, 0.6) 0%, rgba(2, 6, 14, 0.95) 100%);
    border: 2px solid rgba(0, 229, 255, 0.3);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.var-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 229, 255, 0.03) 0px,
        rgba(0, 229, 255, 0.03) 2px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
    z-index: 2;
}

.var-monitor-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.var-radar-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.var-radar-sweep {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 4px solid rgba(0, 229, 255, 0.2);
    border-top-color: #00e5ff;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.45);
}

.var-checking-text {
    font-size: 30px;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.var-verdict-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: stampVerdict 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes stampVerdict {
    0% { transform: scale(1.6) rotate(-8deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.var-verdict-icon {
    font-size: 72px;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

.var-verdict-stamp {
    font-size: 46px;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 3px;
    padding: 10px 30px;
    border-radius: 16px;
    text-transform: uppercase;
    border: 4px dashed;
}

.var-verdict-stamp.cancelled {
    color: #ff1744;
    border-color: #ff1744;
    background: rgba(255, 23, 68, 0.15);
    text-shadow: 0 0 20px rgba(255, 23, 68, 0.6);
}

.var-verdict-stamp.confirmed {
    color: #00e676;
    border-color: #00e676;
    background: rgba(0, 230, 118, 0.15);
    text-shadow: 0 0 20px rgba(0, 230, 118, 0.6);
}

.var-verdict-reason {
    font-size: 26px;
    color: #94a3b8;
    font-weight: 600;
}

/* --- Card Drama Overlay --- */
#card-drama-overlay {
    padding: 24px;
    z-index: 101;
    background: rgba(2, 6, 16, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card-drama-panel {
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-drama-3d-wrapper {
    transform-style: preserve-3d;
    animation: cardEntrance3D 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardEntrance3D {
    0% { transform: rotateY(90deg) scale(0.7); opacity: 0; }
    100% { transform: rotateY(0deg) scale(1); opacity: 1; }
}

.card-drama-card {
    width: 680px;
    max-width: 90%;
    border-radius: 36px;
    padding: 38px 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: linear-gradient(160deg, #111827 0%, #030712 100%);
    box-shadow: 0 25px 60px rgba(0,0,0,0.9);
}

.card-drama-card.yellow {
    border: 4px solid #FFD700;
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.45), 0 30px 70px rgba(0,0,0,0.95);
}

.card-drama-card.red {
    border: 4px solid #FF1744;
    box-shadow: 0 0 60px rgba(255, 23, 68, 0.55), 0 30px 70px rgba(0,0,0,0.95);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.card-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.card-drama-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.card-drama-type-label {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
}

.card-drama-card.yellow .card-drama-type-label {
    color: #FFD700;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

.card-drama-card.red .card-drama-type-label {
    color: #FF1744;
    text-shadow: 0 0 12px rgba(255, 23, 68, 0.7);
}

.cd-team-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6));
}

.card-drama-avatar-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.cd-dorsal-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(20, 20, 20, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

.card-drama-card.yellow .cd-dorsal-circle {
    border-color: #FFD700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.45);
}

.card-drama-card.red .cd-dorsal-circle {
    border-color: #FF1744;
    box-shadow: 0 0 30px rgba(255, 23, 68, 0.45);
}

.cd-number-badge-main {
    font-family: 'Outfit', sans-serif;
    font-size: 54px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
}

.card-drama-card.yellow .cd-number-badge-main {
    color: #FFD700;
}

.card-drama-card.red .cd-number-badge-main {
    color: #FF1744;
}

.card-drama-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.cd-player-name {
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    margin: 0;
    letter-spacing: 0.5px;
}

.cd-team-name {
    font-size: 26px;
    font-weight: 700;
    color: #94a3b8;
}

.cd-reason-pill {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 24px;
    font-weight: 700;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ==========================================
   Goal Celebration Drama Overlay
   ========================================== */
#goal-drama-overlay {
    padding: 20px;
    z-index: 102;
    background: radial-gradient(circle at center, rgba(16, 26, 48, 0.88) 0%, rgba(3, 7, 18, 0.95) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.goal-drama-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.goal-drama-glow-ring {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 200, 0, 0.35) 0%, rgba(255, 110, 0, 0.15) 50%, transparent 70%);
    animation: goldAuraPulse 1.5s infinite alternate ease-in-out;
    pointer-events: none;
}

@keyframes goldAuraPulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    100% { transform: scale(1.18); opacity: 1; }
}

.goal-drama-card {
    position: relative;
    width: 780px;
    max-width: 92%;
    background: linear-gradient(160deg, rgba(24, 32, 54, 0.97) 0%, rgba(8, 12, 24, 0.99) 100%);
    border: 4px solid #f59e0b;
    border-radius: 46px;
    padding: 42px 34px;
    box-shadow: 0 0 80px rgba(245, 158, 11, 0.55), 0 40px 90px rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    animation: goalCardEntrance 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes goalCardEntrance {
    0% { transform: scale(0.6) translateY(50px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.goal-banner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.3) 50%, rgba(245, 158, 11, 0.15) 100%);
    border: 2px solid rgba(245, 158, 11, 0.5);
    border-radius: 100px;
    padding: 12px 28px;
}

.goal-badge-icon {
    font-size: 38px;
    color: #f59e0b;
    animation: spinBall 3s linear infinite;
}

@keyframes spinBall {
    100% { transform: rotate(360deg); }
}

.goal-banner-text {
    font-family: 'Outfit', sans-serif;
    font-size: 46px;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(180deg, #fff 0%, #fde047 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(245, 158, 11, 0.7);
    margin: 0;
}

.goal-banner-minute {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #f59e0b;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 16px;
    border-radius: 16px;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.goal-scorer-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 0;
}

.goal-crest-ring {
    position: relative;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 4px solid #f59e0b;
    box-shadow: 0 0 45px rgba(245, 158, 11, 0.6), inset 0 0 30px rgba(0, 0, 0, 0.75);
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, #0d1527 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.gd-team-crest-main {
    width: 115px;
    height: 115px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.8));
}

.goal-number-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background: #f59e0b;
    color: #000;
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 900;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #1e293b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    z-index: 2;
}

.goal-info-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: center;
}

.gd-scorer-name {
    font-family: 'Outfit', sans-serif;
    font-size: 46px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

.gd-team-name {
    font-size: 26px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gd-pills-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: center;
    margin-top: 6px;
}

.gd-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 24px;
    font-weight: 700;
}

.gd-type-pill {
    background: rgba(245, 158, 11, 0.18);
    border: 1.5px solid rgba(245, 158, 11, 0.45);
    color: #fde047;
}

.gd-assist-pill {
    background: rgba(0, 210, 255, 0.15);
    border: 1.5px solid rgba(0, 210, 255, 0.4);
    color: #7dd3fc;
}

/* ==========================================
   Substitution Drama Overlay
   ========================================== */
#sub-drama-overlay {
    padding: 24px;
    z-index: 101;
    background: rgba(2, 6, 16, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.sub-drama-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 1020px;
}

.sub-drama-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(6, 78, 59, 0.45) 100%);
    border: 3px solid #10b981;
    padding: 14px 40px;
    border-radius: 100px;
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.5);
    animation: subHeaderPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes subHeaderPop {
    0% { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.sub-header-icon {
    font-size: 36px;
    color: #34d399;
    animation: rotateSubIcon 2s linear infinite;
}

@keyframes rotateSubIcon {
    100% { transform: rotate(360deg); }
}

.sub-header-text {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sub-header-text h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 2.5px;
    color: #ffffff;
    margin: 0;
}

.sub-drama-minute {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #34d399;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 16px;
    border-radius: 14px;
    border: 1.5px solid rgba(16, 185, 129, 0.4);
}

/* Sub Cards Dynamic Grid (for 1, 2, or 3 cards) */
.sub-cards-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    width: 100%;
    max-width: 1020px;
    flex-wrap: wrap;
}

/* Individual Sub Card */
.sub-single-card {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.97) 0%, rgba(6, 10, 20, 0.99) 100%);
    border: 3px solid rgba(255, 255, 255, 0.22);
    border-radius: 36px;
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1 1 480px;
    max-width: 780px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(16, 185, 129, 0.3);
    animation: subCardEntrance 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes subCardEntrance {
    0% { transform: translateY(30px) scale(0.85); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.sub-card-team {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 14px;
}

.sub-team-badge {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.sub-team-name {
    font-size: 26px;
    font-weight: 800;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sub Row: In (🟢) / Out (🔴) */
.sub-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 24px;
    position: relative;
}

.sub-row-in {
    background: rgba(16, 185, 129, 0.16);
    border: 2px solid rgba(16, 185, 129, 0.5);
}

.sub-row-out {
    background: rgba(239, 68, 68, 0.16);
    border: 2px solid rgba(239, 68, 68, 0.5);
}

.sub-badge-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sub-badge-in {
    background: #10b981;
    color: #ffffff;
}

.sub-badge-out {
    background: #ef4444;
    color: #ffffff;
}

.sub-dorsal-badge {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 900;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sub-row-in .sub-dorsal-badge {
    border: 2.5px solid #10b981;
    color: #34d399;
}

.sub-row-out .sub-dorsal-badge {
    border: 2.5px solid #ef4444;
    color: #f87171;
}

.sub-player-name {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.sub-row-out .sub-player-name {
    color: #94a3b8;
}

.sub-card-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 26px;
    margin: -4px 0;
}
/* Post-Match Summary Overlay (Ficha Final del Partido) */
#post-match-overlay {
    padding: 30px;
    z-index: 104;
}

.post-match-panel {
    background: linear-gradient(155deg, rgba(13, 20, 36, 0.98) 0%, rgba(6, 10, 18, 0.99) 100%);
    border: 3px solid rgba(255, 215, 0, 0.45);
    border-radius: 40px;
    padding: 36px 32px;
    width: 94%;
    max-width: 980px;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.94), 0 0 60px rgba(255, 215, 0, 0.25);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    animation: scaleUpPanel 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 94%;
    overflow-y: auto;
}

.post-match-badge-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 8px;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #FFD700;
    text-shadow: 0 0 16px rgba(255, 215, 0, 0.5);
}

.post-match-league-pill {
    background: rgba(255, 215, 0, 0.15);
    border: 2px solid rgba(255, 215, 0, 0.4);
    color: #e2e8f0;
    font-size: 26px;
    font-weight: 800;
    padding: 6px 22px;
    border-radius: 30px;
}

.post-match-scoreboard {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 24px 16px;
    gap: 12px;
}

.post-match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.pm-team-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.7));
}

.pm-team-name {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pm-score-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.pm-score-text {
    font-size: 72px;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    color: #fff;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    gap: 14px;
}

.pm-score-sep {
    color: rgba(255, 255, 255, 0.3);
}

.pm-penalties-badge {
    font-size: 26px;
    font-weight: 700;
    color: #FFD700;
    background: rgba(255, 215, 0, 0.15);
    padding: 4px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.post-match-section {
    width: 100%;
    text-align: left;
}

.pm-section-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-match-scorers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 16px 20px;
    min-height: 80px;
}

.pm-scorers-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 26px;
    color: #e2e8f0;
}

.pm-scorer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 600;
}

.pm-scorer-minute {
    color: #FFD700;
    font-weight: 800;
}

.pm-no-goals {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 24px;
}

/* MVP Card */
.pm-mvp-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 140, 0, 0.08) 100%);
    border: 2.5px solid rgba(255, 215, 0, 0.55);
    border-radius: 28px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.15);
}

.pm-mvp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pm-mvp-tag {
    font-size: 28px;
    font-weight: 900;
    color: #FFD700;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

.pm-mvp-rating-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #000;
    font-size: 32px;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    padding: 6px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.pm-mvp-body {
    display: flex;
    align-items: center;
    gap: 20px;
}




.pm-mvp-info {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pm-mvp-name {
    font-size: 34px;
    font-weight: 800;
    color: #fff;
}

.pm-mvp-team {
    font-size: 26px;
    font-weight: 600;
    color: #FFD700;
}

.pm-mvp-stats {
    font-size: 24px;
    color: var(--text-secondary);
}

/* Post Match Actions */
.post-match-actions {
    display: flex;
    gap: 16px;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.pm-btn-primary {
    flex: 1.3;
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #000;
    border: none;
    border-radius: 24px;
    padding: 22px 32px;
    font-size: 32px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.pm-btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.pm-btn-secondary {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    border-radius: 24px;
    padding: 22px 28px;
    font-size: 30px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.pm-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

@keyframes pulseCount {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

/* Goal Flash & Shake screen effects */
.flash-goal {
    animation: flashOverlay 0.5s ease-out 3;
}

@keyframes flashOverlay {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(0, 255, 136, 0.25); }
}

.shake-screen {
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translate(0, 0); }
    10%, 30%, 50%, 70%, 90% { transform: translate(-8px, 4px); }
    20%, 40%, 60%, 80% { transform: translate(8px, -4px); }
}

/* ==========================================
   Diseño de las tarjetas de partidos (Dashboard)
   ========================================== */

.match-card-header {
    padding: 16px 20px 8px;
    display: flex;
    justify-content: flex-start;
}

.league-tag {
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.3);
    color: var(--accent-primary);
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.match-card-teams-display {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 12px 20px;
    flex: 1;
}

.team-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 40%;
}

.card-team-logo-wrapper {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    padding: 0;
}

.card-team-logo {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.4));
    display: block;
}

.card-team-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vs-divider {
    font-size: 0.95rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.2);
    font-style: italic;
}

.match-card-footer {
    padding: 12px 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
    gap: 16px;
}

.date-display {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    white-space: nowrap;
}

.date-display i {
    color: var(--accent-primary);
}

.simulate-card-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    border: none;
    padding: 8px 14px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 10px rgba(0, 210, 255, 0.2);
}

.simulate-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 210, 255, 0.4);
    filter: brightness(1.1);
}

@media (max-width: 576px) {
    .match-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .date-display {
        justify-content: center;
    }
    .simulate-card-btn {
        justify-content: center;
        width: 100%;
    }
}


/* ==========================================
   Cookie Consent Banner
   ========================================== */

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: rgba(10, 14, 23, 0.97);
    border-top: 1px solid rgba(0, 210, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    animation: slideUpCookie 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideUpCookie {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

#cookie-banner.hidden {
    animation: slideDownCookie 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideDownCookie {
    from { transform: translateY(0);    opacity: 1; }
    to   { transform: translateY(100%); opacity: 0; }
}

.cookie-text {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.cookie-text i {
    color: var(--accent-primary);
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.cookie-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.cookie-text a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn-secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.cookie-btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
}

.cookie-btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    color: var(--bg-primary);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 210, 255, 0.25);
}

.cookie-btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 16px rgba(0, 210, 255, 0.4);
}

@media (max-width: 640px) {
    #cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
        gap: 16px;
    }
    .cookie-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ==========================================
   App Footer
   ========================================== */

.app-footer {
    border-top: 1px solid var(--glass-border);
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: rgba(255,255,255,0.01);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-link {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--accent-primary);
}

.footer-sep {
    width: 1px;
    height: 12px;
    background: var(--glass-border);
}

.footer-api-credit {
    font-size: 0.72rem;
    color: rgba(160, 174, 192, 0.5);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-api-credit a {
    color: rgba(0, 210, 255, 0.5);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-api-credit a:hover {
    color: var(--accent-primary);
}

/* Submenu and Collapsible Tournaments Styles */
.nav-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.submenu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 12px;
    margin-top: 4px;
    transition: max-height var(--transition-smooth);
}

.submenu.d-none {
    display: none !important;
}

.submenu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.submenu-link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.submenu-link.active {
    background: rgba(0, 210, 255, 0.06);
    color: var(--accent-primary);
    font-weight: 600;
    border-left: 2px solid var(--accent-primary);
}

.submenu-flag {
    width: 16px;
    height: 11px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.submenu-link i {
    font-size: 0.95rem;
    color: var(--text-secondary);
    width: 16px;
    text-align: center;
}

.submenu-arrow {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform var(--transition-smooth);
}

.nav-link.open .submenu-arrow {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .app-footer {
        padding: 14px 20px;
        justify-content: center;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
    }
}

/* --- FAQ Accordion Section --- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    width: 100%;
}

.faq-item {
    border-radius: var(--border-radius-lg);
    padding: 0;
    overflow: hidden;
    transition: background var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.faq-item[open] {
    background: rgba(18, 25, 41, 0.85);
    border-color: rgba(0, 210, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.faq-question {
    padding: 24px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    list-style: none; /* Hide default list style marker */
    outline: none;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.faq-question::-webkit-details-marker {
    display: none; /* Hide Chrome default marker */
}

.faq-question:hover {
    color: var(--accent-primary);
}

.faq-arrow {
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: transform var(--transition-smooth), color var(--transition-fast);
}

.faq-item[open] .faq-arrow {
    transform: rotate(180deg);
    color: var(--accent-primary);
}

.faq-answer {
    padding: 0 28px 28px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    animation: slideDownFaq 0.3s ease-out;
}

.faq-answer p {
    margin-bottom: 12px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ol, .faq-answer ul {
    margin: 12px 0 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-answer li {
    font-size: 0.92rem;
}

.faq-answer strong {
    color: var(--text-primary);
}

@keyframes slideDownFaq {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================
   Responsive - Móvil (≤768px)
   ========================================== */
@media (max-width: 768px) {

    .sidebar {
        transform: translateX(-100%);
        z-index: 1000;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    /* Main-content ocupa todo el ancho sin margen del sidebar */
    .main-content {
        margin-left: 0;
    }

    /* Botón hamburguesa visible en móvil */
    .menu-toggle {
        display: flex;
    }

    /* Navbar padding reducido */
    .navbar {
        padding: 0 16px;
    }

    /* Player-view sin padding extra */
    #player-view {
        padding: 0;
        width: 100%;
        overflow-x: hidden;
    }

    .player-header {
        padding: 8px 12px;
        width: 100%;
        max-width: 100%;
        margin-bottom: 0;
        box-sizing: border-box;
        gap: 6px;
        flex-wrap: nowrap;
    }

    .back-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        gap: 6px;
        flex-shrink: 0;
        border-radius: 8px;
    }

    .share-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        gap: 6px;
        flex-shrink: 0;
        border-radius: 8px;
    }

    .reel-nav-bar {
        padding: 2px 6px;
        gap: 4px;
        flex-shrink: 1;
    }

    .reel-nav-btn {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .reel-counter-badge {
        font-size: 0.72rem;
        padding: 2px 8px;
    }

    /* En móvil: encuadre 9/16 que nunca se desborda vertical ni horizontalmente */
    .player-container {
        width: auto;
        max-width: 100vw;
        height: calc(100dvh - 54px);
        max-height: calc(100dvh - 54px);
        aspect-ratio: 9/16;
        border-radius: 0;
        margin: 0 auto;
        overflow: hidden;
    }

    /* Mobile-specific variable overrides to make all simulator elements larger and readable on mobile screens */
    :root {
        --sim-scoreboard-height: 220px;
        --sim-scoreboard-padding: 20px 20px;
        --sim-team-logo-size: 110px;
        --sim-team-name-size: 42px;
        --sim-score-size: 110px;
        --sim-match-time-size: 42px;
        
        --sim-pitch-height: 990px;
        --sim-dot-size: 72px;
        --sim-player-number-size: 34px;
        --sim-player-name-size: 23px;
        --sim-player-name-padding: 4px 8px;
        --sim-player-name-margin-top: 5px;
        
        --sim-badge-card-width: 32px;
        --sim-badge-card-height: 45px;
        --sim-badge-card-top: -16px;
        --sim-badge-card-left: -20px;
        
        --sim-badge-sub-size: 42px;
        --sim-badge-sub-font-size: 22px;
        --sim-badge-sub-bottom: -16px;
        --sim-badge-sub-right: -20px;
        
        --sim-badge-goal-size: 42px;
        --sim-badge-goal-font-size: 22px;
        --sim-badge-goal-top: -16px;
        --sim-badge-goal-right: -20px;
        
        --sim-events-padding: 20px 25px;
        --sim-events-header-size: 34px;
        --sim-live-indicator-size: 34px;
        --sim-live-dot-size: 18px;
        --sim-event-minute-size: 44px;
        --sim-event-icon-size: 60px;
        --sim-event-details-size: 34px;
        
        --sim-countdown-number-size: 180px;
        --sim-countdown-lbl-size: 48px;
    }
}

/* Card Live Indicator Style */
.card-live-tag {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    padding: 4px 8px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}
.card-live-tag .live-dot-blink {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 6px #ef4444;
    animation: blink 1.2s infinite;
}

.simulate-card-btn.live-btn {
    background: linear-gradient(135deg, var(--accent-green), #00b862);
    color: #0a0e17;
    box-shadow: 0 4px 10px rgba(0, 255, 136, 0.2);
}

.simulate-card-btn.live-btn:hover {
    box-shadow: 0 6px 14px rgba(0, 255, 136, 0.45);
    filter: brightness(1.08);
}

/* ==========================================================================
   Modo Reel - Styles & Components
   ========================================================================== */

.reels-mode-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.reel-mode-card {
    padding: 30px 26px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.reel-mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reel-mode-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 210, 255, 0.3);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 210, 255, 0.1);
}

.reel-mode-card:hover::before {
    opacity: 1;
}

.reel-card-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.05);
}

.reel-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.reel-card-tag {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-primary);
    background: rgba(0, 210, 255, 0.12);
    padding: 3px 10px;
    border-radius: 6px;
    align-self: flex-start;
}

.reel-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.reel-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 10px 0;
    min-height: 42px;
}

.reel-action-btn {
    width: 100%;
    padding: 13px 22px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-primary), #0077ff);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 18px rgba(0, 210, 255, 0.35);
    transition: all 0.25s ease;
}

.reel-action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 210, 255, 0.5);
    filter: brightness(1.1);
}

.reel-action-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    filter: grayscale(0.5);
}

.reel-action-btn.secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    box-shadow: none;
}

.reel-action-btn.secondary:hover {
    background: rgba(0, 255, 135, 0.12);
    border-color: rgba(0, 255, 135, 0.4);
    color: #00ff87;
    box-shadow: 0 6px 20px rgba(0, 255, 135, 0.2);
}

.pulse-glow {
    animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 6px 18px rgba(0, 210, 255, 0.35);
    }
    50% {
        box-shadow: 0 8px 28px rgba(0, 210, 255, 0.65);
    }
}

/* Team Selector Panel */
.team-selector-panel {
    border-radius: 20px;
    padding: 24px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.team-selector-actions {
    display: flex;
    gap: 10px;
}

.selector-quick-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
}

.selector-quick-btn:hover {
    background: rgba(0, 210, 255, 0.15);
    border-color: var(--accent-primary);
    color: #fff;
}

/* Accordion */
.leagues-accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.league-accordion-item {
    border-radius: 14px;
    background: rgba(10, 16, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.league-accordion-item:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

.league-accordion-header {
    width: 100%;
    padding: 14px 18px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    transition: background 0.2s;
}

.league-accordion-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.league-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.league-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.league-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.league-selected-badge {
    background: rgba(0, 210, 255, 0.18);
    color: var(--accent-primary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 100px;
    border: 1px solid rgba(0, 210, 255, 0.35);
}

.league-selected-badge.d-none {
    display: none !important;
}

.accordion-chevron {
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: transform 0.25s ease;
}

.league-accordion-item.expanded .accordion-chevron {
    transform: rotate(180deg);
}

.league-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.25s ease;
    padding: 0 18px;
}

.league-accordion-item.expanded .league-accordion-body {
    max-height: 800px;
    padding: 6px 18px 18px 18px;
}

/* Team Chips Grid */
.team-chips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.team-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-secondary);
    position: relative;
}

.team-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.team-chip.selected {
    background: rgba(0, 210, 255, 0.12);
    border-color: var(--accent-primary);
    color: #fff;
    box-shadow: 0 0 14px rgba(0, 210, 255, 0.25);
}

.team-chip-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.team-chip-name {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.team-chip-check {
    font-size: 0.75rem;
    color: var(--accent-primary);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.team-chip.selected .team-chip-check {
    opacity: 1;
}

/* Bottom Bar */
.team-selector-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.selected-count-badge {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.selected-count-badge i {
    color: var(--accent-primary);
}

.team-selector-footer .reel-action-btn {
    width: auto;
    min-width: 240px;
}

/* Floating Reel Nav Bar in Simulation Player Header */
.reel-nav-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 16, 28, 0.8);
    backdrop-filter: blur(12px);
    padding: 4px 10px;
    border-radius: 100px;
    border: 1px solid rgba(0, 210, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.reel-nav-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.reel-nav-btn:hover:not(:disabled) {
    background: rgba(0, 210, 255, 0.2);
    color: var(--accent-primary);
    transform: scale(1.08);
}

.reel-nav-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.reel-counter-badge {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
    padding: 2px 10px;
    border-radius: 100px;
    background: rgba(0, 210, 255, 0.15);
    border: 1px solid rgba(0, 210, 255, 0.35);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .reels-mode-cards {
        grid-template-columns: 1fr;
    }
    .team-chips-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    .team-selector-footer .reel-action-btn {
        width: 100%;
    }
    .team-selector-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .reel-counter-badge {
        font-size: 0.72rem;
        padding: 2px 7px;
    }
}
