.ms-dash-root {
    --ms-green: #00c96b;
    --ms-green-dark: #00ad5c;
    --ms-blue: #11294b;
    --ms-muted: #7086a8;
    --ms-border: #dce8f5;
    --ms-soft: #f4f8fc;
    --ms-bg: #f6faff;
    --ms-red: #ff334d;
    --ms-purple: #b429ef;

    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    color: var(--ms-blue);
    font-family: Rajdhani, Arial, sans-serif;
    box-sizing: border-box;
}

.ms-dash-root *,
.ms-dash-root *::before,
.ms-dash-root *::after {
    box-sizing: border-box;
}

.ms-hero {
    min-height: 126px;
    display: grid;
    grid-template-columns: 1fr 510px;
    align-items: stretch;
    margin-bottom: 22px;
    overflow: hidden;
    background:
        linear-gradient(
            100deg,
            #f8fbff 0%,
            #eef6ff 62%,
            #102949 62%,
            #07182e 100%
        );
}

.ms-hero-copy {
    padding: 25px 0 20px 4px;
}

.ms-hero-copy h1 {
    margin: 0 0 4px;
    font-size: 42px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.8px;
    color: #101d31;
}

.ms-hero-copy p {
    margin: 0;
    color: #6e84a5;
    font-size: 16px;
    font-weight: 500;
}

.ms-hero-art {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 18px 28px;
    overflow: hidden;
}

.ms-hero-art::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .22;
    background:
        radial-gradient(
            circle at 20% 50%,
            #fff 0,
            transparent 33%
        ),
        linear-gradient(
            115deg,
            transparent 20%,
            #a931ef 100%
        );
}

.ms-hero-art-copy {
    position: relative;
    z-index: 1;
    text-align: right;
    color: #fff;
}

.ms-hero-art-copy strong {
    display: block;
    font-size: 26px;
    line-height: .95;
    font-style: italic;
    font-weight: 800;
}

.ms-hero-art-copy span {
    display: block;
    margin-top: 9px;
    font-size: 13px;
}

#ms-dashboard-content {
    width: 100%;
}

.ms-dash-loading {
    min-height: 300px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    color: #7086a8;
    font-weight: 700;
}

.ms-loader {
    width: 24px;
    height: 24px;
    border: 3px solid #dfe8f3;
    border-top-color: var(--ms-green);
    border-radius: 50%;
    animation: ms-spin .7s linear infinite;
}

@keyframes ms-spin {
    to {
        transform: rotate(360deg);
    }
}

.ms-date-strip {
    display: flex;
    gap: 16px;
    align-items: stretch;
    justify-content: space-between;
    margin-bottom: 18px;
}

.ms-date-scroll {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(6, minmax(110px, 1fr));
    gap: 4px;
}

.ms-date-btn,
.ms-calendar-btn,
.ms-filter-btn {
    appearance: none;
    border: 1px solid var(--ms-border);
    background: #fff;
    font-family: inherit;
    cursor: pointer;
}

.ms-date-btn {
    min-height: 64px;
    padding: 9px 12px;
    border-radius: 9px;
    color: #142d50;
    transition: .15s ease;
}

.ms-date-btn strong,
.ms-date-btn span {
    display: block;
}

.ms-date-btn strong {
    font-size: 15px;
    line-height: 1.05;
    font-weight: 800;
}

.ms-date-btn span {
    margin-top: 4px;
    color: #567197;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.ms-date-btn:hover {
    border-color: #9fdabc;
}

.ms-date-btn.is-active {
    color: #fff;
    border-color: var(--ms-green);
    background: linear-gradient(
        135deg,
        #05cd70,
        #00b85f
    );
    box-shadow:
        0 8px 20px
        rgba(0, 201, 107, .18);
}

.ms-date-btn.is-active span {
    color: #fff;
}

.ms-calendar-btn {
    flex: 0 0 145px;
    border-radius: 9px;
    color: #18345a;
    font-size: 14px;
    font-weight: 800;
}

.ms-calendar-btn span {
    margin-right: 7px;
}

.ms-filter-row {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.ms-filter-scroll {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ms-filter-btn {
    height: 43px;
    padding: 0 17px;
    border-radius: 8px;
    color: #27466d;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 800;
}

.ms-filter-btn > span {
    margin-right: 5px;
}

.ms-filter-btn em {
    display: inline-flex;
    min-width: 22px;
    height: 19px;
    margin-left: 5px;
    padding: 0 5px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eef3f9;
    color: #8a9cb5;
    font-size: 11px;
    font-style: normal;
}

.ms-filter-btn.is-active {
    border-color: var(--ms-green);
    background: var(--ms-green);
    color: #fff;
    box-shadow:
        0 7px 16px
        rgba(0, 201, 107, .17);
}

.ms-filter-btn.is-active em {
    background: rgba(255,255,255,.25);
    color: #fff;
}

.ms-sort {
    display: flex;
    gap: 7px;
    align-items: center;
    white-space: nowrap;
    color: #567197;
    font-size: 13px;
    font-weight: 600;
}

.ms-sort select {
    border: 0;
    outline: 0;
    background: transparent;
    color: #213d64;
    font-family: inherit;
    font-weight: 800;
}

.ms-main-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        360px;
    gap: 24px;
    align-items: start;
}

.ms-games-column {
    min-width: 0;
}

.ms-match-section {
    margin-bottom: 26px;
}

.ms-section-head {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ms-section-head > div {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ms-section-head h2 {
    margin: 0;
    color: #142640;
    font-size: 21px;
    line-height: 1;
    font-weight: 800;
}

.ms-section-head em {
    display: inline-flex;
    min-width: 27px;
    height: 22px;
    padding: 0 6px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eaf0f7;
    color: #7d91ad;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.ms-section-head a {
    color: #0875ed;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.ms-section-icon {
    display: inline-flex;
    width: 14px;
    height: 14px;
    align-items: center;
    justify-content: center;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: 12px;
}

.ms-section-live .ms-section-icon,
.ms-section-live .ms-section-head h2 {
    color: var(--ms-red);
}

.ms-section-schedule .ms-section-icon {
    color: #3178ff;
}

.ms-section-finished .ms-section-icon {
    color: #00bc69;
}

.ms-match-list {
    overflow: hidden;
    border: 1px solid var(--ms-border);
    border-radius: 10px;
    background: #fff;
}

.ms-match-row {
    position: relative;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        118px;
    min-height: 67px;
    border-bottom: 1px solid #e7eef7;
}

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

.ms-match-row.is-live::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--ms-green);
}

.ms-match-main {
    min-width: 0;
    display: grid;
    grid-template-columns:
        170px
        minmax(120px, 1fr)
        68px
        minmax(120px, 1fr);
    gap: 10px;
    align-items: center;
    padding: 9px 12px 9px 17px;
    color: inherit;
    text-decoration: none !important;
}

.ms-match-league {
    min-width: 0;
    display: flex;
    gap: 9px;
    align-items: center;
}

.ms-league-logo {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    object-fit: contain;
}

.ms-match-league > div {
    min-width: 0;
}

.ms-match-league strong,
.ms-match-league span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ms-match-league strong {
    color: #587194;
    font-size: 9px;
    font-weight: 700;
}

.ms-match-league span {
    margin-top: 2px;
    color: #8699b2;
    font-size: 10px;
    font-weight: 700;
}

.ms-match-league span.is-live-text {
    color: #00b963;
}

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

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

.ms-team-away {
    justify-content: flex-start;
}

.ms-team strong {
    overflow: hidden;
    color: #173252;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 800;
}

.ms-team-logo {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    object-fit: contain;
}

.ms-score {
    display: flex;
    gap: 7px;
    align-items: center;
    justify-content: center;
    color: #0c1e37;
    font-size: 16px;
}

.ms-score strong {
    font-size: 17px;
    font-weight: 800;
}

.ms-score span {
    color: #7186a4;
}

.ms-score.is-vs strong {
    color: #5d7290;
    font-size: 12px;
}

.ms-match-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    padding: 0 12px 0 4px;
}

.ms-live-badge,
.ms-tv-badge {
    display: inline-flex;
    min-height: 26px;
    padding: 0 8px;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    text-decoration: none !important;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 800;
}

.ms-live-badge {
    border: 1px solid #ff8797;
    background: #fff0f2;
    color: #ff2644;
}

.ms-tv-badge {
    border: 1px solid #9ebeff;
    background: #f4f7ff;
    color: #3e72d6;
}

.ms-fav-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #57769e;
    cursor: pointer;
    font-size: 21px;
    line-height: 30px;
}

.ms-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ms-side-card {
    border: 1px solid var(--ms-border);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.ms-side-card > header {
    min-height: 52px;
    display: flex;
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
}

.ms-side-card h3 {
    margin: 0;
    color: #12253e;
    font-size: 18px;
    font-weight: 800;
}

.ms-side-card header a {
    color: #0875ed;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
}

.ms-league-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 10px 17px;
}

.ms-league-tile {
    min-width: 0;
    min-height: 92px;
    display: flex;
    padding: 7px 4px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #2a4364;
    text-decoration: none !important;
    text-align: center;
}

.ms-side-league-logo {
    width: 42px;
    height: 42px;
    margin-bottom: 6px;
    object-fit: contain;
}

.ms-league-tile strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.05;
    font-weight: 700;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ms-notify-card {
    min-height: 200px;
    padding: 27px 22px;
    border-radius: 10px;
    color: #fff;
    background:
        radial-gradient(
            circle at 90% 50%,
            rgba(76,141,255,.55),
            transparent 34%
        ),
        linear-gradient(
            125deg,
            #092e57,
            #05162d
        );
    overflow: hidden;
}

.ms-notify-card h3 {
    margin: 0;
    font-size: 28px;
    line-height: .95;
    font-style: italic;
    font-weight: 800;
}

.ms-notify-card p {
    max-width: 220px;
    margin: 14px 0 18px;
    color: rgba(255,255,255,.85);
    font-size: 13px;
    line-height: 1.3;
}

.ms-notify-card a {
    display: inline-flex;
    min-height: 39px;
    padding: 0 15px;
    align-items: center;
    border-radius: 6px;
    background: var(--ms-green);
    color: #fff;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 800;
}

.ms-side-team-list {
    padding: 0 15px 12px;
}

.ms-side-team {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #edf2f7;
}

.ms-side-team > div {
    min-width: 0;
    display: flex;
    gap: 9px;
    align-items: center;
}

.ms-side-team-logo {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    object-fit: contain;
}

.ms-side-team strong {
    overflow: hidden;
    color: #213c5e;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}

.ms-side-team > span {
    color: #8294ae;
    white-space: nowrap;
    font-size: 10px;
}

.ms-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ms-empty,
.ms-error {
    padding: 60px 20px;
    border: 1px solid var(--ms-border);
    border-radius: 10px;
    background: #fff;
    color: #6f84a1;
    text-align: center;
}

.ms-error strong {
    display: block;
    margin-bottom: 14px;
}

.ms-error button {
    padding: 9px 15px;
    border: 0;
    border-radius: 6px;
    background: var(--ms-green);
    color: #fff;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
}


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

@media (max-width: 1100px) {

    .ms-hero {
        grid-template-columns: 1fr 380px;
    }

    .ms-main-layout {
        grid-template-columns:
            minmax(0, 1fr)
            300px;
        gap: 18px;
    }

    .ms-match-main {
        grid-template-columns:
            125px
            minmax(100px, 1fr)
            54px
            minmax(100px, 1fr);
    }

    .ms-league-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }
}


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

@media (max-width: 767px) {

    .ms-dash-root {
        width: 100%;
    }

    .ms-hero {
        display: block;
        min-height: auto;
        margin: 0 -12px 14px;
        padding: 18px 14px 8px;
        background: #fff;
    }

    .ms-hero-copy {
        padding: 0;
    }

    .ms-hero-copy h1 {
        font-size: 29px;
    }

    .ms-hero-copy p {
        margin-top: 5px;
        font-size: 12px;
    }

    .ms-hero-art {
        display: none;
    }

    .ms-date-strip {
        display: block;
        margin-bottom: 13px;
    }

    .ms-date-scroll {
        display: flex;
        gap: 7px;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .ms-date-scroll::-webkit-scrollbar,
    .ms-filter-scroll::-webkit-scrollbar {
        display: none;
    }

    .ms-date-btn {
        min-width: 77px;
        min-height: 55px;
        padding: 7px 8px;
        flex: 0 0 77px;
    }

    .ms-date-btn strong {
        font-size: 15px;
    }

    .ms-date-btn span {
        font-size: 12px;
    }

    .ms-calendar-btn {
        display: none;
    }

    .ms-filter-row {
        display: block;
        margin-bottom: 18px;
    }

    .ms-filter-scroll {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .ms-filter-btn {
        height: 37px;
        padding: 0 12px;
        flex: 0 0 auto;
        font-size: 11px;
    }

    .ms-filter-btn em {
        min-width: 18px;
        height: 16px;
        font-size: 11px;
    }

    .ms-sort {
        display: none;
    }

    .ms-main-layout {
        display: block;
    }

    .ms-sidebar {
        margin-top: 20px;
    }

    .ms-section-head {
        min-height: 40px;
    }

    .ms-section-head h2 {
        font-size: 18px;
    }

    .ms-section-head a {
        display: none;
    }

    .ms-match-row {
        display: block;
        min-height: 78px;
    }

    .ms-match-main {
        display: grid;
        grid-template-columns:
            70px
            minmax(0, 1fr)
            48px
            minmax(0, 1fr);
        gap: 4px;
        min-height: 78px;
        padding: 8px 6px;
    }

    .ms-match-league {
        display: block;
        padding-left: 3px;
    }

    .ms-league-logo {
        width: 20px;
        height: 20px;
        margin-bottom: 2px;
    }

    .ms-match-league strong {
        max-width: 68px;
        font-size: 9px;
    }

    .ms-match-league span {
        font-size: 11px;
    }

    .ms-team {
        gap: 4px;
    }

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

    .ms-team-logo {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }

    .ms-score {
        gap: 4px;
    }

    .ms-score strong {
        font-size: 15px;
    }

    .ms-score span {
        font-size: 10px;
    }

    .ms-match-actions {
        position: absolute;
        right: 5px;
        top: 5px;
        padding: 0;
    }

    .ms-live-badge,
    .ms-tv-badge {
        min-height: 20px;
        padding: 0 5px;
        font-size: 7px;
    }

    .ms-fav-btn {
        width: 22px;
        height: 22px;
        font-size: 16px;
        line-height: 22px;
    }

    .ms-featured-leagues {
        display: none;
    }

    .ms-notify-card {
        min-height: 160px;
    }

    .ms-notify-card h3 {
        font-size: 23px;
    }
}

/* ==========================================================
   DATE NAV COMPACT - FINAL
   ========================================================== */

@media (min-width: 768px) {

    .ms-date-strip {
        gap: 14px;
        margin-bottom: 16px;
        align-items: center;
    }

    .ms-date-scroll {
        display: flex;
        gap: 10px;
    }

    .ms-date-btn {
        flex: 0 0 150px;
        min-width: 150px;
        min-height: 58px;
        height: 58px;
        padding: 7px 12px;
        border-radius: 8px;
    }

    .ms-date-btn strong {
        font-size: 13px;
        line-height: 1;
    }

    .ms-date-btn span {
        margin-top: 7px;
        font-size: 10px;
        line-height: 1;
    }

    .ms-calendar-btn {
        flex: 0 0 132px;
        width: 132px;
        height: 58px;
        min-height: 58px;
        font-size: 12px;
        border-radius: 8px;
    }
}


/* ==========================================================
   CUSTOM CALENDAR POPOVER - FINAL
   ========================================================== */

.ms-date-strip {
    position: relative;
}

.ms-calendar-popover {
    position: absolute;
    z-index: 999999;

    top: calc(100% + 10px);
    right: 0;

    width: 292px;
    padding: 14px;

    background: #fff;
    border: 1px solid #dbe6f3;
    border-radius: 12px;

    box-shadow:
        0 16px 45px
        rgba(15, 40, 70, .16);

    color: #09284b;
}

.ms-cal-head {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    align-items: center;

    margin-bottom: 12px;
}

.ms-cal-head strong {
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.ms-cal-nav {
    width: 34px;
    height: 34px;

    padding: 0;
    border: 0;
    border-radius: 7px;

    background: #f3f7fc;
    color: #082b55;

    font-size: 23px;
    line-height: 34px;
    cursor: pointer;
}

.ms-cal-nav:hover {
    background: #e9f1fa;
}

.ms-cal-week,
.ms-cal-days {
    display: grid;
    grid-template-columns:
        repeat(7, 1fr);
}

.ms-cal-week {
    margin-bottom: 5px;
}

.ms-cal-week span {
    text-align: center;

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

    color: #7b91ad;
}

.ms-cal-day,
.ms-cal-empty {
    width: 36px;
    height: 36px;
}

.ms-cal-day {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 8px;

    background: transparent;
    color: #102f52;

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

    cursor: pointer;
}

.ms-cal-day:hover {
    background: #eef6ff;
}

.ms-cal-day.is-active {
    background: #00c96b;
    color: #fff;
}

.ms-cal-footer {
    display: flex;
    justify-content: flex-end;

    margin-top: 10px;
    padding-top: 10px;

    border-top: 1px solid #edf2f7;
}

.ms-cal-footer button {
    border: 0;
    background: transparent;

    color: #00ad60;

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

    cursor: pointer;
}

@media (max-width: 767px) {

    .ms-calendar-popover {
        position: fixed;

        top: 50%;
        left: 50%;
        right: auto;

        width: min(
            320px,
            calc(100vw - 30px)
        );

        transform:
            translate(-50%, -50%);

        border-radius: 14px;

        box-shadow:
            0 20px 70px
            rgba(0, 20, 50, .25);
    }
}


/* ==========================================================
   CALENDAR COMPACT + CENTERED - FINAL
   ========================================================== */

@media (min-width: 768px) {

    .ms-calendar-popover {
        width: 248px !important;
        padding: 11px !important;

        top: calc(100% + 8px) !important;

        /*
         * Calendar is centered against its button/holder.
         */
        left: 50% !important;
        right: auto !important;

        transform:
            translateX(-50%) !important;

        border-radius: 10px !important;
    }

    .ms-cal-head {
        grid-template-columns:
            30px 1fr 30px !important;

        margin-bottom: 9px !important;
    }

    .ms-cal-head strong {
        font-size: 11px !important;
    }

    .ms-cal-nav {
        width: 30px !important;
        height: 30px !important;

        line-height: 30px !important;

        font-size: 18px !important;
        border-radius: 6px !important;
    }

    .ms-cal-week {
        margin-bottom: 2px !important;
    }

    .ms-cal-week span {
        font-size: 8px !important;
    }

    .ms-cal-day,
    .ms-cal-empty {
        width: 30px !important;
        height: 30px !important;
    }

    .ms-cal-day {
        font-size: 10px !important;
        border-radius: 7px !important;
    }

    .ms-cal-footer {
        margin-top: 7px !important;
        padding-top: 7px !important;
    }

    .ms-cal-footer button {
        font-size: 10px !important;
    }
}


/* ==========================================================
   CALENDAR POSITION V2 - BUTTON ANCHORED
   ========================================================== */

.ms-date-strip {
    position: relative;
}

.ms-calendar-btn {
    position: relative;
}

/*
 * Desktop:
 * keep calendar underneath the calendar button area,
 * not centered in the whole date strip.
 */
@media (min-width: 768px) {

    .ms-calendar-popover {
        width: 238px !important;

        left: auto !important;
        right: 0 !important;

        top: calc(100% + 8px) !important;

        transform: none !important;

        padding: 10px !important;
    }

    .ms-cal-head {
        grid-template-columns:
            28px 1fr 28px !important;

        min-height: 30px !important;
        margin-bottom: 7px !important;
    }

    .ms-cal-nav {
        width: 28px !important;
        height: 28px !important;
    }

    .ms-cal-day,
    .ms-cal-empty {
        width: 28px !important;
        height: 28px !important;
    }
}

/*
 * Mobile: centered inside viewport/container.
 */
@media (max-width: 767px) {

    .ms-calendar-popover {
        width: min(
            238px,
            calc(100vw - 24px)
        ) !important;

        left: 50% !important;
        right: auto !important;

        transform:
            translateX(-50%) !important;
    }
}


/* ==========================================================
   CALENDAR FINAL POSITION
   ========================================================== */

.ms-calendar-popover {
    position: fixed !important;

    width: 230px !important;

    left: var(--ms-cal-left, auto) !important;
    right: auto !important;
    top: var(--ms-cal-top, auto) !important;

    transform: none !important;

    padding: 10px !important;

    z-index: 999999 !important;
}

.ms-cal-head {
    grid-template-columns:
        28px 1fr 28px !important;

    margin-bottom: 7px !important;
}

.ms-cal-nav {
    width: 28px !important;
    height: 28px !important;
}

.ms-cal-days,
.ms-cal-week {
    gap: 2px !important;
}

.ms-cal-day,
.ms-cal-empty {
    width: 27px !important;
    height: 27px !important;
}

@media (max-width: 767px) {

    .ms-calendar-popover {
        width: 230px !important;
    }
}



/* =========================================================
   Match list refinement - 2026-09-15
   ========================================================= */

@media (min-width: 769px) {

    .ms-match-row {
        grid-template-columns:
            minmax(0, 1fr)
            86px;
        min-height: 76px;
    }

    .ms-match-main {
        grid-template-columns:
            minmax(165px, 23%)
            minmax(145px, 1fr)
            82px
            minmax(145px, 1fr);
        gap: 14px;
        min-height: 76px;
        padding:
            10px
            14px
            10px
            18px;
    }

    .ms-match-league {
        gap: 10px;
    }

    .ms-league-logo {
        width: 30px;
        height: 30px;
        flex:
            0 0
            30px;
    }

    .ms-match-league strong {
        color: #405b7d;
        font-size: 9px;
        line-height: 1.25;
        font-weight: 800;
    }

    .ms-match-league span {
        margin-top: 4px;
        color: #8b9bb0;
        font-size: 10px;
        line-height: 1.2;
        font-weight: 700;
    }

    .ms-match-league span.is-live-text {
        color: #00b963;
    }

    .ms-team {
        gap: 10px;
    }

    .ms-team strong {
        color: #102c4d;
        font-size: 13px;
        line-height: 1.25;
        font-weight: 800;
    }

    .ms-team-logo {
        width: 34px;
        height: 34px;
        flex:
            0 0
            34px;
    }

    .ms-score {
        min-width: 72px;
        gap: 7px;
    }

    .ms-score strong {
        color: #102541;
        font-size: 17px;
        line-height: 1;
        font-weight: 900;
    }

    .ms-score span {
        color: #7890ad;
        font-size: 12px;
        font-weight: 700;
    }

    .ms-score.is-time {
        min-width: 72px;
    }

    .ms-score.is-time strong {
        display: inline-flex;
        min-width: 58px;
        height: 30px;
        align-items: center;
        justify-content: center;
        border: 1px solid #dce7f2;
        border-radius: 8px;
        background: #f7faff;
        color: #173b67;
        font-size: 13px;
        font-weight: 900;
        letter-spacing: .1px;
    }

    .ms-match-actions {
        padding:
            0
            14px
            0
            4px;
    }
}


/* Tablet: preserve useful match width */
@media (min-width: 769px) and (max-width: 1180px) {

    .ms-match-main {
        grid-template-columns:
            145px
            minmax(110px, 1fr)
            70px
            minmax(110px, 1fr);
        gap: 8px;
    }

    .ms-team-logo {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .ms-team strong {
        font-size: 12px;
    }

    .ms-score.is-time strong {
        min-width: 52px;
        font-size: 12px;
    }
}


/* Mobile scheduled match time */
@media (max-width: 768px) {

    .ms-score.is-time strong {
        display: inline-flex;
        min-width: 42px;
        height: 26px;
        align-items: center;
        justify-content: center;
        border-radius: 7px;
        background: #f4f8fd;
        color: #173b67;
        font-size: 11px;
        font-weight: 900;
    }
}


/* ============================================================
   MATCH ROW FINAL DESKTOP
   ============================================================ */

@media (min-width: 769px) {

    .ms-match-list {
        overflow: hidden;
        border: 1px solid #dbe7f3;
        border-radius: 10px;
        background: #fff;
    }


    /* Entire row */
    .ms-match-row {
        position: relative;
        display: grid;
        grid-template-columns:
            minmax(0, 1fr)
            132px;

        min-height: 76px;
        background: #fff;
        border-bottom: 1px solid #e3edf6;
    }

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

    .ms-match-row:hover {
        background: #fbfdff;
    }

    .ms-match-row.is-live::before {
        content: "";
        position: absolute;
        z-index: 2;
        top: 0;
        bottom: 0;
        left: 0;
        width: 3px;
        background: #00c875;
    }


    /* Main four columns */
    .ms-match-main {
        min-width: 0;

        display: grid;

        grid-template-columns:
            minmax(205px, 25%)
            minmax(155px, 1fr)
            86px
            minmax(155px, 1fr);

        align-items: center;
        gap: 14px;

        min-height: 76px;

        padding:
            10px
            10px
            10px
            22px;

        color: inherit;
        text-decoration: none !important;
    }


    /* ========================================================
       LEAGUE
       ======================================================== */

    .ms-match-league {
        min-width: 0;
        display: grid;
        grid-template-columns:
            34px
            minmax(0, 1fr);

        align-items: center;
        gap: 11px;
    }

    .ms-match-league-logo-wrap {
        width: 34px;
        height: 40px;

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

    .ms-league-logo {
        display: block;
        width: 31px;
        height: 31px;
        max-width: 31px;
        max-height: 31px;

        object-fit: contain;
    }

    .ms-match-league-copy {
        min-width: 0;
    }

    .ms-match-league-name {
        display: block;

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

        color: #345474;
        font-size: 9px;
        line-height: 15px;
        font-weight: 800;
    }

    .ms-match-league-meta {
        min-height: 16px;
        margin-top: 3px;

        display: flex;
        align-items: center;
        gap: 7px;

        color: #879bb2;
        font-size: 9px;
        line-height: 12px;
        font-weight: 700;
    }

    .ms-league-country {
        display: inline-block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


    /* Live minute */
    .ms-live-minute {
        display: inline-flex !important;
        align-items: center;
        gap: 4px;

        color: #00ae65 !important;
        font-weight: 900 !important;
    }

    .ms-live-minute i {
        display: block;

        width: 5px;
        height: 5px;

        flex: 0 0 5px;

        border-radius: 50%;
        background: #00c875;
    }

    .ms-match-ft {
        color: #8294aa;
        font-weight: 900;
    }


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

    .ms-team {
        min-width: 0;

        display: flex;
        align-items: center;

        gap: 11px;
    }

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

    .ms-team-away {
        justify-content: flex-start;
        text-align: left;
    }

    .ms-team strong {
        min-width: 0;

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

        color: #102c4d;

        font-size: 13px;
        line-height: 18px;
        font-weight: 800;
    }

    .ms-team-logo-wrap {
        width: 38px;
        height: 38px;

        flex: 0 0 38px;

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

    .ms-team-logo {
        display: block;

        width: 34px;
        height: 34px;

        max-width: 34px;
        max-height: 34px;

        object-fit: contain;
    }


    /* ========================================================
       CENTER TIME / SCORE
       ======================================================== */

    .ms-match-center {
        width: 86px;

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

        text-align: center;
    }


    /* Scheduled time */
    .ms-match-center.is-time > strong {
        min-width: 58px;
        height: 32px;

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

        padding: 0 9px;

        border: 1px solid #d8e6f4;
        border-radius: 8px;

        background: #f6faff;

        color: #123b67;

        font-size: 13px;
        line-height: 1;
        font-weight: 900;
    }


    /* Score */
    .ms-match-center .ms-score {
        display: flex;
        align-items: center;
        justify-content: center;

        gap: 7px;

        min-width: 68px;
    }

    .ms-match-center .ms-score strong {
        color: #0d2949;

        font-size: 17px;
        line-height: 20px;
        font-weight: 900;
    }

    .ms-match-center .ms-score span {
        color: #7890aa;

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


    /* Little live label below score */
    .ms-center-live {
        display: inline-flex;

        margin-top: 4px;
        padding: 3px 6px;

        border: 1px solid #ff8795;
        border-radius: 5px;

        color: #ff3148;

        font-size: 7px;
        line-height: 9px;
        font-weight: 900;
    }

    .ms-center-ft {
        margin-top: 3px;

        color: #8b9bae;

        font-size: 7px;
        line-height: 10px;
        font-weight: 800;
    }


    /* ========================================================
       RIGHT ACTIONS
       ======================================================== */

    .ms-match-actions {
        position: static;

        min-width: 0;
        height: 100%;

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

        gap: 10px;

        padding:
            0
            15px
            0
            5px;
    }

    .ms-tv-badge,
    .ms-live-badge {
        min-width: 72px;
        min-height: 29px;

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

        padding: 0 9px;

        border-radius: 6px;

        white-space: nowrap;

        font-size: 8px;
        line-height: 1;
        font-weight: 800;

        text-decoration: none !important;
    }

    .ms-tv-badge {
        border: 1px solid #7ba9ff;
        background: #fff;
        color: #3479e8;
    }

    .ms-live-badge {
        border: 1px solid #ff7080;
        background: #fff5f6;
        color: #ff3047;
    }

    .ms-match-favorite {
        width: 27px;
        height: 27px;

        flex: 0 0 27px;

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

        padding: 0;

        border: 0;
        background: transparent;

        color: #4875a7;

        font-size: 23px;
        line-height: 1;

        cursor: pointer;
    }

    .ms-match-favorite:hover {
        color: #7357ff;
        transform: scale(1.08);
    }


    /* Prevent old styles interfering */
    .ms-match-league > div {
        min-width: 0;
    }

    .ms-match-league strong,
    .ms-match-league span {
        overflow: visible;
    }

}


/* ============================================================
   769 - 1180
   ============================================================ */

@media (min-width: 769px) and (max-width: 1180px) {

    .ms-match-row {
        grid-template-columns:
            minmax(0, 1fr)
            105px;
    }

    .ms-match-main {
        grid-template-columns:
            160px
            minmax(115px, 1fr)
            68px
            minmax(115px, 1fr);

        gap: 7px;

        padding-left: 14px;
    }

    .ms-match-league {
        grid-template-columns:
            27px
            minmax(0, 1fr);

        gap: 7px;
    }

    .ms-match-league-logo-wrap {
        width: 27px;
    }

    .ms-league-logo {
        width: 25px;
        height: 25px;
    }

    .ms-team {
        gap: 6px;
    }

    .ms-team-logo-wrap {
        width: 31px;
        height: 31px;

        flex-basis: 31px;
    }

    .ms-team-logo {
        width: 29px;
        height: 29px;
    }

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

    .ms-match-center {
        width: 68px;
    }

    .ms-match-center.is-time > strong {
        min-width: 52px;
        height: 29px;

        font-size: 11px;
    }

    .ms-match-actions {
        gap: 5px;
        padding-right: 8px;
    }

    .ms-tv-badge,
    .ms-live-badge {
        min-width: 60px;
        padding: 0 6px;

        font-size: 7px;
    }

}


/* ============================================================
   MOBILE
   Keep the same information hierarchy
   ============================================================ */

@media (max-width: 768px) {

    .ms-match-row {
        position: relative;
        display: block;

        min-height: 86px;
    }

    .ms-match-main {
        display: grid;

        grid-template-columns:
            64px
            minmax(0, 1fr)
            48px
            minmax(0, 1fr);

        gap: 5px;

        min-height: 86px;

        padding:
            10px
            7px;
    }

    .ms-match-league {
        min-width: 0;
        display: block;

        padding-left: 2px;
    }

    .ms-match-league-logo-wrap {
        height: 23px;

        display: flex;
        align-items: center;
    }

    .ms-league-logo {
        width: 20px;
        height: 20px;

        object-fit: contain;
    }

    .ms-match-league-name {
        display: block;

        max-width: 62px;

        overflow: hidden;
        text-overflow: ellipsis;

        color: #496581;

        font-size: 9px;
        line-height: 10px;
        font-weight: 800;
    }

    .ms-match-league-meta {
        margin-top: 2px;

        color: #8ca0b5;

        font-size: 7px;
        line-height: 9px;
    }

    .ms-league-country {
        display: none;
    }

    .ms-live-minute {
        font-size: 7px;
    }

    .ms-team {
        min-width: 0;

        display: flex;
        align-items: center;

        gap: 4px;
    }

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

    .ms-team-away {
        justify-content: flex-start;
        text-align: left;
    }

    .ms-team strong {
        overflow: hidden;
        text-overflow: ellipsis;

        font-size: 10px;
        line-height: 13px;
        font-weight: 800;
    }

    .ms-team-logo-wrap {
        width: 28px;
        height: 28px;

        flex: 0 0 28px;
    }

    .ms-team-logo {
        width: 26px;
        height: 26px;

        object-fit: contain;
    }

    .ms-match-center {
        width: 48px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .ms-match-center.is-time > strong {
        min-width: 43px;
        height: 26px;

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

        border: 1px solid #dce8f4;
        border-radius: 6px;

        background: #f7faff;

        color: #173b67;

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

    .ms-match-center .ms-score {
        gap: 4px;
    }

    .ms-match-center .ms-score strong {
        font-size: 14px;
    }

    .ms-center-live {
        padding: 2px 3px;
        font-size: 6px;
    }

    .ms-match-actions {
        position: absolute;

        top: 4px;
        right: 4px;

        display: flex;
        gap: 3px;

        padding: 0;
    }

    .ms-tv-badge,
    .ms-live-badge {
        display: none;
    }

    .ms-match-favorite {
        width: 23px;
        height: 23px;

        padding: 0;

        border: 0;
        background: transparent;

        color: #4a76a6;

        font-size: 19px;
    }

}


/* ============================================================
   MATCH ROW FINAL DESKTOP
   ============================================================ */

@media (min-width: 769px) {

    .ms-match-list {
        overflow: hidden;
        border: 1px solid #dbe7f3;
        border-radius: 10px;
        background: #fff;
    }


    /* Entire row */
    .ms-match-row {
        position: relative;
        display: grid;
        grid-template-columns:
            minmax(0, 1fr)
            132px;

        min-height: 76px;
        background: #fff;
        border-bottom: 1px solid #e3edf6;
    }

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

    .ms-match-row:hover {
        background: #fbfdff;
    }

    .ms-match-row.is-live::before {
        content: "";
        position: absolute;
        z-index: 2;
        top: 0;
        bottom: 0;
        left: 0;
        width: 3px;
        background: #00c875;
    }


    /* Main four columns */
    .ms-match-main {
        min-width: 0;

        display: grid;

        grid-template-columns:
            minmax(205px, 25%)
            minmax(155px, 1fr)
            86px
            minmax(155px, 1fr);

        align-items: center;
        gap: 14px;

        min-height: 76px;

        padding:
            10px
            10px
            10px
            22px;

        color: inherit;
        text-decoration: none !important;
    }


    /* ========================================================
       LEAGUE
       ======================================================== */

    .ms-match-league {
        min-width: 0;
        display: grid;
        grid-template-columns:
            34px
            minmax(0, 1fr);

        align-items: center;
        gap: 11px;
    }

    .ms-match-league-logo-wrap {
        width: 34px;
        height: 40px;

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

    .ms-league-logo {
        display: block;
        width: 31px;
        height: 31px;
        max-width: 31px;
        max-height: 31px;

        object-fit: contain;
    }

    .ms-match-league-copy {
        min-width: 0;
    }

    .ms-match-league-name {
        display: block;

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

        color: #345474;
        font-size: 11px;
        line-height: 15px;
        font-weight: 800;
    }

    .ms-match-league-meta {
        min-height: 16px;
        margin-top: 3px;

        display: flex;
        align-items: center;
        gap: 7px;

        color: #879bb2;
        font-size: 9px;
        line-height: 12px;
        font-weight: 700;
    }

    .ms-league-country {
        display: inline-block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


    /* Live minute */
    .ms-live-minute {
        display: inline-flex !important;
        align-items: center;
        gap: 4px;

        color: #00ae65 !important;
        font-weight: 900 !important;
    }

    .ms-live-minute i {
        display: block;

        width: 5px;
        height: 5px;

        flex: 0 0 5px;

        border-radius: 50%;
        background: #00c875;
    }

    .ms-match-ft {
        color: #8294aa;
        font-weight: 900;
    }


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

    .ms-team {
        min-width: 0;

        display: flex;
        align-items: center;

        gap: 11px;
    }

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

    .ms-team-away {
        justify-content: flex-start;
        text-align: left;
    }

    .ms-team strong {
        min-width: 0;

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

        color: #102c4d;

        font-size: 12px;
        line-height: 18px;
        font-weight: 800;
    }

    .ms-team-logo-wrap {
        width: 38px;
        height: 38px;

        flex: 0 0 38px;

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

    .ms-team-logo {
        display: block;

        width: 34px;
        height: 34px;

        max-width: 34px;
        max-height: 34px;

        object-fit: contain;
    }


    /* ========================================================
       CENTER TIME / SCORE
       ======================================================== */

    .ms-match-center {
        width: 86px;

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

        text-align: center;
    }


    /* Scheduled time */
    .ms-match-center.is-time > strong {
        min-width: 58px;
        height: 32px;

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

        padding: 0 9px;

        border: 1px solid #d8e6f4;
        border-radius: 8px;

        background: #f6faff;

        color: #123b67;

        font-size: 13px;
        line-height: 1;
        font-weight: 900;
    }


    /* Score */
    .ms-match-center .ms-score {
        display: flex;
        align-items: center;
        justify-content: center;

        gap: 7px;

        min-width: 68px;
    }

    .ms-match-center .ms-score strong {
        color: #0d2949;

        font-size: 17px;
        line-height: 20px;
        font-weight: 900;
    }

    .ms-match-center .ms-score span {
        color: #7890aa;

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


    /* Little live label below score */
    .ms-center-live {
        display: inline-flex;

        margin-top: 4px;
        padding: 3px 6px;

        border: 1px solid #ff8795;
        border-radius: 5px;

        color: #ff3148;

        font-size: 7px;
        line-height: 9px;
        font-weight: 900;
    }

    .ms-center-ft {
        margin-top: 3px;

        color: #8b9bae;

        font-size: 7px;
        line-height: 10px;
        font-weight: 800;
    }


    /* ========================================================
       RIGHT ACTIONS
       ======================================================== */

    .ms-match-actions {
        position: static;

        min-width: 0;
        height: 100%;

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

        gap: 10px;

        padding:
            0
            15px
            0
            5px;
    }

    .ms-tv-badge,
    .ms-live-badge {
        min-width: 72px;
        min-height: 29px;

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

        padding: 0 9px;

        border-radius: 6px;

        white-space: nowrap;

        font-size: 8px;
        line-height: 1;
        font-weight: 800;

        text-decoration: none !important;
    }

    .ms-tv-badge {
        border: 1px solid #7ba9ff;
        background: #fff;
        color: #3479e8;
    }

    .ms-live-badge {
        border: 1px solid #ff7080;
        background: #fff5f6;
        color: #ff3047;
    }

    .ms-match-favorite {
        width: 27px;
        height: 27px;

        flex: 0 0 27px;

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

        padding: 0;

        border: 0;
        background: transparent;

        color: #4875a7;

        font-size: 23px;
        line-height: 1;

        cursor: pointer;
    }

    .ms-match-favorite:hover {
        color: #7357ff;
        transform: scale(1.08);
    }


    /* Prevent old styles interfering */
    .ms-match-league > div {
        min-width: 0;
    }

    .ms-match-league strong,
    .ms-match-league span {
        overflow: visible;
    }

}


/* ============================================================
   769 - 1180
   ============================================================ */

@media (min-width: 769px) and (max-width: 1180px) {

    .ms-match-row {
        grid-template-columns:
            minmax(0, 1fr)
            105px;
    }

    .ms-match-main {
        grid-template-columns:
            160px
            minmax(115px, 1fr)
            68px
            minmax(115px, 1fr);

        gap: 7px;

        padding-left: 14px;
    }

    .ms-match-league {
        grid-template-columns:
            27px
            minmax(0, 1fr);

        gap: 7px;
    }

    .ms-match-league-logo-wrap {
        width: 27px;
    }

    .ms-league-logo {
        width: 25px;
        height: 25px;
    }

    .ms-team {
        gap: 6px;
    }

    .ms-team-logo-wrap {
        width: 31px;
        height: 31px;

        flex-basis: 31px;
    }

    .ms-team-logo {
        width: 29px;
        height: 29px;
    }

    .ms-team strong {
        font-size: 12px;
    }

    .ms-match-center {
        width: 68px;
    }

    .ms-match-center.is-time > strong {
        min-width: 52px;
        height: 29px;

        font-size: 11px;
    }

    .ms-match-actions {
        gap: 5px;
        padding-right: 8px;
    }

    .ms-tv-badge,
    .ms-live-badge {
        min-width: 60px;
        padding: 0 6px;

        font-size: 7px;
    }

}


/* ============================================================
   MOBILE
   Keep the same information hierarchy
   ============================================================ */

@media (max-width: 768px) {

    .ms-match-row {
        position: relative;
        display: block;

        min-height: 86px;
    }

    .ms-match-main {
        display: grid;

        grid-template-columns:
            64px
            minmax(0, 1fr)
            48px
            minmax(0, 1fr);

        gap: 5px;

        min-height: 86px;

        padding:
            10px
            7px;
    }

    .ms-match-league {
        min-width: 0;
        display: block;

        padding-left: 2px;
    }

    .ms-match-league-logo-wrap {
        height: 23px;

        display: flex;
        align-items: center;
    }

    .ms-league-logo {
        width: 20px;
        height: 20px;

        object-fit: contain;
    }

    .ms-match-league-name {
        display: block;

        max-width: 62px;

        overflow: hidden;
        text-overflow: ellipsis;

        color: #496581;

        font-size: 11px;
        line-height: 10px;
        font-weight: 800;
    }

    .ms-match-league-meta {
        margin-top: 2px;

        color: #8ca0b5;

        font-size: 7px;
        line-height: 9px;
    }

    .ms-league-country {
        display: none;
    }

    .ms-live-minute {
        font-size: 7px;
    }

    .ms-team {
        min-width: 0;

        display: flex;
        align-items: center;

        gap: 4px;
    }

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

    .ms-team-away {
        justify-content: flex-start;
        text-align: left;
    }

    .ms-team strong {
        overflow: hidden;
        text-overflow: ellipsis;

        font-size: 12px;
        line-height: 13px;
        font-weight: 800;
    }

    .ms-team-logo-wrap {
        width: 28px;
        height: 28px;

        flex: 0 0 28px;
    }

    .ms-team-logo {
        width: 20px;
        height: 20px;

        object-fit: contain;
    }

    .ms-match-center {
        width: 48px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .ms-match-center.is-time > strong {
        min-width: 43px;
        height: 26px;

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

        border: 1px solid #dce8f4;
        border-radius: 6px;

        background: #f7faff;

        color: #173b67;

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

    .ms-match-center .ms-score {
        gap: 4px;
    }

    .ms-match-center .ms-score strong {
        font-size: 14px;
    }

    .ms-center-live {
        padding: 2px 3px;
        font-size: 6px;
    }

    .ms-match-actions {
        position: absolute;

        top: 4px;
        right: 4px;

        display: flex;
        gap: 3px;

        padding: 0;
    }

    .ms-tv-badge,
    .ms-live-badge {
        display: none;
    }

    .ms-match-favorite {
        width: 23px;
        height: 23px;

        padding: 0;

        border: 0;
        background: transparent;

        color: #4a76a6;

        font-size: 19px;
    }

}

/* =========================================================
   MATCH ACTION ALIGNMENT FIX
   button + favorite always aligned
   ========================================================= */

@media (min-width: 769px) {

    .ms-match-row {
        grid-template-columns:
            minmax(0, 1fr)
            132px !important;
    }

    .ms-match-actions {
        position: static !important;

        display: grid !important;
        grid-template-columns:
            82px
            30px !important;

        align-items: center !important;
        justify-content: end !important;

        column-gap: 8px !important;

        width: 132px !important;
        height: 100% !important;
        min-height: 76px !important;

        padding:
            0
            10px
            0
            2px !important;

        box-sizing: border-box !important;
    }

    .ms-match-actions .ms-live-badge,
    .ms-match-actions .ms-tv-badge {
        position: static !important;

        width: 82px !important;
        min-width: 82px !important;
        max-width: 82px !important;

        height: 30px !important;
        min-height: 30px !important;

        margin: 0 !important;
        padding: 0 8px !important;

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

        box-sizing: border-box !important;

        line-height: 1 !important;
        white-space: nowrap !important;

        transform: none !important;
    }

    .ms-match-actions .ms-match-favorite {
        position: static !important;

        width: 30px !important;
        min-width: 30px !important;
        max-width: 30px !important;

        height: 30px !important;
        min-height: 30px !important;

        margin: 0 !important;
        padding: 0 !important;

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

        border: 0 !important;
        background: transparent !important;

        color: #4776a8 !important;

        font-size: 24px !important;
        font-family:
            Arial,
            sans-serif !important;
        font-weight: 400 !important;
        line-height: 30px !important;

        box-sizing: border-box !important;

        transform: none !important;
    }

    .ms-match-actions .ms-match-favorite:hover {
        color: #7257ff !important;
        transform: scale(1.08) !important;
    }
}


/* Long competition names must never enter team column */
@media (min-width: 769px) {

    .ms-match-league,
    .ms-match-league-copy {
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .ms-match-league .ms-match-league-name {
        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

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

    .ms-match-league-meta {
        overflow: hidden !important;
        white-space: nowrap !important;
    }
}


/* =========================================================
   FAVORITE STAR FINAL ALIGNMENT
   ========================================================= */

/* DESKTOP */
@media (min-width: 769px) {

    /*
     * Actions always use:
     * [ watch button 82px ] [ star 30px ]
     *
     * Even when watch button does not exist,
     * favorite must stay in column 2.
     */
    .ms-match-actions {
        display: grid !important;

        grid-template-columns:
            82px
            30px !important;

        align-items: center !important;
        justify-content: end !important;

        column-gap: 8px !important;

        width: 132px !important;
        min-width: 132px !important;
        height: 100% !important;

        padding:
            0
            10px
            0
            2px !important;

        box-sizing: border-box !important;
    }

    .ms-match-actions .ms-live-badge,
    .ms-match-actions .ms-tv-badge {
        grid-column: 1 !important;
        grid-row: 1 !important;

        align-self: center !important;
        justify-self: center !important;

        margin: 0 !important;
    }

    .ms-match-actions .ms-match-favorite {
        grid-column: 2 !important;
        grid-row: 1 !important;

        align-self: center !important;
        justify-self: center !important;

        position: static !important;

        width: 30px !important;
        height: 30px !important;

        margin: 0 !important;
        padding: 0 !important;

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

        line-height: 30px !important;
    }
}


/* MOBILE */
@media (max-width: 768px) {

    /*
     * Mobile has no watch-button column.
     * Put favorite at top-right of every match.
     */
    .ms-match-row {
        position: relative !important;
    }

    .ms-match-actions {
        position: absolute !important;

        top: 8px !important;
        right: 8px !important;

        z-index: 8 !important;

        display: block !important;

        width: 28px !important;
        height: 28px !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    .ms-match-actions .ms-live-badge,
    .ms-match-actions .ms-tv-badge {
        display: none !important;
    }

    .ms-match-actions .ms-match-favorite {
        position: static !important;

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

        width: 28px !important;
        height: 28px !important;

        margin: 0 !important;
        padding: 0 !important;

        border: 0 !important;
        background: transparent !important;

        color: #4776a8 !important;

        font-family: Arial, sans-serif !important;
        font-size: 22px !important;
        font-weight: 400 !important;
        line-height: 28px !important;

        box-sizing: border-box !important;
    }

    /*
     * Reserve space for star so away team
     * never runs underneath it.
     */
    .ms-match-main {
        padding-right: 38px !important;
    }

    .ms-team-away {
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .ms-team-away strong {
        max-width: 100% !important;

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




/* =========================================================
 * MOBILE — COMPACT DATE NAV
 * ========================================================= */

@media (max-width: 767px) {

    .ms-date-strip {
        padding-top: 4px;
        padding-bottom: 4px;
        min-height: 0;
    }

    .ms-date-scroll {
        gap: 10px;
        align-items: stretch;
    }

    .ms-date-btn {
        height: 56px;
        min-height: 56px;
        padding: 7px 14px;
    }

    .ms-date-btn strong {
        line-height: 1;
        margin: 0 0 5px;
    }

    .ms-date-btn span {
        line-height: 1;
        margin: 0;
    }

    .ms-calendar-btn {
        height: 56px;
        min-height: 56px;
        padding-top: 7px;
        padding-bottom: 7px;
    }

}


/* =========================================================
   MOBILE VIDEO STREAM ICON
   ========================================================= */

/* Desktop: never show this icon */
.ms-mobile-stream-icon {
    display: none;
}


@media (max-width: 768px) {

    /*
     * Score + stream icon vertically centered.
     */
    .ms-match-center.is-score {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;

        gap: 3px !important;
    }


    /*
     * Green TV icon means:
     * this match has video stream available.
     */
    .ms-mobile-stream-icon {
        display: flex !important;

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

        width: 18px !important;
        height: 18px !important;

        margin:
            1px
            auto
            0 !important;

        color: #00b86b !important;
    }


    .ms-mobile-stream-icon svg {
        display: block !important;

        width: 17px !important;
        height: 17px !important;

        overflow: visible !important;

        fill: none !important;
        stroke: currentColor !important;

        stroke-width: 1.8 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
    }


    /*
     * TV body outline.
     */
    .ms-mobile-stream-icon rect {
        fill: none !important;
        stroke: currentColor !important;
    }


    /*
     * Antenna stays outline.
     */
    .ms-mobile-stream-icon
    .ms-stream-icon-antenna {
        fill: none !important;
        stroke: currentColor !important;
    }


    /*
     * Play triangle is solid green.
     */
    .ms-mobile-stream-icon
    .ms-stream-icon-play {
        fill: currentColor !important;
        stroke: none !important;
    }
}


/* Live match minute - dark red */
.ms-live-minute {
    color: #b4232f !important;
    font-weight: 800 !important;
}

/* Do not show the old green dot */
.ms-live-minute i {
    background: #b4232f !important;
}

@media (max-width: 768px) {
    .ms-live-minute {
        color: #b4232f !important;
        font-weight: 800 !important;
    }

    .ms-live-minute i {
        background: #b4232f !important;
    }
}

/* Match favorite state */
.ms-match-favorite.is-favorite {
    color: #f5a623 !important;
}

.ms-match-favorite.is-loading {
    opacity: .5;
    pointer-events: none;
}

.ms-match-favorite:disabled {
    cursor: wait;
}


/* Mobile: give live minute enough vertical space */
@media (max-width: 768px) {

    .ms-match-league-copy {
        overflow: visible !important;
    }

    .ms-match-league-meta {
        min-height: 14px !important;
        height: 14px !important;
        margin-top: 2px !important;

        display: flex !important;
        align-items: center !important;

        overflow: visible !important;
        line-height: 14px !important;
    }

    .ms-live-minute {
        display: inline-flex !important;
        align-items: center !important;

        height: 14px !important;
        min-height: 14px !important;

        margin: 0 !important;
        padding: 0 !important;

        line-height: 14px !important;

        overflow: visible !important;

        color: #b4232f !important;
        font-weight: 800 !important;
    }

    .ms-live-minute i {
        display: none !important;
    }
}
