/* =========================================
   MARCADORES
========================================= */

:root {
    --pill-bg: #fff;
    --pill-border: #e5e7eb;
    --pill-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    --text: #1f2937;
    --muted: #6b7280;
    --accent: #6e50e4;
    /* morado del timeline */
}

/* Carrusel horizontal ancho completo (siempre) */
.matches-mini {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 20px;
    overflow: visible;
    /* sin scroll en desktop */
}

.match-pill {
    background: #000;
    border: 1px solid var(--pill-border);
    box-shadow: var(--pill-shadow);
    border-radius: 7px;
    display: flex;
    flex-direction: column;
    /* para apilar arriba/abajo */
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    position: relative;
    color: var(--text);
    border-top: 5px solid #6e50e4;
    width: 100%;
    margin: auto;
}

.pill-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
}

.pill-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: #fff;
    font-weight: 500;
}

.team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-weight: 600;
}

/* recorte elegante de nombres largos */
.team {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flag-badge {
    width: 50px;
    height: 30px;
    display: grid;
    place-items: center;
    background: #f3f4f6;
    border: 1px solid var(--pill-border);
    border-radius: 6px;
    overflow: hidden;
}

.flag-badge img {
    width: 100%;
    height: 30px;
    object-fit: cover;
    display: block;
}

.score {
    flex: 0 0 auto;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .02em;
    color: #fff;
}

.dash {
    color: var(--muted);
    font-weight: 700;
    margin: 0 .2rem;
}

/* Hover sutil en desktop */
@media (hover:hover) {
    .match-pill:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
        transform: translateY(-1px);
        transition: .2s;
    }
}

/* Laptops (≤ 1199.98px) */
@media (max-width: 1199.98px) {


    .slide-inner {
        min-height: 220px;
    }

    .matches-mini {
        display: flex;
        /* de grid -> flex horizontal */
        gap: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
    }

    .matches-mini .match-pill {
        flex: 0 0 85%;
        /* ~85% de ancho visible en tablet */
        scroll-snap-align: start;
    }
}

/* Tablets (≤ 991.98px) */
@media (max-width: 991.98px) {
    .barra-pista {
        justify-content: center;
    }
}

/* Móviles pequeños (≤ 767.98px) */
@media (max-width: 767.98px) {


    .slide-inner {
        min-height: 200px;
    }


    .matches-mini .match-pill {
        flex-basis: 100%;
        /* 100% del viewport */
    }

    /* Tipografía un poquito más compacta si hace falta */
    .score {
        font-size: 18px;
    }

    .flag-badge {
        width: 50px;
        height: 26px;
    }

    .flag-badge img {
        width: 50px;
        height: 24px;
    }

    .team {
        font-size: 12px;
    }

    .match-pill {
        padding: 7px 7px;
    }
}