/* =========================================================
   LIVE SCORE PAGE
========================================================= */

.live-score-page {
    width: min(1100px, 94%);
    margin: 35px auto 60px;
}


/* =========================================================
   HEADER
========================================================= */

.live-score-header {
    text-align: center;
    margin-bottom: 25px;
}

.page-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 8px;
    opacity: 0.7;
}

.live-score-header h1 {
    margin: 0;
    font-size: clamp(25px, 4vw, 42px);
    font-weight: 800;
}

.live-score-header h1 span {
    margin: 0 12px;
    font-size: 18px;
    opacity: 0.6;
}

.live-status {
    display: inline-block;
    margin-top: 14px;
    padding: 7px 16px;
    border-radius: 30px;
    background: #e8f8ee;
    color: #168044;
    font-size: 13px;
    font-weight: 800;
}

.live-status.completed {
    background: #e9f0ff;
    color: #2456b8;
}


/* =========================================================
   SET SELECTOR
========================================================= */

.set-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.set-tab {
    border: 1px solid #d9dee8;
    background: #ffffff;
    color: #596273;
    padding: 11px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    transition: 0.2s ease;
}

.set-tab:hover {
    border-color: #8c97aa;
    transform: translateY(-1px);
}

.set-tab.active {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}


/* =========================================================
   LIVE SCORE CARD
========================================================= */

.live-score-card {
    display: grid;
    grid-template-columns: 1fr 120px 1fr;
    align-items: center;
    gap: 20px;

    background: #ffffff;
    border: 1px solid #e2e6ed;
    border-radius: 22px;

    padding: 40px 35px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.07);
}


/* =========================================================
   TEAM
========================================================= */

.score-team {
    text-align: center;
}

.team-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #8a93a3;
    margin-bottom: 7px;
}

.score-team h2 {
    margin: 0;
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 800;
}

.live-score {
    margin: 15px 0;

    font-size: clamp(60px, 9vw, 95px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -4px;
}


/* =========================================================
   SCORE CONTROLS
========================================================= */

.score-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.score-control {
    width: 55px;
    height: 48px;

    border-radius: 12px;
    border: 1px solid #d7dce5;

    background: #f7f8fa;
    color: #111827;

    font-size: 25px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.score-control:hover {
    transform: translateY(-2px);
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.score-control:active {
    transform: scale(0.94);
}

.score-control.minus {
    color: #555f70;
}

.score-control.plus {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

.score-control.plus:hover {
    background: #202938;
}


/* =========================================================
   CENTER VS
========================================================= */

.score-vs {
    text-align: center;
}

.score-vs span {
    display: block;
    font-size: 15px;
    font-weight: 900;
    color: #9aa2af;
}

.score-vs small {
    display: block;
    margin-top: 8px;

    font-size: 11px;
    font-weight: 700;
    color: #9aa2af;
}

.score-vs strong {
    color: #111827;
}


/* =========================================================
   SET STATUS
========================================================= */

.set-status {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 15px;

    margin-top: 18px;
}

.set-status > div {
    background: #ffffff;
    border: 1px solid #e2e6ed;
    border-radius: 14px;

    padding: 17px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.set-status span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #8a93a3;
}

.set-status strong {
    font-size: 20px;
    font-weight: 900;
}

.set-status b {
    margin: 0 7px;
    color: #a1a8b3;
}


/* =========================================================
   END SET
========================================================= */

.end-set-button {
    display: block;

    width: min(400px, 100%);
    margin: 22px auto;

    padding: 15px 25px;

    border: none;
    border-radius: 12px;

    background: #111827;
    color: #ffffff;

    font-size: 14px;
    font-weight: 900;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.end-set-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.15);
}

.end-set-button:active {
    transform: scale(0.98);
}


/* =========================================================
   SET HISTORY
========================================================= */

.set-history {
    margin-top: 35px;

    background: #ffffff;

    border: 1px solid #e2e6ed;
    border-radius: 18px;

    overflow: hidden;
}

.section-title {
    padding: 22px 25px;

    border-bottom: 1px solid #e9ecf1;
}

.section-title span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #8a93a3;
}

.section-title h2 {
    margin: 5px 0 0;
    font-size: 22px;
}


/* =========================================================
   HISTORY ROW
========================================================= */

.history-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

    align-items: center;

    padding: 17px 25px;

    border-bottom: 1px solid #edf0f4;
}

.history-row:last-child {
    border-bottom: none;
}

.history-row > span:first-child {
    font-weight: 800;
}

.history-row strong {
    text-align: center;
    font-size: 21px;
    font-weight: 900;
}

.history-row strong b {
    margin: 0 8px;
    color: #a2a9b4;
}

.history-row > span:last-child {
    text-align: right;

    font-size: 12px;
    font-weight: 800;
    color: #596273;
}

.empty-history {
    text-align: center;
    padding: 30px;
    color: #8a93a3;
    font-size: 14px;
}


/* =========================================================
   BACK
========================================================= */

.back-section {
    text-align: center;
    margin-top: 30px;
}

.back-section a {
    display: inline-block;

    padding: 11px 20px;

    border: 1px solid #dce1e8;
    border-radius: 10px;

    color: #4d5665;
    background: #ffffff;

    text-decoration: none;

    font-size: 13px;
    font-weight: 800;

    transition: 0.2s ease;
}

.back-section a:hover {
    transform: translateY(-1px);
    border-color: #9aa3b2;
}


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

@media (max-width: 700px) {

    .live-score-page {
        width: 94%;
        margin-top: 22px;
    }


    .live-score-header {
        margin-bottom: 18px;
    }


    .live-score-header h1 {
        line-height: 1.3;
    }


    .live-score-header h1 span {
        display: block;
        margin: 4px 0;

        font-size: 12px;
    }


    .set-selector {
        gap: 7px;
    }


    .set-tab {
        flex: 1;
        padding: 10px 12px;
    }


    .live-score-card {
        grid-template-columns: 1fr;

        gap: 15px;

        padding: 28px 18px;

        border-radius: 18px;
    }


    .score-vs {
        order: 2;
    }


    .score-team:first-child {
        order: 1;
    }


    .score-team:last-child {
        order: 3;
    }


    .score-vs span {
        font-size: 12px;
    }


    .live-score {
        margin: 10px 0;

        font-size: 70px;
    }


    .score-controls {
        gap: 8px;
    }


    .score-control {
        width: 50px;
        height: 45px;
    }


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


    .set-status > div {
        padding: 15px;
    }


    .history-row {
        grid-template-columns: 0.8fr 1fr;

        gap: 8px;

        padding: 15px;
    }


    .history-row > span:last-child {
        grid-column: 1 / -1;
        text-align: left;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .live-score-page {
        width: 96%;
    }


    .live-score-card {
        padding: 25px 12px;
    }


    .live-score {
        font-size: 62px;
    }


    .score-control {
        width: 47px;
        height: 43px;
    }


    .set-status > div {
        flex-direction: column;
        gap: 7px;
        text-align: center;
    }


    .history-row {
        padding: 13px;
    }

}