/* Estilos para las tarjetas de próximos partidos (adaptados al tema oscuro) */
.cards-section { margin: 24px 0; }
.cards-section h2 { margin: 0 0 18px; font-size: 1.4rem; color: #f5f6fa; text-align: center; width: 100%; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; text-align: center; }
@media (max-width: 768px) { .grid { grid-template-columns: 1fr; } }

.card {
	background: #2b3138; /* ligero contraste con el container */
	border-radius: 10px;
	padding: 14px 16px;
	box-shadow: 0 6px 18px rgba(0,0,0,0.6);
	border: 1px solid rgba(255,255,255,0.03);
	transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.7); }

.card h3 { margin: 0 0 8px; font-size: 1.05rem; color: #f5f6fa; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; text-align: left; }
.card .meta { color: #b0b3b8; font-size: 0.95rem; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.card .meta .flag { width: 24px; height: 16px; border-radius: 2px; object-fit: cover; display: block; flex-shrink: 0; }
.card .meta .country-code { color: #b0b3b8; font-size: 0.8rem; font-weight: 500; }
.card .meta .competition { color: #b0b3b8; }
.card .small { font-size: 0.88rem; color: #98a0a6; line-height: 1.5; }

.card .badge {
    display: inline-block;
    background: rgba(48,161,78,0.12);
    color: #30a14e;
    border: 1px solid rgba(48,161,78,0.22);
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-left: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.card .top-row { display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap: nowrap; }
.card .id { color: #7d848a; font-size: 0.85rem; }

.final-score {
    color: #d1e7d6; /* suave, cercano al badge */
    font-weight: 700;
    margin-left: 8px;
    font-size: 0.95rem;
}

.clock-container { text-align: center; margin-bottom: 20px; }

.cards-section .grid .card { min-height: 110px; }
