/* ============================================
   SportCriss Lite — Public Components CSS
   Variables: --scl-primary, --scl-accent, --scl-acento
   Fuente: --scl-font-pub
   ============================================ */

/* ── Reset base del componente ─────────────── */
.scl-pub-wrap {
    font-family: var(--scl-font-pub);
    line-height: 1.5;
    color: #2c3e50;
    width: 100%;
}

/* ── Card contenedor ────────────────────────── */
.scl-pub-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

/* ── Header del componente ──────────────────── */
.scl-pub-header {
    background: var(--scl-primary);
    color: #fff;
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid var(--scl-accent);
}

.scl-pub-header__titulo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.scl-pub-header__subtitulo {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--scl-accent);
    margin-top: 4px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ── Tabla base ─────────────────────────────── */
.scl-pub-tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.scl-pub-tabla thead tr {
    background: rgba(0, 0, 0, 0.03);
}

.scl-pub-tabla thead th {
    color: #888;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid #e8ecef;
    white-space: nowrap;
}

.scl-pub-tabla thead th:first-child {
    text-align: left;
    padding-left: 1rem;
}

.scl-pub-tabla thead th.scl-col-equipo {
    text-align: left;
}

.scl-pub-tabla tbody tr {
    border-bottom: 1px solid #f0f2f5;
    transition: background 0.1s;
}

.scl-pub-tabla tbody tr:hover {
    background: #f8f9fa;
}

.scl-pub-tabla tbody tr:last-child {
    border-bottom: none;
}

.scl-pub-tabla tbody td {
    padding: 0.625rem 0.75rem;
    text-align: center;
    vertical-align: middle;
}

.scl-pub-tabla tbody td:first-child {
    text-align: left;
    padding-left: 1rem;
}

.scl-pub-tabla tbody td.scl-col-equipo {
    text-align: left;
}

/* ── Columnas específicas ───────────────────── */
.scl-col-pos {
    width: 36px;
    font-weight: 700;
    color: #888;
    font-size: 0.82rem;
}

.scl-col-equipo {
    min-width: 120px;
}

.scl-col-stat {
    width: 36px;
}

.scl-col-pts {
    width: 44px;
}

.scl-col-pts strong {
    color: var(--scl-acento);
    font-size: 1rem;
    font-weight: 800;
}

/* ── Posición especial ──────────────────────── */
.scl-posicion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 800;
}

.scl-fila--lider .scl-posicion {
    background: var(--scl-acento);
    color: #fff;
}

/* ── Zona clasificatoria ────────────────────── */
.scl-fila--zona-verde td:first-child {
    border-left: 3px solid var(--scl-accent);
}

/* ── Celda de equipo con escudo ─────────────── */
.scl-equipo-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.scl-escudo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 2px;
}

.scl-nombre-equipo {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

/* ── Footer del componente ──────────────────── */
.scl-pub-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e8ecef;
    font-size: 0.72rem;
    color: #aaa;
}

.scl-pub-footer__brand {
    font-weight: 700;
    color: var(--scl-primary);
}

/* ── Rankings (goleadores, asistencias, etc.) ─ */
.scl-pub-ranking-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    border-bottom: 1px solid #f0f2f5;
    transition: background 0.1s;
}

.scl-pub-ranking-item:hover {
    background: #f8f9fa;
}

.scl-pub-ranking-item:last-child {
    border-bottom: none;
}

.scl-pub-rank-pos {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f2f5;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    flex-shrink: 0;
}

.scl-pub-rank-pos--1 {
    background: #FFD700;
    color: #7a5f00;
}

.scl-pub-rank-pos--2 {
    background: #C0C0C0;
    color: #555;
}

.scl-pub-rank-pos--3 {
    background: #CD7F32;
    color: #fff;
}

.scl-pub-rank-foto {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--scl-primary);
    overflow: hidden;
}

.scl-pub-rank-info {
    flex: 1;
    min-width: 0;
}

.scl-pub-rank-nombre {
    font-weight: 700;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scl-pub-rank-equipo {
    font-size: 0.75rem;
    color: #888;
}

/* ── Columna complementaria (PJ) — discreta ── */
.scl-pub-rank-complemento {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 32px;
    flex-shrink: 0;
}
.scl-pub-rank-valor--sm {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ccc;
    line-height: 1;
}

/* ── Columna principal (goles/asistencias/GC) — resaltada ── */
.scl-pub-rank-principal {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
    flex-shrink: 0;
}
.scl-pub-rank-valor {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--scl-acento, #f5a623);
    line-height: 1;
}

.scl-pub-rank-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #aaa;
    margin-top: 2px;
    text-align: center;
}

/* ── Partido wrap ───────────────────────────── */
.scl-pub-partido-wrap {
    border-bottom: 1px solid #f0f2f5;
    transition: background 0.1s;
}
.scl-pub-partido-wrap:last-child { border-bottom: none; }
.scl-pub-partido-wrap--par   { background: #f8f9fa; }
.scl-pub-partido-wrap--impar { background: #fff; }
.scl-pub-partido-wrap:hover  { background: #eef2f7; }

/* ── Meta superior e inferior ───────────────── */
.scl-pub-partido-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.72rem;
    color: #aaa;
}
.scl-pub-partido-meta--top    { padding: 0.5rem 1rem 0; }
.scl-pub-partido-meta--bottom { padding: 0 1rem 0.5rem; }

/* ── Fila principal ─────────────────────────── */
.scl-pub-partido-fila {
    display: grid;
    grid-template-columns: 45% 10% 45%;
    align-items: center;
    padding: 0.625rem 0;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    min-height: 56px;
}

/* ── Equipos ────────────────────────────────── */
.scl-pub-partido-equipo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}
.scl-pub-partido-equipo--local {
    justify-content: flex-start;
    margin-left: 1rem;
}
.scl-pub-partido-equipo--visita {
    justify-content: flex-end;
    margin-right: 1rem;
    flex-direction: row; /* nombre primero, escudo al borde derecho */
}

.scl-pub-partido-nombre {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}
.scl-pub-partido-nombre.scl-pub-ganador  { font-weight: 800; }
.scl-pub-partido-nombre.scl-pub-perdedor { opacity: 0.5; }

/* ── Escudos ─────────────────────────────── */
.scl-pub-partido-escudo {
    width: 32px; height: 32px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}
.scl-pub-partido-escudo--placeholder {
    width: 32px; height: 32px;
    background: var(--scl-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
}

/* ── Centro ─────────────────────────────────── */
.scl-pub-partido-centro {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.scl-pub-partido-marcador {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--scl-primary);
    line-height: 1;
}
.scl-pub-partido-gol { min-width: 18px; text-align: center; }
.scl-pub-partido-gol.scl-pub-perdedor { color: #bbb; font-weight: 500; }
.scl-pub-partido-sep { color: #ccc; font-weight: 300; font-size: 1rem; }

.scl-pub-partido-vs {
    font-size: 0.85rem;
    font-weight: 900;
    color: #ccc;
    letter-spacing: 0.04em;
}

/* Badge de estado */
.scl-pub-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--scl-accent);
    color: var(--scl-primary);
}

/* ── Torneos (directorio) ───────────────────── */
.scl-pub-torneos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.scl-pub-torneo-card {
    background: var(--scl-primary);
    border: 1px solid #e8ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.15s, transform 0.1s;
    text-decoration: none;
    display: block;
    color: inherit;
}

.scl-pub-torneo-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.scl-pub-torneo-card__header {
    background: var(--scl-primary);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.scl-pub-torneo-card__logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.scl-pub-torneo-card__nombre {
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff;
}

.scl-pub-torneo-card__body {
    padding: 0.875rem;
    font-size: 0.8rem;
    color: var(--scl-accent);
}

/* ── Perfil equipo y jugador ────────────────── */
.scl-pub-perfil-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 1.25rem;
    background: var(--scl-primary);
    color: #fff;
}

.scl-pub-perfil-foto {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
}

.scl-pub-perfil-nombre {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 4px;
}

.scl-pub-perfil-meta {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ── Sedes ──────────────────────────────────── */
.scl-pub-sedes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.scl-pub-sede-card {
    background: #f8f9fa;
    border: 1px solid #e8ecef;
    border-radius: 8px;
    padding: 1rem;
    border-left: 3px solid var(--scl-accent);
}

.scl-pub-sede-card__nombre {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: var(--scl-primary);
}

.scl-pub-sede-card__meta {
    font-size: 0.8rem;
    color: #888;
}

.scl-pub-sede-card__maps {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--scl-primary);
    text-decoration: none;
}

/* ── Filtros reactivos ──────────────────────── */
.scl-pub-filtros {
    margin-bottom: 1.25rem;
}

.scl-pub-filtros__form {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.scl-pub-filtros__campo {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 160px;
}

.scl-pub-filtros__campo label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
}

.scl-pub-filtros__campo select {
    padding: 0.5rem 0.875rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.875rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s;
    outline: none;
}

.scl-pub-filtros__campo select:focus {
    border-color: var(--scl-primary);
}

/* ── Página del torneo ──────────────────────── */
.scl-pub-torneo-pagina {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
}

.scl-pub-torneo-hero {
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.scl-pub-torneo-hero__logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.scl-pub-torneo-hero__nombre {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0;
}

.scl-pub-dos-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

/* ── Logo en header ─────────────────────────── */
.scl-pub-header__logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 6px;
}

/* ── Ganador/perdedor en resultados ─────────── */
.scl-pub-ganador {
    font-weight: 700;
}

.scl-pub-perdedor {
    font-weight: 400;
    opacity: 0.6;
}

/* ── Meta row debajo de cada partido ────────── */
.scl-pub-partido__meta-row {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    font-size: 0.72rem;
    color: #aaa;
    padding: 2px 1rem 0.5rem;
}

/* ── Hora en partidos pendientes ────────────── */
.scl-pub-partido__hora {
    font-size: 1rem;
    font-weight: 800;
    color: var(--scl-primary);
    min-width: 64px;
    text-align: center;
    flex-shrink: 0;
    background: rgba(26, 58, 92, 0.08);
    border-radius: 6px;
    padding: 2px 8px;
}

/* ── Tabla pequeña para stats de partido ────── */
.scl-pub-tabla--sm th,
.scl-pub-tabla--sm td {
    padding: 4px 6px;
    font-size: 0.78rem;
}

/* ── Empty state ────────────────────────────── */
.scl-pub-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #aaa;
    font-size: 0.875rem;
}

/* Separador de jornada */
.scl-pub-jornada-sep {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--scl-primary);
    padding: 0.5rem 1rem;
    background: rgba(26,58,92,0.04);
    border-left: 3px solid var(--scl-accent);
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 640px) {
    .scl-pub-torneos-grid {
        grid-template-columns: 1fr;
    }

    .scl-pub-sedes-grid {
        grid-template-columns: 1fr;
    }

    .scl-pub-ranking-item {
        padding: 0.5rem 0.75rem;
    }

    .scl-nombre-equipo {
        max-width: 100px;
    }

    .scl-pub-tabla thead th,
    .scl-pub-tabla tbody td {
        padding: 0.5rem 0.375rem;
        font-size: 0.78rem;
    }

    .scl-pub-header {
        padding: 0.75rem 1rem;
    }

    .scl-pub-header__logo {
        width: 40px;
        height: 40px;
    }

    .scl-pub-header__titulo {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .scl-pub-partido-fila {
        grid-template-columns: 40% 20% 40%;
    }
    .scl-pub-partido-nombre { max-width: 72px; font-size: 0.75rem; }
    .scl-pub-partido-escudo,
    .scl-pub-partido-escudo--placeholder { width: 26px; height: 26px; }
    .scl-pub-partido-marcador { font-size: 1rem; }
}

/* ── Single jugador / equipo ────────────────── */
.scl-single-hero {
    background: var(--scl-primary);
    color: #fff;
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.scl-single-hero__foto {
    width: 100px; height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
    background: rgba(255,255,255,0.1);
}
.scl-single-hero__escudo {
    width: 100px; height: 100px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.scl-single-hero__nombre {
    font-size: 1.75rem;
    font-weight: 900;
    margin: 0 0 4px;
    letter-spacing: -0.02em;
}
.scl-single-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75);
    margin-top: 0.5rem;
}
.scl-single-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
.scl-single-bio {
    padding: 1.25rem 1.5rem;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    border-bottom: 1px solid #f0f2f5;
}
.scl-single-redes {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
}
.scl-single-red {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.15s;
}
.scl-single-red:hover { opacity: 0.85; }
.scl-single-red--instagram { background: #E1306C; }
.scl-single-red--tiktok    { background: #000; }
.scl-single-red--facebook  { background: #1877F2; }
.scl-single-red--whatsapp  { background: #25D366; }
.scl-single-red--web       { background: var(--scl-primary); }
.scl-equipo-colores {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 0.5rem;
}
.scl-equipo-color-dot {
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    display: inline-block;
}
.scl-single-section {
    padding: 1.25rem 1.5rem 0;
}
.scl-single-section__titulo {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #aaa;
    margin-bottom: 0.875rem;
}
@media (max-width: 640px) {
    .scl-single-hero { flex-direction: column; text-align: center; }
    .scl-single-hero__meta { justify-content: center; }
    .scl-single-redes { justify-content: center; }
}

/* ── Tarjetas públicas de jugador — Fix 2.1.2 ──────────────── */
/* Foto cuadrada con recorte centrado: evita que fotos verticales
   (ej. 169×300) estiren la tarjeta o rompan la alineación del grid. */
.scl-pub-jugador-card__foto,
.scl-pub-jugador-card__foto-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* ── Directorio de equipos (v2.3.9) ────────────────────────── */
.scl-pub-equipos-grid {
    display: grid;
    gap: 1rem;
}
.scl-pub-equipos-grid--2col { grid-template-columns: repeat(2, 1fr); }
.scl-pub-equipos-grid--3col { grid-template-columns: repeat(3, 1fr); }
.scl-pub-equipos-grid--4col { grid-template-columns: repeat(4, 1fr); }

.scl-pub-equipo-card {
    border: 1px solid #e8ecef;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s, transform 0.1s;
}
a.scl-pub-equipo-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.scl-pub-equipo-card__header {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
}
.scl-pub-equipo-card__escudo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}
.scl-pub-equipo-card__escudo-placeholder {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
}
.scl-pub-equipo-card__body {
    padding: 0.875rem;
    flex: 1;
}
.scl-pub-equipo-card__nombre {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.scl-pub-equipo-card__ciudad {
    font-size: 0.75rem;
    color: #aaa;
    margin-bottom: 6px;
}
.scl-pub-equipo-card__stats {
    display: flex;
    gap: 0.625rem;
    margin-top: 6px;
}
.scl-pub-equipo-card__stats span {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.72rem;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 4px 8px;
}
.scl-pub-equipo-card__stats strong { font-size: 0.9rem; }
.scl-pub-equipo-card__stats small  { color: #aaa; font-size: 0.62rem; }
.scl-pub-equipo-card__arrow {
    text-align: right;
    padding: 0.375rem 0.875rem;
    font-size: 0.8rem;
    color: var(--scl-primary);
    border-top: 1px solid #f0f2f5;
    font-weight: 700;
}

/* ── Directorio de jugadores (v2.3.9) ──────────────────────── */
.scl-pub-jugadores-grid {
    display: grid;
    gap: 1rem;
}
.scl-pub-jugadores-grid--2col { grid-template-columns: repeat(2, 1fr); }
.scl-pub-jugadores-grid--3col { grid-template-columns: repeat(3, 1fr); }
.scl-pub-jugadores-grid--4col { grid-template-columns: repeat(4, 1fr); }
.scl-pub-jugadores-grid--5col { grid-template-columns: repeat(5, 1fr); }

.scl-pub-jugador-card {
    border: 1px solid #e8ecef;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s, transform 0.1s;
    background: #fff;
}
a.scl-pub-jugador-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.scl-pub-jugador-card__body {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.scl-pub-jugador-card__dorsal {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--scl-primary);
    background: rgba(26,58,92,0.08);
    padding: 1px 6px;
    border-radius: 8px;
    display: inline-block;
    align-self: flex-start;
}
.scl-pub-jugador-card__nombre {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.scl-pub-jugador-card__posicion {
    font-size: 0.72rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.scl-pub-jugador-card__equipo {
    font-size: 0.75rem;
    color: var(--scl-primary);
    font-weight: 600;
}
.scl-pub-jugador-card__ciudad {
    font-size: 0.72rem;
    color: #aaa;
}

/* ── Responsive directorios ─────────────────────────────────── */
@media (max-width: 768px) {
    .scl-pub-equipos-grid--3col,
    .scl-pub-equipos-grid--4col { grid-template-columns: repeat(2, 1fr); }
    .scl-pub-jugadores-grid--3col,
    .scl-pub-jugadores-grid--4col,
    .scl-pub-jugadores-grid--5col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .scl-pub-equipos-grid--2col,
    .scl-pub-equipos-grid--3col,
    .scl-pub-equipos-grid--4col { grid-template-columns: 1fr; }
    .scl-pub-jugadores-grid--2col,
    .scl-pub-jugadores-grid--3col,
    .scl-pub-jugadores-grid--4col,
    .scl-pub-jugadores-grid--5col { grid-template-columns: repeat(2, 1fr); }
}

/* ── Columnas de stats públicos ─────────────── */

/* PJ — complementario, discreto */
.scl-stats-col--pj {
    color: rgba(255,255,255,0.35) !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
}

/* Valor principal — resaltado con accent */
.scl-stats-col--principal {
    color: var(--scl-acento, #f5a623) !important;
    font-size: 1.1rem !important;
    font-weight: 900 !important;
}

/* Si la tabla está sobre fondo claro (shortcode público sin export) */
.scl-pub-card .scl-stats-col--pj {
    color: #ccc !important;
}
.scl-pub-card .scl-stats-col--principal {
    color: var(--scl-acento, #f5a623) !important;
}

/* Header de columnas — mismo patrón */
thead .scl-stats-col--pj {
    opacity: 0.45;
    font-weight: 500;
}
thead .scl-stats-col--principal {
    color: var(--scl-acento, #f5a623);
    font-weight: 700;
}
}