/* ==========================================================================
   Level Premios — Página pública de ganadores [lp_ganadores]
   ========================================================================== */

.lp-ganadores {
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    max-width: 860px;
    margin: 0 auto;
    overflow: hidden;
}

/* ── Cabecera ────────────────────────────────────────────────────────────── */

.lp-gan-header {
    background: #0d1b3e;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.lp-gan-header-label {
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #c8f135;
    margin-bottom: .35rem;
}

.lp-gan-header-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.lp-gan-header-sub {
    font-size: .78rem;
    color: rgba(255, 255, 255, .4);
    margin-top: .35rem;
}

.lp-gan-header-year {
    display: none;
}

/* ── Pestañas de división ────────────────────────────────────────────────── */

.lp-gan-tabs {
    display: flex;
    border-bottom: 2px solid #e4e8da;
    overflow-x: auto;
    scrollbar-width: none;
    background: #fff;
}

.lp-gan-tabs::-webkit-scrollbar { display: none; }

.lp-gan-tab {
    padding: .85rem 1.6rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6a7a92;
    border: none;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -2px;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
}

.lp-gan-tab:hover { color: #0d1b3e; }

.lp-gan-tab.activa {
    color: #0d1b3e;
    border-bottom-color: #c8f135;
}

/* ── Panel de división ───────────────────────────────────────────────────── */

.lp-gan-panel.oculto { display: none; }

/* ── Lista de ganadores ──────────────────────────────────────────────────── */

.lp-gan-lista {
    background: #f6f8f2;
    padding: 0 2.5rem;
}

.lp-gan-fila {
    display: grid;
    grid-template-columns: 155px auto 1fr;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid #e4e8da;
}

.lp-gan-fila:last-child { border-bottom: none; }

/* ── Posición ────────────────────────────────────────────────────────────── */

.lp-gan-pos-label {
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #3a4a62;
    line-height: 1;
}

.lp-gan-pos-medal {
    font-size: .95rem;
    margin-top: .3rem;
    line-height: 1;
}

/* ── Jugador (foto + nombre) ─────────────────────────────────────────────── */

.lp-gan-jugador {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.lp-gan-foto {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
}

.lp-gan-foto svg,
.lp-gan-foto img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.lp-gan-nombre {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0d1b3e;
    line-height: 1.3;
    letter-spacing: -.025em;
    white-space: nowrap;
    overflow-x: hidden;
    overflow-y: visible;
    text-overflow: ellipsis;
}

/* ── Estadísticas ────────────────────────────────────────────────────────── */

.lp-gan-stats {
    text-align: right;
    min-width: 90px;
}

.lp-gan-pct {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0d1b3e;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: -.02em;
}

.lp-gan-votos-label {
    font-size: .62rem;
    color: #3a4a62;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-top: .1rem;
}

.lp-gan-barra {
    height: 4px;
    background: #dde0d5;
    border-radius: 2px;
    overflow: hidden;
    margin-top: .5rem;
}

.lp-gan-fill {
    height: 100%;
    background: #c8f135;
    border-radius: 2px;
    transition: width .4s ease;
}

/* ── Estado vacío ────────────────────────────────────────────────────────── */

.lp-gan-vacio {
    padding: 2rem;
    text-align: center;
    color: #666;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    /* Cabecera */
    .lp-gan-header {
        padding: 1.25rem 1rem;
    }

    .lp-gan-header-title {
        font-size: 1.3rem;
    }

    .lp-gan-header-sub {
        font-size: .7rem;
    }

    /* Pestañas */
    .lp-gan-tab {
        padding: .7rem .9rem;
        font-size: .7rem;
    }

    /* Lista */
    .lp-gan-lista {
        padding: 0 1rem;
    }

    /* Fila: 2 filas en lugar de 3 columnas.
       Fila 1: etiqueta de posición a todo el ancho.
       Fila 2: foto+nombre (flex) | estadísticas */
    .lp-gan-fila {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: .3rem .75rem;
        padding: .9rem 0;
    }

    /* Posición: ocupa ambas columnas, en horizontal */
    .lp-gan-pos {
        grid-column: 1 / -1;
        grid-row: 1;
        display: flex;
        align-items: center;
        gap: .4rem;
    }

    .lp-gan-pos-label {
        font-size: .55rem;
    }

    .lp-gan-pos-medal {
        margin-top: 0;
        font-size: .85rem;
    }

    /* Jugador: fila 2, columna 1 */
    .lp-gan-jugador {
        grid-column: 1;
        grid-row: 2;
    }

    .lp-gan-foto,
    .lp-gan-foto svg,
    .lp-gan-foto img {
        width: 44px;
        height: 44px;
    }

    /* El nombre puede partir en dos líneas en móvil */
    .lp-gan-nombre {
        font-size: 1.1rem;
        white-space: normal;
        overflow-x: visible;
    }

    /* Estadísticas: fila 2, columna 2 */
    .lp-gan-stats {
        grid-column: 2;
        grid-row: 2;
        align-self: center;
        min-width: 70px;
    }

    .lp-gan-pct {
        font-size: 1.1rem;
    }

    .lp-gan-votos-label {
        font-size: .58rem;
    }
}