/* ===========================================================
   ESTILOS VIVE POTOSÍ - FIXTURES RESPONSIVE
   =========================================================== */

.vp-fixtures {
    min-height: 100px;
    display: block !important;
    width: 100%;
}

.vp-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

/* --- BLOQUE IZQUIERDO: CIUDAD Y FECHA (2 LÍNEAS) --- */
.vp-meta-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 140px;
    border-right: 1px solid #f0f0f0;
    margin-right: 20px;
    text-align: left;
}

.vp-meta-location {
    font-size: 0.8rem;
    font-weight: 800;
    color: #243746;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.vp-dt-horizontal {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 600;
    line-height: 1.4;
}

/* --- BLOQUE DERECHO: EQUIPOS --- */
.vp-match-row {
    display: flex;
    align-items: center;
    flex: 1;
}

.vp-teams-vs {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex: 1;
    gap: 15px;
}

.vp-team-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.vp-team-item.local { justify-content: flex-end; }
.vp-team-item.visitante { justify-content: flex-start; }

.vp-team-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* --- LÓGICA DE NOMBRES (PC vs MÓVIL) --- */
.vp-name-full { display: inline; font-size: 1rem; font-weight: 600; }
.vp-name-short { display: none; font-size: 0.95rem; font-weight: 800; text-transform: uppercase; }

.vp-vs-label {
    font-weight: bold;
    color: #eb0045;
    font-size: 0.85rem;
    min-width: 30px;
    text-align: center;
}

/* Resaltado para partidos en vivo (Lista de Fixtures) */
.vp-card-live {
    background-color: #fff0f3 !important; /* Rojo bajito/suave */
    border: 1px solid #eb0045 !important; /* Borde con el color de tu marca */
    box-shadow: 0 2px 10px rgba(235, 0, 69, 0.1);
}

/* Resaltado para la tabla de posiciones cuando un equipo está jugando */
.vp-row-live {
    background-color: #fff0f3 !important;
}

/* Opcional: animar un poco el borde para que destaque que es "En Vivo" */
.vp-card-live {
    position: relative;
    overflow: hidden;
}

.vp-card-live::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #eb0045; /* Línea roja intensa en el lateral izquierdo */
}

/* Contenedor general de la tabla */
.vp-standings {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px; /* Espaciado entre filas similar a las cards */
    margin-bottom: 20px;
    font-family: sans-serif;
}

.vp-standings th {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #666;
    padding: 10px;
    text-align: center;
}

/* Fila de la tabla con efecto de tarjeta */
.vp-standings tbody tr {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Sombra suave como las cards */
    transition: transform 0.2s;
}

.vp-standings td {
    padding: 12px 10px;
    text-align: center;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* Bordes redondeados para simular tarjetas */
.vp-standings td:first-child { border-left: 1px solid #eee; border-radius: 8px 0 0 8px; font-weight: bold; }
.vp-standings td:last-child { border-right: 1px solid #eee; border-radius: 0 8px 8px 0; font-weight: bold; color: #222; }

/* Alineación del equipo con su logo */
.vp-team-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left !important;
}

.vp-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Resaltado para partidos en vivo */
.vp-row-live {
    border: 1px solid #e74c3c !important; /* Rojo Vive Potosí */
    position: relative;
}

.vp-row-live::after {
    content: "• LIVE";
    font-size: 0.6rem;
    color: #e74c3c;
    position: absolute;
    left: 5px;
    top: 2px;
    font-weight: bold;
}

/* --- RESPONSIVO PARA MÓVILES --- */
@media (max-width: 600px) {
    /* Mantenemos la fila única */
    .vp-match-row {
        flex-direction: row !important; 
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 8px;
        padding: 8px 5px;
    }

    /* Reducimos el bloque de ciudad/fecha para que entre todo */
    .vp-meta-column {
        min-width: 85px; 
        border-right: 1px solid #eee;
        padding-right: 5px;
        margin-right: 5px;
    }

    .vp-meta-location {
        font-size: 0.8rem; /* Ciudad más pequeña */
    }

    .vp-dt-horizontal {
        font-size: 0.8rem; /* Fecha más pequeña */
    }

    /* Ajustamos el contenedor de equipos */
    .vp-teams-vs {
        gap: 4px;
        justify-content: center;
    }

    /* Nombres cortos (RTO, IP) */
    .vp-name-full { display: none; }
    .vp-name-short { 
        display: inline; 
        font-size: 1.0rem; 
        font-weight: 800;
    }

    .vp-team-item img {
        width: 25px; /* Logos más pequeños para ahorrar espacio */
        height: 25px;
    }

    .vp-vs-label {
        font-size: 0.95rem;
        padding: 0 2px;
    }

/* Estilos para móviles (pantallas menores a 600px) */
@media screen and (max-width: 600px) {
    /* 1. Ocultamos los encabezados de PG, PE y PP */
    /* Basado en el orden: 1:#, 2:Equipo, 3:PJ, 4:PG, 5:PE, 6:PP, 7:DIF, 8:PTS */
    .vp-standings th:nth-child(4), 
    .vp-standings th:nth-child(5), 
    .vp-standings th:nth-child(6) {
        display: none;
    }

    /* 2. Ocultamos las celdas correspondientes en el cuerpo de la tabla */
    .vp-standings td:nth-child(4), 
    .vp-standings td:nth-child(5), 
    .vp-standings td:nth-child(6) {
        display: none;
    }

    /* 3. Ajustamos el tamaño de fuente para que lo importante resalte */
    .vp-standings td {
        font-size: 14px;
        padding: 8px 4px;
    }

    /* 4. Reducimos el nombre del equipo para ganar espacio */
    .vp-team-cell span {
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
        vertical-align: middle;
    }
}
    
}