/* MATCHSHOCK_HOMEPAGE_V3_PHASE2_COMPACT_CSS */

/*
 * Homepage V3 phase 2
 *
 * Compact editorial hierarchy without removing live data,
 * match intelligence, league discovery or Ghost stories.
 */


/* ---------------------------------------------------------
   DESKTOP REFINEMENT
   --------------------------------------------------------- */

.ms-homepage-v3-hero {
    padding-top: 42px;
    padding-bottom: 22px;
}

.ms-homepage-v3-hero .hero-card img {
    height: 270px;
}

.ms-live-feed {
    padding: 21px;
}

.ms-live-feed__header {
    margin-bottom: 16px;
}

.ms-feed-card {
    padding: 16px;
}

.ms-feed-card:first-child {
    padding: 19px;
}

.ms-feed-card__topline {
    margin-bottom: 10px;
}

.ms-feed-card__summary {
    margin-top: 8px;
}

.ms-feed-card__meta {
    margin-top: 11px;
}

.ms-home-match-center {
    margin-top: 28px;
    margin-bottom: 28px;
}

.ms-home-match-center__head {
    margin-bottom: 15px;
}

.ms-home-confirmed-lineups {
    margin-top: 22px;
    padding-top: 20px;
}

.ms-homepage-v3-matches-cta {
    margin-top: 10px;
}

.zones {
    display: flex;
    gap: 10px;
    padding-top: 18px;
    padding-bottom: 22px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.zones::-webkit-scrollbar {
    display: none;
}

.zones a {
    min-width: 0;
    flex: 1 1 0;
    padding: 14px 16px;
    border-radius: 15px;
    scroll-snap-align: start;
}

.zones strong {
    font-size: 16px;
}

.zones span {
    margin-top: 4px;
    font-size: 12px;
}

.ms-home-leagues {
    margin-top: 24px;
    margin-bottom: 24px;
}

.ms-homepage-v3-stories {
    padding-top: 24px;
    padding-bottom: 18px;
}

.ms-homepage-v3-stories .section-head {
    margin-bottom: 15px;
}

.ms-homepage-v3-stories .card img {
    height: 175px;
}

.ms-homepage-v3-stories .card .pad {
    padding: 17px;
}

.ms-homepage-v3-stories .card h3 {
    font-size: 20px;
}

#football.section,
#ufc.section,
#nba.section,
#transfers.section {
    padding-top: 22px;
    padding-bottom: 22px;
}

#football.section,
#ufc.section,
#nba.section,
#transfers.section {
    margin-top: 34px;
}

.section.split {
    border-radius: 21px;
}

.section.split h2 {
    font-size: clamp(27px, 3.4vw, 34px);
}

.section.split .mini-list {
    gap: 9px;
}

.section.split .mini-list a {
    padding: 13px 14px;
    border-radius: 13px;
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 920px) {
    .zones a {
        flex: 0 0 min(245px, 72vw);
    }

    .ms-homepage-v3-stories .card img {
        height: 165px;
    }

    .section.split {
        gap: 14px;
    }
}


/* ---------------------------------------------------------
   MOBILE COMPACT HOMEPAGE
   --------------------------------------------------------- */

@media (max-width: 620px) {
    .ms-homepage-v3-hero {
        gap: 15px;
        padding-top: 20px;
        padding-bottom: 8px;
    }

    .ms-homepage-v3-hero h1 {
        margin-top: 8px;
        margin-bottom: 9px;
        font-size: clamp(35px, 11.5vw, 46px);
        line-height: .94;
        letter-spacing: -1.8px;
    }

    .ms-homepage-v3-hero .lead {
        margin-top: 0;
        margin-bottom: 8px;
        font-size: 14px;
        line-height: 1.5;
    }

    .ms-homepage-v3-hero .btn {
        margin-top: 9px;
        padding: 11px 16px;
        font-size: 13px;
    }

    .ms-homepage-v3-hero .hero-card {
        border-radius: 19px;
    }

    .ms-homepage-v3-hero .hero-card img {
        height: 175px;
    }

    .ms-homepage-v3-hero .hero-card .pad {
        padding: 15px;
    }

    .ms-homepage-v3-hero .hero-card h2 {
        margin: 9px 0 6px;
        font-size: 23px;
        line-height: 1.07;
    }

    .ms-homepage-v3-hero .hero-card p {
        display: -webkit-box;
        margin-bottom: 0;
        overflow: hidden;
        font-size: 13px;
        line-height: 1.45;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }


    /* Live Feed: retain three stories, remove repeated detail. */

    .ms-live-feed {
        width: calc(100% - 20px);
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 15px;
        border-radius: 19px;
    }

    .ms-live-feed__header {
        gap: 10px;
        margin-bottom: 13px;
    }

    .ms-live-feed__title {
        font-size: 28px;
    }

    .ms-live-feed__filters {
        gap: 6px;
    }

    .ms-live-feed__filter {
        min-height: 30px;
        padding: 6px 9px;
        font-size: 10px;
    }

    .ms-live-feed__items {
        gap: 10px;
    }

    .ms-feed-card,
    .ms-feed-card:first-child {
        padding: 13px;
        border-radius: 15px;
    }

    .ms-feed-card__topline {
        margin-bottom: 8px;
    }

    .ms-feed-card__headline,
    .ms-feed-card:not(:first-child)
    .ms-feed-card__headline {
        font-size: 18px;
        line-height: 1.12;
    }

    .ms-feed-card__summary {
        margin-top: 7px;
        font-size: 12px;
        line-height: 1.45;
    }

    .ms-feed-card:not(:first-child)
    .ms-feed-card__summary {
        display: none;
    }

    .ms-feed-card:not(:first-child)
    .ms-feed-card__meta {
        display: none;
    }

    .ms-feed-card__meta {
        gap: 5px;
        margin-top: 8px;
    }

    .ms-feed-card__meta-item {
        padding: 4px 6px;
        font-size: 9px;
    }


    /* Match Center already scrolls horizontally. Compact its shell. */

    .ms-home-match-center {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .ms-home-match-center__head {
        gap: 8px;
        margin-bottom: 11px;
    }

    .ms-home-match-center__head h2 {
        font-size: 27px;
    }

    .ms-home-match-center__grid {
        padding-bottom: 8px;
    }

    .ms-home-match-card {
        min-height: 258px;
    }

    .ms-home-confirmed-lineups {
        margin-top: 17px;
        padding-top: 16px;
    }

    .ms-home-confirmed-lineups__head {
        gap: 7px;
        margin-bottom: 11px;
    }

    .ms-home-confirmed-lineups__head p {
        margin-top: 5px;
        margin-bottom: 0;
        font-size: 12px;
    }

    .ms-homepage-v3-matches-cta {
        min-height: 64px;
        margin-top: 7px;
        padding: 12px 14px;
    }

    .ms-homepage-v3-matches-cta small {
        font-size: 11px;
    }


    /* Zones become a small horizontal sports navigation. */

    .zones {
        width: calc(100% - 20px);
        gap: 8px;
        margin-top: 12px;
        padding: 0 0 12px;
    }

    .zones a {
        flex: 0 0 150px;
        min-height: 62px;
        padding: 11px 12px;
        border-radius: 13px;
    }

    .zones strong {
        font-size: 14px;
        white-space: nowrap;
    }

    .zones span {
        display: none;
    }


    /* League Center remains horizontally discoverable. */

    .ms-home-leagues {
        margin-top: 18px;
        margin-bottom: 18px;
    }


    /*
     * Top stories:
     * first item remains the visual lead story;
     * items 2–4 become compact editorial rows.
     */

    .ms-homepage-v3-stories {
        padding-top: 18px;
        padding-bottom: 10px;
    }

    .ms-homepage-v3-stories
    .section-head {
        margin-bottom: 12px;
    }

    .ms-homepage-v3-stories
    .section-head h2 {
        font-size: 34px;
    }

    .ms-homepage-v3-stories
    .grid {
        display: grid;
        gap: 10px;
    }

    .ms-homepage-v3-stories
    .card {
        border-radius: 17px;
    }

    .ms-homepage-v3-stories
    .card:first-child img {
        height: 180px;
    }

    .ms-homepage-v3-stories
    .card:first-child .pad {
        padding: 15px;
    }

    .ms-homepage-v3-stories
    .card:first-child h3 {
        font-size: 21px;
    }

    .ms-homepage-v3-stories
    .card:nth-child(n + 2):nth-child(-n + 4) {
        display: grid;
        grid-template-columns: 100px minmax(0, 1fr);
        min-height: 104px;
    }

    .ms-homepage-v3-stories
    .card:nth-child(n + 2):nth-child(-n + 4)
    > a:first-child {
        min-width: 0;
        height: 100%;
    }

    .ms-homepage-v3-stories
    .card:nth-child(n + 2):nth-child(-n + 4)
    img,
    .ms-homepage-v3-stories
    .card:nth-child(n + 2):nth-child(-n + 4)
    .fallback {
        width: 100px;
        height: 100%;
        min-height: 104px;
        object-fit: cover;
    }

    .ms-homepage-v3-stories
    .card:nth-child(n + 2):nth-child(-n + 4)
    .pad {
        min-width: 0;
        padding: 11px 12px;
    }

    .ms-homepage-v3-stories
    .card:nth-child(n + 2):nth-child(-n + 4)
    small {
        font-size: 9px;
    }

    .ms-homepage-v3-stories
    .card:nth-child(n + 2):nth-child(-n + 4)
    h3 {
        display: -webkit-box;
        margin: 5px 0 0;
        overflow: hidden;
        font-size: 15px;
        line-height: 1.15;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .ms-homepage-v3-stories
    .card:nth-child(n + 2):nth-child(-n + 4)
    p {
        display: none;
    }


    /* Category blocks: keep three links but reduce repeated height. */

    #football.section,
    #ufc.section,
    #nba.section,
    #transfers.section {
        gap: 10px;
        margin-top: 18px;
        padding: 17px 14px;
        border-radius: 17px;
    }

    #football.section h2,
    #ufc.section h2,
    #nba.section h2,
    #transfers.section h2 {
        margin: 8px 0 0;
        font-size: 23px;
        line-height: 1.06;
    }

    #football.section .badge,
    #ufc.section .badge,
    #nba.section .badge,
    #transfers.section .badge {
        padding: 5px 8px;
        font-size: 9px;
    }

    #football.section .mini-list,
    #ufc.section .mini-list,
    #nba.section .mini-list,
    #transfers.section .mini-list {
        gap: 7px;
    }

    #football.section .mini-list a,
    #ufc.section .mini-list a,
    #nba.section .mini-list a,
    #transfers.section .mini-list a {
        display: -webkit-box;
        padding: 10px 11px;
        overflow: hidden;
        border-radius: 11px;
        font-size: 13px;
        line-height: 1.25;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .newsletter {
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 25px 15px;
    }

    .newsletter h2 {
        margin-top: 0;
        font-size: 29px;
    }

    .footer {
        margin-top: 20px;
        padding-top: 27px;
        padding-bottom: 27px;
    }
}
