/* ==========================================================================
   Espacio público de partidos (/partidos)
   Diseño inspirado en Flashscore + identidad Fair Play Kids (Negro, Blanco, Rojo)
   ========================================================================== */

.fpk-public-matches-wrap {
    color: #ffffff;
}

.fpk-matches-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #24242c;
}

.fpk-matches-brand-accent {
    color: #dc3545;
}

.fpk-public-pill-btn {
    background-color: #121217;
    border: 1px solid #2c2c36;
    color: #ffffff;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.46rem 1.05rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.fpk-public-pill-btn:hover,
.fpk-public-pill-btn:focus {
    background-color: #1c1c24;
    border-color: #dc3545;
    color: #ffffff;
}

.fpk-public-pill-btn.is-active-filter {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.14);
}

/* Maquetación de 3 columnas en escritorio (Filtro izquierda | Partidos centro | Espacio vacío derecha) */
.fpk-matches-layout {
    display: block;
}

@media (min-width: 992px) {
    .fpk-matches-layout {
        display: grid;
        grid-template-columns: 220px minmax(0, 1fr) 220px;
        gap: 1.5rem;
        align-items: start;
    }
}

@media (min-width: 1200px) {
    .fpk-matches-layout {
        grid-template-columns: 245px minmax(0, 1fr) 245px;
        gap: 1.75rem;
    }
}

/* Barra lateral izquierda de filtros (Categorías y Torneos) */
.fpk-filter-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fpk-filter-card {
    background-color: #101014;
    border: 1px solid #23232c;
    border-radius: 12px;
    overflow: hidden;
}

.fpk-filter-card-header {
    padding: 0.68rem 0.9rem;
    background-color: #0c0c0f;
    border-bottom: 1px solid #23232c;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fpk-filter-list {
    list-style: none;
    margin: 0;
    padding: 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fpk-filter-item-btn {
    width: 100%;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.83rem;
    font-weight: 500;
    text-align: left;
    padding: 0.46rem 0.65rem;
    border-radius: 8px;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.fpk-filter-item-btn:hover {
    background-color: #191920;
    color: #ffffff;
}

.fpk-filter-item-btn.is-active {
    background-color: rgba(220, 53, 69, 0.13);
    border-left-color: #dc3545;
    color: #ffffff;
    font-weight: 700;
}

.fpk-filter-item-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.fpk-filter-reset-btn {
    width: 100%;
    background-color: #121217;
    border: 1px solid rgba(220, 53, 69, 0.45);
    color: #ffffff;
    border-radius: 10px;
    padding: 0.48rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.fpk-filter-reset-btn:hover {
    background-color: rgba(220, 53, 69, 0.16);
    border-color: #dc3545;
}

/* Panel desplegable de filtros en móvil (< lg) */
.fpk-mobile-filter-panel {
    background-color: #101014;
    border: 1px solid #24242c;
    border-radius: 14px;
    padding: 0.95rem;
    margin-bottom: 1.25rem;
}

.fpk-mobile-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.fpk-mobile-pill {
    background-color: #16161c;
    border: 1px solid #292933;
    color: rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.34rem 0.8rem;
    transition: all 0.15s ease;
}

.fpk-mobile-pill.is-active {
    background-color: rgba(220, 53, 69, 0.16);
    border-color: #dc3545;
    color: #ffffff;
    font-weight: 700;
}

/* Columna derecha vacía reservada para futura publicidad / avisos */
.fpk-matches-right-slot {
    min-height: 1px;
}

/* Bloques por fecha */
.fpk-date-section {
    margin-bottom: 2rem;
}

.fpk-date-heading {
    font-size: 0.94rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    padding-left: 0.15rem;
}

/* Grupo de Torneo o Amistoso dentro de la fecha (estilo Flashscore) */
.fpk-fs-group {
    border: 1px solid #25252f;
    border-radius: 10px;
    overflow: hidden;
    background-color: #16161c;
    margin-bottom: 0.85rem;
}

.fpk-fs-group:last-child {
    margin-bottom: 0;
}

.fpk-fs-group-header {
    background-color: #101015;
    border-bottom: 1px solid #24242e;
    padding: 0.52rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.fpk-fs-group-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.fpk-fs-group-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.fpk-fs-group-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

a.fpk-fs-group-title:hover {
    color: #ff4d5a;
}

.fpk-fs-standings-link {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: underline;
    text-underline-offset: 3px;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.fpk-fs-standings-link:hover {
    color: #ffffff;
}

/* Fila individual de partido (Local arriba, Visitante abajo, Hora 12h a la izquierda) */
.fpk-fs-match-row {
    display: flex;
    align-items: center;
    padding: 0.58rem 0.85rem;
    background-color: #16161c;
    text-decoration: none;
    color: #ffffff;
    border-bottom: 1px solid #22222b;
    transition: background-color 0.15s ease;
}

.fpk-fs-match-row:last-child {
    border-bottom: none;
}

.fpk-fs-match-row:hover {
    background-color: #1e1e26;
    color: #ffffff;
}

/* Columna Hora (12 horas) */
.fpk-fs-time-col {
    width: 74px;
    flex-shrink: 0;
    padding-right: 0.65rem;
    margin-right: 0.75rem;
    border-right: 1px solid #25252f;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.fpk-fs-time-text {
    font-size: 0.76rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.2;
    white-space: nowrap;
}

.fpk-fs-status-sub {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.42);
    margin-top: 2px;
    line-height: 1;
}

/* Columna Equipos (uno encima del otro) */
.fpk-fs-teams-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.34rem;
}

.fpk-fs-team-line {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    height: 21px;
}

.fpk-fs-team-crest {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.fpk-fs-team-monogram {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background-color: #24242e;
    border: 1px solid #323240;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.56rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fpk-fs-team-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fpk-fs-team-name.is-winner {
    font-weight: 700;
    color: #ffffff;
}

.fpk-fs-team-name.is-muted-loser {
    color: rgba(255, 255, 255, 0.65);
}

/* Columna Marcador alineado con cada equipo (un solo color uniforme) */
.fpk-fs-scores-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.34rem;
    margin-left: 0.65rem;
    min-width: 26px;
    font-variant-numeric: tabular-nums;
}

.fpk-fs-score-line {
    height: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
}

.fpk-fs-score-line.is-unplayed {
    color: rgba(255, 255, 255, 0.38);
    font-weight: 600;
}

/* Pequeño cuadrado a la derecha del todo con la categoría del partido */
.fpk-fs-friendly-cat-slot {
    min-width: 82px;
    width: auto;
    margin-left: 0.65rem;
    padding-left: 0.65rem;
    border-left: 1px solid #25252f;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.fpk-fs-cat-square {
    background-color: rgba(220, 53, 69, 0.14);
    border: 1px solid rgba(220, 53, 69, 0.45);
    border-radius: 6px;
    padding: 0.24rem 0.55rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    width: auto;
    text-align: center;
    white-space: nowrap;
    display: inline-block;
}

/* Fase eliminatoria opcional en torneos */
.fpk-fs-phase-tag {
    font-size: 0.68rem;
    font-weight: 600;
    color: #ff4d5a;
    background-color: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.35);
    border-radius: 5px;
    padding: 0.12rem 0.42rem;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

/* Estado vacío */
.fpk-empty-matches-card {
    background-color: #121217;
    border: 1px solid #25252f;
    border-radius: 12px;
    padding: 2.5rem 1.25rem;
    text-align: center;
}

@media (max-width: 575.98px) {
    .fpk-fs-match-row {
        padding: 0.55rem 0.7rem;
    }

    .fpk-fs-time-col {
        width: 68px;
        padding-right: 0.5rem;
        margin-right: 0.6rem;
    }

    .fpk-fs-time-text {
        font-size: 0.72rem;
    }

    .fpk-fs-team-name {
        font-size: 0.82rem;
    }

    .fpk-fs-friendly-cat-slot {
        min-width: 72px;
        width: auto;
        margin-left: 0.45rem;
        padding-left: 0.45rem;
    }

    .fpk-fs-cat-square {
        padding: 0.2rem 0.45rem;
        font-size: 0.7rem;
    }
}
