.final-page {
    width: 100%;
    min-height: 100vh;
    padding: 30px 10px 50px;

    background:
        linear-gradient(rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.94)),
        url('../../img/background.jpg');

    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    color: white;
}

.final-header {
    text-align: center;
    margin-bottom: 30px;
}

.final-header h1 {
    font-size: 36px;
    margin-bottom: 8px;
}

.final-header p {
    color: #cbd5e1;
    font-size: 14px;
}

.bracket-wrapper {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 20px;
}

.bracket {
    width: 100%;
    min-width: 1450px;

    display: grid;
    grid-template-columns:
        1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;

    gap: 12px;
    align-items: start;
}

.round {
    display: flex;
    flex-direction: column;
}

.round h2 {
    height: 30px;
    line-height: 30px;

    text-align: center;
    color: #A3E635;

    font-size: 16px;
    margin-bottom: 16px;
}

.seizieme {
    transform: translateY(10px);
}

.huitieme {
    transform: translateY(60px);
}

.quart {
    transform: translateY(170px);
}

.round-16 {
    gap: 10px;
}

.round-8 {
    padding-top: 48px;
    gap: 60px;
}

.round-4 {
    padding-top: 155px;
    gap: 170px;
}

.round-2 {
    padding-top: 370px;
    gap: 0;
}

.round-final {
    padding-top: 500px;
}

.bracket-match {
    background: rgba(15, 23, 42, 0.92);

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;

    padding: 8px;

    backdrop-filter: blur(12px);
}

.match-date {
    color: #94a3b8;

    font-size: 10px;
    text-align: center;

    margin-bottom: 6px;
}

.team-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;

    padding: 6px 8px;

    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
}

.team-line+.team-line {
    margin-top: 5px;
}

.team-line span {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.team-line strong {
    color: #A3E635;
    font-size: 13px;
}

@media (max-width: 768px) {
    .final-page {
        padding: 130px 8px 50px;
    }

    .final-header h1 {
        font-size: 30px;
    }

    .bracket {
        min-width: 1350px;
    }
}

.final-trophy {
    margin-top: 35px;
    text-align: center;
}

.final-trophy img {
    width: 160px;
    max-width: 80%;
    height: auto;
    filter: drop-shadow(0 0 18px rgba(157, 255, 0, 0.35));
}