* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #0f172a;
    color: #e5e7eb;
}

.topbar {
    padding: 18px;
    background: #111827;
    border-bottom: 1px solid #334155;
}

h1 {
    margin: 0;
    font-size: 26px;
}

h2 {
    margin-top: 0;
}

.sub {
    margin-top: 6px;
    color: #94a3b8;
    font-size: 14px;
}

.nav {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    background: #020617;
    border-bottom: 1px solid #334155;
    overflow-x: auto;
}

.nav a {
    color: #e5e7eb;
    text-decoration: none;
    background: #1e293b;
    padding: 9px 12px;
    border-radius: 10px;
    white-space: nowrap;
}

.nav a.active,
.nav a:hover {
    background: #2563eb;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px;
}

.card,
.day,
.groupbox {
    margin: 18px 0;
    background: #111827;
    border: 1px solid #334155;
    border-radius: 14px;
    overflow: hidden;
}

.card {
    padding: 16px;
}

.day h2,
.groupbox h2 {
    margin: 0;
    padding: 12px 14px;
    background: #1e293b;
    font-size: 18px;
}

.match {
    display: grid;
    grid-template-columns: 90px 1fr 80px 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-top: 1px solid #334155;
}

.match.germany {
    background: #14532d;
    border-left: 5px solid #22c55e;
}

.time {
    color: #93c5fd;
    font-weight: bold;
}

.team {
    font-size: 16px;
}

.score {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    background: #020617;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 8px;
}

.stage {
    grid-column: 1 / -1;
    color: #94a3b8;
    font-size: 13px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.teamlist {
    list-style: none;
    padding: 14px;
    margin: 0;
}

.teamlist li {
    padding: 8px 0;
    border-bottom: 1px solid #334155;
}

.teamlist li:last-child {
    border-bottom: none;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
}

th,
td {
    padding: 10px;
    border-bottom: 1px solid #334155;
    text-align: center;
}

th {
    background: #1e293b;
    color: #bfdbfe;
}

td.teamname {
    text-align: left;
    font-weight: bold;
}

tr.germany-row {
    background: #14532d;
}

.empty {
    padding: 20px;
    background: #7f1d1d;
    border-radius: 12px;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #2563eb;
    color: white;
    font-size: 13px;
}

.footer {
    text-align: center;
    color: #64748b;
    padding: 30px 10px;
}

@media (max-width: 700px) {
    h1 {
        font-size: 22px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .match {
        grid-template-columns: 70px 1fr;
    }

    .score {
        grid-column: 1 / -1;
    }

    .team {
        font-size: 15px;
    }

    .nav {
        padding: 8px;
    }

    .nav a {
        font-size: 14px;
        padding: 8px 10px;
    }
}
.germany-team {
    background: #14532d;
    color: #ffffff;
    font-weight: bold;
    padding: 10px;
    border-left: 5px solid #22c55e;
    border-radius: 8px;
}

.qualify {
    background: rgba(34,197,94,0.20);
}

.playoff {
    background: rgba(250,204,21,0.20);
}

.out {
    background: rgba(239,68,68,0.20);
}

.germany-next {
    border: 2px solid #22c55e;
    background: #14532d;
}

.big-match {
    padding: 10px 0;
}

.big-teams {
    font-size: 22px;
    font-weight: bold;
}

.big-teams span {
    color: #bbf7d0;
    margin: 0 8px;
    font-size: 16px;
}

.big-time {
    margin-top: 10px;
    font-size: 20px;
    color: #ffffff;
}

.germany-row {
    font-weight: bold;
    border-left: 5px solid #facc15;
}+

.germany-next {
    background: linear-gradient(135deg, #14532d, #052e16);
    border: 2px solid #22c55e;
}

.germany-next h2 {
    margin-bottom: 18px;
}

.germany-next-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: center;
    font-size: 28px;
    font-weight: bold;
}

.germany-next-teams > div:first-child {
    text-align: right;
}

.germany-next-teams > div:last-child {
    text-align: left;
}

.versus {
    font-size: 16px;
    color: #bbf7d0;
    font-weight: normal;
}

.flag {
    margin-right: 6px;
}

.germany-next-time {
    margin-top: 18px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.countdown {
    margin: 14px auto 0 auto;
    padding: 10px 16px;
    max-width: 420px;
    text-align: center;
    background: #020617;
    border: 1px solid #22c55e;
    border-radius: 999px;
    font-size: 18px;
    font-weight: bold;
}

.germany-next-meta {
    margin-top: 14px;
    text-align: center;
    color: #bbf7d0;
}

@media (max-width: 700px) {
    .germany-next-teams {
        grid-template-columns: 1fr;
        text-align: center;
        font-size: 24px;
    }

    .germany-next-teams > div:first-child,
    .germany-next-teams > div:last-child {
        text-align: center;
    }

    .versus {
        font-size: 15px;
    }

    .germany-next-time {
        font-size: 22px;
    }

    .countdown {
        font-size: 17px;
        border-radius: 14px;
    }
}

.germany-last {
    border: 2px solid #facc15;
    background: #1e293b;
}

.today-card {
    border: 1px solid #38bdf8;
}

.tomorrow-card {
    border: 1px solid #818cf8;
}

.today-card h2,
.tomorrow-card h2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

@media (max-width: 700px) {
    .today-card h2,
    .tomorrow-card h2 {
        flex-direction: column;
        align-items: flex-start;
    }
}

.filter-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-form label {
    font-weight: bold;
}

.filter-form select {
    background: #020617;
    color: #e5e7eb;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 16px;
}

.reset-link {
    color: #93c5fd;
    text-decoration: none;
    background: #1e293b;
    padding: 10px 12px;
    border-radius: 10px;
}

.reset-link:hover {
    background: #2563eb;
}

@media (max-width: 700px) {
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-form select,
    .reset-link {
        width: 100%;
    }
}