/* MATCHSHOCK_HOMEPAGE_MATCH_CENTER_PREVIEW_V1 */

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

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

.ms-home-match-center__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #ff3131;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ms-home-match-center__head h2 {
    margin: 0;
    font-size: clamp(27px, 4vw, 40px);
    line-height: 1.05;
}

.ms-home-match-center__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.ms-home-match-center__summary {
    opacity: 0.68;
    font-size: 13px;
    font-weight: 800;
}

.ms-home-match-center__all {
    padding: 10px 14px;
    border-radius: 999px;
    background: #ef1111;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.ms-home-match-center__status {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    text-align: center;
}

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

.ms-home-match-card {
    display: flex;
    min-width: 0;
    min-height: 280px;
    flex-direction: column;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.07),
            rgba(255, 255, 255, 0.025)
        );
    color: inherit;
    text-decoration: none;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.ms-home-match-card:hover {
    transform: translateY(-3px);
    border-color: rgba(239, 17, 17, 0.85);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26);
}

.ms-home-match-card.is-live {
    border-color: rgba(239, 17, 17, 0.42);
}

.ms-home-match-card__meta,
.ms-home-match-card__footer,
.ms-home-match-card__intelligence,
.ms-home-match-card__teams div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ms-home-match-card__meta {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ms-home-match-card__meta span {
    opacity: 0.7;
}

.ms-home-match-card__meta strong {
    color: #ff3131;
}

.ms-home-match-card__teams {
    display: grid;
    gap: 9px;
    margin: 20px 0 15px;
}

.ms-home-match-card__teams span {
    min-width: 0;
    overflow: hidden;
    font-size: 16px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ms-home-match-card__teams b {
    flex-shrink: 0;
    font-size: 25px;
}

.ms-home-match-card__intelligence {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.ms-home-match-card__ranking,
.ms-home-match-card__insight {
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ms-home-match-card__ranking {
    background: #ef1111;
    color: #fff;
}

.ms-home-match-card__insight {
    background: rgba(255, 255, 255, 0.1);
}

.ms-home-match-card p {
    flex: 1;
    margin: 15px 0;
    opacity: 0.72;
    font-size: 13px;
    line-height: 1.5;
}

.ms-home-match-card__footer {
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    font-size: 11px;
}

.ms-home-match-card__footer span {
    opacity: 0.62;
}

.ms-home-match-card__footer strong {
    color: #ff3131;
}

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

@media (max-width: 620px) {
    .ms-home-match-center {
        width: min(100% - 20px, 1180px);
        margin: 26px auto;
    }

    .ms-home-match-center__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .ms-home-match-center__actions {
        width: 100%;
        justify-content: space-between;
    }

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

    .ms-home-match-card {
        min-width: 86%;
        scroll-snap-align: start;
    }
}


/* MATCHSHOCK_HOMEPAGE_LINEUP_VISIBILITY_CSS_V1 */

.ms-home-match-card.has-lineups {
    border-color: rgba(55, 215, 125, 0.58);
    box-shadow:
        0 0 0 1px rgba(55, 215, 125, 0.08),
        0 14px 34px rgba(0, 0, 0, 0.2);
}

.ms-home-match-card.has-lineups:hover {
    border-color: rgba(70, 235, 145, 0.95);
    box-shadow:
        0 0 0 1px rgba(55, 215, 125, 0.16),
        0 18px 42px rgba(0, 0, 0, 0.3);
}

.ms-home-match-card__lineup-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border: 1px solid rgba(55, 215, 125, 0.38);
    border-radius: 999px;
    background: rgba(55, 215, 125, 0.12);
    color: #70e8a4;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.ms-home-match-card__lineup-status > span {
    display: inline-grid;
    width: 15px;
    height: 15px;
    place-items: center;
    border-radius: 50%;
    background: rgba(55, 215, 125, 0.22);
    color: #8affb8;
    font-size: 10px;
}

.ms-home-match-card.has-lineups
.ms-home-match-card__footer strong {
    color: #70e8a4;
}

@media (max-width: 620px) {
    .ms-home-match-card__lineup-status {
        font-size: 9px;
    }
}


/* MATCHSHOCK_ALL_MATCHES_LINEUP_DISCOVERY_CSS_V1 */

.ms-home-confirmed-lineups {
    margin-top: 28px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ms-home-confirmed-lineups[hidden] {
    display: none;
}

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

.ms-home-confirmed-lineups__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #70e8a4;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ms-home-confirmed-lineups__head h3 {
    margin: 0;
    font-size: clamp(22px, 3vw, 31px);
    line-height: 1.08;
}

.ms-home-confirmed-lineups__head p {
    margin: 7px 0 0;
    opacity: 0.65;
    font-size: 13px;
}

.ms-home-confirmed-lineups__summary {
    flex-shrink: 0;
    padding: 7px 11px;
    border: 1px solid rgba(55, 215, 125, 0.3);
    border-radius: 999px;
    background: rgba(55, 215, 125, 0.1);
    color: #70e8a4;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.ms-home-confirmed-lineups__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.ms-home-lineup-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 16px;
    border: 1px solid rgba(55, 215, 125, 0.28);
    border-radius: 17px;
    background:
        linear-gradient(
            160deg,
            rgba(55, 215, 125, 0.1),
            rgba(255, 255, 255, 0.025) 55%
        );
    color: inherit;
    text-decoration: none;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.ms-home-lineup-card:hover {
    transform: translateY(-3px);
    border-color: rgba(70, 235, 145, 0.85);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26);
}

.ms-home-lineup-card__meta,
.ms-home-lineup-card__team,
.ms-home-lineup-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ms-home-lineup-card__meta {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ms-home-lineup-card__meta span {
    min-width: 0;
    overflow: hidden;
    opacity: 0.68;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ms-home-lineup-card__meta strong {
    flex-shrink: 0;
    color: #ff5151;
}

.ms-home-lineup-card__confirmed {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    margin: 14px 0 13px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(55, 215, 125, 0.15);
    color: #70e8a4;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ms-home-lineup-card__confirmed span {
    display: inline-grid;
    width: 16px;
    height: 16px;
    place-items: center;
    border-radius: 50%;
    background: rgba(55, 215, 125, 0.25);
}

.ms-home-lineup-card__team {
    padding: 11px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ms-home-lineup-card__team div {
    min-width: 0;
}

.ms-home-lineup-card__team strong,
.ms-home-lineup-card__team small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ms-home-lineup-card__team strong {
    font-size: 15px;
}

.ms-home-lineup-card__team small {
    margin-top: 4px;
    opacity: 0.6;
    font-size: 11px;
}

.ms-home-lineup-card__team > span {
    flex-shrink: 0;
    opacity: 0.68;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.ms-home-lineup-card__footer {
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
}

.ms-home-lineup-card__footer span {
    opacity: 0.58;
}

.ms-home-lineup-card__footer strong {
    color: #70e8a4;
}

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

@media (max-width: 620px) {
    .ms-home-confirmed-lineups__head {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .ms-home-lineup-card {
        min-width: 88%;
        scroll-snap-align: start;
    }
}


/* MATCHSHOCK_HOMEPAGE_TEAM_LOGO_CARDS_V1 */

.ms-home-match-card__team {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ms-home-match-card__team-main {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.ms-home-match-card__team-name {
    min-width: 0;
    overflow: hidden;
    font-size: 16px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ms-home-team-badge {
    position: relative;
    display: inline-grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 35% 30%,
            rgba(255, 255, 255, 0.17),
            rgba(255, 255, 255, 0.05)
        );
}

.ms-home-team-badge img {
    position: relative;
    z-index: 2;
    display: block;
    width: 27px;
    height: 27px;
    object-fit: contain;
}

.ms-home-team-badge__initials {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.84);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.02em;
}

.ms-home-team-badge:not(.is-fallback)
.ms-home-team-badge__initials {
    opacity: 0;
}

.ms-home-team-badge.is-fallback
.ms-home-team-badge__initials {
    opacity: 1;
}

.ms-home-team-badge.is-fallback img {
    display: none;
}

@media (max-width: 620px) {
    .ms-home-match-card__team-main {
        gap: 9px;
    }

    .ms-home-team-badge {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .ms-home-team-badge img {
        width: 25px;
        height: 25px;
    }

    .ms-home-match-card__team-name {
        font-size: 15px;
    }
}

/* MATCHSHOCK_HOMEPAGE_MATCH_CENTER_CARDS_CSS_V2 */

.ms-home-match-card {
    position: relative;
    min-height: 292px;
    isolation: isolate;
}

.ms-home-match-card::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(
            circle at 85% 8%,
            rgba(239, 17, 17, 0.11),
            transparent 34%
        );
    content: "";
    pointer-events: none;
}

.ms-home-match-card.is-live {
    border-color: rgba(255, 49, 49, 0.78);
    box-shadow:
        0 0 0 1px rgba(255, 49, 49, 0.1),
        0 18px 44px rgba(145, 0, 0, 0.2);
}

.ms-home-match-card.is-live::before {
    background:
        radial-gradient(
            circle at 85% 8%,
            rgba(255, 35, 35, 0.24),
            transparent 42%
        );
}

.ms-home-match-card__competition {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
}

.ms-home-match-card__competition > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ms-home-match-card__competition small {
    padding-left: 6px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    opacity: 0.58;
    font: inherit;
    white-space: nowrap;
}

.ms-home-match-card__status {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    line-height: 1;
    white-space: nowrap;
}

.ms-home-match-card.is-live
.ms-home-match-card__status {
    border-color: rgba(255, 60, 60, 0.62);
    background: #ef1111;
    color: #fff;
    box-shadow: 0 0 18px rgba(239, 17, 17, 0.28);
}

.ms-home-match-card.is-live
.ms-home-match-card__status::before {
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    content: "";
    animation: ms-home-live-pulse 1.4s ease-in-out infinite;
}

@keyframes ms-home-live-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.52;
        transform: scale(1.45);
    }
}

.ms-home-match-card__teams {
    padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ms-home-match-card__team-score {
    min-width: 30px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ms-home-match-card__shock,
.ms-home-match-card__ranking {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.ms-home-match-card__shock {
    border: 1px solid rgba(255, 59, 59, 0.38);
    background: rgba(239, 17, 17, 0.16);
    color: #ff777d;
}

.ms-home-match-card__ranking {
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.78);
}

.ms-home-match-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

@media (max-width: 620px) {
    .ms-home-match-card {
        min-height: 282px;
    }

    .ms-home-match-card__competition small {
        display: none;
    }

    .ms-home-match-card__status {
        padding-inline: 8px;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ms-home-match-card.is-live
    .ms-home-match-card__status::before {
        animation: none;
    }
}



/* MATCHSHOCK_HOMEPAGE_V3_PHASE1_CSS */

/*
 * Keep the homepage editorial rather than displaying the full
 * 24-post Ghost collection before the sport-specific sections.
 */
#latest.ms-homepage-v3-stories
.grid
.card:nth-child(n + 7),
#latest.ms-homepage-v3-stories
.cards
.card:nth-child(n + 7),
#latest.ms-homepage-v3-stories
.post-grid
.card:nth-child(n + 7) {
    display: none;
}

/*
 * "Daily content formula" is an internal publishing strategy,
 * not a public-facing reader feature.
 */
#rumors.section.playbook {
    display: none;
}

.ms-homepage-v3-stories {
    position: relative;
}

.ms-homepage-v3-stories > .section-head,
.ms-homepage-v3-stories > header {
    align-items: end;
}

.ms-homepage-v3-stories
.grid,
.ms-homepage-v3-stories
.cards,
.ms-homepage-v3-stories
.post-grid {
    grid-template-columns: repeat(
        3,
        minmax(0, 1fr)
    );
}

.ms-homepage-v3-matches-cta {
    display: flex;
    width: min(1240px, calc(100% - 32px));
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 14px auto 0;
    padding: 17px 21px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 17px;
    background:
        linear-gradient(
            120deg,
            rgba(255, 48, 69, .12),
            rgba(255, 255, 255, .035)
        ),
        #11131a;
    color: #fff;
    text-decoration: none;
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.ms-homepage-v3-matches-cta:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 62, 80, .45);
    background:
        linear-gradient(
            120deg,
            rgba(255, 48, 69, .18),
            rgba(255, 255, 255, .05)
        ),
        #11131a;
}

.ms-homepage-v3-matches-cta > span {
    display: grid;
    gap: 5px;
}

.ms-homepage-v3-matches-cta strong {
    font-size: 16px;
}

.ms-homepage-v3-matches-cta small {
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
}

.ms-homepage-v3-matches-cta > b {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 54, 72, .14);
    color: #ff6a77;
    font-size: 20px;
}

/*
 * Reduce excessive vertical whitespace between the category
 * blocks while retaining all Ghost-powered content.
 */
#football.section,
#ufc.section,
#nba.section,
#transfers.section {
    margin-top: clamp(42px, 6vw, 72px);
    margin-bottom: 0;
}

.ms-home-match-card__ranking {
    display: none !important;
}

@media (max-width: 900px) {
    .ms-homepage-v3-stories
    .grid,
    .ms-homepage-v3-stories
    .cards,
    .ms-homepage-v3-stories
    .post-grid {
        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
    }
}

@media (max-width: 620px) {
    #latest.ms-homepage-v3-stories
    .grid
    .card:nth-child(n + 5),
    #latest.ms-homepage-v3-stories
    .cards
    .card:nth-child(n + 5),
    #latest.ms-homepage-v3-stories
    .post-grid
    .card:nth-child(n + 5) {
        display: none;
    }

    .ms-homepage-v3-stories
    .grid,
    .ms-homepage-v3-stories
    .cards,
    .ms-homepage-v3-stories
    .post-grid {
        grid-template-columns: 1fr;
    }

    .ms-homepage-v3-matches-cta {
        width: calc(100% - 24px);
        min-height: 70px;
        padding: 15px;
    }

    .ms-homepage-v3-matches-cta small {
        max-width: 230px;
        line-height: 1.4;
    }

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