/* ===== MATCH DETAIL ===== */

.match-detail-page {
    background: #f4f1ea;
    color: #0b1812;
}

.match-detail-container {
    width: min(1050px, calc(100% - 32px));
    margin: 0 auto;
}


/* ===== MAIN ===== */

.match-detail-main {
    padding: 34px 0 28px;
}

.match-detail-back {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    color: #66736c;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
}

.match-detail-back:hover {
    color: #087344;
}


/* ===== MATCH CARD ===== */

.match-detail-card {
    padding: 28px;
    border: 1px solid rgba(9, 26, 18, .09);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(13, 30, 21, .05);
}

.match-detail-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.match-detail-level {
    display: block;
    margin-bottom: 6px;
    color: #087344;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.match-detail-top h1 {
    margin: 0;
    color: #0b1812;
    font-size: 23px;
    line-height: 1.15;
    letter-spacing: -.6px;
}

.match-detail-status {
    flex: none;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eef3f0;
    color: #66736c;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .4px;
    white-space: nowrap;
}

.match-detail-status.live {
    background: #e7f7ef;
    color: #087344;
}

.match-detail-status.finished {
    color: #66736c;
}

.match-detail-status.updating {
    background: #fff4dc;
    color: #946000;
}


/* ===== PLAYERS ===== */

.match-detail-players {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    margin: 42px 0 34px;
}

.match-detail-player {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 11px;
}

.match-detail-player.right {
    grid-template-columns: minmax(0, 1fr) auto;
    text-align: right;
}

.match-detail-player.right .match-detail-flag {
    grid-column: 2;
    grid-row: 1;
}

.match-detail-player.right > a,
.match-detail-player.right > strong {
    grid-column: 1;
    grid-row: 1;
}

.match-detail-player.right .match-detail-seed {
    grid-column: 1 / -1;
    justify-self: end;
}

.match-detail-flag {
    font-size: 26px;
    line-height: 1;
}

.match-detail-player > strong,
.match-detail-player > a {
    min-width: 0;
    color: #0b1812;
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -1.2px;
    text-decoration: none;
}

.match-detail-player > a:hover {
    color: #087344;
}

.match-detail-seed {
    grid-column: 1 / -1;
    width: max-content;
    padding: 4px 7px;
    border-radius: 7px;
    background: #eef3f0;
    color: #66736c;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .6px;
}

.match-detail-score {
    text-align: center;
}

.match-detail-score strong {
    display: block;
    color: #087344;
    font-size: 25px;
    font-weight: 950;
    line-height: 1.1;
}

.match-detail-score small {
    display: block;
    margin-top: 7px;
    color: #7a857f;
    font-size: 12px;
    font-weight: 850;
}


/* ===== INFO ===== */

.match-detail-info {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(9, 26, 18, .08);
}

.match-detail-info > div {
    min-width: 0;
    padding: 18px 16px 4px 0;
}

.match-detail-info span {
    display: block;
    margin-bottom: 6px;
    color: #87918c;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 1px;
}

.match-detail-info strong {
    display: block;
    color: #0b1812;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.3;
}


/* ===== WATCH ===== */

.match-watch-section {
    padding: 26px 0;
}

.match-watch-kicker {
    display: block;
    margin-bottom: 10px;
    color: #087344;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 1.4px;
}

.match-watch-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 24px;
    border: 1px solid rgba(9, 26, 18, .09);
    border-radius: 18px;
    background: #fff;
}

.match-watch-card h2 {
    margin: 0 0 5px;
    color: #0b1812;
    font-size: 23px;
    letter-spacing: -.5px;
}

.match-watch-card p {
    max-width: 680px;
    margin: 0;
    color: #66736c;
    font-size: 13px;
    line-height: 1.55;
}

.match-watch-card a {
    flex: none;
    padding: 11px 14px;
    border-radius: 10px;
    background: #0b1812;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
}


/* ===== CONTINUE ===== */

.match-useful-section {
    padding: 14px 0 70px;
}

.match-useful-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.match-useful-grid a {
    position: relative;
    min-height: 125px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(9, 26, 18, .09);
    border-radius: 16px;
    background: #fff;
    color: #0b1812;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease;
}

.match-useful-grid a:hover {
    transform: translateY(-2px);
    border-color: rgba(11, 141, 83, .25);
}

.match-useful-grid span {
    color: #087344;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 1.2px;
}

.match-useful-grid strong {
    margin-top: 15px;
    padding-right: 30px;
    font-size: 17px;
    line-height: 1.2;
}

.match-useful-grid b {
    position: absolute;
    right: 20px;
    bottom: 18px;
    color: #087344;
    font-size: 18px;
}


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

@media (max-width: 750px) {

    .match-detail-container {
        width: min(100% - 24px, 1050px);
    }

    .match-detail-main {
        padding: 20px 0 16px;
    }

    .match-detail-back {
        margin-bottom: 13px;
        font-size: 11px;
    }

    .match-detail-card {
        padding: 17px 15px;
        border-radius: 16px;
    }

    .match-detail-top {
        gap: 10px;
    }

    .match-detail-level {
        margin-bottom: 4px;
        font-size: 9px;
    }

    .match-detail-top h1 {
        font-size: 17px;
        line-height: 1.15;
    }

    .match-detail-status {
        padding: 6px 8px;
        font-size: 8px;
    }

    .match-detail-players {
        grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
        gap: 8px;
        margin: 27px 0 24px;
    }

    .match-detail-player {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
    }

    .match-detail-player.right {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
    }

    .match-detail-player.right .match-detail-flag,
    .match-detail-player.right > a,
    .match-detail-player.right > strong,
    .match-detail-player.right .match-detail-seed {
        grid-column: auto;
        grid-row: auto;
    }

    .match-detail-flag {
        font-size: 21px;
    }

    .match-detail-player > strong,
    .match-detail-player > a {
        font-size: 16px;
        line-height: 1.05;
        letter-spacing: -.4px;
        overflow-wrap: anywhere;
    }

    .match-detail-seed {
        padding: 3px 6px;
        font-size: 8px;
    }

    .match-detail-score strong {
        font-size: 17px;
    }

    .match-detail-score small {
        margin-top: 4px;
        font-size: 10px;
    }

    .match-detail-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .match-detail-info > div {
        padding: 13px 8px 3px 0;
    }

    .match-detail-info span {
        margin-bottom: 4px;
        font-size: 8px;
    }

    .match-detail-info strong {
        font-size: 11px;
    }

    .match-watch-section {
        padding: 16px 0;
    }

    .match-watch-card {
        display: block;
        padding: 17px;
        border-radius: 14px;
    }

    .match-watch-card h2 {
        font-size: 19px;
    }

    .match-watch-card p {
        font-size: 12px;
    }

    .match-watch-card a {
        display: inline-block;
        margin-top: 14px;
    }

    .match-useful-section {
        padding: 10px 0 45px;
    }

    .match-useful-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .match-useful-grid a {
        min-height: 95px;
        padding: 16px;
        border-radius: 14px;
    }

    .match-useful-grid strong {
        margin-top: 10px;
        font-size: 15px;
    }

}
