/* =========================================================
   CRICXZ LIVE SCORES PAGE — CLEAN FINAL
========================================================= */


/* =========================================================
   LIVE SCORE HERO
========================================================= */

.live-scores-page .live-hero {
    padding: 90px 20px 50px;

    text-align: center;

    background: #f4f9f9;
}

.live-scores-page .live-hero .container {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;
}

.live-scores-page .live-label {
    display: inline-block;

    margin-bottom: 15px;

    color: #d62828;

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

    letter-spacing: 1px;
}

.live-scores-page .live-hero h1 {
    margin: 0 0 20px;

    color: #00695c;

    font-size: 48px;
    line-height: 1.15;
}

.live-scores-page .live-hero p {
    max-width: 750px;

    margin: 0 auto;

    color: #555555;

    font-size: 18px;
    line-height: 1.7;
}


/* =========================================================
   SCORE FILTER
========================================================= */

.live-scores-page .score-filter {
    padding: 25px 20px;

    background: #ffffff;

    border-bottom: 1px solid #e5eeee;
}

.live-scores-page .score-filter .container {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    display: flex;

    justify-content: center;
    align-items: center;

    gap: 12px;

    flex-wrap: wrap;
}

.live-scores-page .score-tab {
    padding: 11px 22px;

    border: 1px solid #d5e4e4;
    border-radius: 30px;

    background: #ffffff;

    color: #00695c;

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

    cursor: pointer;

    transition: 0.25s ease;
}

.live-scores-page .score-tab:hover {
    background: #e9f5f4;
}

.live-scores-page .score-tab.active {
    background: #00695c;

    color: #ffffff;

    border-color: #00695c;
}


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

.live-scores-page .score-update-bar {
    padding: 14px 20px;

    background: #f5f7f9;

    border-bottom: 1px solid #e5eeee;
}

.live-scores-page .score-update-bar .container {
    width: 100%;
    max-width: 1000px;

    margin: 0 auto;

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

    gap: 16px;
}

.live-scores-page .scores-updated-at {
    margin: 0;

    color: #536666;

    font-size: 14px;
    font-weight: 600;
}

.live-scores-page .refresh-scores-button {
    min-width: 148px;
    padding: 10px 18px;

    border: 1px solid #00695c;
    border-radius: 24px;

    background: #00695c;

    color: #ffffff;

    font: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

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

.live-scores-page .refresh-scores-button:hover:not(:disabled) {
    background: #00574d;
    border-color: #00574d;

    box-shadow: 0 6px 16px rgba(0, 105, 92, 0.2);

    transform: translateY(-1px);
}

.live-scores-page .refresh-scores-button:focus-visible {
    outline: 3px solid rgba(0, 105, 92, 0.28);
    outline-offset: 3px;
}

.live-scores-page .refresh-scores-button:disabled {
    background: #8ba6a2;
    border-color: #8ba6a2;

    cursor: wait;
    opacity: 0.8;
}


/* =========================================================
   MATCHES AREA
========================================================= */

.live-scores-page .live-matches {
    padding: 50px 20px 70px;

    background: #f5f7f9;
}

/* Keep match groups in a vertical flow so each heading stays with its card. */

.live-scores-page .live-matches > .container {
    display: block;

    width: 100%;
    max-width: 1000px;

    margin: 0 auto;
    padding: 0;
}

.live-scores-page .match-group {
    width: 100%;
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.live-scores-page .section-title {
    width: 100%;

    margin: 50px 0 26px;

    text-align: center;

    color: #007f86;

    font-size: 34px;
    line-height: 1.25;
}

.live-scores-page .match-group:first-child .section-title {
    margin-top: 0;
}


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

.live-scores-page .score-card {
    position: relative;

    width: 100%;
    max-width: 900px;

    margin: 0 auto 55px;
    padding: 32px 30px;

    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #e6eeee;
    border-radius: 20px;

    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

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

.live-scores-page .score-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.12);
}


/* Card top */

.live-scores-page .score-card-top {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-bottom: 35px;
}


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

.live-scores-page .match-status {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 7px 15px;

    border-radius: 25px;

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

    letter-spacing: 0.4px;
}

.live-scores-page .match-status.live {
    background: #ffe5e5;

    color: #d62828;
}

.live-scores-page .match-status.upcoming {
    background: #fff2d8;

    color: #a66a00;
}

.live-scores-page .match-status.result {
    background: #e4f5e8;

    color: #16803c;
}


/* Match format */

.live-scores-page .match-format {
    padding: 6px 12px;

    background: #f1f4f5;

    border-radius: 15px;

    color: #555555;

    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   TEAMS
========================================================= */

.live-scores-page .teams {
    display: grid;

    grid-template-columns: 1fr 70px 1fr;

    align-items: center;

    gap: 25px;

    width: 100%;

    text-align: center;
}

.live-scores-page .team {
    min-width: 0;

    padding: 10px;
}

.live-scores-page .team-name {
    margin-bottom: 12px;

    color: #222222;

    font-size: 22px;
    font-weight: 800;
}

.live-scores-page .team-score {
    margin-bottom: 7px;

    color: #007f86;

    font-size: 34px;
    font-weight: 800;
}

.live-scores-page .overs {
    color: #777777;

    font-size: 14px;
}


/* VS */

.live-scores-page .vs {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 55px;
    height: 55px;

    margin: 0 auto;

    background: #eef5f5;

    border-radius: 50%;

    color: #007f86;

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


/* =========================================================
   MATCH MESSAGE
========================================================= */

.live-scores-page .match-message {
    margin-top: 28px;

    padding: 15px 18px;

    background: #f7fafb;

    border-radius: 12px;

    color: #555555;

    text-align: center;

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   BUTTON
========================================================= */

.live-scores-page .score-btn {
    display: block;

    width: fit-content;

    margin: 27px auto 0;

    padding: 12px 27px;

    background: #007f86;

    color: #ffffff;

    border-radius: 30px;

    text-decoration: none;

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

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.live-scores-page .score-btn:hover {
    background: #00656b;

    transform: translateY(-2px);
}


/* =========================================================
   CARD TYPE ACCENTS
========================================================= */

.live-scores-page .live-card {
    border-top: 5px solid #e31b23;
}

.live-scores-page .upcoming-card {
    border-top: 5px solid #e5a000;
}

.live-scores-page .result-card {
    border-top: 5px solid #16803c;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 850px) {

    .live-scores-page .live-hero {
        padding: 105px 20px 50px;
    }

    .live-scores-page .live-hero h1 {
        font-size: 42px;
    }

    .live-scores-page .live-matches > .container {
        max-width: 700px;
    }

    .live-scores-page .score-card {
        max-width: 680px;
    }

}


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

@media (max-width: 650px) {

    .live-scores-page .live-hero {
        padding: 95px 15px 45px;
    }

    .live-scores-page .live-hero h1 {
        font-size: 34px;
    }

    .live-scores-page .live-hero p {
        font-size: 16px;
    }


    /* Filter */

    .live-scores-page .score-filter {
        padding: 20px 12px;
    }

    .live-scores-page .score-filter .container {
        gap: 8px;
    }

    .live-scores-page .score-tab {
        padding: 9px 14px;

        font-size: 12px;
    }


    /* Update controls */

    .live-scores-page .score-update-bar {
        padding: 14px 15px 16px;
    }

    .live-scores-page .score-update-bar .container {
        flex-direction: column;

        gap: 10px;

        text-align: center;
    }

    .live-scores-page .scores-updated-at {
        font-size: 13px;
    }

    .live-scores-page .refresh-scores-button {
        width: 100%;
        max-width: 260px;
    }


    /* Matches */

    .live-scores-page .live-matches {
        padding: 45px 15px 60px;
    }

    .live-scores-page .section-title {
        margin: 45px 0 25px;

        font-size: 28px;
    }


    /* Card */

    .live-scores-page .score-card {
        width: 100%;
        max-width: 100%;

        margin: 0 auto 45px;

        padding: 24px 17px;
    }

    .live-scores-page .score-card-top {
        margin-bottom: 27px;
    }


    /* Teams vertical */

    .live-scores-page .teams {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .live-scores-page .team-name {
        font-size: 20px;
    }

    .live-scores-page .team-score {
        font-size: 30px;
    }

    .live-scores-page .vs {
        width: 45px;
        height: 45px;
    }

}


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

@media (max-width: 420px) {

    .live-scores-page .live-hero h1 {
        font-size: 30px;
    }

    .live-scores-page .section-title {
        font-size: 25px;
    }

    .live-scores-page .score-card {
        padding: 21px 14px;
    }

}
