* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #0f172a;
    color: white;

    font-family: Arial, sans-serif;
}

.container {
    width: 100%;
    max-width: 80%;
    padding: 20px;
    text-align: center;
}

h1 {
    margin-bottom: 15px;
}

.subtitle {
    color: #94a3b8;
    margin-bottom: 40px;
}

.cards {
    display: flex;
    gap: 20px;
}

.card {
    flex: 1;

    background: #1e293b;

    border-radius: 12px;

    padding: 30px 20px;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    background: #334155;
}

.icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.card h2 {
    margin: 10px 0;
}

.card p {
    color: #94a3b8;
    margin: 0;
}

@media (max-width: 700px) {

    .cards {
        flex-direction: column;
    }

}


#stats-subtitle{
    color: #94a3b8;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 32px;
}

/* ── PROCHAIN MATCH / MATCH EN COURS ── */
.next-match-card {
    display: none;
    background: #1e293b;
    border-radius: 12px;
    padding: 18px 24px;
    margin-bottom: 32px;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.next-match-card.visible {
    display: flex;
}

.next-match-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
}

.next-match-badge.live {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.15);
}

.next-match-badge.upcoming {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.1);
}

.live-dot-red {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.next-match-teams {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: bold;
}

.next-match-teams .flag {
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 50%;
    background: #334155;
    vertical-align: middle;
}

.next-match-teams .vs {
    color: #94a3b8;
    font-weight: normal;
    font-size: 14px;
}

.next-match-score {
    font-size: 20px;
    color: #ef4444;
}

.next-match-when {
    color: #94a3b8;
    font-size: 14px;
}

@media (max-width: 700px) {
    .next-match-card {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

.footer {
    margin-top: 40px;
    font-size: 14px;
    color: #94a3b8;
}