/* MATCHSHOCK_HOMEPAGE_V3_PHASE3_LIVE_FEED_CSS */

/*
 * Homepage V3 phase 3
 *
 * Mobile editorial hierarchy:
 * - card 1 remains the primary live intelligence story
 * - cards 2 and 3 become compact update rows
 * - modal data and keyboard interaction remain unchanged
 */


/* ---------------------------------------------------------
   LIVE FEED FOOTER CTA
   --------------------------------------------------------- */

.ms-live-feed__footer {
    align-items: center;
    gap: 10px;
}

.ms-live-feed__all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 40px;
    padding: 9px 17px;
    border: 1px solid rgba(255, 71, 71, .32);
    border-radius: 999px;
    background: rgba(255, 45, 45, .11);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background 160ms ease;
}

.ms-live-feed__all:hover {
    border-color: rgba(255, 71, 71, .62);
    background: rgba(255, 45, 45, .19);
    transform: translateY(-1px);
}

.ms-live-feed__all:focus-visible {
    outline: 3px solid rgba(255, 49, 49, .82);
    outline-offset: 3px;
}

.ms-live-feed__all b {
    font-size: 16px;
}


/* ---------------------------------------------------------
   MOBILE COMPACT LIVE FEED
   --------------------------------------------------------- */

@media (max-width: 620px) {
    .ms-live-feed {
        padding-bottom: 14px;
    }

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

    .ms-live-feed__filters {
        margin-bottom: 11px;
    }

    .ms-live-feed__items {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }


    /*
     * Primary card:
     * keep ranking and main intelligence,
     * remove the large secondary comeback panel.
     */

    .ms-live-feed
    .ms-feed-card:first-child {
        grid-column: 1;
        padding: 13px;
    }

    .ms-live-feed
    .ms-feed-card:first-child
    .ms-comeback {
        display: none;
    }

    .ms-live-feed
    .ms-feed-card:first-child
    .ms-feed-intel {
        gap: 8px;
        margin-top: 10px;
        padding: 10px;
    }

    .ms-live-feed
    .ms-feed-card:first-child
    .ms-alert-rank {
        margin-bottom: 8px;
    }

    .ms-live-feed
    .ms-feed-card:first-child
    .ms-alert-rank__main {
        min-height: 48px;
        padding: 9px 10px;
    }

    .ms-live-feed
    .ms-feed-card:first-child
    .ms-alert-rank__footer {
        padding: 6px 10px;
    }

    .ms-live-feed
    .ms-feed-card:first-child
    .ms-feed-intel__primary {
        gap: 6px;
    }

    .ms-live-feed
    .ms-feed-card:first-child
    .ms-feed-intel__primary > span {
        min-height: 54px;
        padding: 8px 6px;
    }

    .ms-live-feed
    .ms-feed-card:first-child
    .ms-feed-intel__primary small {
        font-size: 8px;
    }

    .ms-live-feed
    .ms-feed-card:first-child
    .ms-feed-intel__primary strong {
        font-size: 17px;
    }


    /*
     * Secondary cards:
     * retain badge, minute, scoreline and headline.
     * Intelligence remains available through the modal.
     */

    .ms-live-feed
    .ms-feed-card:nth-child(n + 2) {
        grid-column: 1;
        min-height: 0;
        padding: 11px 12px;
        border-radius: 13px;
    }

    .ms-live-feed
    .ms-feed-card:nth-child(n + 2)
    .ms-feed-card__topline {
        margin-bottom: 5px;
    }

    .ms-live-feed
    .ms-feed-card:nth-child(n + 2)
    .ms-feed-card__badge {
        min-height: 23px;
        padding: 3px 7px;
        font-size: 9px;
    }

    .ms-live-feed
    .ms-feed-card:nth-child(n + 2)
    .ms-feed-card__minute {
        font-size: 11px;
    }

    .ms-live-feed
    .ms-feed-card:nth-child(n + 2)
    .ms-feed-card__scoreline {
        margin-bottom: 4px;
        overflow: hidden;
        font-size: 11px;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ms-live-feed
    .ms-feed-card:nth-child(n + 2)
    .ms-feed-card__headline {
        display: -webkit-box;
        overflow: hidden;
        font-size: 15px;
        line-height: 1.15;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .ms-live-feed
    .ms-feed-card:nth-child(n + 2)
    .ms-feed-card__summary,
    .ms-live-feed
    .ms-feed-card:nth-child(n + 2)
    .ms-feed-intel,
    .ms-live-feed
    .ms-feed-card:nth-child(n + 2)
    .ms-feed-card__meta {
        display: none;
    }


    /* Footer remains usable even when Show more is visible. */

    .ms-live-feed__footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 11px;
    }

    .ms-live-feed__more,
    .ms-live-feed__all {
        width: 100%;
        min-height: 38px;
        padding: 8px 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ms-live-feed__all {
        transition: none;
    }
}
