/* Marquee Posters — dark stage, lightbulb marquee, premiere billboard + 2:3 posters (Noir Screen) */
.epg-marquee {
    --text-main: #f4f4f5; --border: rgba(255, 255, 255, .1); --bg-section-alt: #17171c;
    --mq-ink: #f4f4f5; --mq-muted: #a1a1aa; --mq-bulb: #ffd88a;
    margin: 30px 0;
    background:
        radial-gradient(900px 340px at 50% -60px, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
        radial-gradient(700px 300px at 100% 100%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
        #08080b;
    color: var(--mq-ink);
}
.epg-marquee .ep-section-heading .title-text { color: #fff; }
.epg-marquee .ep-section-heading { border-color: rgba(255, 255, 255, .12); }

.epg-marquee__stage { position: relative; display: grid; gap: 30px; padding-top: 30px; }

/* Lightbulb marquee strip */
.epg-marquee__bulbs { position: absolute; top: 0; left: 0; right: 0; height: 14px; }
.epg-marquee__bulbs::before,
.epg-marquee__bulbs::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 50%, #fff6dc 0 2.4px, var(--mq-bulb) 3.4px, color-mix(in srgb, var(--mq-bulb) 35%, transparent) 4.6px, transparent 7px) 0 50% / 22px 14px repeat-x;
}
.epg-marquee__bulbs::after { background-position: 11px 50%; opacity: .25; animation: epg-mq-chase 1.4s steps(1) infinite; }
.epg-marquee__bulbs::before { animation: epg-mq-chase 1.4s steps(1) infinite reverse; }
@keyframes epg-mq-chase { 0% { opacity: 1; } 50% { opacity: .25; } }

/* Premiere billboard */
.epg-marquee__feature {
    position: relative; isolation: isolate; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: center;
    padding: 28px; overflow: hidden; border-radius: 6px; background: #111116;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.epg-marquee__backdrop { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.epg-marquee__backdrop img, .epg-marquee__backdrop .epj-ph { width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: blur(26px) saturate(1.2); transform: scale(1.2); }
.epg-marquee__backdrop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 8, 11, .55), rgba(8, 8, 11, .92) 55%), linear-gradient(0deg, rgba(8, 8, 11, .7), transparent 50%); }
.epg-marquee__feature::after {
    /* film-strip perforations on the right edge */
    content: ''; position: absolute; top: 0; right: 0; bottom: 0; z-index: 1; width: 22px;
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .18) 0 9px, transparent 9px 18px) 50% 6px / 9px 100% no-repeat, #000;
}
.epg-marquee__poster { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 4px; background: #17171c; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 22px 40px -18px rgba(0, 0, 0, .9); transition: transform .35s ease, box-shadow .35s ease; }
.epg-marquee__poster img, .epg-marquee__poster .epj-ph { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.epg-marquee__poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .1), transparent 30%, transparent 65%, rgba(0, 0, 0, .55)); pointer-events: none; }
.epg-marquee__body { position: relative; z-index: 2; min-width: 0; padding-right: 20px; }
.epg-marquee__label { display: inline-flex; align-items: center; gap: 8px; margin: 0 14px 14px 0; padding: 6px 11px 6px 9px; border-radius: 3px; background: var(--accent-fill, var(--accent)); color: var(--on-accent-fill, #fff); font: 800 11px/1 var(--font-heading); letter-spacing: 2px; text-transform: uppercase; }
.epg-marquee__label i { font-size: 13px; }
.epg-marquee__cat { display: inline-block; margin-bottom: 14px; color: var(--mq-muted) !important; font-size: 11.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.epg-marquee__cat:hover { color: #fff !important; }
.epg-marquee__lead-title { margin: 0 0 14px; font-family: var(--font-heading); font-size: clamp(1.55rem, 1rem + 1.6vw, 2.35rem); font-weight: 900; line-height: 1.1; letter-spacing: -.8px; text-transform: uppercase; }
.epg-marquee__lead-title a, .epg-marquee__title a { color: #fff; transition: color .2s; }
.epg-marquee__lead-title a:hover, .epg-marquee__title a:hover { color: color-mix(in srgb, var(--accent) 45%, #fff); }
.epg-marquee__excerpt { max-width: 560px; margin: 0 0 16px; color: #c4c4cc; font-size: 15px; line-height: 1.65; }
.epg-marquee .epj-meta, .epg-marquee .epj-meta__by { color: var(--mq-muted); }
.epg-marquee .epj-meta__by { color: #e4e4e7; }
.epg-marquee__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; }
.epg-marquee__cta { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px 13px 16px; border-radius: 4px; background: #fff; color: #08080b !important; font: 800 12.5px/1 var(--font-heading); letter-spacing: 1px; text-transform: uppercase; transition: background .2s, color .2s, transform .2s; }
.epg-marquee__cta i { font-size: 18px; }
.epg-marquee__cta:hover { background: var(--accent-fill, var(--accent)); color: var(--on-accent-fill, #fff) !important; transform: translateY(-1px); }

/* Score ring / runtime badge */
.epg-marquee__badge { position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; color: #fff; font: 800 11px/1 var(--font-heading); letter-spacing: .4px; }
.epg-marquee__badge.is-time { padding: 6px 8px; border-radius: 3px; background: rgba(8, 8, 11, .72); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); backdrop-filter: blur(6px); text-transform: uppercase; }
.epg-marquee__badge.is-time i { font-size: 12px; color: var(--accent); }
.epg-marquee__badge.is-score { justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(closest-side, #0b0b0f 80%, transparent 82%), conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255, 255, 255, .2) 0); box-shadow: 0 6px 18px rgba(0, 0, 0, .5); font-size: 13.5px; }
.epg-marquee__badge--lg { position: static; }
.epg-marquee__badge--lg.is-score { width: 54px; height: 54px; font-size: 16px; }
.epg-marquee__badge--lg.is-time { padding: 12px 14px; background: rgba(255, 255, 255, .06); font-size: 12px; }

/* Poster rail */
.epg-marquee__rail { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 26px 22px; }
.epg-marquee__card { display: flex; flex-direction: column; min-width: 0; }
.epg-marquee__card .epg-marquee__poster { margin-bottom: 14px; }
.epg-marquee__card:hover .epg-marquee__poster { transform: translateY(-6px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 70%, transparent), 0 26px 46px -16px color-mix(in srgb, var(--accent) 45%, transparent); }
.epg-marquee__card:hover .epg-marquee__poster img, .epg-marquee__feature:hover .epg-marquee__poster--lead img { transform: scale(1.05); }
.epg-marquee__cat--sm { margin-bottom: 6px; font-size: 10.5px; letter-spacing: 1.6px; }
.epg-marquee__title { margin: 0; font-family: var(--font-heading); font-size: 15px; font-weight: 800; line-height: 1.3; letter-spacing: -.1px; }

/* Compact: up to three posters share the billboard's row */
.epg-marquee__stage.is-compact { display: flex; align-items: flex-start; }
.epg-marquee__stage.is-compact .epg-marquee__feature { flex: 2.3 1 0; min-width: 0; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 26px; padding: 22px; }
.epg-marquee__stage.is-compact .epg-marquee__rail { flex: var(--rest) 1 0; min-width: 0; }
.epg-marquee__stage.is-compact .epg-marquee__lead-title { font-size: clamp(1.3rem, 1rem + .9vw, 1.75rem); }

/* Dark mode: deeper stage with hairline edges */
[data-theme="dark"] .epg-marquee { background: radial-gradient(900px 340px at 50% -60px, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%), #050507; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 -1px 0 rgba(255, 255, 255, .05); }

@media (max-width: 1100px) {
    .epg-marquee__rail { grid-template-columns: repeat(min(var(--cols), 4), minmax(0, 1fr)); }
    .epg-marquee__stage.is-compact { display: grid; }
    .epg-marquee__stage.is-compact .epg-marquee__rail { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .epg-marquee__feature, .epg-marquee__stage.is-compact .epg-marquee__feature { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 20px; }
    /* posters become a swipeable film rail */
    .epg-marquee__rail, .epg-marquee__stage.is-compact .epg-marquee__rail {
        display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(150px, 42%);
        overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
    }
    .epg-marquee__card { scroll-snap-align: start; }
}
@media (max-width: 560px) {
    .epg-marquee__feature, .epg-marquee__stage.is-compact .epg-marquee__feature { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 16px 16px 18px; align-items: start; }
    .epg-marquee__feature::after { display: none; }
    .epg-marquee__body { display: contents; }
    .epg-marquee__poster--lead { grid-row: 1 / span 4; }
    .epg-marquee__label { grid-column: 2; justify-self: start; margin: 0; }
    .epg-marquee__cat { grid-column: 2; margin: 0; }
    .epg-marquee__lead-title, .epg-marquee__stage.is-compact .epg-marquee__lead-title { grid-column: 2; margin: 0; font-size: 1.15rem; }
    .epg-marquee__excerpt, .epg-marquee .epg-marquee__feature .epj-meta, .epg-marquee__actions { grid-column: 1 / -1; margin: 0; }
    .epg-marquee__excerpt { font-size: 14px; }
    .epg-marquee__actions { margin-top: 2px; }
    .epg-marquee__rail, .epg-marquee__stage.is-compact .epg-marquee__rail { grid-auto-columns: 46%; gap: 16px; }
}
.epg-marquee__cat--sm { display: inline-flex; align-items: center; min-height: 24px; margin-bottom: 2px; } /* 24px tap target */
