* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a2e 50%, #16213e 100%);
    color: #e0e0e0;
    min-height: 100vh;
}

header {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-bottom: 2px solid #00b4d8;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

h1 {
    font-size: 1.8rem;
    color: #00b4d8;
    text-shadow: 0 0 10px rgba(0, 180, 216, 0.5);
}

.controls select {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid #00b4d8;
    background: rgba(0, 0, 0, 0.3);
    color: #e0e0e0;
    font-size: 1rem;
    cursor: pointer;
    margin-left: 0.5rem;
}

.main-nav {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-btn {
    color: #00b4d8;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.nav-btn:hover {
    background: rgba(0, 180, 216, 0.2);
    border-color: #00b4d8;
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 3rem;
}

h2 {
    color: #00b4d8;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 2px solid rgba(0, 180, 216, 0.3);
    padding-bottom: 0.5rem;
}

#searchInput {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #00b4d8;
    background: rgba(0, 0, 0, 0.3);
    color: #e0e0e0;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.group-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 180, 216, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.group-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 180, 216, 0.3);
}

.group-card h3 {
    color: #00b4d8;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.team-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.team-item:hover {
    background: rgba(0, 180, 216, 0.1);
}

.team-flag {
    font-size: 1.5rem;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.team-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 180, 216, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 180, 216, 0.3);
}

.team-card h3 {
    color: #00b4d8;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-card .team-flag {
    font-size: 2rem;
}

.team-desc {
    color: #b0b0b0;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.player-card {
    background: rgba(0, 180, 216, 0.1);
    border: 1px solid rgba(0, 180, 216, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.75rem;
}

.player-card h4 {
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.player-card .position {
    color: #00b4d8;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.player-card .player-meta {
    color: #00b4d8;
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
    opacity: 0.85;
}

.player-card .fact {
    color: #b0b0b0;
    font-size: 0.9rem;
    font-style: italic;
}

.star {
    color: #ffd700;
}

.schedule-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* ── Group header ── */
.schedule-group-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.schedule-group-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.25), rgba(0, 180, 216, 0.08));
    border: 1.5px solid rgba(0, 180, 216, 0.55);
    border-radius: 20px;
    padding: 0.3rem 1.1rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #00b4d8;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 10px rgba(0, 180, 216, 0.12);
}

/* ── Matchday row ── */
.matchday-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.matchday-label {
    flex-shrink: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #00b4d8;
    opacity: 0.85;
    letter-spacing: 0.03em;
}

/* ── Cards per matchday ── */
.matchday-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    flex: 1;
}

/* ── Trophy card ── */
.trophy-card {
    background: linear-gradient(145deg, rgba(16, 22, 52, 0.8), rgba(10, 14, 39, 0.95));
    border: 1.5px solid rgba(0, 180, 216, 0.3);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.trophy-card:hover {
    border-color: rgba(0, 180, 216, 0.65);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 180, 216, 0.2), 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ── Header bar ── */
.trophy-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 1.1rem;
    background: linear-gradient(90deg, rgba(0, 180, 216, 0.22), rgba(0, 180, 216, 0.08));
    border-bottom: 1px solid rgba(0, 180, 216, 0.18);
}

.trophy-date {
    font-size: 0.82rem;
    color: #b0b8cc;
    font-weight: 500;
}

.trophy-time {
    font-size: 0.88rem;
    font-weight: 700;
    color: #00b4d8;
    letter-spacing: 0.05em;
    text-shadow: 0 0 8px rgba(0, 180, 216, 0.5);
}

/* ── Team body ── */
.trophy-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.1rem;
    gap: 0.5rem;
}

.trophy-team {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.trophy-team-right {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.trophy-flag-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.15), rgba(0, 180, 216, 0.06));
    border: 1.5px solid rgba(0, 180, 216, 0.35);
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: 0 0 14px rgba(0, 180, 216, 0.12);
}

.trophy-name {
    font-size: 1rem;
    font-weight: 600;
    color: #e0e8f0;
    line-height: 1.35;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trophy-team-right .trophy-name {
    text-align: right;
}

/* ── VS circle ── */
.trophy-vs-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.22), rgba(255, 140, 0, 0.12));
    border: 1.5px solid rgba(255, 215, 0, 0.5);
    font-size: 0.72rem;
    font-weight: 900;
    color: #ffd700;
    letter-spacing: 0.02em;
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.15);
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
}

/* ── Footer bar ── */
.trophy-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 1.1rem;
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(0, 180, 216, 0.12);
}

.trophy-venue {
    font-size: 0.78rem;
    color: #6e7a90;
    font-style: italic;
}

.trophy-stadium-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00c853;
    box-shadow: 0 0 6px rgba(0, 200, 83, 0.7);
    flex-shrink: 0;
}

.trophy-footer-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── Matchday row accent borders ── */
.matchday-1 .trophy-card-header {
    background: linear-gradient(90deg, rgba(0, 180, 216, 0.3), rgba(0, 180, 216, 0.08));
}

.matchday-2 .trophy-card-header {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.08));
}

.matchday-2 .trophy-vs-circle {
    border-color: rgba(255, 140, 0, 0.5);
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.22), rgba(255, 140, 0, 0.12));
    color: #ff8c00;
    text-shadow: 0 0 6px rgba(255, 140, 0, 0.6);
}

.matchday-2 .trophy-time {
    color: #ff8c00;
    text-shadow: 0 0 8px rgba(255, 140, 0, 0.5);
}

.matchday-3 .trophy-card-header {
    background: linear-gradient(90deg, rgba(200, 50, 50, 0.2), rgba(200, 50, 50, 0.08));
}

.matchday-3 .trophy-vs-circle {
    border-color: rgba(220, 60, 60, 0.5);
    background: linear-gradient(135deg, rgba(220, 60, 60, 0.22), rgba(200, 50, 50, 0.12));
    color: #ff5252;
    text-shadow: 0 0 6px rgba(255, 82, 82, 0.6);
}

.matchday-3 .trophy-time {
    color: #ff5252;
    text-shadow: 0 0 8px rgba(255, 82, 82, 0.5);
}

/* ── Mobile responsive ── */
@media (max-width: 768px) {
    .matchday-cards {
        grid-template-columns: 1fr;
    }

    .trophy-name {
        font-size: 0.9rem;
    }

    .trophy-flag-circle {
        width: 2.8rem;
        height: 2.8rem;
        font-size: 1.75rem;
    }

    .trophy-vs-circle {
        width: 2rem;
        height: 2rem;
        font-size: 0.65rem;
    }
}


.quiz-container {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 180, 216, 0.3);
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
}

.quiz-question {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #e0e0e0;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quiz-option {
    padding: 0.75rem 1rem;
    background: rgba(0, 180, 216, 0.1);
    border: 1px solid rgba(0, 180, 216, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.quiz-option:hover {
    background: rgba(0, 180, 216, 0.2);
}

.quiz-option.correct {
    background: rgba(0, 200, 83, 0.3);
    border-color: #00c853;
}

.quiz-option.incorrect {
    background: rgba(255, 82, 82, 0.3);
    border-color: #ff5252;
}

.quiz-score {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: #ffd700;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00b4d8, #00f5d4);
    transition: width 0.5s;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .groups-grid,
    .teams-grid {
        grid-template-columns: 1fr;
    }
}
