/* MATCHSHOCK_VISUAL_POLISH_MOBILE_NAVIGATION_V1 */

:root {
    --ms-content-width: 1180px;
    --ms-page-gutter: 20px;
    --ms-section-gap: 36px;
    --ms-sticky-offset: 92px;
}

html {
    scroll-padding-top: var(--ms-sticky-offset);
}

.ms-header {
    min-height: 68px;
    padding: 11px max(20px, 4vw);
    gap: 18px;
}

.ms-header .logo {
    flex: 0 0 auto;
    font-size: 27px;
    line-height: 1;
}

.ms-header .nav {
    min-width: 0;
    flex-wrap: nowrap;
    gap: 7px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.ms-header .nav::-webkit-scrollbar {
    display: none;
}

.ms-header .nav a {
    flex: 0 0 auto;
    padding: 8px 11px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.ms-header a:focus-visible,
.ms-home-match-center a:focus-visible,
.ms-home-leagues a:focus-visible,
.ms-live-feed button:focus-visible,
.ms-live-feed a:focus-visible {
    outline: 3px solid rgba(255, 49, 49, 0.82);
    outline-offset: 3px;
}

.hero,
.ms-live-feed,
.ms-home-match-center,
.ms-home-leagues,
.section,
.zones {
    width: min(
        var(--ms-content-width),
        calc(100% - (var(--ms-page-gutter) * 2))
    );
    max-width: none;
}

.hero {
    padding-left: 0;
    padding-right: 0;
}

.ms-live-feed,
.ms-home-match-center,
.ms-home-leagues {
    margin-top: var(--ms-section-gap);
    margin-bottom: var(--ms-section-gap);
}

.ms-home-match-center__head,
.ms-home-leagues__head {
    min-height: 54px;
}

.ms-home-match-center__all,
.ms-home-leagues__all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 999px;
    background: #ef1111;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.ms-home-match-center__all:hover,
.ms-home-leagues__all:hover {
    background: #ff2b35;
}

.ms-home-match-center__grid,
.ms-home-leagues__grid {
    scrollbar-width: thin;
    scrollbar-color:
        rgba(239, 17, 17, 0.7)
        rgba(255, 255, 255, 0.06);
}

.ms-home-match-card,
.ms-home-league-card {
    contain: content;
}

@media (max-width: 920px) {
    :root {
        --ms-sticky-offset: 118px;
    }

    .ms-header {
        align-items: stretch;
        flex-direction: column;
        gap: 9px;
        padding-top: 10px;
        padding-bottom: 9px;
    }

    .ms-header .logo {
        font-size: 25px;
    }

    .ms-header .nav {
        width: calc(100vw - 40px);
        justify-content: flex-start;
        padding-bottom: 2px;
    }

    .hero {
        padding-top: 38px;
    }
}

@media (max-width: 620px) {
    :root {
        --ms-page-gutter: 10px;
        --ms-section-gap: 26px;
        --ms-sticky-offset: 112px;
    }

    .ms-header {
        gap: 8px;
        padding: 9px 10px 8px;
    }

    .ms-header .logo {
        font-size: 23px;
    }

    .ms-header .nav {
        width: calc(100vw - 20px);
        gap: 6px;
    }

    .ms-header .nav a {
        padding: 8px 10px;
        font-size: 11px;
    }

    .ticker {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 12px;
    }

    .live-strip {
        padding-right: 10px;
        padding-left: 10px;
    }

    .hero {
        gap: 20px;
        padding-top: 30px;
        padding-bottom: 14px;
    }

    .hero h1 {
        font-size: clamp(39px, 14vw, 58px);
        line-height: 0.94;
    }

    .hero-card img {
        height: 230px;
    }

    .ms-home-match-center__head,
    .ms-home-leagues__head {
        gap: 10px;
        margin-bottom: 14px;
    }

    .ms-home-match-center__actions {
        gap: 9px;
    }

    .ms-home-match-center__summary {
        font-size: 11px;
    }

    .ms-home-match-center__all,
    .ms-home-leagues__all {
        min-height: 36px;
        padding: 8px 11px;
        font-size: 11px;
    }

    .ms-home-match-card {
        min-width: 88%;
        min-height: 260px;
        padding: 15px;
    }

    .ms-home-league-card {
        min-width: 84%;
        padding: 16px;
    }

    .ms-home-match-center__grid,
    .ms-home-leagues__grid {
        scroll-padding-inline: 2px;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .ms-home-match-card,
    .ms-home-league-card {
        transition: none;
    }
}
