/* ===== GLOBAL ===== */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #111827;
    color: white;
}

header {
    background: #020617;
    padding: 15px;
    text-align: center;
}

nav {
    background: #1e293b;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

nav a {
    color: white;
    text-decoration: none;
    background: #2563eb;
    padding: 10px 16px;
    border-radius: 10px;
}

a {
    color: #93c5fd;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 15px;
}

/* ===== CARDS & GRID ===== */

.card {
    background: #1f2937;
    border-radius: 14px;
    padding: 15px;
    margin-bottom: 12px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.big-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

/* ===== FLAGS ===== */

.flag {
    width: 36px;
    height: 24px;
    object-fit: cover;
}

/* ===== INPUTS ===== */

input,
textarea,
button,
select {
    box-sizing: border-box;
}

input,
textarea,
button {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
}

button {
    background: #22c55e;
    color: white;
    cursor: pointer;
}

/* ===== SELECT ===== */

.group-select {
    width: 100%;
    padding: 18px;
    margin-top: 10px;
    border-radius: 14px;
    font-size: 24px;
    font-weight: bold;
    background: #020617;
    color: white;
    border: 2px solid #2563eb;
}

/* ===== MATCH CARDS ===== */

.match-card {
    display: grid;
    grid-template-columns: 1fr 160px 1fr;
    align-items: center;
    gap: 12px;
}

.match-team {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: bold;
}

.match-team-right {
    justify-content: flex-end;
}

.match-info {
    text-align: center;
    font-size: 20px;
}

.match-info small,
.match-info a {
    display: block;
    margin-top: 4px;
}

.hidden-game {
    display: none !important;
}

.live-game {
    background: #7f1d1d !important;
    border: 2px solid #ef4444;
}

/* ===== OLD GAME STYLE FOR OTHER PAGES ===== */

.game {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

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

.team img {
    width: 36px;
    height: 24px;
    object-fit: cover;
}

/* ===== BRACKET ===== */

.bracket {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 20px;
}

.bracket-round {
    min-width: 260px;
}

.bracket-round h2 {
    text-align: center;
    background: #020617;
    padding: 10px;
    border-radius: 12px;
}

.bracket-game {
    background: #1f2937;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid #334155;
}

.bracket-team {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    margin: 4px 0;
    background: #111827;
    border-radius: 8px;
}

.bracket-team span {
    font-weight: bold;
}

.winner {
    background: #065f46;
    border: 2px solid #10b981;
    font-weight: bold;
}

/* ===== HOME PAGE ===== */

.home-page {
    background: #0f172a;
    min-height: 100vh;
}

.home-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 10px 10px;
    background: #020617;
}

.home-logo {
    display: block;
    margin: 0 auto;
    width: 300px;
    max-width: 85%;
    height: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    border-radius: 12px;
}

.home-menu {
    width: 94%;
    max-width: 560px;
    margin: 28px auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.home-btn {
    display: block;
    width: 100%;
    background: #2563eb;
    color: white !important;
    text-decoration: none !important;
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    padding: 28px 10px;
    border-radius: 22px;
    box-sizing: border-box;
}

.home-btn:hover {
    background: #1d4ed8;
}

.home-btn:active {
    transform: scale(0.97);
}

/* ===== MOBILE ===== */

@media(max-width: 700px) {

    nav a {
        width: 42%;
        text-align: center;
    }

    .bracket {
        display: block;
        overflow-x: hidden;
    }

    .bracket-round {
        min-width: auto;
        margin-bottom: 25px;
    }

    .match-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .match-team,
    .match-team-right {
        justify-content: center;
        font-size: 28px;
    }

    .match-info {
        font-size: 28px;
        margin: 10px 0;
    }

    .match-info a {
        font-size: 24px;
    }

    .game {
        flex-direction: column;
        text-align: center;
    }
}

@media(max-width: 600px) {

    .home-logo {
        width: 300px;
        max-width: 90%;
    }

    .home-menu {
        width: 96%;
        gap: 22px;
        margin-top: 30px;
    }

    .home-btn {
        font-size: 38px;
        padding: 34px 10px;
        border-radius: 24px;
    }

    .group-select {
        font-size: 28px;
        padding: 22px;
    }
}