
:root {
    --fifa-blue: #020b2e;
    --fifa-accent: #00ccff;
    --fifa-gray-bg: #f8f9fa;
    --fifa-border: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
}

.resultados-container {
    max-width: 950px;
    margin: 0 auto;
    font-family: 'Barlow', sans-serif;
}

/* Encabezado de Fecha */
.resultados-date-group {
    margin-bottom: 2.5rem;
}

.date-header {
    background: var(--fifa-blue);
    color: white;
    padding: 12px 24px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem;
    border-radius: 6px 6px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--fifa-accent);
}

/* Tarjeta de Partido */
.match-card {
    background: white;
    border: 1px solid var(--fifa-border);
    border-top: none;
    display: flex;
    align-items: center;
    padding: 20px 30px;
    transition: background-color 0.2s;
}

.match-card:last-child {
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.match-card:hover {
    background-color: #fcfcfc;
}

.match-info {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    line-height: 1.4;
}

.match-venue {
    color: var(--text-main);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.match-number {
    color: var(--text-muted);
    font-weight: 500;
}

/* Contenedor de Equipos */
.match-teams-container {
    flex: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.team {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.team.home { justify-content: flex-end; text-align: right; }
.team.away { justify-content: flex-start; text-align: left; }

.team-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-main);
    text-transform: uppercase;
    white-space: nowrap;
}

.team-flag {
    width: 45px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid var(--fifa-border);
}

/* Marcador / Tiempo */
.match-status-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.match-score-box {
    background: #f1f5f9;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    color: var(--fifa-blue);
    border: 1px solid var(--fifa-border);
}

.match-time-badge {
    flex: 1;
    text-align: right;
    font-family: 'Bebas Neue';
    font-size: 1.4rem;
    color: var(--fifa-blue);
    letter-spacing: 1px;
}
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999 !important;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.1);
    border-top: 6px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Responsivo */
@media (max-width: 850px) {
    .match-card {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    .match-teams-container {
        width: 100%;
        order: 2;
    }
    .match-info {
        text-align: center;
        order: 1;
    }
    .match-time-badge {
        order: 3;
        text-align: center;
    }
    .team-name { font-size: 1.1rem; }
    .team-flag { width: 35px; height: 24px; }
}
