/* ==========================================================================
   movie-promo.css — in-house StreamUltrasMovies promos on the sports pages.
   Compact landscape tiles with a deep teal accent that harmonises with the
   site's green. Kept short so it reads as a promo strip, not a banner wall.
   ========================================================================== */

/* Prevent grid/flex blow-out on narrow screens. */
.dashboard-grid > *,
.fixtures-list,
.sidebar-stack {
    min-width: 0;
}

/* mobile "See More" cap parity with the notice bars */
.su-movie-promo.is-capped { display: none; }

/* ── promo strip (fixtures column / above stream) ── */
.su-movie-promo {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0.5rem 0;
    padding: 0.55rem 0.6rem 0.5rem;
    border: 1px solid rgba(77, 182, 172, 0.24);
    border-left: 3px solid rgba(77, 182, 172, 0.62);
    border-radius: 9px;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(77, 182, 172, 0.08), transparent 58%),
        linear-gradient(135deg, #101a18 0%, #0b1210 55%, #0f1917 100%);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.su-movie-promo__head {
    margin-bottom: 0.4rem;
    min-width: 0;
}

.su-movie-promo__kicker,
.su-movie-panel__kicker {
    display: inline-block;
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #8fd8cf;
    background: rgba(77, 182, 172, 0.1);
    border: 1px solid rgba(77, 182, 172, 0.26);
    border-radius: 999px;
    padding: 0.08rem 0.4rem;
    margin-bottom: 0.24rem;
}

.su-movie-promo__title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #ecf3f1;
    line-height: 1.2;
}

/* ── tile rail: landscape tiles that fill the strip ── */
.su-movie-promo__rail {
    display: flex;
    gap: 0.4rem;
    justify-content: space-between;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    padding: 0.06rem 0.02rem 0.28rem;
    scroll-snap-type: x proximity;
    touch-action: pan-x;
    scrollbar-width: thin;
    scrollbar-color: rgba(77, 182, 172, 0.3) transparent;
    -webkit-overflow-scrolling: touch;
}

.su-movie-promo__rail::-webkit-scrollbar { height: 4px; }
.su-movie-promo__rail::-webkit-scrollbar-thumb {
    background: rgba(77, 182, 172, 0.3);
    border-radius: 999px;
}

.su-movie-card {
    flex: 1 1 130px;
    min-width: 0;
    max-width: 190px;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
    border-radius: 7px;
    transition: transform 0.15s ease;
}

.su-movie-card:hover,
.su-movie-card:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.su-movie-card__poster {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 7px;
    overflow: hidden;
    background: #14201d;
    border: 1px solid rgba(77, 182, 172, 0.18);
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.35);
}

.su-movie-card__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Portrait posters (no landscape backdrop available) are shown whole over a
 * filled copy of the same art, so the top of the poster is never cropped. */
.su-movie-card__poster--contain {
    background-size: cover;
    background-position: center;
    background-color: #0b1210;
}

.su-movie-card__poster--contain img {
    object-fit: contain;
    object-position: center;
}

.su-movie-card__poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 12, 10, 0.88) 0%, rgba(6, 12, 10, 0.02) 55%, transparent 78%);
    pointer-events: none;
}

.su-movie-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(77, 182, 172, 0.9);
    color: #07100d;
    font-size: 0.56rem;
    padding-left: 2px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease;
}

.su-movie-card:hover .su-movie-card__play,
.su-movie-card:focus-visible .su-movie-card__play {
    transform: translate(-50%, -50%) scale(1.08);
}

.su-movie-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.04rem;
    min-width: 0;
}

.su-movie-card__name {
    font-size: 0.66rem;
    font-weight: 700;
    color: #ecf3f1;
    line-height: 1.24;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.su-movie-card__meta {
    font-size: 0.54rem;
    font-weight: 600;
    color: #9fc0b8;
    letter-spacing: 0.02em;
}

.su-movie-promo__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    margin-top: 0.3rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(77, 182, 172, 0.12);
}

.su-movie-promo__actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.su-movie-promo__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.26rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(77, 182, 172, 0.36);
    background: rgba(77, 182, 172, 0.08);
    color: #a7e8df;
    font-size: 0.54rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.su-movie-promo__cta:hover,
.su-movie-promo__cta:focus-visible {
    background: rgba(77, 182, 172, 0.16);
    border-color: rgba(77, 182, 172, 0.6);
    outline: none;
}

/* ── sidebar panel (kept for compact use) ── */
.su-movie-panel {
    border-color: rgba(77, 182, 172, 0.22);
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(77, 182, 172, 0.07), transparent 60%),
        var(--bg-card, #232428);
}

.su-movie-panel__head { margin-bottom: 0.4rem; }

.su-movie-panel__title {
    margin: 0.06rem 0 0;
    font-size: 0.82rem;
    color: #ecf3f1;
}

.su-movie-panel__text {
    margin: 0.18rem 0 0;
    font-size: 0.6rem;
    line-height: 1.38;
    color: var(--text-muted, #a2a6ac);
}

.su-movie-panel__list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.su-movie-panel__row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem;
    border-radius: 7px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.su-movie-panel__row:hover,
.su-movie-panel__row:focus-visible {
    background: rgba(77, 182, 172, 0.08);
    outline: none;
}

.su-movie-panel__thumb {
    flex: 0 0 auto;
    width: 34px;
    height: 51px;
    border-radius: 5px;
    overflow: hidden;
    background: #14201d;
    border: 1px solid rgba(77, 182, 172, 0.18);
}

.su-movie-panel__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.su-movie-panel__body {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    min-width: 0;
}

.su-movie-panel__name {
    font-size: 0.64rem;
    font-weight: 700;
    color: #ecf3f1;
    line-height: 1.16;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.su-movie-panel__meta {
    font-size: 0.48rem;
    font-weight: 600;
    color: #83a8a0;
    line-height: 1.3;
}

.su-movie-panel__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.22rem;
    margin-top: 0.4rem;
    padding: 0.38rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(77, 182, 172, 0.34);
    background: rgba(77, 182, 172, 0.08);
    color: #a7e8df;
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.su-movie-panel__cta:hover,
.su-movie-panel__cta:focus-visible {
    background: rgba(77, 182, 172, 0.16);
    border-color: rgba(77, 182, 172, 0.6);
    outline: none;
}

/* ── blockbuster promo card: portrait poster stays the focal point ── */
.blockbuster-card.movie-promo-card {
    width: min(360px, 86vw);
    padding: 0.58rem;
    border-radius: 16px;
    border-color: rgba(77, 182, 172, 0.34);
    background:
        radial-gradient(120% 150% at 0% 0%, rgba(77, 182, 172, 0.12), transparent 55%),
        linear-gradient(135deg, #121c1a 0%, #0b1210 55%, #111c19 100%);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.blockbuster-card.movie-promo-card::after {
    background: linear-gradient(115deg, transparent 38%, rgba(77, 182, 172, 0.1) 50%, transparent 62%);
    background-size: 250% 100%;
    animation: funSheen 9s linear infinite;
}

.movie-promo-card__link {
    display: flex;
    align-items: stretch;
    gap: 0.6rem;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.movie-promo-card__poster {
    flex: 0 0 auto;
    align-self: center;
    width: 100px;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: #14201d;
    border: 1px solid rgba(77, 182, 172, 0.22);
}

.movie-promo-card__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.movie-promo-card__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    justify-content: center;
}

.movie-promo-card__kicker {
    font-size: 0.42rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #8fd8cf;
}

.movie-promo-card__title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #ecf3f1;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-promo-card__meta {
    font-size: 0.6rem;
    font-weight: 600;
    color: #9fc0b8;
}

.movie-promo-card__cta {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    margin-top: 0.08rem;
    padding: 0.24rem 0.52rem;
    border-radius: 999px;
    border: 1px solid rgba(77, 182, 172, 0.36);
    background: rgba(77, 182, 172, 0.1);
    color: #a7e8df;
    font-size: 0.48rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.movie-promo-card:hover,
.movie-promo-card:focus-within {
    transform: translateY(-2px);
    border-color: rgba(77, 182, 172, 0.62);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 22px rgba(77, 182, 172, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ── mobile ── */
@media (max-width: 767px) {
    .su-movie-promo {
        margin: 0.45rem 0;
        padding: 0.5rem 0.55rem 0.45rem;
        border-radius: 8px;
    }
    .su-movie-promo__head { margin-bottom: 0.34rem; }
    .su-movie-promo__kicker,
    .su-movie-panel__kicker {
        font-size: 0.44rem;
        padding: 0.06rem 0.36rem;
        margin-bottom: 0.2rem;
    }
    .su-movie-promo__title { font-size: 0.84rem; }
    /* Two-up grid on phones: fills the field, clean edges, no sideways scroll. */
    .su-movie-promo__rail {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
        overflow: visible;
        padding: 0.06rem 0 0.2rem;
    }
    .su-movie-card {
        width: auto;
        max-width: none;
        gap: 0.18rem;
    }
    /* The in-flow promo after three fixtures and the showcase before the
     * fixtures show only two tiles on phones. */
    .su-movie-promo--inflow .su-movie-card:nth-child(n + 3),
    .su-movie-promo--showcase .su-movie-card:nth-child(n + 3) {
        display: none;
    }
    .su-movie-card__play { width: 26px; height: 26px; font-size: 0.58rem; }
    .su-movie-card__name { font-size: 0.64rem; }
    .su-movie-card__meta { font-size: 0.52rem; }
    .su-movie-promo__foot {
        margin-top: 0.24rem;
        padding-top: 0.3rem;
        justify-content: flex-end;
    }
    .su-movie-promo__cta {
        padding: 0.24rem 0.52rem;
        font-size: 0.5rem;
    }

    .blockbuster-card.movie-promo-card {
        width: min(80vw, 320px);
        padding: 0.5rem 0.55rem;
        border-radius: 14px;
    }
    .movie-promo-card__link { gap: 0.5rem; }
    .movie-promo-card__poster { width: 64px; }
    .movie-promo-card__kicker { font-size: 0.38rem; }
    .movie-promo-card__title { font-size: 0.8rem; }
    .movie-promo-card__meta { font-size: 0.54rem; }
    .movie-promo-card__cta {
        display: none;
    }

    .su-movie-panel__thumb { width: 32px; height: 48px; }
    .su-movie-panel__name { font-size: 0.62rem; }
    .su-movie-panel__meta { font-size: 0.46rem; }
    .su-movie-panel__cta { font-size: 0.54rem; padding: 0.34rem 0.56rem; }
}

@media (max-width: 380px) {
    .movie-promo-card__poster { width: 66px; }
    .movie-promo-card__title { font-size: 0.76rem; }
}
