/* ===============================================
   RANKING STYLES - FIFA WORLD CUP 2026
   =============================================== */

:root {
    /* Colores FIFA */
    --fifa-blue: #0066CC;
    --fifa-dark-blue: #003d7a;
    --fifa-gold: #FFD700;
    --dark-bg: #0a0a0a;
    --dark-card: #1a1a1a;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.1);
    --success: #4CAF50;
    --error: #f44336;
    
    /* Colores para podio */
    --gold: #FFD700;
    --silver: #C0C0C0;
    --bronze: #CD7F32;
}

/* ===============================================
   RESET Y BASE
   =============================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-bg);
    color: var(--text-white);
    line-height: 1.6;
}

/* ===============================================
   HEADER (copiado del index)
   =============================================== */

.header {
    background: var(--dark-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    text-decoration: none;
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--fifa-gold);
}

.logo-sub {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-gray);
}

/* Navegación Desktop */
.nav-desktop {
    display: flex;
    gap: 0.5rem;
    flex: 1;
}

.nav-link {
    padding: 0.75rem 1.25rem;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--fifa-gold);
    background: rgba(255, 215, 0, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--fifa-gold);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.user-icon {
    font-size: 1.1rem;
}



.btn-admin {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid var(--fifa-gold);
    border-radius: 8px;
    color: var(--fifa-gold);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-admin:hover {
    background: rgba(255, 215, 0, 0.25);
    transform: translateY(-1px);
}

.btn-logout {
    padding: 0.5rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-gray);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    border-color: var(--error);
    color: var(--error);
}

/* Menú móvil */
.btn-menu-mobile {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    width: 24px;
    height: 2px;
    background: var(--text-white);
    transition: all 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    display: block;
}

.menu-icon::before {
    transform: translateY(-6px);
}

.menu-icon::after {
    transform: translateY(4px);
}

.nav-mobile {
    display: none;
    background: var(--dark-card);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
}

.nav-mobile-link {
    display: block;
    padding: 0.75rem;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-mobile-link:hover,
.nav-mobile-link.active {
    color: var(--fifa-gold);
    background: rgba(255, 215, 0, 0.1);
}

/* ===============================================
   HERO SECTION RANKING
   =============================================== */

.hero-ranking {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--fifa-dark-blue), var(--fifa-blue)),
                url('https://images.unsplash.com/photo-1579952363873-27f3bade9f55?q=80&w=2000') center/cover;
    background-blend-mode: overlay;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(10, 10, 10, 0.8));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--fifa-gold), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ===============================================
   CONTENEDOR PRINCIPAL
   =============================================== */

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

/* ── CONTENEDOR GENERAL ───────────────────────────── */
.podium-section {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    border: 1px solid #eee;
}
.podium-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
}
.podium-header-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #0a0a0a;
}
 
/* ── ARENA — fondo del podio ──────────────────────── */
.podium-arena {
    background: linear-gradient(180deg, #0a0a0a 0%, #111 60%, #1a1a1a 100%);
    padding: 32px 24px 0;
    position: relative;
    overflow: hidden;
}
 
/* Rayos de luz decorativos detrás del 1ro */
.podium-arena::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(255,215,0,.12) 0%, transparent 70%);
    pointer-events: none;
}
 
/* ── GRID DE JUGADORES ────────────────────────────── */
.podium-players {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    align-items: flex-end;
    position: relative;
    z-index: 2;
}
 
/* ── JUGADOR ──────────────────────────────────────── */
.podium-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
 
/* Avatar */
.podium-avatar-wrap {
    position: relative;
    margin-bottom: 10px;
}
.podium-avatar {
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid transparent;
}
.podium-player.first  .podium-avatar { width: 80px; height: 80px; border-color: #FFD700; box-shadow: 0 0 0 4px rgba(255,215,0,.2); }
.podium-player.second .podium-avatar { width: 64px; height: 64px; border-color: #C0C0C0; }
.podium-player.third  .podium-avatar { width: 64px; height: 64px; border-color: #CD7F32; }
 
/* Corona / medalla flotante sobre el avatar */
.podium-crown {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.5));
}
.podium-player.first  .podium-crown { font-size: 24px; top: -18px; }
 
/* Info del jugador */
.podium-info { text-align: center; margin-bottom: 8px; }
.podium-player-name {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
    display: block;
    margin-bottom: 2px;
}
.podium-player.first .podium-player-name { font-size: 14px; max-width: 120px; }
 
.podium-player-liga {
    font-size: 10px;
    color: rgba(255,255,255,.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
    display: block;
}
 
/* ── BASE DEL PODIO (plataforma de altura) ────────── */
.podium-base {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px 10px 0 0;
    padding: 14px 8px 18px;
    position: relative;
}
 
.podium-player.first  .podium-base { background: linear-gradient(180deg,#2a2200,#1a1500); border:1px solid rgba(255,215,0,.3); border-bottom:none; min-height: 100px; }
.podium-player.second .podium-base { background: linear-gradient(180deg,#1e1e1e,#141414); border:1px solid rgba(192,192,192,.2); border-bottom:none; min-height: 72px; }
.podium-player.third  .podium-base { background: linear-gradient(180deg,#1e1a14,#141210); border:1px solid rgba(205,127,50,.2); border-bottom:none; min-height: 56px; }
 
/* Número de posición en la base */
.podium-pos-num {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4px;
}
.podium-player.first  .podium-pos-num { font-size: 36px; color: #FFD700; }
.podium-player.second .podium-pos-num { color: #C0C0C0; }
.podium-player.third  .podium-pos-num { color: #CD7F32; }
 
/* Puntos */
.podium-pts-val {
    font-size: 15px;
    font-weight: 900;
    color: #fff;
    display: block;
    line-height: 1;
}
.podium-player.first .podium-pts-val { font-size: 18px; }
 
.podium-pts-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,.3);
    margin-top: 2px;
    display: block;
}
 
/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 480px) {
    .podium-player.first  .podium-avatar { width: 64px; height: 64px; }
    .podium-player.second .podium-avatar,
    .podium-player.third  .podium-avatar { width: 50px; height: 50px; }
    .podium-player-name { max-width: 70px; font-size: 11px; }
    .podium-player.first .podium-player-name { max-width: 90px; font-size: 12px; }
    .podium-arena { padding: 24px 12px 0; }
}

/* ===============================================
   FILTROS Y BÚSQUEDA
   =============================================== */

.filters-section {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filters-container {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.filter-icon {
    font-size: 1.1rem;
}

.filter-select,
.filter-input {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.filter-select:hover,
.filter-input:hover {
    border-color: var(--fifa-blue);
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--fifa-gold);
    background: rgba(255, 255, 255, 0.08);
}

.filter-select option {
    background: var(--dark-card);
    color: var(--text-white);
}

.participants-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 102, 204, 0.15);
    border: 1px solid var(--fifa-blue);
    border-radius: 8px;
    font-weight: 600;
    color: var(--fifa-blue);
    white-space: nowrap;
}

.count-icon {
    font-size: 1.2rem;
}

/* ===============================================
   TABLA DE RANKING
   =============================================== */

.ranking-table-section {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.table-container {
    overflow-x: auto;
    border-radius: 8px;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.ranking-table thead {
    background: rgba(0, 102, 204, 0.15);
    position: sticky;
    top: 0;
    z-index: 10;
}

.ranking-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--fifa-gold);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--fifa-blue);
}

.th-pos {
    width: 60px;
    text-align: center;
}

.th-user {
    min-width: 200px;
}

.th-liga {
    min-width: 120px;
}

.th-fase {
    width: 80px;
    text-align: center;
}

.th-total {
    width: 100px;
    text-align: center;
    background: rgba(255, 215, 0, 0.1);
}

.ranking-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.ranking-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.ranking-table td {
    padding: 1rem;
    vertical-align: middle;
}

/* Posición */
.td-pos {
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Top 3 destacados */
.ranking-table tbody tr:nth-child(1) {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.08), transparent);
    border-left: 3px solid var(--gold);
}

.ranking-table tbody tr:nth-child(2) {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.08), transparent);
    border-left: 3px solid var(--silver);
}

.ranking-table tbody tr:nth-child(3) {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.08), transparent);
    border-left: 3px solid var(--bronze);
}

.ranking-table tbody tr:nth-child(1) .td-pos,
.ranking-table tbody tr:nth-child(2) .td-pos,
.ranking-table tbody tr:nth-child(3) .td-pos {
    font-size: 1.5rem;
}

/* Usuario */
.user-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-flag {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.user-nametable {
    font-weight: 400;
    color: var(--text-white);
}

/* Liga badge */
.liga-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Puntos por fase */
.td-fase {
    text-align: center;
    font-weight: 500;
    color: var(--text-gray);
}

.td-fase.has-points {
    color: var(--text-white);
}

/* Total */
.td-total {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--fifa-gold);
    background: rgba(255, 215, 0, 0.05);
}

/* Fila de usuario actual */
.ranking-table tbody tr.current-user {
    background: rgba(0, 102, 204, 0.15);
    border: 2px solid var(--fifa-blue);
    box-shadow: 0 0 20px rgba(0, 102, 204, 0.2);
}

/* Loading row */
.loading-row {
    text-align: center;
    padding: 3rem !important;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.empty-state p {
    color: var(--text-gray);
}

/* ===============================================
   INFO ADICIONAL
   =============================================== */

.info-section {
    margin-top: 2rem;
}

.info-card {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.info-icon {
    font-size: 1.75rem;
}

.info-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.info-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.points-rule {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.points-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--fifa-gold);
}

.points-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* ===============================================
   LOADING SPINNER
   =============================================== */

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--fifa-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* ===============================================
   FOOTER
   =============================================== */

.footer {
    background: var(--dark-card);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-title {
    color: var(--fifa-gold);
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.footer-link {
    display: block;
    color: var(--text-gray);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--fifa-gold);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-gray);
    font-size: 0.9rem;
}
        /* Estilos específicos para ranking */
        
        .hero-ranking {
            height: 300px;
            background: linear-gradient(135deg, var(--fifa-dark-blue), var(--fifa-blue));
        }
        
        .hero-ranking .hero-title {
            font-size: 3rem;
        }
        
        
        /* Filtros */
        .filters-section {
            margin-bottom: 2rem;
        }
        
        .filters-container {
            background: var(--dark-card);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 1.5rem;
            display: grid;
            grid-template-columns: 1fr 1fr auto;
            gap: 1.5rem;
            align-items: end;
        }
        
        .filter-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }
        
        .filter-label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 600;
            font-size: 0.9rem;
            color: var(--text-gray);
        }
        
        .filter-icon {
            font-size: 1.1rem;
        }
        
        .filter-select,
        .filter-input {
            padding: 0.75rem 1rem;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-white);
            font-size: 0.95rem;
            transition: all 0.3s ease;
        }
        
        .filter-select:focus,
        .filter-input:focus {
            outline: none;
            border-color: var(--fifa-blue);
            background: rgba(255, 255, 255, 0.08);
        }
        
        .filter-select option {
            background: var(--dark-card);
            color: var(--text-white);
        }
        
        .participants-count {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1.5rem;
            background: rgba(0, 102, 204, 0.15);
            border: 1px solid var(--fifa-blue);
            border-radius: 8px;
            color: var(--fifa-blue);
            font-weight: 600;
            white-space: nowrap;
        }
        
        .count-icon {
            font-size: 1.2rem;
        }
        
        /* Tabla de ranking */
        .ranking-table-section {
            margin-bottom: 3rem;
        }
        
        .table-container {
            background: var(--dark-card);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            overflow-x: auto;
        }
        
        .ranking-table {
            width: 100%;
            border-collapse: collapse;
        }
        
        .ranking-table thead {
            background: rgba(255, 255, 255, 0.03);
            border-bottom: 2px solid var(--border-color);
        }
        
        .ranking-table th {
            padding: 1rem;
            text-align: left;
            font-weight: 700;
            color: var(--fifa-gold);
            font-size: 0.9rem;
            white-space: nowrap;
        }
        
        .ranking-table td {
            padding: 1rem;
            border-bottom: 1px solid var(--border-color);
        }
        
        .ranking-table tbody tr {
            transition: all 0.3s ease;
        }
        
        .ranking-table tbody tr:hover {
            background: rgba(255, 255, 255, 0.03);
        }
        
        .ranking-table tbody tr.current-user {
            background: rgba(255, 215, 0, 0.1);
            border-left: 3px solid var(--fifa-gold);
        }
        
        .th-pos { width: 60px; text-align: center; }
        .th-user { min-width: 200px; }
        .th-liga { min-width: 120px; }
        .th-fase { width: 70px; text-align: center; }
        .th-total { width: 80px; text-align: center; font-size: 1rem; }
        
        .td-pos {
            text-align: center;
            font-size: 1.5rem;
            font-weight: 700;
        }
        
        .user-cell {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .user-flag {
            font-size: 1.5rem;
        }
        
        .user-name {
            font-weight: 600;
        }
        
        .liga-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.25rem 0.75rem;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            font-size: 0.85rem;
        }
        
        .td-fase {
            text-align: center;
            color: var(--text-gray);
            font-size: 0.9rem;
        }
        
        .td-fase.has-points {
            color: var(--text-white);
            font-weight: 600;
        }
        
        .td-total {
            text-align: center;
            font-size: 1.25rem;
            font-weight: 900;
            color: var(--fifa-gold);
        }
        
        .loading-row {
            text-align: center;
            padding: 3rem !important;
            color: var(--text-gray);
        }
        
        /* Empty state */
        .empty-state {
            background: var(--dark-card);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 3rem;
            text-align: center;
        }
        
        .empty-icon {
            font-size: 4rem;
            margin-bottom: 1rem;
            opacity: 0.5;
        }
        
        .empty-state h3 {
            margin-bottom: 0.5rem;
            color: var(--text-white);
        }
        
        .empty-state p {
            color: var(--text-gray);
        }
        
        /* Info section */
        .info-section {
            max-width: 600px;
            margin: 0 auto;
        }
        
        .info-card {
            background: var(--dark-card);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 1.5rem;
        }
        
        .info-header {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 1.5rem;
        }
        
        .info-header .info-icon {
            font-size: 2rem;
        }
        
        .info-header h3 {
            font-size: 1.25rem;
            color: var(--fifa-gold);
        }
        
        .info-content {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        .points-rule {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 8px;
        }
        
        .points-value {
            font-weight: 700;
            color: var(--fifa-gold);
            font-size: 1.1rem;
        }
        
        .points-desc {
            color: var(--text-gray);
        }
        
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        /* Responsive */
        @media (max-width: 1024px) {
            .filters-container {
                grid-template-columns: 1fr;
            }
            
            .participants-count {
                justify-content: center;
            }
        }
        
        @media (max-width: 768px) {
            
            
            .ranking-table {
                font-size: 0.85rem;
            }
            
            .ranking-table th,
            .ranking-table td {
                padding: 0.5rem;
            }
            
            .th-fase {
                width: 50px;
            }
            
            .user-name {
                font-size: 0.9rem;
            }
        }

/* ===============================================
   ANIMACIONES
   =============================================== */

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

/* ===============================================
   RESPONSIVE
   =============================================== */

@media (max-width: 1024px) {
    
    .filters-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .participants-count {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .btn-menu-mobile {
        display: flex;
    }
    
    .nav-mobile.active {
        display: block;
    }
    
    .hero-ranking {
        height: 250px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .header-container {
        padding: 1rem;
    }
    
    .main-container {
        padding: 2rem 1rem;
    }
    
    .ranking-table {
        font-size: 0.85rem;
    }
    
    .ranking-table th,
    .ranking-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .th-fase {
        width: 60px;
    }
    
    .info-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .user-info {
        padding: 0.4rem 0.75rem;
    }
    
    .user-name {
        display: none;
    }
    
    .ranking-table th,
    .ranking-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .user-flag {
        font-size: 1.2rem;
    }
    
    .liga-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
}
    /* ── HERO ─────────────────────────────────────────── */
    .rnk-hero { background:#000; position:relative; overflow:hidden; border-bottom:3px solid var(--fifa-gold,#FFD700); }
    .rnk-hero::before {
        content:''; position:absolute; inset:0;
        background:
            repeating-linear-gradient(90deg,rgba(255,255,255,.015) 0,rgba(255,255,255,.015) 1px,transparent 1px,transparent 60px),
            repeating-linear-gradient(0deg,rgba(255,255,255,.015) 0,rgba(255,255,255,.015) 1px,transparent 1px,transparent 60px);
        pointer-events:none;
    }
    .rnk-hero-inner { max-width:1280px; margin:0 auto; padding:48px 24px 40px; position:relative; z-index:2; display:grid; grid-template-columns:1fr auto; align-items:center; gap:32px; }
    .rnk-eyebrow { display:flex; align-items:center; gap:10px; margin-bottom:16px; }
    .rnk-eyebrow-line { width:32px; height:2px; background:var(--fifa-gold,#FFD700); }
    .rnk-eyebrow span { font-size:11px; font-weight:800; letter-spacing:2px; text-transform:uppercase; color:var(--fifa-gold,#FFD700); }
    .rnk-title { font-size:clamp(36px,5vw,72px); font-weight:900; color:#fff; line-height:1; letter-spacing:-2px; text-transform:uppercase; margin-bottom:14px; }
    .rnk-title em { font-style:normal; color:var(--fifa-gold,#FFD700); }
    .rnk-sub { font-size:14px; color:rgba(255,255,255,.5); line-height:1.6; max-width:460px; }
    .rnk-hero-pills { display:flex; flex-wrap:wrap; gap:8px; margin-top:22px; }
    .rnk-pill { display:inline-flex; align-items:center; gap:6px; padding:7px 14px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius:20px; font-size:12px; font-weight:700; color:#fff; }
    .rnk-hero-deco { font-size:110px; opacity:.05; line-height:1; user-select:none; flex-shrink:0; }
    @media(max-width:700px){ .rnk-hero-inner{grid-template-columns:1fr;padding:32px 16px 28px;} .rnk-hero-deco{display:none;} }
 
    /* ── GRID ─────────────────────────────────────────── */
    .rnk-grid-bg { background:#f4f4f4; }
    .rnk-grid { max-width:1280px; margin:0 auto; padding:28px 16px 48px; display:grid; grid-template-columns:240px 1fr 240px; grid-template-areas:"izquierda centro derecha"; gap:24px; align-items:start; }
    .rnk-col-left  { grid-area:izquierda; display:flex; flex-direction:column; gap:14px; position:sticky; top:110px; }
    .rnk-col-main  { grid-area:centro;    display:flex; flex-direction:column; gap:16px; min-width:0; }
    .rnk-col-right { grid-area:derecha;   display:flex; flex-direction:column; gap:14px; position:sticky; top:110px; }
 
    /* ── WIDGET BASE ──────────────────────────────────── */
    .widget { background:#fff; border-radius:14px; overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,.07); border:1px solid #eee; }
    .widget-header { display:flex; align-items:center; gap:8px; padding:12px 16px; border-bottom:1px solid #f0f0f0; }
    .widget-bar    { width:3px; height:14px; background:var(--fifa-gold,#FFD700); border-radius:0; flex-shrink:0; }
    .widget-title  { font-size:11px; font-weight:800; letter-spacing:1.5px; text-transform:uppercase; color:#0a0a0a; flex:1; margin:0; }
    .widget-link   { font-size:11px; color:#0066CC; text-decoration:none; font-weight:600; }
    .widget-body   { padding:14px 16px; }
 
    /* ── FILTROS ──────────────────────────────────────── */
    .rnk-filter-group { margin-bottom:14px; }
    .rnk-filter-group:last-child { margin-bottom:0; }
    .rnk-filter-label { font-size:10px; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:#999; display:block; margin-bottom:6px; }
    .rnk-filter-select,
    .rnk-filter-input {
        width:100%; padding:9px 12px;
        border:1.5px solid #e0e0e0; border-radius:8px;
        font-size:13px; color:#1a1a1a; background:#fff;
        appearance:none; -webkit-appearance:none;
        transition:border-color .2s;
    }
    .rnk-filter-select { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 10px center; padding-right:28px; }
    .rnk-filter-select:focus, .rnk-filter-input:focus { outline:none; border-color:#0066CC; }
 
    .participants-badge { background:#FAFAF0; border:1.5px solid var(--fifa-gold,#FFD700); border-radius:10px; padding:14px; text-align:center; margin-top:14px; }
    .participants-count { font-size:32px; font-weight:900; color:#BA7517; display:block; line-height:1; }
    .participants-label { font-size:11px; color:#999; font-weight:600; margin-top:4px; display:block; text-transform:uppercase; letter-spacing:.8px; }
 
    .btn-share { width:100%; padding:10px; background:#0a0a0a; border:none; border-radius:8px; color:#fff; font-size:12px; font-weight:800; cursor:pointer; margin-top:12px; display:flex; align-items:center; justify-content:center; gap:8px; transition:background .2s; }
    .btn-share:hover { background:#222; }
 
    #podiumSection { padding:20px; }
 
    .podium-container {
        display:grid;
        grid-template-columns:1fr 1fr 1fr;
        gap:12px;
        align-items:end;
    }
 
 
    /* ── TABLA DE RANKING ─────────────────────────────── */
    .table-section { background:#fff; border-radius:14px; overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,.07); border:1px solid #eee; }
    .table-header  { padding:14px 16px; border-bottom:1px solid #f0f0f0; display:flex; align-items:center; gap:8px; }
    .table-title   { font-size:11px; font-weight:800; letter-spacing:1.5px; text-transform:uppercase; color:#0a0a0a; flex:1; }
 
    .table-responsive { overflow-x:auto; }
 
    .ranking-table { width:100%; border-collapse:collapse; }
    .ranking-table th {
        padding:10px 12px; text-align:left;
        font-size:10px; font-weight:800; letter-spacing:1px; text-transform:uppercase;
        color:#999; border-bottom:2px solid #f0f0f0; white-space:nowrap;
        background:#fafafa;
    }
    .ranking-table th.center { text-align:center; }
    .ranking-table td { padding:11px 12px; border-bottom:1px solid #f5f5f5; font-size:13px; }
    .ranking-table tbody tr:last-child td { border-bottom:none; }
    .ranking-table tbody tr:hover td { background:#fafafa; }
    .ranking-table tbody tr.current-user td { background:#EBF3FF; }
    .ranking-table tbody tr.current-user { border-left:3px solid #0066CC; }
 
    .td-pos { text-align:center; font-size:16px; width:48px; }
    .td-fase { text-align:center; color:#ccc; font-size:12px; font-weight:600; }
    .td-fase.has-points { color:#0a0a0a; }
    .td-total { text-align:center; font-size:15px; font-weight:900; color:#BA7517; }
 
    .user-cell { display:flex; align-items:center; gap:8px; }
    .user-nametable { font-size:13px; font-weight:700; color:#0a0a0a; }
    .ranking-table tbody tr.current-user .user-nametable { color:#0C447C; }
 
    .liga-badge { display:inline-flex; align-items:center; gap:4px; padding:3px 8px; background:#f5f5f5; border-radius:20px; font-size:11px; color:#555; font-weight:600; }
 
    /* Empty state */
    .empty-state { text-align:center; padding:40px 24px; background:#fff; }
    .empty-icon   { font-size:36px; margin-bottom:10px; opacity:.3; display:block; }
    .empty-state h3 { font-size:14px; color:#555; margin-bottom:6px; }
    .empty-state p  { font-size:12px; color:#aaa; }
 
    /* ── WIDGET LATERAL ───────────────────────────────── */
    .widget-cta-dark { background:#0a0a0a !important; border-color:#222 !important; }
    .widget-cta-dark .widget-header { border-bottom-color:#222; }
    .widget-cta-dark .widget-title  { color:#fff; }
    .cta-text { font-size:13px; color:rgba(255,255,255,.55); line-height:1.5; margin-bottom:14px; }
    .cta-btn  { display:block; text-align:center; padding:11px; background:var(--fifa-gold,#FFD700); color:#000; font-size:13px; font-weight:800; border-radius:8px; text-decoration:none; transition:background .2s; }
    .cta-btn:hover { background:#e6c200; }
 
    .stat-row { display:flex; justify-content:space-between; align-items:center; padding:7px 0; border-bottom:1px solid #f5f5f5; }
    .stat-row:last-child { border-bottom:none; }
    .stat-label-w { font-size:12px; color:#555; }
    .stat-val-w   { font-size:13px; font-weight:800; color:#0a0a0a; }
    .stat-val-w.gold  { color:#BA7517; }
    .stat-val-w.blue  { color:#0066CC; }
 
    .nav-link-w { display:flex; align-items:center; gap:8px; padding:8px 12px; border-radius:8px; font-size:12px; font-weight:600; color:#555; text-decoration:none; transition:background .15s; margin-bottom:2px; }
    .nav-link-w:hover { background:#f0f0f0; color:#0a0a0a; }
    .nav-link-w i { font-size:12px; width:14px; text-align:center; opacity:.5; }
 
    /* ── RESPONSIVE ───────────────────────────────────── */
    @media(max-width:1024px){
        .rnk-grid { grid-template-columns:1fr 220px; grid-template-areas:"centro derecha" "izquierda izquierda"; }
        .rnk-col-left { position:static; display:grid; grid-template-columns:1fr 1fr; gap:14px; }
    }
    @media(max-width:700px){
        .rnk-grid { grid-template-columns:1fr; grid-template-areas:"centro" "derecha" "izquierda"; padding:16px 12px 40px; }
        .rnk-col-left,.rnk-col-right { position:static; }
        .podium-container { grid-template-columns:1fr; gap:10px; }
        .podium-place.first { padding-top:16px; }
    }
