@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:ital,wght@0,800;0,900;1,900&family=Space+Grotesk:wght@300;400;500;600;700;800;900&display=swap');

/* ========================================================================================== */
/* [SEC 1] CONFIGURACIÓN GLOBAL, VARIABLES Y RESET */
/* ========================================================================================== */
:root {
    --neon: #C1FF72;
    /* Verde Neon Corporativo */
    --bg: #0D0D0D;
    /* Fondo Negro Profundo */
    --card: #1C1C1E;
    /* Fondo Tarjetas */
    --pill-bg: #2C2C2E;
    /* Fondo Botones */
    --text: #fff;
    /* Texto Principal */
    --text-dim: #888;
    /* Texto Secundario */
    --border: #333;
    /* Bordes sutiles */

    /* Variables Específicas Perfiles */
    --profile-bg: #121212;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    /* Elimina el recuadro azul al tocar en móvil */
    user-select: none;
    /* Impide selección de texto */
    -webkit-user-select: none;
    /* Impide selección de texto en Safari/iOS */
}

body {
    margin: 0;
    background-color: #000;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

#app-container {
    width: 100%;
    background-color: var(--bg);
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ========================================================================================== */
/* [SEC 0] PANTALLA DE CARGA (LOADING) */
/* ========================================================================================== */
#pantalla-carga {
    position: fixed;
    inset: 0;
    background-color: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loader-img {
    width: 60px;
    height: auto;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        opacity: 0.5;
        transform: scale(0.95);
    }
}

/* ========================================================================================== */
/* [SEC 2] BARRA DE NAVEGACIÓN Y MENÚ LATERAL */
/* ========================================================================================== */
.navbar {
    background: rgba(13, 13, 13, 0.98);
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

/* Título central del navbar (visible en móvil) */
.navbar-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    text-transform: capitalize;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
}

@media (min-width: 768px) {
    .navbar-title {
        display: none;
    }
}

.logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
    cursor: pointer;
}

.hamburger-btn {
    font-size: 1.4rem;
    color: var(--neon);
    cursor: pointer;
}

/* Menú Desktop (Oculto en móvil por defecto) */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 10px;
}

.desktop-nav .nav-btn {
    background: none;
    border: none;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}

.desktop-nav .nav-btn:hover {
    color: var(--neon);
}

.desktop-nav .nav-btn::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--neon);
    transition: transform 0.3s ease;
}

.desktop-nav .nav-btn:hover::after,
.desktop-nav .nav-btn.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Menú Lateral (Sidebar) */
#sidebar-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background-color: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1100;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

#sidebar-menu.open {
    right: 0;
}

#sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1050;
    display: none;
}

#sidebar-overlay.open {
    display: block;
}

.sidebar-content button {
    background: none;
    border: none;
    color: #fff;
    width: 100%;
    padding: 20px 30px;
    text-align: left;
    font-family: 'Inter';
    font-weight: 300;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: 0.3s;
}

.sidebar-content button:hover {
    color: var(--neon);
    padding-left: 35px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--neon);
    font-size: 2.5rem;
    cursor: pointer;
}

/* ========================================================================================== */
/* [SEC 3] PORTADA HERO (VIDEO + MENÚ DEPORTIVO) */
/* ========================================================================================== */
/* Hero sin vídeo — fondo limpio */
.hero-video-container {
    display: none;
    /* Oculto: ya no usamos vídeo */
}

.video-bg {
    display: none;
}

.video-overlay {
    display: none;
}

/* Hero menu lateral — oculto en la nueva versión */
.hero-menu-lateral {
    display: none;
}

@media (max-height: 600px) {
    .hero-menu-lateral {
        gap: 20px;
        top: 40%;
    }
}

.menu-item-hero {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.menu-item-hero:hover {
    transform: translateX(15px);
}

.menu-item-hero:hover .menu-txt {
    color: var(--neon);
}

.menu-num {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--neon);
    margin-bottom: -2px;
    letter-spacing: 3px;
}

.menu-txt {
    display: block;
    font-weight: 900;
    font-size: 2.5rem;
    color: #fff;
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -2px;
    font-style: italic;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .menu-txt {
        font-size: 1.8rem;
    }

    .hero-menu-lateral {
        gap: 25px;
        left: 20px;
    }

    .menu-num {
        font-size: 0.7rem;
    }
}

/* ========================================================================================== */
/* [SEC 4] TEMPORADA ACTUAL (TABLAS Y CONTROLES) */
/* ========================================================================================== */
.header-section h1 {
    font-size: 1.5rem;
    text-align: center;
    margin: 25px 0;
    font-weight: 800;
    letter-spacing: -1px;
}

/* Submenú Píldora */
.sub-menu-container {
    padding: 0 16px;
    margin-bottom: 18px;
}

.sub-menu {
    background: rgba(20, 20, 22, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    display: flex;
    padding: 4px;
    gap: 4px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-sub {
    flex: 1;
    background: transparent;
    border: 1px solid transparent;
    color: #8a8a8f;
    padding: 10px 8px;
    border-radius: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 0.3px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-sub.active {
    background: rgba(193, 255, 114, 0.08);
    border-color: rgba(193, 255, 114, 0.2);
    color: var(--neon);
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (hover: hover) {
    .btn-sub:not(.active):hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.04);
    }
}

/* Scroll Horizontal de Rondas */
.rondas-wrapper {
    padding: 0 16px 16px 16px;
    overflow: hidden;
}

.scroll-horizontal {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}

.scroll-horizontal::-webkit-scrollbar {
    display: none;
}

.btn-ronda {
    background: rgba(255, 255, 255, 0.03);
    color: #a1a1a6;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 16px;
    border-radius: 30px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.btn-ronda.active {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
    animation: active-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

@keyframes active-pop {
    0% {
        transform: scale(0.92);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 10px 4px rgba(255, 255, 255, 0.2);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
    }
}

@media (hover: hover) {
    .btn-ronda:not(.active):hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.12);
    }
}

/* Estilos de Tabla de Clasificación */
.table-container {
    background: linear-gradient(180deg, #18181a 0%, #0e0e0f 100%);
    border-radius: 16px;
    padding: 10px;
    margin: 0 15px 20px 15px;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.76rem;
    white-space: nowrap;
}

/* Celda Equipo: Flexbox para alinear Escudo + Nombre */
.celda-equipo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.celda-equipo span {
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

.escudo-tabla {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}

th {
    color: #777;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.65rem;
    font-weight: 800;
    text-align: center;
}

th:nth-child(2) {
    text-align: left;
}

/* Row interactive styling */
table tbody tr {
    transition: background 0.25s ease;
    cursor: pointer;
}

table tbody tr:hover,
table tbody tr:active {
    background: rgba(255, 255, 255, 0.02);
}

/* Línea verde vertical para los equipos que pasan a la siguiente ronda (primeros 4 de cada grupo) */
table tbody tr.pasa-ronda td:first-child {
    border-left: 3px solid var(--neon);
}

td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    text-align: center;
    font-weight: 500;
}

td:nth-child(2) {
    text-align: left;
}

/* --- CLASIFICACIÓN: LAYOUT 2x2 --- */
.standings-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    padding: 0 15px;
}

@media(min-width: 768px) {
    .standings-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.table-container {
    background: linear-gradient(180deg, #18181a 0%, #0e0e0f 100%);
    border-radius: 16px;
    padding: 10px;
    /* Margin removido porque el grid ya tiene gap y padding container */
    margin: 0;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    height: 100%;
}

/* Columnas Extras (Ocultas por defecto) */
.extra-stat-col {
    display: none;
}

.extra-stat-col.visible {
    display: table-cell;
}

/* Botón Expandir */
.btn-expand-details {
    display: block;
    margin: 10px auto 20px auto;
    background: rgba(193, 255, 114, 0.05);
    border: 1px solid rgba(193, 255, 114, 0.2);
    color: var(--neon);
    padding: 8px 20px;
    border-radius: 50px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    outline: none;
}

.btn-expand-details:hover,
.btn-expand-details.active {
    background: var(--neon);
    color: #000;
    box-shadow: 0 4px 12px rgba(193, 255, 114, 0.25);
}

/* ========================================================================================== */
/* [SEC 8] UTILIDADES TARJETAS PARTIDOS (LISTADO GENERAL) */
/* ========================================================================================== */
/* Wrapper para centrar partidos en desktop */
.partidos-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.partido-card-wrapper {
    background: linear-gradient(145deg, #1e1e1e 0%, #121212 100%);
    border-radius: 20px;
    margin: 0 15px 15px 15px;
    padding: 20px;
    border: 1px solid rgba(193, 255, 114, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.partido-card-wrapper:active,
.partido-card-wrapper:hover {
    transform: scale(0.98);
}

.partido-info-top {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.partido-info-top span {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--neon);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(193, 255, 114, 0.05);
    padding: 5px 12px;
    border-radius: 6px;
}

.partido-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

.equipo-wrapper {
    width: 40%;
    display: flex;
    align-items: center;
    gap: 8px;
}

.equipo-wrapper.local {
    justify-content: flex-end;
    text-align: right;
}

.equipo-wrapper.visitante {
    justify-content: flex-start;
    text-align: left;
}

.equipo-nombre {
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.1;
}

.escudo-partido {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
}

.marcador {
    background: #000;
    color: var(--neon);
    padding: 8px 10px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 1.3rem;
    min-width: 65px;
    text-align: center;
    border: 1px solid #333;
}

.marcador.not-played {
    background: transparent;
    border: 1px dashed #444;
    color: #666;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0;
    box-shadow: none;
}

/* ========================================================================================== */
/* [SEC 5] EDICIONES & GRID DE CARTAS (JUGADORES/EQUIPOS) */
/* ========================================================================================== */
.editions-list-horizontal {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
    margin-bottom: 30px;
}

.card-edicion-horizontal {
    position: relative;
    width: 100%;
    height: 140px;
    border-radius: 18px;
    overflow: hidden;
    background: #1c1c1e;
    cursor: pointer;
    border: 1px solid #333;
    transition: transform 0.2s ease;
}

.card-edicion-horizontal:active,
.card-edicion-horizontal:hover {
    transform: scale(0.98);
}

.card-edicion-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-edicion {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* Permite clic a través del overlay */
}

.titulo-edicion-hover {
    color: #fff;
    font-weight: 900;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 15px;
}

/* --- ESTILO PREMIUM CARTA JUGADOR/EQUIPO (GRID) --- */
.card-mini {
    background: linear-gradient(135deg, #18181b 0%, #0d0d0e 100%);
    border-radius: 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/4;
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.card-mini:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.card-mini img {
    width: 100%;
    height: 78%;
    object-fit: cover;
    object-position: top;
    z-index: 1;
    transition: transform 0.3s ease;
}

/* Degradado inferior sobre la foto para integrar con el negro */
.card-mini::after {
    content: '';
    position: absolute;
    bottom: 22%;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, #0d0d0e 20%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* Texto del jugador "más bonito" */
.card-mini .card-texto {
    height: 22%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    background: rgba(13, 13, 14, 0.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 3;
    letter-spacing: 0.5px;
    padding: 0 4px;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-pos-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 0.52rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 5;
    text-transform: uppercase;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.pos-del {
    background: rgba(255, 80, 80, 0.15);
    color: #FF5050;
    border: 1px solid rgba(255, 80, 80, 0.25);
}

.pos-med {
    background: rgba(100, 180, 255, 0.15);
    color: #64B4FF;
    border: 1px solid rgba(100, 180, 255, 0.25);
}

.pos-def {
    background: rgba(255, 165, 0, 0.15);
    color: #FFA500;
    border: 1px solid rgba(255, 165, 0, 0.25);
}

.pos-por {
    background: rgba(193, 255, 114, 0.15);
    color: var(--neon);
    border: 1px solid rgba(193, 255, 114, 0.25);
}


/* ========================================================================================== */
/* [SEC 6 & 7] PERFILES (EQUIPO Y JUGADOR) */
/* ========================================================================================== */
/* Botones Volver */
.btn-volver-texto {
    background: none;
    border: none;
    color: #a1a1a6;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s;
}

.btn-volver-texto i {
    font-size: 0.85rem;
}

@media (hover: hover) {
    .btn-volver-texto:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }
}

.btn-volver-flotante,
.btn-back-absolute {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 20;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    font-size: 1.2rem;
}


.historial-ediciones-header {
    background: #000;
    padding: 15px 15px;
    display: flex;
    justify-content: center;
    /* Centrado */
    align-items: center;
    gap: 15px;
    overflow-x: auto;
    border-bottom: 1px solid #111;
    white-space: nowrap;
    scrollbar-width: none;
    min-height: 60px;
}

.hist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.3s;
}

.hist-item:hover,
.hist-item.active {
    opacity: 1;
}

.hist-escudo-mini {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.hist-texto {
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hist-separator {
    color: #444;
    font-size: 0.8rem;
    font-weight: 300;
}

/* Header Centrado y Grande (Optimizado) */
.perfil-header-nuevo {
    position: relative;
    height: 240px;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glow de color del equipo: capa de acento sutil en la parte inferior del header */
.perfil-header-nuevo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            color-mix(in srgb, var(--team-color, transparent) 35%, transparent) 0%,
            transparent 70%);
    pointer-events: none;
    z-index: 2;
    transition: background 0.5s ease;
}

.img-portada-fondo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.45;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    transition: opacity 0.5s;
}

.perfil-identidad-overlap {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 10;
    pointer-events: none;
    text-align: center;
}

.escudo-overlap-container {
    width: 90px;
    height: 90px;
    background: rgba(10, 10, 10, 0.4);
    border-radius: 50%;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    pointer-events: auto;
}

.escudo-overlap-img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.info-overlap-right {
    pointer-events: auto;
}

.texto-nombre-grande-nuevo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
    letter-spacing: -0.5px;
}

.team-tabs-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 16px 16px 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
    background: #080808;
}

.tab-team {
    background: none;
    border: none;
    color: #8a8a8f;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 8px 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tab-team.active {
    color: var(--team-color, var(--neon));
    border-bottom-color: var(--team-color, var(--neon));
}

.perfil-cuerpo-nuevo {
    padding: 0 16px 40px 16px;
    min-height: 300px;
}

/* --- TAB EQUIPO WRAPPER & SUBSECTIONS --- */
.tab-equipo-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mcm-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    color: #8a8a8f;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cic-empty-state {
    color: #555;
    font-size: 0.8rem;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.05);
}

/* Carrusel Horizontal de Partidos (Tab Equipo) */
.match-carousel-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0 16px 0;
    scrollbar-width: none;
}

.match-carousel-container::-webkit-scrollbar {
    display: none;
}

.match-card-mini {
    min-width: 250px;
    max-width: 250px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.match-card-mini:active {
    transform: scale(0.97);
}

.mcm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mcm-date {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
}

.mcm-group {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.55rem;
    font-weight: 800;
    color: var(--neon);
    background: rgba(193, 255, 114, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.mcm-rival-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mcm-vs {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6rem;
    font-weight: 850;
    color: #444;
}

.mcm-rival-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.mcm-rival-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.mcm-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2px;
}

.mcm-result-score {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.mcm-status-badge {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mcm-status-badge.win {
    background: rgba(193, 255, 114, 0.08);
    color: var(--neon);
    border: 1px solid rgba(193, 255, 114, 0.2);
}

.mcm-status-badge.loss {
    background: rgba(255, 80, 80, 0.08);
    color: #ff5050;
    border: 1px solid rgba(255, 80, 80, 0.2);
}

.mcm-status-badge.draw {
    background: rgba(255, 255, 255, 0.04);
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- TARJETA DE INFORMACIÓN DEL CLUB --- */
.club-info-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.005) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cic-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cic-icon-wrap {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon);
    font-size: 1.1rem;
}

.cic-title-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cic-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cic-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 850;
    color: #fff;
    margin: 2px 0 0 0;
}

.cic-id-badge {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6rem;
    font-weight: 800;
    color: #999;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cic-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.cic-stat-box {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cic-stat-val {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
}

.cic-stat-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.55rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* --- TARJETA DE EQUIPACIÓN (KIT) --- */
.club-kit-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.005) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.club-kit-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* La camiseta SVG dentro de la tarjeta de equipación */
.kit-shirt-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px 20px;
}

.kit-shirt-svg-wrap {
    flex-shrink: 0;
    width: 90px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.kit-shirt-svg {
    width: 100%;
    height: 100%;
}

.kit-shirt-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kit-shirt-patron {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kit-shirt-colors {
    display: flex;
    gap: 8px;
    align-items: center;
}

.kit-color-chip {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.12);
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    cursor: help;
    transition: transform 0.15s ease;
}

.kit-color-chip:hover {
    transform: scale(1.2);
}

/* --- PARTIDOS LIST TEAM (TEMPORADA TAB) --- */
.partidos-list-team {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 0 30px 0;
}

.partidos-list-team .partido-card-v2 {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 14px !important;
    margin: 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.partidos-list-team .partido-card-v2:hover,
.partidos-list-team .partido-card-v2:active {
    background: rgba(255, 255, 255, 0.03) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Perfil Jugador */
.perfil-jugador-fullscreen {
    background-color: var(--profile-bg);
    min-height: 100vh;
    padding: 0;
    position: relative;
    color: #fff;
    padding-bottom: 40px;
}

/* Hero Jugador */
.jugador-hero {
    position: relative;
    height: 50vh;
    width: 100%;
    overflow: hidden;
}

.img-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.img-jugador-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, #121212 25%, transparent);
}

.hero-info-overlay {
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    z-index: 10;
    padding-bottom: 15px;
}

.info-row-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0px;
}

.dorsal-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px #000;
}

/* PERCENTIL DEPORTIVO GIGANTE (Sin círculo) */
.percentil-grande {
    font-family: 'Inter', sans-serif;
    font-size: 6rem;
    /* Tamaño muy grande */
    font-weight: 900;
    font-style: italic;
    color: var(--neon);
    text-shadow: 0 0 25px rgba(193, 255, 114, 0.4);
    line-height: 0.8;
    transform: skewX(-5deg);
    /* Inclinación deportiva */
}

.alias-text {
    font-size: 3rem;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 20px #000;
}

.nac-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.flag-icon img {
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 2px 5px #000;
}

.nac-text {
    font-size: 0.9rem;
    color: #ddd;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.jugador-content-body {
    padding: 20px;
    background: var(--profile-bg);
}

.description-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #aaa;
    margin-bottom: 30px;
    font-style: italic;
    border-left: 3px solid var(--neon);
    padding-left: 15px;
}

.stats-box {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.stat-col {
    flex: 1;
    text-align: center;
}

.stat-val {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
}

.stat-lbl {
    font-size: 0.6rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.stat-separator {
    width: 1px;
    height: 35px;
    background: #333;
}

.section-block {
    margin-bottom: 30px;
}

.section-title {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 800;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.palmares-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.premio-item {
    background: #181818;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--neon);
    font-weight: 600;
    font-size: 0.9rem;
    color: #eee;
}

.trayectoria-vertical-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trayectoria-item-row {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #151515;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid #222;
    cursor: pointer;
    transition: 0.2s;
}

.trayectoria-item-row:active {
    background: #222;
}

.tray-img-small {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.tray-nombre {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}


/* ========================================================================================== */
/* ========================================================================================== */
/* [SEC 9] DETALLE DE PARTIDO (ESTILO ONEFOOTBALL CLEAN & ELEGANTE) */
/* ========================================================================================== */

#detalle-partido {
    background-color: #0d0d0d;
    min-height: 100vh;
    padding-bottom: 40px;
}

/* Header superior de la sección */
.header-nav-inline {
    position: relative;
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: #0d0d0d;
}

.header-nav-inline h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
    flex: 1;
    text-align: center;
}

/* OneFootball Header Card */
.of-match-header {
    background: #0d0d0e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 14px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

/* Acento de color local (izquierda, desde arriba) */
.of-match-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 60%;
    background: linear-gradient(to bottom,
            color-mix(in srgb, var(--local-color, transparent) 22%, transparent) 0%,
            transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Acento de color visitante (derecha, desde arriba) */
.of-match-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 60%;
    background: linear-gradient(to bottom,
            color-mix(in srgb, var(--visit-color, transparent) 22%, transparent) 0%,
            transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Asegurar que el contenido queda sobre los pseudo-elementos */
.of-match-header>* {
    position: relative;
    z-index: 1;
}

/* Strip de camisetas — kit clash en el header de partido */
.match-kit-clash {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 4px 0 2px;
    width: 100%;
}

.kit-clash-shirt {
    width: 52px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.6));
}

.kit-clash-shirt .kit-shirt-svg {
    width: 100%;
    height: 100%;
}

/* La camiseta visitante se refleja horizontalmente */
.kit-clash-visit .kit-shirt-svg {
    transform: scaleX(-1);
}

.kit-clash-vs {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6rem;
    font-weight: 900;
    color: #555;
    letter-spacing: 1px;
}

.of-header-league {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.of-header-scoreboard {
    display: flex;
    width: 100%;
    max-width: 480px;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    box-sizing: border-box;
}

.of-team-side {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    flex: 1 1 0px;
    min-width: 0;
    overflow: hidden;
    cursor: pointer;
}

.of-team-local {
    justify-content: center;
    text-align: center;
}

.of-team-visit {
    justify-content: center;
    text-align: center;
}

.of-team-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    margin: 0;
}

.of-team-escudo {
    width: 44px;
    height: 44px;
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.of-score-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 80px;
    padding: 0 2px;
}

.of-score-digits {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
    line-height: 1;
}

.of-date-sub {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.of-status-sub {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    color: #777777;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Timeline OneFootball Style */
.timeline-container {
    padding: 24px 16px 40px;
    max-width: 650px;
    margin: 0 auto;
}

.timeline-title {
    display: none;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

/* Linea vertical central */
.timeline-list::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(-50%);
    z-index: 0;
}

.of-tl-row {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
    min-height: 54px;
}

.of-tl-col {
    flex: 1;
    display: flex;
    min-width: 0;
}

.of-col-left {
    justify-content: flex-end;
    padding-right: 14px;
}

.of-col-right {
    justify-content: flex-start;
    padding-left: 14px;
}

.of-tl-center {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
}

.of-tl-min {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #666666;
    background: #0d0d0d;
    padding: 2px 4px;
}

/* Event Cards OneFootball */
.of-event-card {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 220px;
    width: 100%;
    box-shadow: none;
    transition: background 0.2s ease;
}

.of-card-local {
    justify-content: space-between;
}

.of-card-visit {
    justify-content: flex-start;
}

.of-event-card:hover {
    background: #2a2a2a;
}

.of-card-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.of-card-local .of-card-info {
    text-align: right;
    align-items: flex-end;
}

.of-card-visit .of-card-info {
    text-align: left;
    align-items: flex-start;
}

.of-player-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.of-subtext {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    color: #888888;
    margin-top: 2px;
}

.of-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.of-icon-ball {
    font-size: 0.85rem;
    color: #ffffff;
}

.of-icon-presi {
    font-size: 0.85rem;
    color: #e91e63;
}

.of-card-rect {
    width: 10px;
    height: 14px;
    border-radius: 2px;
    display: inline-block;
}

.of-card-rect.yellow {
    background-color: #ffd000;
}

.of-card-rect.red {
    background-color: #e53935;
}

.of-card-double {
    position: relative;
    display: inline-block;
    width: 15px;
    height: 18px;
}

.of-card-double .of-card-rect.yellow {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.of-card-double .of-card-rect.red {
    position: absolute;
    top: 4px;
    left: 5px;
    z-index: 2;
    box-shadow: -1px -1px 2px rgba(0, 0, 0, 0.4);
}

.of-timeline-empty {
    text-align: center;
    color: #555555;
    padding: 40px 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
}

.of-timeline-empty i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: block;
}




/* ========================================================================================== */
/* [SEC 8] FOOTER Y UTILIDADES */
/* ========================================================================================== */
.main-footer {
    background-color: #080808;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #222;
    color: #666;
    font-size: 0.8rem;
    margin-top: 40px;
}

.instagram-btn {
    background: var(--neon);
    color: #000;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.75rem;
    display: inline-block;
    margin: 20px 0;
}

/* Clases de utilidad */
.pantalla {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activa {
    display: block !important;
    opacity: 1;
}

.oculta {
    display: none !important;
}

/* ========================================================================================== */
/* [SEC 10] TABLE EXPANDABLE DETAILS */
/* ========================================================================================== */
.btn-expand {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    padding: 5px;
}

.btn-expand:hover {
    color: var(--neon);
}

.btn-expand.rotated {
    transform: rotate(180deg);
}

.details-row {
    display: none;
    background: rgba(193, 255, 114, 0.03);
    /* Slight neon tint */
    animation: fadeInRow 0.3s ease;
}

.details-row.show {
    display: table-row;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 15px 20px;
    text-align: center;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.detail-val {
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
}

.detail-lbl {
    color: var(--text-dim);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

@keyframes fadeInRow {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================================================================== */
/* [SEC 11] STATISTICS TAB LAYOUT */
/* ========================================================================================== */
.stats-grid-container {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Box Styling */
.stat-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

/* Adding a subtle gradient overlay to boxes */
.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--neon);
    opacity: 0.7;
}

.stat-box-title {
    color: var(--neon);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.stat-single-val {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    text-align: center;
    margin: auto 0;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Table inside Box */
.stat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.stat-table td {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #ddd;
}

.stat-table tr:last-child td {
    border-bottom: none;
}

.stat-table td.rank {
    width: 30px;
    color: var(--neon);
    font-Weight: 800;
}

.stat-table td.num {
    text-align: right;
    font-weight: 900;
    color: var(--neon);
    font-size: 0.9rem;
}

.stat-row-team {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-team-escudo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.box-full-width {
    grid-column: 1 / -1;
}

/* Responsive adjustment */
@media (max-width: 600px) {
    .stats-grid-container {
        grid-template-columns: 1fr;
    }
}

.oculta {
    display: none !important;
}

/* ========================================================================================== */
/* [SEC 12] RESPONSIVE MEDIA QUERIES - DESKTOP & TABLET */
/* ========================================================================================== */

/* TABLET (768px+) */
@media (min-width: 768px) {

    /* Navbar Desktop */
    .navbar {
        padding: 0 40px;
        height: 70px;
    }

    .logo-img {
        height: 35px;
    }

    .hamburger-btn {
        display: none;
    }

    .desktop-nav {
        display: flex;
    }

    /* Hero Section */
    .hero-video-container {
        height: 85vh;
    }

    .hero-menu-lateral {
        left: 60px;
        gap: 50px;
    }

    .menu-txt {
        font-size: 4rem;
    }

    .menu-num {
        font-size: 1rem;
        letter-spacing: 4px;
    }

    /* Headers */
    .header-section h1 {
        font-size: 2rem;
        margin: 35px 0;
    }

    /* Sub Menu */
    .sub-menu-container {
        max-width: 500px;
        margin: 0 auto 25px auto;
    }

    .btn-sub {
        font-size: 0.8rem;
        padding: 12px 20px;
    }

    /* Rounds Navigation */
    .rondas-wrapper {
        padding: 0 30px 20px 30px;
    }

    .btn-ronda {
        padding: 10px 24px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    /* Classification Table */
    .table-container {
        max-width: 800px;
        margin: 0 auto 25px auto;
        padding: 15px;
    }

    table {
        font-size: 0.85rem;
    }

    .escudo-tabla {
        width: 35px;
        height: 35px;
    }

    th,
    td {
        padding: 15px 12px;
    }

    /* Partido Cards */
    .partidos-wrapper {
        max-width: 700px;
    }

    .partido-card-wrapper {
        margin: 0 20px 20px 20px;
        padding: 25px;
    }

    .escudo-partido {
        width: 45px;
        height: 45px;
    }

    .equipo-nombre {
        font-size: 0.9rem;
    }

    .marcador {
        font-size: 1.5rem;
        padding: 10px 15px;
        min-width: 80px;
    }

    /* Editions Grid */
    .editions-list-horizontal {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 0 30px;
        max-width: 1000px;
        margin: 0 auto 40px auto;
    }

    .card-edicion-horizontal {
        height: 180px;
    }

    .titulo-edicion-hover {
        font-size: 1.8rem;
    }

    /* Player/Team Grid */
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        padding: 20px 30px;
        max-width: 1000px;
        margin: 0 auto;
    }

    .card-mini .card-texto {
        font-size: 0.65rem;
    }

    /* Team Profile */
    .perfil-header-container {
        height: 250px;
    }

    .img-escudo-perfil {
        width: 90px;
        height: 90px;
    }

    .texto-nombre-grande {
        font-size: 1.8rem;
    }

    .datos-identidad {
        left: 40px;
        bottom: 20px;
    }

    .perfil-cuerpo {
        padding: 20px 40px;
    }

    /* Player Profile */
    .jugador-hero {
        height: 60vh;
    }

    .alias-text {
        font-size: 3.5rem;
    }

    .percentil-grande {
        font-size: 7rem;
    }

    .dorsal-text {
        font-size: 2.2rem;
    }

    .jugador-content-body {
        padding: 30px 40px;
        max-width: 800px;
        margin: 0 auto;
    }

    .stats-box {
        padding: 30px 40px;
    }

    .stat-val {
        font-size: 1.6rem;
    }

    /* Match Detail */
    .match-header-container {
        padding: 40px;
        max-width: 800px;
        margin: 0 auto;
    }

    .mh-logo {
        width: 80px;
        height: 80px;
    }

    .mh-name {
        font-size: 1rem;
    }

    .mh-score {
        font-size: 3rem;
    }

    .timeline-container {
        max-width: 700px;
        margin: 0 auto;
        padding: 30px;
    }

    /* Footer */
    .main-footer {
        padding: 50px 40px;
    }

    .footer-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
    }

    .instagram-btn {
        margin: 0;
    }
}

/* DESKTOP (1024px+) */
@media (min-width: 1024px) {

    /* Navbar */
    .navbar {
        padding: 0 60px;
    }

    .desktop-nav .nav-btn {
        padding: 12px 25px;
        font-size: 0.85rem;
    }

    /* Hero */
    .hero-video-container {
        height: 90vh;
    }

    .hero-menu-lateral {
        left: 100px;
        gap: 60px;
    }

    .menu-txt {
        font-size: 5rem;
    }

    .menu-num {
        font-size: 1.1rem;
    }

    /* Headers */
    .header-section h1 {
        font-size: 2.5rem;
    }

    /* Editions */
    .editions-list-horizontal {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
    }

    .card-edicion-horizontal {
        height: 200px;
    }

    .titulo-edicion-hover {
        font-size: 2rem;
    }

    /* Grids */
    .grid-4 {
        grid-template-columns: repeat(5, 1fr);
        max-width: 1200px;
        gap: 20px;
    }

    /* Player Profile */
    .perfil-jugador-fullscreen {
        display: grid;
        grid-template-columns: 1fr 1fr;
        min-height: 100vh;
    }

    .btn-back-absolute {
        position: fixed;
        top: 80px;
        left: 20px;
        z-index: 100;
    }

    .jugador-hero {
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .jugador-content-body {
        padding: 40px 50px;
        max-width: none;
        overflow-y: auto;
        max-height: 100vh;
    }

    .hero-info-overlay {
        left: 30px;
        right: 30px;
        padding-bottom: 30px;
    }

    .alias-text {
        font-size: 4rem;
    }

    .percentil-grande {
        font-size: 8rem;
    }

    /* Team Profile */
    .perfil-header-container {
        height: 300px;
    }

    .img-escudo-perfil {
        width: 100px;
        height: 100px;
    }

    .texto-nombre-grande {
        font-size: 2.2rem;
    }

    .datos-identidad {
        left: 60px;
    }

    .perfil-cuerpo {
        max-width: 1200px;
        margin: 0 auto;
        padding: 30px 60px;
    }

    /* Match Detail */
    .mh-logo {
        width: 100px;
        height: 100px;
    }

    .mh-score {
        font-size: 3.5rem;
    }

    /* Statistics */
    .stats-grid-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 30px 60px;
    }
}

/* LARGE DESKTOP (1440px+) */
@media (min-width: 1440px) {
    .navbar {
        padding: 0 100px;
    }

    .hero-menu-lateral {
        left: 150px;
    }

    .menu-txt {
        font-size: 6rem;
    }

    .editions-list-horizontal {
        max-width: 1400px;
    }

    .grid-4 {
        grid-template-columns: repeat(6, 1fr);
        max-width: 1400px;
    }
}

/* MOBILE SPECIFIC (max 480px) */
@media (max-width: 480px) {
    .menu-txt {
        font-size: 2rem;
    }

    .hero-menu-lateral {
        left: 20px;
        gap: 30px;
    }

    .alias-text {
        font-size: 2.2rem;
    }

    .percentil-grande {
        font-size: 5rem;
    }

    .dorsal-text {
        font-size: 1.5rem;
    }

    .stats-box {
        padding: 20px;
        flex-wrap: wrap;
    }

    .stat-separator:nth-child(4) {
        display: none;
    }

    .stat-col {
        min-width: 80px;
    }
}

/* SIDEBAR - Only on Mobile/Tablet */
@media (min-width: 768px) {

    #sidebar-menu,
    #sidebar-overlay {
        display: none !important;
    }
}


/* ========================================================================================== */
/* [SEC 10] CAROUSEL HERO & NOTICIAS */
/* ========================================================================================== */

/* --- CAROUSEL ARRIBA (nuevo flow normal) --- */
.hero-matches-carousel {
    display: none;
    /* legado oculto */
}

.hero-matches-carousel-top {
    width: 100%;
    overflow: hidden;
    background: #0a0a0a;
    border-bottom: 1px solid #1a1a1a;
    padding: 14px 0;
}

/* Track que se mueve */
.carousel-track {
    display: flex;
    gap: 15px;
    width: max-content;
    animation: scroll-left 40s linear infinite;
    /* Velocidad ajustable */
    padding-left: 20px;
    /* Start offset */
}

.carousel-track:hover {
    animation-play-state: paused;
    /* Pausar al hover */
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Moverá hasta la mitad si duplicamos contenido */
}

/* Carta Partido Cuadrada */
.match-card-square {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 140px;
    height: 140px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: #fff;
    pointer-events: auto;
    /* Reactivar clicks en las cartas */
    flex-shrink: 0;
    transition: 0.3s;
    cursor: pointer;
}

.match-card-square:hover {
    background: var(--neon);
    color: #000;
    transform: scale(1.05);
    border-color: var(--neon);
}

.match-card-square:hover .square-result {
    color: #000;
    border-color: #000;
}

.square-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.square-teams img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.square-result {
    font-size: 1.2rem;
    font-weight: 900;
    border: 1px solid #444;
    padding: 2px 8px;
    border-radius: 6px;
    margin-bottom: 5px;
}

.square-date {
    font-size: 0.6rem;
    opacity: 0.7;
    text-transform: uppercase;
}


/* --- SECCION PREVIA NOTICIAS (HERO) --- */
.latest-news-section {
    padding: 0;
    background: var(--bg);
    position: relative;
    z-index: 5;
    border-top: 1px solid #1a1a1a;
}

.section-header-news {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 16px 12px 16px;
    border-bottom: 1px solid #1a1a1a;
}

.section-header-news h2 {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Botón Ver todas */
.btn-ver-todas {
    background: transparent;
    border: 1px solid #333;
    color: #aaa;
    padding: 6px 14px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

.btn-ver-todas:hover {
    background: var(--neon);
    color: #000;
    border-color: var(--neon);
}

/* LISTA DE NOTICIAS (estilo OneFootball) */
.news-list-feed {
    display: flex;
    flex-direction: column;
}

/* Cada fila de noticia */
.news-row-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #1a1a1a;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
}

.news-row-item:active,
.news-row-item:hover {
    background: #111;
}

/* Thumbnail derecha */
.news-row-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
    order: 2;
}

.news-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Contenido izquierda */
.news-row-content {
    flex: 1;
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.news-row-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.news-row-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-row-source {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-row-source-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--neon);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.45rem;
    font-weight: 900;
    color: #000;
}

.news-row-source-name {
    font-size: 0.7rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.news-row-time {
    font-size: 0.65rem;
    color: #555;
    font-weight: 500;
}

.news-row-dot {
    font-size: 0.5rem;
    color: #444;
}

/* --- BADGE NOTICIA NUEVA --- */
.news-row-item.is-new-news {
    background: linear-gradient(90deg, rgba(193, 255, 114, 0.03) 0%, transparent 40%);
}

.news-badge-nuevo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(193, 255, 114, 0.14);
    border: 1px solid rgba(193, 255, 114, 0.35);
    color: var(--neon, #c1ff72);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 1.5px 7px;
    border-radius: 12px;
    text-transform: uppercase;
    line-height: 1;
    margin-left: 2px;
    box-shadow: 0 0 8px rgba(193, 255, 114, 0.15);
}

.badge-nuevo-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--neon, #c1ff72);
    box-shadow: 0 0 6px var(--neon, #c1ff72);
    animation: pulseBadgeDot 1.8s infinite ease-in-out;
}

@keyframes pulseBadgeDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.35;
        transform: scale(0.7);
    }
}

.news-row-thumb {
    position: relative;
}

.news-thumb-tag-nuevo {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--neon, #c1ff72);
    color: #000;
    font-size: 0.5rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    padding: 2px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Legado: ocultar el grid antiguo si se usa todavía */
.news-grid-hero {
    display: flex;
    flex-direction: column;
}

/* --- CARTA NOTICIA LIQUID GLASS --- */
.news-card-glass {
    position: relative;
    height: 300px;
    /* Altura fija para uniformidad */
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #151515;
    /* Fondo solido para evitar huecos si falla imagen */
}

.news-card-glass:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
    border-color: rgba(193, 255, 114, 0.5);
    /* Borde Neon Sutil */
}

.news-glass-img {
    width: 100%;
    height: 100%;
    position: relative;
}

.news-glass-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card-glass:hover .news-glass-img img {
    transform: scale(1.15);
    /* Zoom lento */
}

/* Overlay Gradiente Oscuro para legibilidad */
.news-glass-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 10%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    pointer-events: none;
}

/* Contenido Flotante Estilo Cristal */
.news-glass-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
    pointer-events: none;
}

.news-glass-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
}

/* Decoración Neon pequeña */
.news-glass-content::before {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background: var(--neon);
    margin-bottom: 10px;
    border-radius: 2px;
}


/* --- PAGINA NOTICIAS COMPLETA (LISTADO) --- */
.news-container-full {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}


/* --- DETALLE NOTICIA (ARTICULO) --- */
.news-detail-container {
    background: var(--bg);
    min-height: 100vh;
    padding-bottom: 50px;
    position: relative;
}

.btn-back-absolute-news {
    position: fixed;
    /* Fixed para que siempre este visible al hacer scroll leyendo */
    top: 20px;
    left: 20px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-hero-image {
    width: 100%;
    height: 50vh;
    position: relative;
}

.news-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, var(--bg) 100%);
}

.news-title-overlay {
    position: absolute;
    bottom: 40px;
    left: 20px;
    right: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.news-title-overlay h1 {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    line-height: 1.1;
    margin-bottom: 10px;
}

.news-title-overlay h3 {
    font-size: 1.1rem;
    font-weight: 400;
    color: #ccc;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    margin: 0;
}

.news-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    color: #ddd;
    font-size: 1rem;
    line-height: 1.6;
}

.news-paragraph {
    margin-bottom: 20px;
}

.news-inter-image {
    width: 100%;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.news-footer-author {
    max-width: 800px;
    margin: 40px auto 0 auto;
    /* Separación del contenido */
    padding: 20px;
    border-top: 1px solid #333;
    text-align: right;
    font-style: italic;
    color: var(--neon);
    font-weight: 700;
}

/* ========================================================================================== */
/* [SEC 11] NOTICIAS RELACIONADAS & TABLA GOLEADORES COMPLETA */
/* ========================================================================================== */

/* Noticias Relacionadas */
.related-news-section {
    padding: 20px 20px 40px 20px;
    border-top: 1px solid #222;
    margin-top: 30px;
}

.related-news-title {
    color: #666;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.related-card {
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #333;
    transition: transform 0.2s;
}

.related-card:active {
    transform: scale(0.95);
}

.related-card img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.related-card-title {
    padding: 8px;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Tabla Goleadores Completa */
.full-scorers-container {
    padding: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.full-scorers-container table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 5px;
}

.full-scorers-container td {
    background-color: #1a1a1a;
    border: none;
    padding: 15px;
}

.full-scorers-container tr td:first-child {
    border-radius: 10px 0 0 10px;
}

.full-scorers-container tr td:last-child {
    border-radius: 0 10px 10px 0;
}

.full-scorers-container tr:active {
    transform: scale(0.99);
}





/* PANTALLA DE CARGA ELEGANTE Y FIJA */
#pantalla-carga {
    background-color: #000000 !important;
    /* Fondo negro absoluto */
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    /* Asegura que tape todo lo demás al arrancar */
}

.loader-img {
    max-width: 180px;
    height: auto;
    opacity: 1;
    filter: drop-shadow(0 0 20px rgba(255, 153, 0, 0.4));
}


/* ========================================================================================== */
/* [SEC 13] BOTTOM TAB BAR (Navegación Inferior Móvil)                                       */
/* ========================================================================================== */

.bottom-tab-bar {
    position: fixed;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 400px;
    height: 64px;
    background: rgba(18, 18, 22, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    z-index: 1100;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 0 8px;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    color: #8a8a8f;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Space Grotesk', sans-serif;
    padding: 0;
    position: relative;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.tab-item i {
    font-size: 1.15rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-item span {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-item.active {
    color: var(--neon, #C1FF72);
}

.tab-item.active i {
    transform: translateY(-3px) scale(1.15);
    text-shadow: 0 0 14px rgba(193, 255, 114, 0.55);
}

/* Indicador: pastilla de fondo con brillo neón */
.tab-item.active::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(193, 255, 114, 0.18) 0%, transparent 70%);
    pointer-events: none;
    animation: tab-glow-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Indicador inferior de punto de luz (dot) */
.tab-item.active::before {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: var(--neon, #C1FF72);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon, #C1FF72), 0 0 20px rgba(193, 255, 114, 0.4);
    animation: tab-dot-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes tab-glow-in {
    from {
        opacity: 0;
        transform: translateX(-50%) scale(0.5);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

@keyframes tab-dot-in {
    from {
        transform: translateX(-50%) scale(0);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
}

/* ── Animación de transición entre pantallas ── */
@keyframes pantalla-slide-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pantalla-entrando {
    animation: pantalla-slide-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* En desktop, ocultar la bottom tab bar */
@media (min-width: 768px) {
    .bottom-tab-bar {
        display: none;
    }
}

/* Compensar el espacio de la bottom bar en móvil */
@media (max-width: 767px) {
    #app-container {
        padding-bottom: 60px;
    }

    /* Ocultar el footer en móvil (lo reemplaza la bottom bar) */
    .main-footer {
        display: none;
    }

    /* Navbar solo muestra logo y título en móvil */
    .hamburger-btn {
        display: none;
        /* Ya no necesitamos el hamburguesa */
    }
}


/* ========================================================================================== */
/* [SEC 14] QUICK ACCESS CARDS (Cajas Acceso Rápido)                                         */
/* ========================================================================================== */

.quick-access-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px 14px 0 14px;
}

@media (min-width: 600px) {
    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
        margin: 0 auto;
        width: 100%;
    }
}

.quick-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 14px;
    padding: 16px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    position: relative;
    overflow: hidden;
    min-height: 72px;
}

.quick-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--neon);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.quick-card:hover,
.quick-card:active {
    background: #1a1a1a;
    border-color: #333;
    transform: scale(0.98);
}

.quick-card:hover::before {
    opacity: 1;
}

.quick-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(193, 255, 114, 0.08);
    border: 1px solid rgba(193, 255, 114, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-card-icon i {
    font-size: 1rem;
    color: var(--neon);
}

.quick-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.quick-card-label {
    font-size: 0.55rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.quick-card-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-card-arrow {
    color: #444;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Ajuste del hero section para layout nuevo */
#hero {
    background: var(--bg);
    min-height: calc(100vh - 56px);
}

/* Separación entre quick cards y noticias */
.quick-access-grid+.latest-news-section {
    margin-top: 14px;
}


/* ========================================================================================== */
/* [SEC 15] PARTIDOS V2 — Tarjetas Verticales Estilo OneFootball                             */
/* ========================================================================================== */

/* Bloque por Jornada */
.jornada-block {
    background: linear-gradient(180deg, #18181a 0%, #0e0e0f 100%);
    border-radius: 16px;
    overflow: hidden;
    margin: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Header de la jornada (logo + nombre) */
.jornada-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.jornada-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: contain;
    background: #1a1a1a;
    padding: 5px;
    flex-shrink: 0;
}

.jornada-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.jornada-titulo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: 0.2px;
}

.jornada-subtitulo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    color: #a1a1a6;
    font-weight: 600;
    text-transform: uppercase;
}

/* Etiqueta de Grupo dentro de un bloque */
.pcv2-grupo-label {
    padding: 10px 16px 4px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.01);
}

.pcv2-grupo-label span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Tarjeta individual de partido */
.partido-card-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.2s ease;
}

.partido-card-v2:last-child {
    border-bottom: none;
}

.partido-card-v2:hover,
.partido-card-v2:active {
    background: rgba(255, 255, 255, 0.02);
}

/* Columna izquierda: dos filas de equipos */
.pcv2-teams {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

/* Fila de un equipo */
.pcv2-team-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Escudo circular */
.pcv2-escudo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
    background: #1a1a1a;
}

/* Nombre del equipo */
.pcv2-nombre {
    flex: 1;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Gol (resultado) */
.pcv2-gol {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    min-width: 16px;
    text-align: right;
    flex-shrink: 0;
}

/* Columna derecha: estado del partido */
.pcv2-estado-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-left: 10px;
    min-width: 90px;
    flex-shrink: 0;
}

/* Estilos para penaltis en tarjetas y detalles */
.pcv2-pen-score {
    font-size: 0.8rem;
    color: #a1a1a6;
    margin-left: 4px;
    font-weight: 600;
}

.pcv2-pen-dots,
.of-pen-dots {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.pcv2-pen-dots {
    margin-left: auto;
    margin-right: 10px;
    flex-shrink: 0;
}

.pen-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.pen-dot-verde {
    background-color: #00cc66;
    box-shadow: 0 0 6px rgba(0, 204, 102, 0.6);
}

.pen-dot-rojo {
    background-color: #ff3333;
    box-shadow: 0 0 6px rgba(255, 51, 51, 0.6);
}

.pen-dot-gris {
    background-color: #555555;
}

.of-pen-score-detail {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #a1a1a6;
    margin-top: 4px;
}

.estado-badge {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: right;
    line-height: 1.4;
}

.estado-badge.estado-final {
    color: #666;
}

.estado-badge.estado-hora {
    color: var(--neon);
    font-weight: 700;
}

.estado-badge.estado-pendiente {
    color: #444;
}

.estado-badge.estado-directo {
    color: #baff3b;
    font-weight: 800;
    animation: pulso-directo 3s ease-in-out infinite;
}

@keyframes pulso-directo {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* "Por confirmar resultado" badge */
.estado-badge.estado-confirmar {
    color: #f5a623;
    font-weight: 600;
    font-style: italic;
}

/* Sub-navegación FASE DE GRUPOS / ELIMINATORIAS */
.clas-subnav {
    display: flex;
    gap: 8px;
    padding: 12px 16px 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 12px;
}

.btn-clas-sub {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    color: #a1a1a6;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    outline: none;
}

.btn-clas-sub.active {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

@media (hover: hover) {
    .btn-clas-sub:not(.active):hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.12);
    }
}

/* ========================================================================================== */
/* [SEC BRACKET] CUADRO ELIMINATORIAS — ÁRBOL TOP-DOWN                                       */
/* ========================================================================================== */

/* Contenedor raíz del árbol */
.bk-tree {
    padding: 4px 10px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Etiquetas de ronda */
.bk-round-label {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #555;
    margin: 14px 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bk-round-label i {
    color: var(--neon);
    font-size: 0.65rem;
}

.bk-final-label {
    color: var(--neon);
    font-size: 0.75rem;
    letter-spacing: 3px;
    margin-top: 0;
}

/* Fila de ramas lado a lado */
.bk-branches-row {
    display: flex;
    gap: 6px;
    width: 100%;
    align-items: flex-start;
}

/* Rama individual (cuartos + conector + semi) */
.bk-branch {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Grid: cards a la izquierda, conector en L a la derecha */
.bk-quarters {
    display: grid;
    grid-template-columns: 1fr 12px;
    width: 100%;
    align-items: stretch;
}

.bk-quarters>.bk-card:first-child {
    grid-column: 1;
    grid-row: 1;
}

/* Conector en L: ocupa ambas filas */
.bk-connector-pair {
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px 0 4px;
}

.bk-vline {
    flex: 1;
    border-left: 1px solid #2e2e2e;
}

.bk-hline {
    height: 1px;
    background: #2e2e2e;
    width: 100%;
}

.bk-quarters>.bk-card:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
    margin-top: 5px;
}

/* Flecha vertical conector → semi */
.bk-arrow-down {
    display: flex;
    justify-content: center;
    height: 16px;
    width: 100%;
}

.bk-vline-arrow {
    width: 1px;
    height: 100%;
    background: #2e2e2e;
}

/* Semi de cada rama */
.bk-semi-slot {
    width: 100%;
}

/* ---- Conector Semis → Final ---- */
.bk-semis-connector {
    display: flex;
    width: 75%;
    height: 22px;
}

.bk-sl-left {
    flex: 1;
    height: 50%;
    border-top: 1px solid #2e2e2e;
    border-right: 1px solid #2e2e2e;
    align-self: flex-start;
}

.bk-sl-center {
    width: 1px;
    height: 100%;
    background: #2e2e2e;
    flex-shrink: 0;
}

.bk-sl-right {
    flex: 1;
    height: 50%;
    border-top: 1px solid #2e2e2e;
    border-left: 1px solid #2e2e2e;
    align-self: flex-start;
}

/* Slot de la Final */
.bk-final-slot {
    width: 70%;
    max-width: 200px;
}

.bk-final-slot .bk-card {
    border-color: var(--neon);
    box-shadow: 0 0 18px rgba(193, 255, 114, 0.13);
}

/* ======================== TARJETA DE PARTIDO ======================== */
.bk-card {
    background: #161616;
    border: 1px solid #252525;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s;
}

.bk-card:hover,
.bk-card:active {
    transform: scale(0.97);
    border-color: #444;
}

/* Placeholder TBD */
.bk-tbd {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    border-style: dashed !important;
    border-color: #1e1e1e !important;
    background: #0e0e0e;
    cursor: default;
    color: #2a2a2a;
    font-size: 1rem;
    box-shadow: none !important;
}

.bk-tbd:hover,
.bk-tbd:active {
    transform: none !important;
}

/* Fecha */
.bk-date {
    font-size: 0.5rem;
    color: #444;
    text-align: center;
    padding: 4px 6px 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Separador entre equipos */
.bk-sep {
    height: 1px;
    background: #1e1e1e;
}

/* ======================== FILA DE EQUIPO ======================== */
.bk-team {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 7px;
    transition: background 0.2s;
}

.bk-win {
    background: rgba(193, 255, 114, 0.07);
}

.bk-lose {
    opacity: 0.35;
}

.bk-shield {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7));
    cursor: pointer;
    transition: transform 0.15s;
}

.bk-shield:hover {
    transform: scale(1.2);
}

.bk-name {
    flex: 1;
    font-size: 0.57rem;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bk-win .bk-name {
    color: #fff;
}

.bk-score {
    font-size: 0.7rem;
    font-weight: 900;
    color: #555;
    min-width: 14px;
    text-align: right;
    flex-shrink: 0;
}

.bk-score small {
    font-size: 0.46rem;
    color: #777;
    font-weight: 600;
    margin-left: 1px;
}

.bk-score-win {
    color: var(--neon);
}

.bk-score-win small {
    color: rgba(193, 255, 114, 0.6);
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 360px) {
    .bk-name {
        font-size: 0.5rem;
    }

    .bk-shield {
        width: 17px;
        height: 17px;
    }

    .bk-score {
        font-size: 0.62rem;
    }
}


/* ========================================================================================== */
/* [FINAL CARD] GRAN FINAL — Widget Home Premium                                              */
/* ========================================================================================== */

.final-luxury-card {
    position: relative;
    background: linear-gradient(160deg, #0f0f0d 0%, #111110 50%, #0a0a08 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    box-shadow:
        0 12px 50px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(212, 175, 55, 0.08),
        inset 0 1px 0 rgba(212, 175, 55, 0.08);
}

.final-luxury-card:active {
    transform: scale(0.984);
}

.final-luxury-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
}

/* Glow ambiental de fondo */
.final-bg-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 25% 40%, rgba(212, 175, 55, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 60%, rgba(212, 175, 55, 0.05) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

/* Shimmer sweep animado */
.final-bg-shimmer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.final-bg-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.05) 50%,
        transparent 100%);
    animation: final-shimmer-sweep 5s ease-in-out infinite;
}

@keyframes final-shimmer-sweep {
    0%   { left: -80%; opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { left: 140%; opacity: 0; }
}

/* Línea separadora dorada superior */
.final-divider-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.6) 30%,
        rgba(255, 220, 100, 0.9) 50%,
        rgba(212, 175, 55, 0.6) 70%,
        transparent 100%);
    z-index: 2;
}

/* ---- Header badge ---- */
.final-header-badge {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px 0;
}

.final-trophy-icon {
    font-size: 1.05rem;
    animation: final-trophy-pulse 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes final-trophy-pulse {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.4)); transform: scale(1); }
    50%       { filter: drop-shadow(0 0 14px rgba(255, 220, 80, 0.85)); transform: scale(1.1); }
}

.final-header-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: #d4af37;
    text-shadow: 0 0 16px rgba(212, 175, 55, 0.5);
}

.final-edition-tag {
    margin-left: auto;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: rgba(212, 175, 55, 0.55);
    text-transform: uppercase;
    background: rgba(212, 175, 55, 0.07);
    border: 1px solid rgba(212, 175, 55, 0.15);
    padding: 3px 9px;
    border-radius: 5px;
}

/* ---- Matchup ---- */
.final-matchup {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 14px;
    gap: 10px;
}

.final-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.final-escudo-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
}

.final-escudo-wrap::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
}

.final-escudo {
    width: 68px;
    height: 68px;
    object-fit: contain;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.7));
    transition: transform 0.25s ease;
    position: relative;
    z-index: 1;
}

.final-luxury-card:hover .final-escudo {
    transform: scale(1.06);
}

.final-team-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    color: #c8c8c8;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}

/* ---- Centro ---- */
.final-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.final-vs-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: rgba(212, 175, 55, 0.65);
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

/* Kits SVG en el centro */
.final-kit-clash {
    display: flex;
    align-items: center;
    gap: 3px;
}

.final-kit-clash .kit-shirt-svg {
    width: 28px;
    height: 28px;
}

.final-kit-vs {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.55rem;
    font-weight: 900;
    color: rgba(212, 175, 55, 0.5);
    letter-spacing: 1px;
    padding: 0 2px;
}

/* Fecha y hora */
.final-datetime {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.final-hora {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -1px;
    line-height: 1;
    text-shadow: 0 2px 12px rgba(255, 255, 255, 0.12);
}

.final-fecha {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.58rem;
    font-weight: 600;
    color: rgba(212, 175, 55, 0.65);
    letter-spacing: 0.4px;
    text-transform: capitalize;
    text-align: center;
    line-height: 1.3;
}

/* ---- Estado de forma ---- */
.final-forma-section {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(212, 175, 55, 0.08);
    padding: 11px 14px 14px;
}

.final-forma-header {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    color: #444;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.final-forma-header i {
    color: rgba(212, 175, 55, 0.35);
}

.final-forma-grid {
    display: flex;
    gap: 8px;
}

.final-forma-grid .prox-forma-card-box {
    flex: 1;
    min-width: 0;
}

/* ========================================================================================== */
/* [SEC STATS] ESTADÍSTICAS — RANKINGS (estilo imagen de referencia)                         */
/* ========================================================================================== */

/* Página contenedora */
.sr-page {
    padding: 0 0 48px;
}

.sr-page-full {
    padding: 8px 0 48px;
}

/* ===================== BLOQUE DE RANKING ===================== */
.sr-block {
    background: linear-gradient(180deg, #18181a 0%, #0e0e0f 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin: 12px 14px 20px 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Cabecera del bloque: "GOLEADORES" + badge tipo */
.sr-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sr-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.sr-type-badge {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--neon);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(193, 255, 114, 0.1);
    border: 1px solid rgba(193, 255, 114, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
}

/* ===================== FILA DE RANKING ===================== */

.sr-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.sr-row:last-child {
    border-bottom: none;
}

.sr-row:hover,
.sr-row:active {
    background: rgba(255, 255, 255, 0.02);
}

/* Posición (solo en tabla completa) */
.sr-pos {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    color: #555;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Avatar / Escudo */
.sr-avatar {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    background: #111;
    border-radius: 6px;
}

/* Foto de jugador → expandida, no circular */
.sr-circle {
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 44px;
    height: 55px;
    /* Aspecto tarjeta deportiva vertical */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Texto central */
.sr-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sr-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #f0f0f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sr-sub {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Mini escudo del equipo actual en las stats de jugadores */
.sr-team-badge {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* Número grande a la derecha */
.sr-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--neon);
    flex-shrink: 0;
    min-width: 36px;
    text-align: right;
    line-height: 1;
    text-shadow: 0 0 10px rgba(193, 255, 114, 0.2);
}

/* ===================== BOTÓN VER TODOS ===================== */
.sr-ver-todos {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #a1a1a6;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.sr-ver-todos:hover,
.sr-ver-todos:active {
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
}

/* ===================== TABLA COMPLETA ===================== */
.full-scorers-container {
    overflow-y: auto;
    flex: 1;
    padding: 0;
}

/* Número más compacto en tabla completa (hay columna pos) */
.sr-row-full .sr-num {
    font-size: 1.4rem;
}

/* Responsive: reducir avatar en pantallas pequeñas */
@media (max-width: 360px) {
    .sr-avatar {
        width: 40px;
        height: 40px;
    }

    .sr-circle {
        width: 40px;
        height: 50px;
    }

    .sr-name {
        font-size: 0.8rem;
    }

    .sr-num {
        font-size: 1.4rem;
    }
}


/* ========================================================================================== */
/* [SEC HOME] FANTASY CARD — DISEÑO MÓVIL ALTA FLUIDEZ                                         */
/* ========================================================================================== */

.home-fantasy-card {
    position: relative;
    width: calc(100% - 32px);
    margin: 18px auto 20px auto;
    height: 115px;
    /* Altura ideal balanceada para móviles */
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d0d0d;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Borde de cristal elegante y sobrio */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);

    perspective: 1000px;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Efecto elástico al pulsar (muy importante para móvil) */
.home-fantasy-card:active {
    transform: scale(0.96) !important;
}

/* 1. EL FONDO (Paralaje de scroll en GPU) */
.fantasy-bg-layer {
    position: absolute;
    inset: -40px;
    /* Reducido para optimizar texturas */
    background-image: url('images/base/fondo_boton_fantasy.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: translate(calc(var(--bg-offset-x, 0px) * 1.5), calc(var(--bg-offset-y, 0px) * 1.5)) scale(1.2);
    will-change: transform;
    transition: transform 0.15s ease-out;
}

/* Tarjeta de fotos estilizada y deportiva con fondo visible */
.home-fotos-card {
    position: relative;
    width: calc(100% - 32px);
    margin: 0 auto 20px auto;
    height: 140px;
    /* Altura ideal para la foto y las acciones */
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    background: #0d0d0d;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    perspective: 1000px;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.1s ease-out, border-color 0.3s ease;
}

.home-fotos-card:hover {
    border-color: rgba(0, 188, 212, 0.5);
}

.home-fotos-card:active {
    transform: scale(0.98) !important;
}

/* El fondo con paralaje */
.fotos-bg-layer {
    position: absolute;
    inset: -20px;
    background-image: url('images/base/c43d45b8d34fae19fbb4a11057f55a92.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: translate(calc(var(--bg-offset-x, 0px) * 1.2), calc(var(--bg-offset-y, 0px) * 1.2)) scale(1.1);
    will-change: transform;
    transition: transform 0.15s ease-out;
}

/* Overlay de gradiente suave para lectura.
   Cubre el lado izquierdo con un difuminado oscuro pero deja el resto claro */
.fotos-gradient-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, rgba(13, 13, 13, 0.95) 0%, rgba(13, 13, 13, 0.7) 40%, rgba(13, 13, 13, 0.1) 70%, rgba(13, 13, 13, 0.4) 100%);
    pointer-events: none;
}

.fotos-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    opacity: 0.05;
    background-size: 10px 10px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    pointer-events: none;
}

/* Contenido de la tarjeta */
.fotos-card-content {
    position: relative;
    z-index: 4;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    box-sizing: border-box;
    transform: translateZ(20px);
}

.fotos-left-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    height: 100%;
}

.fotos-tag-live {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #00BCD4;
    background: rgba(0, 188, 212, 0.15);
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(0, 188, 212, 0.25);
    text-transform: uppercase;
}

.fotos-title-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-fotos-label-main {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    line-height: 0.9;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    transform: skewX(-6deg);
}

.fotos-jornada-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neon);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.fotos-right-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    justify-content: center;
}

.fotos-btn-action {
    background: #00BCD4;
    border: none;
    color: #000;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 10px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 188, 212, 0.4);
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.fotos-btn-action:hover {
    background: #00e5ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.6);
}

.fotos-btn-action-all {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.fotos-btn-action-all:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .home-fotos-card {
        height: auto;
        min-height: 145px;
        padding: 12px 0;
    }

    .fotos-card-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 16px;
    }

    .fotos-right-content {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    .fotos-btn-action,
    .fotos-btn-action-all {
        flex: 1;
        justify-content: center;
        padding: 8px 10px;
        font-size: 0.65rem;
    }
}

/* ========================================================================================== */
/* MODAL FOTOS JORNADAS                                                                       */
/* ========================================================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.modal-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header-title h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: #fff;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

/* Lista de fotos en el modal */
.modal-fotos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-foto-item {
    position: relative;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.modal-foto-item:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 188, 212, 0.4);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.2);
}

.modal-foto-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.3s ease;
}

.modal-foto-item:hover .modal-foto-bg {
    transform: scale(1.05);
}

.modal-foto-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
}

.modal-foto-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-foto-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.modal-foto-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.modal-foto-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--neon);
    letter-spacing: 1px;
}

.modal-foto-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #00BCD4;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 0.8rem;
    transition: background-color 0.2s, transform 0.2s;
}

.modal-foto-item:hover .modal-foto-btn {
    background: #00e5ff;
    transform: scale(1.1);
}



/* Tinte oscuro del fondo */
.fantasy-bg-layer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(13, 13, 13, 0.4) 0%, rgba(13, 13, 13, 0.9) 100%);
    pointer-events: none;
}

/* 2. REJILLA DEPORTIVA */
.fantasy-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.08;
    background-size: 14px 14px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    pointer-events: none;
}

/* 3. LENTE CRISTAL Y RESPLANDOR (Brillo interno) */
.fantasy-lens-distortion {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
}

.fantasy-glass-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    backdrop-filter: blur(1.5px) saturate(1.1);
    -webkit-backdrop-filter: blur(1.5px) saturate(1.1);
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.01) 60%,
            transparent 100%);
}

/* 4. LÍNEA DE ESCÁNER DIAGONAL (Animación 100% acelerada por GPU) */
.fantasy-scanner-line {
    position: absolute;
    top: 0;
    left: -100%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.06) 50%,
            transparent 100%);
    transform: skewX(-25deg);
    z-index: 5;
    pointer-events: none;
    animation: scan-sweep 5s ease-in-out infinite;
}

@keyframes scan-sweep {
    0% {
        transform: translate3d(-100%, 0, 0) skewX(-25deg);
    }

    30% {
        transform: translate3d(250%, 0, 0) skewX(-25deg);
    }

    100% {
        transform: translate3d(250%, 0, 0) skewX(-25deg);
    }
}

/* 5. CONTENIDO DE LA TARJETA (Alineación móvil sin desbordamiento) */
.fantasy-card-content {
    position: relative;
    z-index: 6;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 16px;
    /* Ajuste de padding para evitar cortes */
    box-sizing: border-box;
    transform: translateZ(25px);
    /* Efecto de profundidad */
    pointer-events: none;
}

/* Badge superior */
.fantasy-badge-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.fantasy-tag-live {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #b3b3b3;
    background: rgba(255, 255, 255, 0.06);
    padding: 3px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.live-dot {
    width: 5px;
    height: 5px;
    background-color: var(--neon);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--neon);
    animation: pulse-neon 2s infinite;
}

@keyframes pulse-neon {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(193, 255, 114, 0.6);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 5px rgba(193, 255, 114, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(193, 255, 114, 0);
    }
}

/* Título principal optimizado */
.fantasy-title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    margin: 2px 0;
}

.home-fantasy-label-main {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.2rem, 7.5vw, 2.7rem);
    /* Tamaño adaptativo para móvil */
    font-weight: 900;
    font-style: italic;
    letter-spacing: -1px;
    text-transform: uppercase;
    line-height: 1;

    /* Degradado cromado metalizado suave */
    background: linear-gradient(180deg, #ffffff 30%, #d8d8d8 50%, #ececec 55%, #a6a6a6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Sombra limpia sin destellos verdes pesados */
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.8));
    transform: skewX(-4deg);
    will-change: transform;
    transition: transform 0.2s ease;
    display: inline-block;
    padding: 0 10px;
}

/* Badge de llamada a la acción */
.fantasy-action-badge {
    align-self: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--neon);
    display: flex;
    align-items: center;
    gap: 4px;
}

.fantasy-action-badge i {
    font-size: 0.55rem;
}


/* ---- PARTIDOS DE HOY ---- */
.home-partidos-hoy {
    background: #000;
    width: 100%;
}

.home-ph-header {
    padding: 18px 16px 10px;
    border-bottom: 1px solid #1a1a1a;
}

.home-ph-titulo {
    font-size: 0.78rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.home-ph-match {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.home-ph-match:hover,
.home-ph-match:active {
    background: #0f0f0f;
}

.home-ph-team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.home-ph-team-r {
    flex-direction: row-reverse;
    text-align: right;
}

.home-ph-esc {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7));
}

.home-ph-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-ph-center {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding: 0 12px;
}

.home-ph-hora {
    font-size: 0.8rem;
    font-weight: 700;
    color: #888;
    letter-spacing: 0.5px;
}

.home-ph-score-val {
    font-size: 1.1rem;
    font-weight: 900;
    color: #fff;
}

.home-ph-dash {
    font-size: 0.9rem;
    font-weight: 700;
    color: #555;
    padding: 0 2px;
}

.home-ph-sep {
    height: 1px;
    background: #111;
    margin: 0 16px;
}

.home-ph-empty {
    text-align: center;
    padding: 20px 16px;
    color: #444;
    font-size: 0.75rem;
    margin: 0;
}

.home-ph-btn {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    border-top: 1px solid #1a1a1a;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    padding: 14px 16px;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
}

.home-ph-btn:hover,
.home-ph-btn:active {
    background: #0f0f0f;
}

/* ========================================================================================== */
/* [SEC NEWS] DETALLE DE NOTICIA (Diseño Editorial Deportivo Premium)                        */
/* ========================================================================================== */


/* ========================================================================================== */
/* [SEC PROX] PROXIMO PARTIDO DEL EQUIPO FAVORITO - WIDGET HOME                             */
/* ========================================================================================== */

/* ===== PRÓXIMO PARTIDO & RECENT FORM (LUXURY WIDGET HOME) ===== */
.prox-partido-luxury-card {
    background: #12131a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.prox-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.prox-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.prox-header-escudo {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.prox-header-titles {
    display: flex;
    flex-direction: column;
}

.prox-header-tag {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #06b6d4;
    text-transform: uppercase;
}

.prox-header-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
}

.prox-comp-badge {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #d1d5db;
}

/* Matchup Container */
.prox-matchup-container {
    padding: 22px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    position: relative;
    transition: background 0.2s ease;
}

.prox-matchup-container:hover {
    background: rgba(255, 255, 255, 0.02);
}

.prox-team-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    text-align: center;
}

.prox-team-escudo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: transform 0.2s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.prox-team-col:hover .prox-team-escudo {
    transform: scale(1.08);
}

.prox-team-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #f3f4f6;
    letter-spacing: 0.3px;
    max-width: 105px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prox-center-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
}

.prox-time-badge {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #C1FF72;
    text-shadow: 0 0 12px rgba(193, 255, 114, 0.3);
}

.prox-date-pill {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #9ca3af;
    text-transform: uppercase;
}

.prox-round-pill {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #6b7280;
    text-transform: uppercase;
}

/* Kit clash miniatura en el widget de MI EQUIPO (home) */
.prox-kit-clash {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.prox-kit-clash .kit-shirt-svg {
    width: 36px;
    height: 32px;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

/* La camiseta visitante se refleja horizontalmente */
.prox-kit-clash .kit-shirt-svg:last-of-type {
    transform: scaleX(-1);
}

.prox-kit-vs {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.52rem;
    font-weight: 900;
    color: #444;
    letter-spacing: 0.5px;
}

/* Acento de color local/visitante en el matchup container */
.prox-matchup-container {
    position: relative;
    overflow: hidden;
}

.prox-matchup-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 55%;
    background: linear-gradient(to bottom,
            color-mix(in srgb, var(--local-color, transparent) 20%, transparent) 0%,
            transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.prox-matchup-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 55%;
    background: linear-gradient(to bottom,
            color-mix(in srgb, var(--visit-color, transparent) 20%, transparent) 0%,
            transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.prox-matchup-container>* {
    position: relative;
    z-index: 1;
}

/* Recent Form Section (Both Teams Side-by-Side) */
.prox-forma-section {
    padding: 14px 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
}

.prox-forma-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.prox-forma-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #9ca3af;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.prox-forma-title i {
    color: #10b981;
}

.prox-forma-boxes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.prox-forma-card-box {
    background: #181a24;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.prox-forma-box-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6rem;
    font-weight: 700;
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.prox-forma-box-escudo {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.prox-forma-strip {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 6px;
    width: 100%;
}

.prox-forma-card-box.is-left .prox-forma-strip {
    justify-content: flex-end;
}

.prox-forma-card-box.is-right .prox-forma-strip {
    justify-content: flex-start;
}

.stat-inv-tag {
    font-size: 0.58rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: lowercase;
    margin-left: 3px;
    letter-spacing: 0;
}

.prox-form-pill-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
}

.prox-form-pill-wrap:hover {
    transform: translateY(-2px);
}

.prox-form-rival-esc {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.95;
}

.prox-form-badge {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    color: #ffffff;
    position: relative;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Indicador subrayado para el partido más reciente */
.prox-form-pill-wrap.is-latest .prox-form-badge::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 2px;
    right: 2px;
    height: 3px;
    border-radius: 2px;
}

.prox-form-pill-wrap.is-latest .form-win::after {
    background: #10b981;
}

.prox-form-pill-wrap.is-latest .form-win-pen::after {
    background: #059669;
}

.prox-form-pill-wrap.is-latest .form-loss::after {
    background: #ef4444;
}

.prox-form-pill-wrap.is-latest .form-loss-pen::after {
    background: #dc2626;
}

.prox-form-pill-wrap.is-latest .form-draw::after {
    background: #9ca3af;
}

.prox-form-badge.form-win {
    background: #10b981;
}

.prox-form-badge.form-win-pen {
    background: #059669;
    font-size: 0.6rem;
}

.prox-form-badge.form-loss {
    background: #ef4444;
}

.prox-form-badge.form-loss-pen {
    background: #dc2626;
    font-size: 0.6rem;
}

.prox-form-badge.form-draw {
    background: #6b7280;
}

.prox-form-badge.form-win-pen {
    background: #10b981;
    font-size: 0.55rem;
}

.prox-form-badge.form-loss {
    background: #ff3b30;
}

.prox-form-badge.form-loss-pen {
    background: #f97316;
    font-size: 0.55rem;
}

.prox-form-badge.form-draw {
    background: #777777;
}

.prox-form-latest-bar {
    width: 10px;
    height: 2px;
    border-radius: 1px;
    margin-top: 2px;
}

.prox-form-latest-bar.form-win {
    background: #00c06d;
}

.prox-form-latest-bar.form-loss {
    background: #ff3b30;
}

.prox-form-latest-bar.form-draw {
    background: #777777;
}

.prox-form-latest-bar.form-win-pen {
    background: #10b981;
}

.prox-form-latest-bar.form-loss-pen {
    background: #f97316;
}

.prox-forma-empty {
    font-size: 0.65rem;
    color: #6b7280;
    font-style: italic;
    padding: 6px 0;
}

.news-detail-wrapper {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
    padding-bottom: 60px;
}

/* Header Text & Meta */
.news-detail-header {
    padding: 20px 20px 16px;
}

.news-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(193, 255, 114, 0.08);
    border: 1px solid rgba(193, 255, 114, 0.25);
    color: var(--neon);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.news-detail-title {
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.25;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: -0.4px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

@media (min-width: 600px) {
    .news-detail-title {
        font-size: 1.85rem;
    }
}

.news-detail-subtitle {
    font-size: 0.95rem;
    color: #b0b0b8;
    margin: 0 0 16px 0;
    line-height: 1.45;
    font-weight: 400;
    border-left: 3px solid var(--neon);
    padding-left: 12px;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.news-author-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon) 0%, #76b82a 100%);
    color: #000;
    font-weight: 900;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.5px;
    box-shadow: 0 2px 8px rgba(193, 255, 114, 0.3);
    flex-shrink: 0;
}

.news-meta-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.news-detail-autor {
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-detail-fecha {
    font-size: 0.75rem;
    color: #888890;
    font-weight: 500;
}

/* Cover Image Hero */
.news-detail-hero {
    position: relative;
    width: 100%;
    margin: 0 0 24px 0;
    border-radius: 0;
    overflow: hidden;
    background: #121214;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 600px) {
    .news-detail-hero {
        border-radius: 16px;
        margin: 0 20px 24px;
        width: calc(100% - 40px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
}

.news-portada-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Article Body */
.news-detail-body {
    padding: 0 20px 24px;
}

.news-paragraph {
    font-size: 1.02rem;
    line-height: 1.72;
    color: #e2e2e8;
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: -0.1px;
}

.news-body-img-wrapper {
    width: 100%;
    margin: 24px 0;
    border-radius: 14px;
    overflow: hidden;
    background: #161618;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.news-inter-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

/* Related News */
.news-related-section {
    padding: 24px 20px 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 16px;
}

.news-related-title {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--neon);
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.related-card {
    background: linear-gradient(145deg, #1a1a1c 0%, #121214 100%);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.related-card:hover,
.related-card:active {
    transform: translateY(-2px);
    border-color: rgba(193, 255, 114, 0.3);
}

.related-card-img-box {
    width: 100%;
    height: 95px;
    background: #111;
    overflow: hidden;
}

.related-card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.related-card:hover .related-card-img-box img {
    transform: scale(1.05);
}

.related-card-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.related-card-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.related-card-date {
    font-size: 0.65rem;
    color: #888890;
    font-weight: 500;
}

/* ========================================================================================== */
/* [SEC 27] CENTRO DE NOTIFICACIONES */
/* ========================================================================================== */
.notif-wrapper {
    position: relative;
    display: inline-block;
}

.notif-bell-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
    position: relative;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
}

.notif-bell-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-1px);
}

.notif-bell-btn.shield-btn {
    font-size: 1.1rem;
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #ff3b30;
    color: white;
    font-size: 0.68rem;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 5px;
    min-width: 16px;
    text-align: center;
    border: 1.5px solid #0d0e13;
}

/* ========================================================================================== */
/* [SEC 27] CENTRO DE NOTIFICACIONES — PANEL DESPLEGABLE BARRA SUPERIOR */
/* ========================================================================================== */
.notif-panel {
    position: absolute;
    top: 48px;
    right: 0;
    width: 320px;
    max-width: 90vw;
    background: #11131a;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    z-index: 999999;
    display: flex;
    flex-direction: column;
}

.notif-panel.hidden {
    display: none !important;
}

.notif-header {
    padding: 14px 16px;
    background: #090a0e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notif-header h3 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    color: #ffffff;
}

.notif-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-header-icon {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-header-icon:hover {
    background: #ffffff;
    color: #000000;
}

.btn-close {
    background: transparent;
    border: none;
    color: #8a8f9c;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.btn-close:hover {
    color: #ffffff;
}

.notif-body {
    padding: 12px;
    max-height: 380px;
    overflow-y: auto;
}

.notif-body.hidden {
    display: none !important;
}

.notif-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}

.settings-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 4px 0;
}

.settings-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
    color: #8a8f9c;
    text-transform: uppercase;
    margin: 0 0 4px;
}

.setting-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    color: #d1d5db;
    cursor: pointer;
}

.btn-save-settings {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 6px;
    transition: all 0.2s ease;
}

.btn-save-settings:hover {
    background: #e2e4eb;
}

.notif-item {
    background: #151720;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.notif-item:hover {
    background: #1d202c;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.notif-item-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 0.88rem;
    color: #ffffff;
    margin-bottom: 4px;
}

.notif-item-body {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    color: #a0a6b8;
    line-height: 1.4;
    margin-bottom: 6px;
}

.notif-item-date {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    color: #646a7c;
}

.notif-empty {
    text-align: center;
    color: #8a8f9c;
    padding: 20px 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.84rem;
}

/* ========================================================================================== */
/* [SEC 28] BANNER FLOTANTE PROMPT PUSH NOTIFICACIONES */
/* ========================================================================================== */
.push-prompt-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    box-sizing: border-box;
    transition: opacity 0.3s ease;
}

.push-prompt-container.hidden {
    display: none !important;
}

.push-prompt-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 32px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    overflow: hidden;
    box-sizing: border-box;
    animation: cardSpawn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.push-prompt-glass-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
    animation: rotateGlow 20s linear infinite;
    z-index: 1;
}

.push-close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    z-index: 5;
}

.push-close-btn:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.push-prompt-icon-container {
    position: relative;
    width: 76px;
    height: 76px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow:
        inset 0 2px 5px rgba(255, 255, 255, 0.05),
        0 8px 20px rgba(0, 0, 0, 0.4);
}

.push-prompt-icon {
    font-size: 2.2rem;
    z-index: 3;
    animation: bellWobble 4s ease-in-out infinite;
}

.push-prompt-pulse {
    display: none;
}

.push-prompt-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.push-prompt-content h4 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.push-prompt-content p {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.push-prompt-actions {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: 6px;
}

.btn-push-primary {
    width: 100%;
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 14px 24px;
    border-radius: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.btn-push-primary::after {
    display: none;
}

.btn-push-primary:hover {
    background: #e5e5e5;
    transform: translateY(-1px);
}

.btn-push-primary:active {
    background: #cccccc;
    transform: translateY(1px);
}

@keyframes cardSpawn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes bellWobble {

    0%,
    100% {
        transform: rotate(0);
    }

    4% {
        transform: rotate(-15deg);
    }

    8% {
        transform: rotate(12deg);
    }

    12% {
        transform: rotate(-10deg);
    }

    16% {
        transform: rotate(8deg);
    }

    20% {
        transform: rotate(-6deg);
    }

    24% {
        transform: rotate(4deg);
    }

    28% {
        transform: rotate(0);
    }
}

@keyframes iconPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.3);
        opacity: 0;
    }

    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

@keyframes buttonShine {
    0% {
        left: -120%;
    }

    15%,
    100% {
        left: 120%;
    }
}


/* ========================================================================================== */
/* [SEC 29] AJUSTES Y PREFERENCIAS DEL CENTRO DE NOTIFICACIONES (APPLE SETTINGS STYLE) */
/* ========================================================================================== */
.apple-settings-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.apple-group-card {
    background: #151720;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.apple-group-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #717786;
    text-transform: uppercase;
}

.apple-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
}

.apple-setting-row.clickable {
    cursor: pointer;
}

.apple-setting-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.apple-setting-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    color: #ffffff;
}

.apple-setting-desc {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.76rem;
    color: #8a8f9c;
}

.apple-row-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #e2e4eb;
}

.apple-list-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Switch estilo iOS */
.switch-ios {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
}

.switch-ios input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-ios {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #272a36;
    transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-ios:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background-color: #ffffff;
    transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

input:checked+.slider-ios {
    background-color: #22c55e;
}

input:checked+.slider-ios:before {
    transform: translateX(20px);
}

.apple-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #ffffff;
    cursor: pointer;
}

.btn-save-apple {
    width: 100%;
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 14px 20px;
    border-radius: 14px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
    transition: background 0.2s, transform 0.2s;
    margin-top: 6px;
}

.btn-save-apple:hover {
    background: #e2e4eb;
    transform: translateY(-1px);
}


.equipos-checkbox-grid .setting-checkbox {
    padding: 4px 0;
}

/* ========================================================================================== */

.home-fav-banner-text h4 {
    margin: 0 0 3px 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.home-fav-banner-text p {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    color: #8a8f9c;
}

.home-fav-banner-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-fav-action-btn {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    background: #181a22;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.home-fav-banner:hover .home-fav-action-btn {
    background: #ffffff;
    color: #000000;
}

.home-fav-banner-close {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color 0.2s;
}

.home-fav-banner-close:hover {
    color: #ffffff;
}

/* MODAL SELECCIÓN EN NEGRO ELEGANTE */
.modal-fav-full {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    background: #090a0d;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    overflow-y: auto;
    box-sizing: border-box;
}

.modal-fav-full.hidden {
    display: none !important;
}

.modal-fav-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.btn-fav-back {
    background: #161820;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 1rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-fav-back:hover {
    background: #ffffff;
    color: #000000;
}

.modal-fav-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-fav-header h2 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 1.2px;
    color: #ffffff;
    text-transform: uppercase;
}

.modal-fav-count-badge {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    color: #a0a6b8;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 2px 8px;
    border-radius: 12px;
    letter-spacing: 1px;
    width: fit-content;
}

.modal-fav-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    color: #6f7585;
    margin: 0 0 24px 0;
}

/* GRID DE TARJETAS DE EQUIPOS (SIEMPRE 2 FILAS DE 5 PERFECTAMENTE BALANCEADAS) */
.equipos-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding-bottom: 100px;
}

@media (max-width: 480px) {
    .equipos-cards-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .eq-card-item {
        padding: 12px 3px 8px;
        border-radius: 12px;
    }

    .eq-card-crest-wrapper {
        width: 42px;
        height: 42px;
        margin-bottom: 6px;
    }

    .eq-card-name {
        font-size: 0.65rem;
        letter-spacing: 0;
    }

    .eq-card-item .eq-card-check {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
        top: 4px;
        right: 4px;
    }
}

@media (max-width: 320px) {
    .equipos-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}


/* ANIMACIÓN ESCALONADA EN CASCADA AL ENTRAR */
@keyframes favCardStaggerIn {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.92);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.eq-card-item {
    background: #12141c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px 10px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    user-select: none;
    width: 100%;
    box-sizing: border-box;
    opacity: 0;
    animation: favCardStaggerIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.eq-card-item:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: #191c28;
    transform: translateY(-3px);
}

.eq-card-item.selected {
    border: 1.5px solid #ffffff;
    background: #1a1d29;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.12), inset 0 0 12px rgba(255, 255, 255, 0.05);
}

.eq-card-item .eq-card-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    color: #000000;
    font-size: 0.7rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.eq-card-item.selected .eq-card-check {
    opacity: 1;
    transform: scale(1);
}

.eq-card-crest-wrapper {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.eq-card-crest {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
    transition: transform 0.25s ease;
}

.eq-card-item.selected .eq-card-crest {
    transform: scale(1.08);
}

.eq-card-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #cbd1e0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.eq-card-item.selected .eq-card-name {
    color: #ffffff;
    font-weight: 800;
}

/* BOTÓN DE GUARDAR FLOTANTE EN FUNDIDO */
.modal-fav-footer-btn {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 420px;
    z-index: 100001;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.modal-fav-footer-btn.fade-out {
    opacity: 0;
    transform: translate(-50%, 20px);
    pointer-events: none;
}

.modal-fav-footer-btn.fade-in {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.btn-guardar-fav-full {
    width: 100%;
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 16px 24px;
    border-radius: 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.2);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-guardar-fav-full:hover {
    background: #e2e4eb;
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(255, 255, 255, 0.3);
}

/* BOTONES DE LA NAVBAR Y PANEL DE NOTIFICACIONES */
.notif-bell-btn {
    background: #141722;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.notif-bell-btn:hover {
    background: #1e2333;
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 900;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.6);
}

.notif-panel {
    position: absolute;
    top: 48px;
    right: 0;
    width: 320px;
    max-width: 90vw;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInDown 0.25s ease forwards;
}

.notif-panel.hidden {
    display: none !important;
}

.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #111111;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.notif-header h3 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
}

.notif-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-header-icon,
.btn-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-header-icon:hover,
.btn-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.notif-body {
    padding: 16px;
    max-height: 380px;
    overflow-y: auto;
}

.notif-body.hidden {
    display: none !important;
}

.notif-empty {
    text-align: center;
    color: #64748b;
    font-size: 0.82rem;
    margin: 20px 0;
}

.notif-item {
    background: #161a26;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notif-item:hover {
    background: #1e2436;
    border-color: rgba(255, 255, 255, 0.2);
}

.notif-item-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: #ffffff;
    margin-bottom: 4px;
}

.notif-item-body {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.3;
    margin-bottom: 6px;
}

.notif-item-date {
    font-size: 0.68rem;
    color: #64748b;
}

.equipos-fav-notif-container {
    background: #141722;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    margin: 8px 0 16px 0;
}

/* CAJA DE EQUIPO FAVORITO DENTRO DE LA CAMPANA DE NOTIFICACIONES */
.fav-notif-box {
    background: #0d0e12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.fav-team-text {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    color: #a0a6b8;
    line-height: 1.4;
}

.fav-team-text strong {
    color: #ffffff;
    font-weight: 700;
}

.btn-abrir-fav-modal {
    background: #12141c;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    align-self: flex-start;
    transition: all 0.2s ease;
}

.btn-abrir-fav-modal:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-1px);
}

/* ESTILO ESCUDO EN BARRA DE NAVEGACIÓN */
.nav-shield-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    vertical-align: middle;
    pointer-events: none;
}

/* BOTTOM SHEET (DESLIZABLE DESDE ABAJO) SELECCIÓN DE 3 SLOTS DE EQUIPOS FAVORITOS */
.bottom-sheet-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99990;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.bottom-sheet-backdrop.hidden {
    display: none !important;
    opacity: 0 !important;
}

.bottom-sheet-container {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 85vh;
    background: #0d0d0d;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 -12px 45px rgba(0, 0, 0, 0.85);
    z-index: 99999;
    padding: 12px 20px 28px 20px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transform: translateY(0);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-sheet-container.hidden {
    display: none !important;
    transform: translateY(100%) !important;
}

.bottom-sheet-handle {
    width: 44px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 0 auto 16px auto;
}

.bottom-sheet-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.bottom-sheet-title-wrap h3 {
    margin: 0 0 4px 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.bottom-sheet-title-wrap p {
    margin: 0;
    font-size: 0.78rem;
    color: #94a3b8;
}

.btn-bottom-sheet-close {
    background: #161820;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-bottom-sheet-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

/* HEADER Y CONTENEDOR CIRCULAR ESTILO "SIGUIENDO" */
.bottom-sheet-header-centered {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.bottom-sheet-header-centered h3 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
    text-align: center;
}

.bottom-sheet-header-centered .btn-bottom-sheet-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.slots-circular-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 0 10px;
}

.slot-circle-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    width: 90px;
    user-select: none;
}

.slot-circle-card {
    width: 76px;
    height: 76px;
    border-radius: 8px;
    background: #111111;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: none;
}

.slot-circle-wrap:hover .slot-circle-card {
    border-color: rgba(255, 255, 255, 0.4);
    background: #161616;
    transform: scale(1.03);
}

.slot-circle-card.slot-principal {
    border-color: rgba(255, 255, 255, 0.25);
    border-style: solid;
}

.slot-circle-card.has-team {
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.08);
    background: #111111;
}

.slot-circle-card.slot-principal.has-team {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

.slot-badge-top-right {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ffffff;
    color: #000000;
    font-size: 0.7rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    z-index: 3;
}

.slot-circle-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-empty-plus {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.slot-circle-wrap:hover .circle-empty-plus {
    background: #ffffff;
    color: #000000;
}

.circle-team-img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-crest-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
}

.circle-remove-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: #ffffff;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.6);
    z-index: 4;
}

.slot-circle-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #e2e8f0;
    text-align: center;
    line-height: 1.1;
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

/* BOTONES ESTILO ONEFOOTBALL/FOTMOB */
.bottom-sheet-pill-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.btn-pill-primary {
    width: 100%;
    height: 48px;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
}

.btn-pill-primary:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.btn-pill-secondary {
    width: 100%;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-pill-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

/* ==========================================
   MEJORAS BOTÓN EQUIPO FAVORITO (+ y <) Y MODAL
   ========================================== */
.shield-btn {
    width: 52px;
    height: 36px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 8px;
}

.shield-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-shield-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.btn-fav-close-soft {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.btn-fav-close-soft:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

/* ========================================================================================== */
/* [SEC AI] ALINEACIÓN INDEBIDA — ESTILOS ESPECIALES                                         */
/* ========================================================================================== */

/* Badge en la lista de partidos */
.ai-badge-list {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.62rem;
    font-weight: 800;
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 5px;
    padding: 2px 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    animation: ai-badge-pulse 3s ease-in-out infinite;
}

@keyframes ai-badge-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.65;
    }
}

/* Resultado original tachado en tarjeta de lista */
.ai-original-score {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    color: #555;
    text-decoration: line-through;
    text-decoration-color: #ff4444;
    margin-top: 2px;
    text-align: right;
}

/* Gol en tarjeta con AI: color rojo para indicar sanción */
.pcv2-gol.ai-gol {
    color: #ff4444;
}

/* Separador visual AI en la lista (borde izquierdo rojo) */
.partido-card-v2.ai-partido {
    border-left: 3px solid rgba(255, 68, 68, 0.5);
}

/* ---- BANNER DE SANCIÓN EN DETALLE DE PARTIDO ---- */
.ai-sancion-banner {
    margin: 0 16px 0 16px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.1) 0%, rgba(180, 0, 0, 0.08) 100%);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ai-sancion-titulo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    color: #ff5555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ai-sancion-titulo i {
    font-size: 0.9rem;
}

.ai-sancion-equipo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ff8080;
}

.ai-sancion-motivo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    color: #aaa;
    line-height: 1.45;
    font-style: italic;
}

/* ---- RESULTADO OFICIAL 3-0 EN EL HEADER ---- */
.of-score-digits.ai-score {
    color: #ff4444;
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.4);
}

.ai-score-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6rem;
    font-weight: 800;
    color: #ff4444;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 4px;
    padding: 2px 6px;
}

/* Resultado original tachado bajo el marcador oficial */
.ai-original-result-detail {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #555;
    text-decoration: line-through;
    text-decoration-color: rgba(255, 68, 68, 0.6);
    margin-top: 4px;
}

/* ---- SECCIÓN DE EVENTOS ORIGINALES EN DETALLE ---- */
.ai-eventos-section {
    padding: 0 16px 16px;
    max-width: 650px;
    margin: 0 auto;
}

.ai-eventos-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 4px;
}

.ai-eventos-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.ai-eventos-disclaimer {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    color: #444;
    margin-left: auto;
    font-style: italic;
}

/* Eventos originales con opacidad reducida para indicar que no cuentan */
.ai-timeline-wrapper {
    opacity: 0.55;
    filter: grayscale(0.3);
    pointer-events: auto;
}

/* ---- TARJETA AI EN LISTA: layout columna + footer strip ---- */
.partido-card-v2.ai-partido {
    border-left: 3px solid rgba(255, 68, 68, 0.5);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    /* ai-card-top y ai-card-footer gestionan su propio padding */
}

/* Fila superior: equipos + estado "Final" */
.ai-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 14px 16px 8px;
}

.ai-card-top .pcv2-teams {
    flex: 1;
    min-width: 0;
}

.ai-card-top .pcv2-estado-col {
    flex-shrink: 0;
    min-width: 70px;
    justify-content: flex-end;
}

/* Footer strip con "Alineación Indebida" + resultado real */
.ai-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 16px 2px;
    border-top: 1px solid rgba(255, 68, 68, 0.18);
    gap: 8px;
}

.ai-footer-badge {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.64rem;
    font-weight: 700;
    color: #ff5555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Resultado real en el footer */
.ai-footer-real {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.64rem;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.ai-footer-tachado {
    text-decoration: line-through;
    text-decoration-color: #ff5555;
    text-decoration-thickness: 1.5px;
    color: #666;
    font-weight: 700;
}


/* ---- CHIP "PARTIDO CANCELADO" EN DETALLE ---- */
.ai-cancelled-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 68, 68, 0.15);
    border: 1px solid rgba(255, 68, 68, 0.4);
    color: #ff4444;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
}

/* Separador entre dos sanciones */
.ai-sancion-sep {
    height: 1px;
    background: rgba(255, 68, 68, 0.15);
    margin: 8px 0;
}

/* ---- MINI-MARCADOR DEL PARTIDO ORIGINAL (en sección AI-eventos) ---- */
.ai-orig-scoreboard {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    margin: 8px 0 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0.7;
}

.ai-orig-team {
    display: flex;
    align-items: center;
    gap: 9px;
}

.ai-orig-escudo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 50%;
    background: #1a1a1a;
    flex-shrink: 0;
}

.ai-orig-nombre {
    flex: 1;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #bbb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-orig-gol {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #888;
    min-width: 14px;
    text-align: right;
    flex-shrink: 0;
}



/* ========================================================================================== */
/* [SEC BYE] EQUIPO SIN RIVAL — DESCANSA JORNADA                                             */
/* ========================================================================================== */
.partido-card-v2.bye-partido {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    opacity: 0.55;
    border-left: 3px solid #333;
    cursor: default;
    pointer-events: none;
}

.bye-escudo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bye-nombre {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #aaa;
}

.bye-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bye-label i {
    font-size: 0.7rem;
    color: #333;
}

/* ========================================================================================== */
/* [SEC DESCANSO] DÍA DE DESCANSO EN EL TORNEO                                               */
/* ========================================================================================== */
.jornada-block.descanso-block {
    margin: 8px 0;
    padding: 0 12px;
}

.descanso-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(30, 30, 45, 0.8), rgba(20, 20, 35, 0.9));
    border: 1px solid rgba(100, 100, 160, 0.2);
    border-left: 3px solid rgba(100, 100, 200, 0.4);
    border-radius: 14px;
}

.descanso-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(80, 80, 160, 0.15);
    border: 1px solid rgba(100, 100, 200, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.descanso-icon i {
    font-size: 1rem;
    color: #6666cc;
}

.descanso-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.descanso-titulo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    color: #8888cc;
    letter-spacing: 0.3px;
}

.descanso-fecha {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================================================================== */
/* [SEC PLAYER PROFILE] LUXURY BLACK EA FC / ONEFOOTBALL EDITORIAL DESIGN                     */
/* ========================================================================================== */

#perfil-jugador {
    background-color: #08090d;
    min-height: 100vh;
    color: #ffffff;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    padding-bottom: 60px;
}

.player-profile-view {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding-top: 60px;
}

/* Header superior flotante */
.player-header-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(10, 11, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
}

.btn-player-back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-player-back:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.player-header-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.player-header-badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--neon, #c1ff72);
    background: rgba(193, 255, 114, 0.1);
    border: 1px solid rgba(193, 255, 114, 0.25);
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
}

/* Tarjeta Hero del Jugador */
.player-hero-card {
    position: relative;
    width: 100%;
    min-height: 440px;
    background: linear-gradient(180deg, #131722 0%, #08090d 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.player-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.player-hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(193, 255, 114, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(40px);
}

.player-hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.4;
}

/* Photo Wrapper */
.player-photo-wrapper {
    position: relative;
    width: 100%;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.player-photo-img {
    height: 100%;
    max-width: 90%;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.9));
    transition: transform 0.4s ease;
}

.player-hero-card:hover .player-photo-img {
    transform: scale(1.02);
}

.player-photo-vignette {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, #08090d 20%, rgba(8, 9, 13, 0.7) 60%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* Badges Overlay (Dorsal & Percentil OVR) */
.player-badges-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    z-index: 3;
}

.player-dorsal-badge {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 14px;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.player-ovr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 35, 45, 0.9), rgba(15, 18, 25, 0.9));
    backdrop-filter: blur(12px);
    border: 1px solid var(--neon, #c1ff72);
    border-radius: 16px;
    padding: 8px 14px;
    box-shadow: 0 0 20px rgba(193, 255, 114, 0.15);
}

.ovr-lbl {
    font-size: 0.55rem;
    font-weight: 800;
    color: var(--neon, #c1ff72);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.ovr-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

/* Identity Overlay (Nombre, Alias, Posición, Bandera) */
.player-identity-overlay {
    position: relative;
    z-index: 3;
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.player-identity-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.player-alias-pill {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

.player-pos-badge {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pos-del {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.pos-med {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.pos-def {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.pos-por {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.pos-general {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.player-fullname {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.05;
    margin: 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.player-meta-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.player-flag-box {
    width: 22px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    overflow: hidden;
}

.player-flag-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-country-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #a0a5b5;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Body Container */
.player-body-container {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Card Blocks */
.player-card-block {
    background: #11131a;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Bio / Quote Card */
.bio-card {
    border-left: 3px solid var(--neon, #c1ff72);
    background: linear-gradient(135deg, rgba(20, 24, 35, 0.8), rgba(13, 15, 22, 0.9));
}

.bio-quote-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.bio-quote-icon {
    font-size: 0.9rem;
    color: var(--neon, #c1ff72);
}

.bio-card-title {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--neon, #c1ff72);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.player-bio-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #d1d5db;
    margin: 0;
    font-weight: 400;
}

/* Metrics 4-Grid */
.player-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (min-width: 640px) {
    .player-metrics-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.metric-card {
    background: #11131a;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.metric-card:hover {
    border-color: rgba(193, 255, 114, 0.3);
    background: #161922;
}

.metric-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon, #c1ff72);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.metric-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.metric-label {
    font-size: 0.6rem;
    font-weight: 800;
    color: #6b7280;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.metric-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Playstyle Pills */
.player-section-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #9ca3af;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-section-title i {
    color: var(--neon, #c1ff72);
}

.playstyle-pills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.playstyle-pill {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.playstyle-pill i {
    color: var(--neon, #c1ff72);
    font-size: 0.7rem;
}

/* Palmarés Section */
.section-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-counter-tag {
    font-size: 0.65rem;
    font-weight: 800;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 1px;
}

.palmares-luxury-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.luxury-award-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(28, 25, 20, 0.8), rgba(18, 16, 14, 0.9));
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 14px;
    padding: 14px 18px;
    transition: all 0.2s ease;
}

.luxury-award-card:hover {
    border-color: rgba(245, 158, 11, 0.5);
    transform: translateX(4px);
}

.award-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.award-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.award-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    color: #ffffff;
}

.award-category {
    font-size: 0.65rem;
    font-weight: 700;
    color: #d97706;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Trayectoria Section */
.trayectoria-luxury-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.luxury-trayectoria-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #161922;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.luxury-trayectoria-card:hover {
    background: #1e2330;
    border-color: var(--neon, #c1ff72);
    transform: translateX(4px);
}

.tray-crest-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    flex-shrink: 0;
}

.tray-crest-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.of-team-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    cursor: pointer;
    text-align: center;
}

.of-team-local,
.of-team-visit {
    justify-content: center;
    text-align: center;
}

.of-team-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    text-align: center;
}

.of-team-escudo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
    transition: transform 0.2s ease;
}

.of-team-side:hover .of-team-escudo {
    transform: scale(1.08);
}

.of-score-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    gap: 3px;
}

.of-date-sub {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #d1d5db;
    letter-spacing: 0.3px;
    text-align: center;
    margin-bottom: 2px;
}

.of-score-digits {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
    line-height: 1;
    text-align: center;
}

.of-status-sub {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    text-align: center;
}

.tray-info-box {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    margin-left: 14px;
}

.tray-team-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
}

.tray-edition-tag {
    font-size: 0.68rem;
    font-weight: 600;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tray-edition-tag i {
    font-size: 0.65rem;
    color: var(--neon, #c1ff72);
}

.tray-action-icon {
    font-size: 0.85rem;
    color: #4b5563;
    transition: color 0.2s ease;
}

.luxury-trayectoria-card:hover .tray-action-icon {
    color: var(--neon, #c1ff72);
}

/* Empty States */
.empty-palmares-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
    text-align: center;
    gap: 8px;
    color: #4b5563;
}

.empty-palmares-state i {
    font-size: 1.8rem;
    opacity: 0.5;
}

.empty-palmares-state p {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0;
}

/* ===== COMPONENT: COMPARATIVA DE ESTADÍSTICAS EN DETALLE PARTIDO ===== */
.match-stats-card {
    background: #12131a;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 16px;
    margin: 16px 14px 0;
    width: calc(100% - 28px);
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.match-stats-header-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    color: #9ca3af;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.match-stats-header-title i {
    color: #10b981;
}

.match-stats-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.match-stat-row {
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.match-stat-val-left {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #6b7280;
    text-align: left;
}

.match-stat-val-left.highlight {
    color: #ffffff;
    font-weight: 800;
}

.match-stat-val-right {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #6b7280;
    text-align: right;
}

.match-stat-val-right.highlight {
    color: #ffffff;
    font-weight: 800;
}

.match-stat-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

.match-stat-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-stat-bar-track {
    width: 100%;
    height: 5px;
    background: #1c1e28;
    border-radius: 4px;
    display: flex;
    overflow: hidden;
}

.match-stat-bar-left {
    height: 100%;
    background: #ffffff;
    border-radius: 4px 0 0 4px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.match-stat-bar-right {
    height: 100%;
    background: #4b5563;
    border-radius: 0 4px 4px 0;
    margin-left: auto;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== SKELETON SHIMMER: para estados de carga ===== */
@keyframes skeleton-shimmer {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.4;
    }
}

.match-goleador-item-full [style*="background:#1c1e28"] {
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

/* ===== COMPONENT: MÁXIMOS GOLEADORES EN DETALLE PARTIDO (STACKED FULL-WIDTH) ===== */
.match-goleadores-wrapper {
    margin: 16px 14px 28px;
    width: calc(100% - 28px);
    max-width: 100%;
    box-sizing: border-box;
}

.match-goleadores-header-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    color: #9ca3af;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.match-goleadores-header-title i {
    color: #10b981;
}

.match-goleadores-stacked {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

.match-goleadores-team-card {
    background: #12131a;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 16px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.match-goleadores-team-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 10px;
}

.match-gol-team-escudo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.match-goleadores-team-head span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-goleadores-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.match-goleador-item-full {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #181924;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.match-goleador-item-full:hover {
    background: #202230;
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.match-gol-rank-pill {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.06);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.match-gol-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.match-gol-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.match-gol-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-gol-dorsal {
    font-size: 0.68rem;
    color: #8a8a8f;
    font-weight: 600;
}

.match-gol-count-badge {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.match-gol-count-badge i {
    font-size: 0.7rem;
    color: #9ca3af;
}

.match-gol-empty {
    font-size: 0.72rem;
    color: #6b7280;
    text-align: center;
    padding: 14px 0;
    font-style: italic;
}

/* ===== ONBOARDING SELECCIÓN EQUIPO FAVORITO (PRIMERA VEZ) ===== */
.onboarding-fav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0d0d0d;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 20px;
    box-sizing: border-box;
    opacity: 1;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.onboarding-fav-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.onboarding-fav-container {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto 0;
}

.onboarding-fav-header {
    text-align: center;
    margin-bottom: 24px;
}

.onboarding-fav-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #f3f4f6;
    letter-spacing: 0.4px;
    margin: 0;
    text-transform: uppercase;
}

.onboarding-fav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.onboarding-fav-card {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    opacity: 0;
    transform: translateY(18px);
    animation: onboardingCardFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.onboarding-fav-card:hover {
    background: #1c1c1c;
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.onboarding-fav-card:active {
    transform: scale(0.97);
}

.onboarding-fav-escudo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    transition: transform 0.25s ease;
}

.onboarding-fav-card:hover .onboarding-fav-escudo {
    transform: scale(1.08);
}

.onboarding-fav-nombre {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #e5e7eb;
    text-align: center;
    letter-spacing: 0.3px;
    line-height: 1.2;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.onboarding-fav-footer {
    margin-top: 28px;
    text-align: center;
}

.onboarding-fav-exit {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 8px 16px;
    display: inline-block;
}

.onboarding-fav-exit:hover {
    color: #ffffff;
}

@keyframes onboardingCardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================================================================== */
/* [SEC GM] GRAFICO GOLES POR MINUTO                                                          */
/* ========================================================================================== */

.gm-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 14px 14px 10px;
    margin: 12px 0;
}

.gm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.gm-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.gm-title i {
    color: var(--neon, #a0ff60);
    margin-right: 5px;
}

.gm-legend {
    display: flex;
    gap: 14px;
}

.gm-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: #888;
}

.gm-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    flex-shrink: 0;
}

.gm-meta {
    display: flex;
    gap: 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.66rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.gm-meta strong {
    font-weight: 800;
}

.gm-svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.gm-lbl {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 7px;
    fill: #3a3a3a;
    font-weight: 600;
}

.gm-half {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 6.5px;
    fill: #2e2e2e;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.gm-ht {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 1;
    stroke-dasharray: 3, 3;
}

.gm-base {
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 0.5;
}

.gm-bar-val {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 7.5px;
    font-weight: 800;
}

.gm-peak-lbl {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 8px;
    font-weight: 900;
    opacity: 0.9;
}

.gm-grid-lbl {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 6px;
    fill: #333;
    font-weight: 600;
}