/* MATCHSHOCK_HOMEPAGE_LEAGUE_DISCOVERY_V1 */

.ms-home-leagues {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto;
}

.ms-home-leagues__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.ms-home-leagues__eyebrow {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e11d2e;
}

.ms-home-leagues__head h2 {
    margin: 0;
    font-size: clamp(25px, 4vw, 38px);
    line-height: 1.05;
}

.ms-home-leagues__all {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.ms-home-leagues__status {
    padding: 26px;
    border: 1px solid rgba(127, 127, 127, 0.25);
    border-radius: 14px;
    text-align: center;
}

.ms-home-leagues__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ms-home-league-card {
    display: flex;
    min-width: 0;
    min-height: 205px;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    border: 1px solid rgba(127, 127, 127, 0.24);
    border-radius: 16px;
    background: rgba(127, 127, 127, 0.06);
    color: inherit;
    text-decoration: none;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.ms-home-league-card:hover {
    transform: translateY(-3px);
    border-color: #e11d2e;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.ms-home-league-card__top,
.ms-home-league-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ms-home-league-card__sport {
    font-size: 25px;
}

.ms-home-league-card__live {
    padding: 4px 8px;
    border-radius: 999px;
    background: #e11d2e;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.ms-home-league-card__country {
    display: block;
    margin: 14px 0 5px;
    color: #e11d2e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ms-home-league-card h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.18;
}

.ms-home-league-card p {
    margin: 8px 0 18px;
    opacity: 0.68;
    font-size: 13px;
}

.ms-home-league-card__footer {
    padding-top: 13px;
    border-top: 1px solid rgba(127, 127, 127, 0.2);
    font-size: 11px;
}

.ms-home-league-card__footer span {
    opacity: 0.7;
}

.ms-home-league-card__footer strong {
    color: #e11d2e;
}

@media (max-width: 950px) {
    .ms-home-leagues__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .ms-home-leagues {
        width: min(100% - 20px, 1180px);
        margin: 24px auto;
    }

    .ms-home-leagues__head {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }

    .ms-home-leagues__grid {
        display: flex;
        gap: 11px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 2px 2px 12px;
    }

    .ms-home-league-card {
        min-width: 82%;
        min-height: 190px;
        scroll-snap-align: start;
    }
}
