@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Color Palette - Official FIFA Theme */
    --bg-base: #050a1d;
    --bg-surface: #0c152b;
    --bg-surface-hover: #16223f;
    --bg-card: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-color-hover: rgba(255, 255, 255, 0.2);
    
    --accent-primary: #ffd700;      /* Trophy Gold */
    --accent-secondary: #ed1c24;    /* FIFA Red */
    --accent-tertiary: #00d2ff;     /* Keep some cyan for technical elements */
    
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Glassmorphism */
    --glass-bg: rgba(5, 10, 29, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(20px);
    
    /* Layout Constants */
    --header-height: 72px;
    --bottom-nav-height: 64px;
    --sidebar-width: 230px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
}

.main-content {
    width: 100%;
    margin: 0 auto;
    padding: 60px 40px;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--bg-surface-hover);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* ==========================================
   ELEMENTOS DE INTERFAZ COMUNES
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Header / Navbar */
.main-header {
    height: var(--header-height);
    background: var(--bg-base);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: -1px;
    color: #fff;
    text-transform: uppercase;
}

.logo span {
    color: var(--accent-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-icon-footer {
    width: 28px;
    height: 28px;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-quick);
    outline: none;
    border: none;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-primary);
    outline: none;
    border: none;
}

.nav-link:focus, .nav-link:focus-visible {
    outline: none;
    border: none;
    box-shadow: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-decoration: none;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-base);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

/* Cards */
.card-match {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    transition: var(--transition-smooth);
}

.card-match:hover {
    border-color: var(--accent-primary);
    background: var(--bg-surface-hover);
    transform: translateY(-4px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-color-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.badge-live {
    background: var(--accent-tertiary);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    animation: pulse 1.8s infinite;
}

.badge-stream {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

/* ==========================================
   ESTRUCTURA DE APLICACIÓN (MOBILE-FIRST POR DEFECTO)
   ========================================== */

#app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    position: relative;
    background: var(--bg-base);
}

/* Ocultar elementos de escritorio por defecto */
.main-header,
.main-sidebar,
.main-footer {
    display: none;
}

/* Barra superior móvil (App Style) */
.mobile-app-header {
    height: 64px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-shrink: 0;
}

.mobile-app-header .logo {
    font-size: 1.2rem;
    gap: 8px;
}

.mobile-app-header .logo-icon {
    width: 32px;
    height: 32px;
}

.mobile-sync-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.05);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* Barra de navegación inferior móvil (Native Tab Bar Style) */
.mobile-bottom-nav {
    height: var(--bottom-nav-height);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom); /* Soporte para Notch */
    height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 700;
    gap: 4px;
    flex: 1;
    height: 100%;
    transition: var(--transition-quick);
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item i {
    font-size: 1.2rem;
    opacity: 0.6;
    transition: var(--transition-quick);
}

.mobile-nav-item.active {
    color: var(--accent-primary);
}

.mobile-nav-item.active i {
    opacity: 1;
    transform: translateY(-2px);
    color: var(--accent-primary);
}

.mobile-nav-item:active {
    transform: scale(0.92);
    opacity: 0.8;
}

/* Área de Contenido Principal (Mobile) */
.main-content {
    flex: 1;
    width: 100%;
    padding: 20px;
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 20px);
    margin: 0;
}

/* Mejoras en botones para Mobile */
.btn:active {
    transform: scale(0.96);
    opacity: 0.9;
}

.card-match:active {
    transform: scale(0.98);
    background: var(--bg-surface-hover);
}

/* ==========================================
   DISEÑO DE COMPONENTES DEL HOME (MOBILE)
   ========================================== */

/* Hero Player (Mobile App Style) */
.hero-section {
    margin-bottom: 32px;
}
.player-mockup, .player-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.player-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,6,8,0.9) 15%, rgba(6,6,8,0.3) 60%, transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
}
.player-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.player-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
}
.player-desc {
    display: none; /* Oculto en móvil por espacio */
}

/* Carruseles Deslizables en Móvil */
.carousel-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.section-header h2 {
    font-size: 1.15rem;
}
.view-all-link {
    font-size: 0.8rem;
    color: var(--accent-primary);
    cursor: pointer;
}

.carousel-grid {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* ocultar scroll en firefox */
}
.carousel-grid::-webkit-scrollbar {
    display: none; /* ocultar scroll en chrome/safari */
}

.match-card {
    flex: 0 0 240px; /* Ancho fijo para deslizar en móvil */
    scroll-snap-align: start;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-quick);
}
.match-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
}
.card-thumbnail {
    position: relative;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #111d42, #162050);
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}
.card-info {
    padding: 12px;
}
.card-league {
    font-size: 0.7rem;
    color: var(--accent-secondary);
    font-weight: 700;
    text-transform: uppercase;
}
.card-teams {
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 4px;
}

/* Mosaico de Canales (Multiview) */
.channels-grid {
    display: grid;
    grid-template-columns: 1fr; /* Una columna en móvil */
    gap: 12px;
}
.channel-card {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}
.channel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}
.channel-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.channel-info h4 {
    font-size: 0.9rem;
}

/* Noticias y Highlights */
.news-grid-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.news-card-featured {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
}
.news-card-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}
.news-content {
    position: absolute;
    inset: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}
.news-content h3 {
    font-size: 1.05rem;
    margin-top: 6px;
}
.news-card-small {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 8px;
}
.news-card-small h4 {
    font-size: 0.75rem;
    color: var(--accent-secondary);
}
.news-card-small p {
    font-size: 0.8rem;
    margin-top: 4px;
    font-weight: 600;
}

/* Menú de Ligas */
.leagues-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.league-item {
    display: flex;
    justify-content: space-between;
    padding: 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
}
.league-item span {
    color: var(--accent-primary);
    font-size: 0.75rem;
}



/* ==========================================
   CONFIGURACIONES ESPECÍFICAS DE LAYOUTS (MÓVIL)
   ========================================== */




/* ==========================================
   RESPONSIVE: ESTILOS DE ESCRITORIO (DESKTOP)
   ========================================== */

@media (min-width: 768px) {
    /* Mostrar Header y Sidebar de escritorio, esconder móviles */
    .main-header {
        display: flex;
        grid-area: header;
        background: var(--glass-bg);
        backdrop-filter: var(--glass-blur);
        border-bottom: 1px solid var(--glass-border);
        align-items: center;
        justify-content: space-between;
        padding: 0 24px;
        z-index: 100;
    }
    
    .main-sidebar {
        display: flex;
        grid-area: sidebar;
        background: var(--bg-surface);
        border-right: 1px solid var(--border-color);
        padding: 24px 16px;
        flex-direction: column;
        gap: 32px;
    }

    /* Estilos del Header Escritorio */
    .logo {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.35rem;
        font-weight: 800;
        color: var(--text-primary);
        text-decoration: none;
        font-family: var(--font-heading);
    }
    .logo span {
        background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .search-bar {
        display: flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border-color);
        padding: 8px 16px;
        border-radius: 99px;
        width: 320px;
        gap: 10px;
        transition: var(--transition-quick);
    }
    .search-bar:focus-within {
        border-color: var(--accent-primary);
        background: rgba(255, 255, 255, 0.06);
    }
    .search-bar input {
        background: transparent;
        border: none;
        color: var(--text-primary);
        outline: none;
        width: 100%;
        font-size: 0.85rem;
    }
    .user-profile {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .user-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--accent-secondary), var(--accent-tertiary));
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        color: #ffffff;
        font-size: 0.85rem;
        border: 1.5px solid var(--border-color);
    }

    /* Estilos del Menú Lateral Escritorio */
    .nav-section {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .nav-section-title {
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--text-muted);
        padding-left: 10px;
        margin-bottom: 6px;
    }
    .nav-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 12px;
        border-radius: 8px;
        color: var(--text-secondary);
        text-decoration: none;
        font-weight: 600;
        font-size: 0.9rem;
        transition: var(--transition-quick);
        border-left: 3px solid transparent;
    }
    .nav-link svg {
        stroke: var(--text-secondary);
    }
    .nav-link:hover, .nav-link.active {
        color: var(--text-primary);
        background: var(--bg-surface-hover);
    }
    .nav-link.active {
        border-left-color: var(--accent-primary);
        color: var(--accent-primary);
    }
    .nav-link.active svg {
        stroke: var(--accent-primary);
    }

    .mobile-header-bar,
    .mobile-bottom-nav,
    .mobile-search-wrap,
    .mobile-app-header {
        display: none !important;
    }
    
    body {
        overflow: hidden;
    }

    /* Layout Structure (Desktop) */
    #app-container {
        display: grid;
        grid-template-areas: 
            "header header"
            "sidebar main";
        grid-template-columns: var(--sidebar-width) 1fr;
        grid-template-rows: var(--header-height) 1fr;
        height: 100vh;
        width: 100vw;
        overflow: hidden;
    }

    .main-header {
        grid-area: header;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 40px;
        background: var(--bg-base);
        border-bottom: 1px solid var(--border-color);
        z-index: 1000;
    }

    .main-sidebar {
        grid-area: sidebar;
        display: flex;
        flex-direction: column;
        background: var(--bg-surface);
        border-right: 1px solid var(--border-color);
        padding: 32px 16px;
        gap: 32px;
        overflow-y: auto;
    }

    .main-content {
        grid-area: main;
        padding: 40px;
        overflow-y: auto;
        background: var(--bg-base);
    }


    /* --- HOME LAYOUT: Cinematic Carousel (Desktop) --- */
    .hero-player-block { display: block; aspect-ratio: 21/9; }
    .carousel-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        overflow-x: visible;
        gap: 20px;
    }
    .carousel-grid .match-card {
        flex: auto;
    }
}

/* ==========================================
   CALENDARIO, GRUPOS & HIGHLIGHTS (SHARED)
   ========================================== */

/* --- Filter Bar (fecha, fase, grupo) --- */
.filter-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-chip {
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: 99px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-quick);
    white-space: nowrap;
}
.filter-chip:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    background: var(--bg-surface-hover);
}
.filter-chip.active {
    background: var(--accent-primary);
    color: var(--bg-base);
    border-color: var(--accent-primary);
}

/* --- Calendario: Match Rows --- */
.cal-day-header {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
    color: var(--accent-primary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-family: var(--font-heading);
}

.cal-match-row {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: var(--transition-smooth);
    cursor: pointer;
}
.cal-match-row:hover {
    border-color: var(--accent-primary);
    background: var(--bg-surface-hover);
    transform: translateX(4px);
}

.cal-match-time {
    font-weight: 800;
    color: var(--text-secondary);
    font-size: 0.9rem;
    min-width: 50px;
    font-variant-numeric: tabular-nums;
}

.cal-team {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cal-team img {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
}
.cal-team span {
    font-weight: 600;
    font-size: 0.9rem;
}

.cal-vs {
    color: var(--text-muted);
    font-weight: 900;
    font-size: 0.8rem;
    margin: 0 8px;
}

.cal-score {
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--accent-primary);
    min-width: 50px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.cal-phase {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.status-dot.live {
    background: var(--accent-secondary);
    animation: pulse 1.8s infinite;
}
.status-dot.upcoming {
    background: var(--accent-primary);
}
.status-dot.finished {
    background: var(--text-muted);
}

/* --- Grupos: Standings Table --- */
.groups-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) {
    .groups-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1200px) {
    .groups-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.group-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
}
.group-card:hover {
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.group-card-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 215, 0, 0.02));
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.group-card-header .group-name {
    font-weight: 900;
    font-family: var(--font-heading);
    color: var(--accent-primary);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}
.standings-table th {
    padding: 8px 6px;
    text-align: center;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.standings-table th:nth-child(2) {
    text-align: left;
    padding-left: 0;
}
.standings-table td {
    padding: 10px 6px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-variant-numeric: tabular-nums;
}
.standings-table td:nth-child(2) {
    text-align: left;
    padding-left: 0;
}

.standings-table tr {
    transition: var(--transition-quick);
}
.standings-table tbody tr:hover {
    background: var(--bg-surface-hover);
}

.standings-table .team-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}
.standings-table .team-cell img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
}
.standings-table .team-cell span {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.standings-table .pos-cell {
    font-weight: 800;
    color: var(--text-muted);
    width: 24px;
}
.standings-table .pts-cell {
    font-weight: 900;
    color: var(--accent-primary);
}

/* Clasificación visual */
.standings-table tr.qualify {
    border-left: 3px solid #22c55e;
}
.standings-table tr.playoff {
    border-left: 3px solid #f59e0b;
}

/* --- Highlights: Cards --- */
.highlights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 600px) {
    .highlights-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

.highlight-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
}
.highlight-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(255, 215, 0, 0.08);
}

.highlight-header {
    position: relative;
    padding: 32px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: linear-gradient(135deg, #0c152b 0%, #162050 50%, #0c152b 100%);
    min-height: 120px;
}
.highlight-header .hl-flag {
    width: 56px;
    height: 38px;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.highlight-header .hl-score {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-primary);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    letter-spacing: 4px;
}

.highlight-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.highlight-title {
    font-size: 1rem;
    font-weight: 700;
}
.highlight-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    gap: 12px;
    align-items: center;
}
.highlight-scorers {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.3;
}
.empty-state p {
    font-size: 1rem;
    font-weight: 600;
}

/* --- Page Title Block --- */
.page-title-block {
    margin-bottom: 32px;
}
.page-title-block h1 {
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}
.page-title-block .subtitle {
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 0.8rem;
    margin-top: 4px;
}
.page-title-block .count-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-primary);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 12px;
}

@media (min-width: 768px) {
    .page-title-block h1 {
        font-size: 3rem;
    }
}
