/* ======================================
   BRACKET GRID (scroll horizontal)
====================================== */

.bracket {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 20px;
    overflow-x: auto;
    padding: 12px 0 18px 0;
    scrollbar-width: thin;
}

.bracket::-webkit-scrollbar {
    height: 8px;
}

.bracket::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}

/* ======================================
   ROUNDS (R32, R16, R8, SF, F)
====================================== */

.bracket-column {
    min-width: 260px;
    display: flex;
    flex-direction: column;
}

.bracket-title {
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 12px;
    color: #dfe7f3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}

/* ======================================
   MATCH CARD (Glass)
====================================== */

.match-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 16px;
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, .25);
    transition: transform .15s ease, box-shadow .15s ease;
}

.match-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, .3);
}

/* ======================================
   TEAM ROW (team + flag + score)
====================================== */

.team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.team-row:last-child {
    margin-bottom: 0;
}

.team {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: .95rem;
    font-weight: 500;
}

.score {
    color: #fff;
    font-weight: 700;
    min-width: 28px;
    text-align: right;
    font-size: 1.05rem;
}

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

.flag {
    width: 26px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .25);
    box-shadow: 0 0 6px rgba(0, 0, 0, .2);
    margin-right: 8px;
}

.flag-placeholder {
    width: 26px;
    height: 18px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .25);
    margin-right: 8px;
}

/* ======================================
   MATCH META (slot + status)
====================================== */

.match-card .meta {
    margin-top: 6px;
    font-size: 0.75rem;
    color: #b7c2d1 !important;
    text-align: right;
}

/* ======================================
   RESPONSIVE
====================================== */

@media (max-width: 576px) {
    .bracket {
        grid-auto-columns: minmax(200px, 1fr);
    }

    .bracket-column {
        min-width: 200px;
    }

    .team {
        font-size: .85rem;
    }

    .score {
        font-size: .95rem;
    }
}