* {
    box-sizing: border-box;
}

:root {
    --background: #07101c;
    --background2: #091421;
    --panel: #0c1827;
    --panel2: #101e30;
    --border: #1b2b3f;
    --border-light: #26394f;
    --text: #f4f7fb;
    --muted: #7f90a5;
    --blue: #3988ff;
    --red: #ff4059;
    --green: #2ad39b;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 50% -200px, #112947 0, transparent 35%),
        var(--background);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* HEADER */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 16, 28, .96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

.header-main {
    max-width: 1200px;
    height: 66px;
    margin: auto;
    display: flex;
    align-items: center;
    padding: 0 22px;
}

.brand {
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -.5px;
    display: flex;
    align-items: center;
}

.brand strong {
    color: var(--blue);
    margin-left: 5px;
}

.brand-dot {
    width: 9px;
    height: 9px;
    background: var(--red);
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 12px rgba(255, 64, 89, .5);
}

.desktop-nav {
    display: flex;
    gap: 28px;
    margin-left: 50px;
}

.desktop-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: white;
}

.header-live {
    margin-left: auto;
    color: #ff697b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .5px;
}

.header-live span {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--red);
    border-radius: 50%;
    margin-right: 5px;
}

/* LEAGUE NAV */

.league-nav {
    max-width: 1200px;
    margin: auto;
    display: flex;
    gap: 8px;
    padding: 8px 22px 14px;
    overflow-x: auto;
}

.league-filter {
    border: 1px solid var(--border);
    background: transparent;
    color: #93a2b5;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 750;
    cursor: pointer;
    white-space: nowrap;
}

.league-filter:hover {
    border-color: #365273;
}

.league-filter.active {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
}

/* MAIN */

main {
    max-width: 1200px;
    margin: auto;
    padding: 24px 22px 70px;
}

/* DATE NAVIGATION */

.date-navigation {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    max-width: 720px;
    margin: 0 auto 32px;
    border: 1px solid var(--border);
    background: var(--panel);
    border-radius: 14px;
    overflow: hidden;
}

.date-side,
.today {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: var(--muted);
    background: transparent;
}

.date-side {
    cursor: pointer;
}

.date-side:hover {
    background: var(--panel2);
}

.date-side span {
    font-size: 28px;
}

.date-side div,
.today {
    flex-direction: column;
}

.date-side div {
    display: flex;
}

.date-side small,
.today small {
    color: #617187;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.date-side strong {
    color: #9cabbc;
    margin-top: 4px;
    font-size: 12px;
}

.today {
    background: #0f1d2e;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.today small {
    color: var(--blue);
}

.today strong {
    margin-top: 5px;
    color: white;
    font-size: 14px;
}

/* MAIN LAYOUT */

.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    align-items: start;
}

.scores-column {
    min-width: 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 22px;
}

.section-heading h1 {
    margin: 0;
    font-size: 26px;
    letter-spacing: -.6px;
}

.section-heading p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.live-pulse {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: var(--red);
    border-radius: 50%;
    margin-right: 7px;
    box-shadow: 0 0 0 5px rgba(255, 64, 89, .08);
}

.updated {
    color: #617188;
    font-size: 11px;
}

/* LEAGUE */

.league-section {
    margin-bottom: 28px;
}

.league-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 3px 10px;
}

.league-title > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.league-title strong {
    font-size: 15px;
}

.league-icon {
    font-size: 17px;
}

.league-title a {
    color: #6da4ff;
    text-decoration: none;
    font-size: 11px;
}

.league-games {
    display: grid;
    gap: 9px;
}

/* SCORE CARD */

.score-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 13px;
    overflow: hidden;
    transition: border-color .2s, transform .2s;
}

.score-card:hover {
    border-color: #345170;
    transform: translateY(-1px);
}

.game-status {
    min-height: 38px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.live-label,
.final-label,
.scheduled-label {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .3px;
}

.live-label {
    color: #ff6577;
}

.live-label i {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--red);
    border-radius: 50%;
    margin-right: 6px;
}

.final-label {
    color: #8798ac;
}

.scheduled-label {
    color: #80aef9;
}

.game-extra {
    color: #68798e;
    font-size: 10px;
}

.matchup {
    display: flex;
    align-items: stretch;
}

.teams {
    flex: 1;
    padding: 6px 0;
}

.team {
    min-height: 60px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 7px 15px;
}

.team-logo {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: var(--panel2);
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 900;
}

.team-name {
    min-width: 0;
}

.team-name strong {
    display: block;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-name small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.team-score {
    min-width: 38px;
    text-align: right;
    font-size: 25px;
    font-weight: 900;
}

.game-arrow {
    width: 42px;
    border-left: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: #628fcf;
    text-decoration: none;
    font-size: 24px;
}

.game-arrow:hover {
    background: var(--panel2);
    color: white;
}

/* SIDEBAR */

.sidebar {
    display: grid;
    gap: 15px;
    position: sticky;
    top: 130px;
}

.side-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 17px;
}

.side-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.side-title strong {
    font-size: 14px;
}

.side-title a {
    color: #6da4ff;
    text-decoration: none;
    font-size: 10px;
}

.red-live {
    color: #ff6577;
    background: rgba(255, 64, 89, .1);
    border: 1px solid rgba(255, 64, 89, .2);
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 9px;
    font-weight: 900;
}

.featured-status {
    display: flex;
    justify-content: space-between;
    padding: 13px 0 4px;
    color: #a9b4c1;
    font-size: 11px;
    font-weight: 800;
}

.featured-status span {
    color: #ff6577;
}

.featured-matchup {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 8px;
    align-items: center;
    padding: 19px 0;
    text-align: center;
}

.featured-team strong {
    display: block;
    margin-top: 7px;
    font-size: 11px;
}

.large-logo {
    width: 56px;
    height: 56px;
    margin: auto;
    display: grid;
    place-items: center;
    background: var(--panel2);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 900;
}

.featured-score > div {
    font-size: 32px;
    font-weight: 900;
    white-space: nowrap;
}

.featured-score span {
    color: #56677c;
    margin: 0 5px;
}

.featured-score small {
    display: block;
    margin-top: 5px;
    color: #ff6073;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .8px;
}

.period-table {
    border: 1px solid var(--border);
    border-radius: 9px;
    overflow: hidden;
    font-size: 10px;
}

.period-table > div {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, .6fr);
    padding: 9px 10px;
    border-bottom: 1px solid var(--border);
}

.period-table > div:last-child {
    border-bottom: 0;
}

.period-table > div:first-child {
    color: #66778b;
    background: #0a1523;
    font-size: 8px;
    font-weight: 900;
}

.period-table span:not(:first-child),
.period-table strong:not(:first-child) {
    text-align: center;
}

.view-game {
    width: 100%;
    margin-top: 13px;
    padding: 11px;
    border: 0;
    border-radius: 9px;
    background: var(--blue);
    color: white;
    font-weight: 800;
    cursor: pointer;
}

.view-game:hover {
    filter: brightness(1.08);
}

/* STANDINGS */

.standings {
    padding-bottom: 9px;
}

.standing-row {
    display: grid;
    grid-template-columns: 25px 1fr auto;
    gap: 7px;
    align-items: center;
    min-height: 39px;
    border-bottom: 1px solid rgba(27, 43, 63, .65);
    font-size: 11px;
}

.standing-row:last-child {
    border-bottom: 0;
}

.standing-row strong {
    font-size: 11px;
}

.standing-row > span:last-child {
    color: #8191a5;
    font-size: 9px;
}

.rank {
    color: #617287;
}

/* API STATUS */

.api-status {
    display: flex;
    align-items: center;
    gap: 11px;
}

.api-light {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(42, 211, 155, .4);
}

.api-status strong {
    display: block;
    font-size: 11px;
}

.api-status small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
}

/* FOOTER */

footer {
    min-height: 80px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: #56677c;
    font-size: 10px;
}

footer strong {
    color: #8190a3;
}

/* TABLET */

@media (max-width: 950px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        grid-template-columns: repeat(2, 1fr);
    }

    .api-status {
        grid-column: 1 / -1;
    }
}

/* MOBILE */

@media (max-width: 650px) {
    .header-main {
        height: 58px;
        padding: 0 15px;
    }

    .desktop-nav {
        display: none;
    }

    .brand {
        font-size: 18px;
    }

    .league-nav {
        padding: 7px 15px 11px;
    }

    .league-filter {
        padding: 7px 13px;
        font-size: 12px;
    }

    main {
        padding: 16px 12px 50px;
    }

    .date-navigation {
        margin-bottom: 24px;
        grid-template-columns: .8fr 1.4fr .8fr;
    }

    .date-side {
        gap: 4px;
    }

    .date-side div {
        display: none;
    }

    .date-side span {
        font-size: 30px;
    }

    .today {
        min-height: 60px;
    }

    .section-heading {
        align-items: center;
    }

    .section-heading h1 {
        font-size: 21px;
    }

    .section-heading p {
        font-size: 11px;
    }

    .updated {
        display: none;
    }

    .league-section {
        margin-bottom: 24px;
    }

    .team {
        grid-template-columns: 39px minmax(0, 1fr) auto;
        gap: 10px;
        min-height: 56px;
        padding: 6px 11px;
    }

    .team-logo {
        width: 37px;
        height: 37px;
        border-radius: 10px;
        font-size: 9px;
    }

    .team-name strong {
        font-size: 13px;
    }

    .team-score {
        font-size: 23px;
    }

    .game-arrow {
        width: 34px;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .api-status {
        grid-column: auto;
    }

    .featured {
        order: 1;
    }

    .standings {
        order: 2;
    }
}

/* VERY SMALL PHONES */

@media (max-width: 380px) {
    .header-live {
        display: none;
    }

    .team-name strong {
        max-width: 175px;
    }
}

/* REAL TEAM LOGOS */

.team-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.large-logo img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    display: block;
}

/* DATE NAVIGATION LINKS */

.date-navigation a {
    text-decoration: none;
}

.today {
    cursor: pointer;
}

.today:hover {
    background: #13243a;
}

.date-side.right {
    text-align: right;
}


/* =========================================================
   GAME DETAILS
   ========================================================= */

.game-page {
    max-width: 900px;
}

.back-link {
    display: inline-block;
    color: #7faeff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
}

.back-link:hover {
    color: white;
}

.game-hero {
    background:
        radial-gradient(circle at 50% 0%, rgba(57,136,255,.12), transparent 55%),
        var(--panel);

    border: 1px solid var(--border);
    border-radius: 17px;
    padding: 20px 30px 34px;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding-bottom: 17px;
    border-bottom: 1px solid var(--border);

    font-size: 11px;
}

.game-hero-matchup {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    gap: 20px;

    align-items: center;

    max-width: 650px;

    margin: 35px auto 5px;

    text-align: center;
}

.game-hero-team img {
    width: 90px;
    height: 90px;

    object-fit: contain;

    display: block;

    margin: 0 auto 14px;
}

.game-hero-team strong {
    display: block;
    font-size: 15px;
}

.game-hero-team small {
    display: block;

    color: var(--muted);

    margin-top: 5px;

    font-size: 10px;
}

.game-main-score > div {
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -2px;
    white-space: nowrap;
}

.game-main-score span {
    color: #52657c;
    margin: 0 10px;
}

.game-main-score small {
    display: block;

    margin-top: 8px;

    color: #ff6275;

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

    letter-spacing: .5px;
}


/* GAME TABS */

.game-tabs {
    display: flex;

    margin-top: 20px;

    border-bottom: 1px solid var(--border);
}

.game-tab {
    background: transparent;

    color: var(--muted);

    border: 0;
    border-bottom: 2px solid transparent;

    padding: 13px 18px;

    cursor: pointer;

    font-weight: 800;
}

.game-tab:hover {
    color: white;
}

.game-tab.active {
    color: white;
    border-bottom-color: var(--blue);
}

.game-tab-content {
    display: none;
}

.game-tab-content.active {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}


/* DETAILS CARDS */

.game-detail-card {
    background: var(--panel);

    border: 1px solid var(--border);

    border-radius: 14px;

    padding: 20px;
}

.game-detail-card h2 {
    margin: 0 0 18px;

    font-size: 15px;
}


/* PERIOD TABLE */

.period-score-table {
    border: 1px solid var(--border);

    border-radius: 10px;

    overflow: hidden;
}

.period-score-table > div {
    display: grid;

    grid-template-columns:
        1.5fr repeat(4, .6fr);

    padding: 12px 14px;

    border-bottom: 1px solid var(--border);

    font-size: 11px;
}

.period-score-table > div:last-child {
    border-bottom: 0;
}

.period-score-table > div span:not(:first-child),
.period-score-table > div strong:not(:first-child) {
    text-align: center;
}

.period-header {
    background: #091522;

    color: #63758a;

    font-size: 9px !important;

    font-weight: 900;
}


/* STATS */

.stats-table {
    border: 1px solid var(--border);

    border-radius: 10px;

    overflow: hidden;
}

.stats-header,
.stat-row {
    display: grid;

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

    align-items: center;

    text-align: center;

    padding: 12px 15px;

    border-bottom: 1px solid var(--border);
}

.stats-header {
    background: #091522;

    color: #8192a7;

    font-size: 10px;

    font-weight: 900;
}

.stat-row:last-child {
    border-bottom: 0;
}

.stat-row strong {
    font-size: 13px;
}

.stat-row span {
    color: var(--muted);

    font-size: 11px;
}

.placeholder-text {
    color: var(--muted);

    font-size: 12px;

    line-height: 1.7;
}


/* MOBILE GAME PAGE */

@media(max-width: 600px) {

    .game-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .game-hero {
        padding: 16px 12px 25px;
    }

    .game-hero-matchup {
        grid-template-columns:
            1fr .8fr 1fr;

        gap: 8px;

        margin-top: 25px;
    }

    .game-hero-team img {
        width: 65px;
        height: 65px;
    }

    .game-hero-team strong {
        font-size: 11px;
    }

    .game-main-score > div {
        font-size: 36px;
    }

    .game-main-score span {
        margin: 0 4px;
    }

    .game-tabs {
        overflow-x: auto;
    }

    .game-tab {
        white-space: nowrap;
        padding: 12px 13px;
        font-size: 11px;
    }

}


/* NO GAMES */

.no-games {
    padding: 28px 20px;
    text-align: center;

    background: var(--panel);

    border: 1px solid var(--border);
    border-radius: 13px;

    color: var(--muted);

    font-size: 12px;
}

/* REAL FEATURED GAME */

a.view-game {
    display: block;
    text-align: center;
    text-decoration: none;
}

.no-featured-game {
    padding: 35px 10px;
    text-align: center;
    color: var(--muted);
    font-size: 11px;
}

.featured-team strong {
    line-height: 1.35;
}


/* REAL NHL STANDINGS */

.standing-team {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.standing-team img {
    width: 23px;
    height: 23px;
    object-fit: contain;
    flex: 0 0 auto;
}

.standing-team strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   NBA GAME DETAILS
   ========================================================= */

.nba-score-table {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow-x: auto;
}

.nba-period-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(50px, 1fr);

    min-width: 500px;

    padding: 13px 14px;

    border-bottom: 1px solid var(--border);

    align-items: center;
}

.nba-period-row:last-child {
    border-bottom: 0;
}

.nba-period-row > * {
    text-align: center;
    font-size: 11px;
}

.nba-period-row > *:first-child {
    text-align: left;
}

.nba-period-header {
    background: #091522;
    color: #63758a;

    font-size: 9px;

    font-weight: 900;
}

.venue-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.venue-info strong {
    font-size: 13px;
}

.venue-info span {
    color: var(--muted);
    font-size: 11px;
}


/* =========================================================
   FULL STANDINGS PAGE
   ========================================================= */

.standings-page {
    max-width: 1200px;
    margin: auto;
    padding: 42px 22px 80px;
}

.standings-heading {
    margin-bottom: 25px;
}

.standings-heading h1 {
    margin: 0;
    font-size: 28px;
}

.standings-heading p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12px;
}


.standings-filter {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);

    border-radius: 999px;

    padding: 9px 18px;

    cursor: pointer;

    font-weight: 800;
}

.standings-filter.active {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
}


.standings-sport {
    display: none;
}

.standings-sport.active {
    display: block;
}


.conference-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}


.conference-card {
    background: var(--panel);
    border: 1px solid var(--border);

    border-radius: 14px;

    overflow: hidden;
}

.conference-card h2 {
    margin: 0;
    padding: 18px;

    font-size: 15px;

    border-bottom: 1px solid var(--border);
}


.full-standing-row {
    display: grid;

    grid-template-columns:
        35px
        minmax(170px, 1fr)
        48px
        48px
        48px
        48px
        55px;

    min-height: 49px;

    align-items: center;

    padding: 0 14px;

    border-bottom: 1px solid var(--border);

    font-size: 11px;
}

.full-standing-row:last-child {
    border-bottom: 0;
}


.table-heading {
    min-height: 38px;

    color: var(--muted);

    font-size: 9px;

    font-weight: 900;

    background: #091522;
}


.full-standing-team {
    display: flex;
    align-items: center;

    min-width: 0;

    gap: 9px;
}

.full-standing-team img {
    width: 27px;
    height: 27px;

    object-fit: contain;

    flex: 0 0 auto;
}

.full-standing-team strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.nba-standing-row {
    grid-template-columns:
        35px
        minmax(170px, 1fr)
        50px
        50px
        65px
        65px;
}


@media (max-width: 900px) {

    .conference-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .standings-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .conference-card {
        overflow-x: auto;
    }

    .full-standings-table {
        min-width: 600px;
    }

}


/* NFL GAME INFORMATION */

.nfl-game-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.nfl-game-info > div {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-bottom: 1px solid var(--border);
}

.nfl-game-info > div:nth-child(odd) {
    border-right: 1px solid var(--border);
}

.nfl-game-info span {
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 800;
}

.nfl-game-info strong {
    font-size: 12px;
}

@media (max-width: 600px) {

    .nfl-game-info {
        grid-template-columns: 1fr;
    }

    .nfl-game-info > div:nth-child(odd) {
        border-right: 0;
    }
}


/* NFL STANDINGS */

.nfl-standing-row {
    grid-template-columns:
        35px
        minmax(180px, 1fr)
        45px
        45px
        45px
        55px
        55px;
}

.nfl-standing-name {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nfl-standing-name strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nfl-standing-name small {
    color: var(--muted);
    font-size: 8px;
}


/* =========================================================
   MLB LINE SCORE
   ========================================================= */

.mlb-line-score {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow-x: auto;
}

.mlb-line-row {
    display: grid;

    grid-template-columns:
        minmax(180px, 2fr)
        repeat(9, minmax(38px, .5fr))
        repeat(3, minmax(42px, .55fr));

    min-width: 760px;

    min-height: 52px;

    align-items: center;

    padding: 0 14px;

    border-bottom: 1px solid var(--border);

    font-size: 11px;
}

.mlb-line-row:last-child {
    border-bottom: 0;
}

.mlb-line-row > * {
    text-align: center;
}

.mlb-line-row > *:first-child {
    text-align: left;
}

.mlb-line-header {
    min-height: 38px;

    background: #091522;

    color: var(--muted);

    font-size: 9px;
    font-weight: 900;
}

.mlb-line-team {
    display: flex;
    align-items: center;
    gap: 8px;

    min-width: 0;
}

.mlb-line-team img {
    width: 28px;
    height: 28px;

    object-fit: contain;
}

.mlb-line-team strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   SCHEDULE PAGE
   ========================================================= */

.schedule-page {
    max-width: 1000px;
    margin: auto;
    padding: 28px 22px 80px;
}


.schedule-filter {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);

    border-radius: 999px;

    padding: 9px 17px;

    cursor: pointer;

    font-weight: 800;
}

.schedule-filter.active {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
}


.schedule-heading {
    margin: 34px 0 18px;

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

    gap: 20px;
}

.schedule-heading h1 {
    margin: 0;
    font-size: 28px;
}

.schedule-heading p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.schedule-count {
    color: var(--muted);
    font-size: 10px;
}


.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.schedule-game {
    display: block;

    background: var(--panel);

    border: 1px solid var(--border);
    border-radius: 13px;

    color: var(--text);
    text-decoration: none;

    overflow: hidden;

    transition:
        border-color .15s ease,
        transform .15s ease;
}

.schedule-game:hover {
    border-color: var(--border-light);
    transform: translateY(-1px);
}


.schedule-game-top {
    min-height: 39px;

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

    padding: 0 15px;

    border-bottom: 1px solid var(--border);
}


.schedule-league {
    display: flex;
    align-items: center;
    gap: 7px;

    font-size: 10px;
}


.schedule-status {
    font-size: 9px;
    font-weight: 900;

    text-transform: uppercase;
}

.schedule-status.live {
    color: var(--red);
}

.schedule-status.final {
    color: var(--muted);
}

.schedule-status.scheduled {
    color: var(--blue);
}


.schedule-matchup {
    min-height: 82px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        130px
        minmax(0, 1fr)
        25px;

    align-items: center;

    gap: 14px;

    padding: 12px 15px;
}


.schedule-team {
    display: flex;
    align-items: center;
    gap: 11px;

    min-width: 0;
}

.schedule-team img {
    width: 38px;
    height: 38px;

    object-fit: contain;

    flex: 0 0 auto;
}

.schedule-team div {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 3px;
}

.schedule-team strong {
    font-size: 12px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-team small {
    color: var(--muted);
    font-size: 9px;
}


.schedule-home {
    justify-content: flex-end;
    text-align: right;
}


.schedule-score {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 12px;
}

.schedule-score strong {
    font-size: 21px;
}

.schedule-score span {
    color: #52657a;
}

.score-empty {
    color: var(--muted);
}


.schedule-open {
    color: var(--blue);
    font-size: 20px;
}


.schedule-empty {
    min-height: 150px;

    display: flex;
    flex-direction: column;

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

    gap: 7px;

    background: var(--panel);

    border: 1px solid var(--border);
    border-radius: 13px;
}

.schedule-empty strong {
    font-size: 13px;
}

.schedule-empty span {
    color: var(--muted);
    font-size: 10px;
}


@media (max-width: 700px) {

    .schedule-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .schedule-matchup {
        grid-template-columns:
            minmax(0, 1fr)
            70px
            minmax(0, 1fr);

        gap: 8px;
    }

    .schedule-open {
        display: none;
    }

    .schedule-team img {
        width: 31px;
        height: 31px;
    }

    .schedule-team strong {
        font-size: 10px;
    }

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

}


/* =========================================================
   SCHEDULE DATE NAVIGATION
   ========================================================= */

.schedule-page .date-switcher {
    width: 100%;
    max-width: 720px;

    margin: 0 auto 36px;

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

    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 13px;

    overflow: hidden;
}


.schedule-page .date-switcher a {
    min-height: 70px;

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

    gap: 16px;

    padding: 10px 18px;

    color: var(--text);
    text-decoration: none;
}


.schedule-page .date-side {
    color: var(--muted) !important;
}


.schedule-page .date-side:first-child {
    border-right: 1px solid var(--border);
}


.schedule-page .date-next {
    border-left: 1px solid var(--border);
}


.schedule-page .date-current {
    flex-direction: column;

    gap: 5px;

    background: rgba(57, 136, 255, .045);

    text-align: center;
}


.schedule-page .date-side div {
    display: flex;
    flex-direction: column;

    gap: 4px;
}


.schedule-page .date-next {
    text-align: right;
}


.schedule-page .date-switcher small {
    color: #64778f;

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

    letter-spacing: 1px;
}


.schedule-page .date-current small {
    color: var(--blue);
}


.schedule-page .date-switcher strong {
    font-size: 11px;
    font-weight: 800;
}


.schedule-page .date-current strong {
    color: white;
    font-size: 13px;
}


.schedule-page .date-arrow {
    color: #71869e;

    font-size: 27px;
    font-weight: 300;

    line-height: 1;
}


.schedule-page .date-switcher a:hover {
    background: rgba(57, 136, 255, .06);
}


@media (max-width: 650px) {

    .schedule-page .date-switcher {
        grid-template-columns: 1fr 1.15fr 1fr;
    }

    .schedule-page .date-switcher a {
        min-height: 62px;

        padding: 8px 7px;

        gap: 6px;
    }

    .schedule-page .date-switcher strong {
        font-size: 9px;
    }

    .schedule-page .date-current strong {
        font-size: 10px;
    }

    .schedule-page .date-switcher small {
        font-size: 7px;
    }

    .schedule-page .date-arrow {
        font-size: 20px;
    }

}


/* LIVE SCORE UPDATE */

[data-score] {
    display: inline-block;
    transition:
        transform .2s ease,
        color .2s ease;
}

[data-score].score-updated {
    color: var(--green);
    transform: scale(1.18);
}


/* =========================================================
   REAL SCORE SERVER STATUS
   ========================================================= */

.api-status .api-light {
    transition:
        background .2s ease,
        box-shadow .2s ease;
}


.api-status.online .api-light {
    background: var(--green);
    box-shadow:
        0 0 12px rgba(42, 211, 155, .45);
}


.api-status.offline .api-light {
    background: var(--red);
    box-shadow:
        0 0 12px rgba(255, 64, 89, .45);
}


.api-status.offline strong {
    color: var(--red);
}
