.home-trailers{min-width:0;position:relative;background:#711426;border-radius:10px;color:white;align-self:start}.home-trailer-shell{overflow:hidden;border-radius:10px;background:#711426}.home-trailer-top,.home-trailer-bottom{padding:9px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px}.home-trailer-top{font-size:10px;font-weight:bold;letter-spacing:.08em;text-transform:uppercase}.home-trailer-screen{position:relative;aspect-ratio:16/9;background:#080808;min-height:200px}.home-trailer-screen iframe,#home-trailer-player{position:absolute;width:100%;height:100%;inset:0;border:0}.home-trailer-expand{position:absolute;inset:0;width:100%;border:0;background:transparent;color:#fff;cursor:pointer;display:flex;align-items:flex-end;justify-content:center;padding:12px}.home-trailer-expand span{border-radius:20px;padding:7px 12px;background:#000c;font-size:11px}.home-trailer-title{color:white;font-size:12px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:60%}.home-trailer-bottom>div{display:flex;gap:6px}.home-trailers button:not(.home-trailer-expand){border:1px solid #ffffff60;border-radius:5px;background:#0002;color:white;padding:7px;font-size:11px;cursor:pointer}.home-trailer-status{font-size:11px;line-height:1.5;margin:0;padding:0 12px 9px}.home-trailer-status:empty{display:none}.home-trailers [hidden]{display:none!important}.home-trailers.is-expanded{position:fixed;inset:0;z-index:10000;border-radius:0;background:#000d;display:flex;align-items:center;justify-content:center;padding:20px}.home-trailers.is-expanded .home-trailer-shell{width:min(100%,1000px);max-height:95dvh;overflow:auto;box-shadow:0 20px 80px #0009}.home-trailers.is-expanded .home-trailer-screen{max-height:75dvh}.home-trailers.is-expanded .home-trailer-title{font-size:16px}.home-trailers button:focus-visible,.home-trailers a:focus-visible{outline:3px solid #fff;outline-offset:-3px}@media(max-width:600px){.home-trailers.is-expanded{padding:8px}.home-trailer-title{max-width:56%}}

/* Halloween banner: copy and pumpkin on the left, horror previews on the right. */
.horror-intro{display:grid;grid-template-columns:minmax(0,1fr) 76px minmax(320px,40%);gap:24px;padding:25px 30px}
.horror-intro>div{min-width:0}.horror-intro h1{font-size:clamp(30px,3.5vw,46px)}
.horror-intro .horror-intro-pumpkin{width:76px;height:76px;align-self:center}
.horror-trailers:not(.is-expanded){width:100%;align-self:center;background:#210d17;border:1px solid #b3644555}
.horror-trailers .home-trailer-shell{background:#210d17}.horror-trailers .home-trailer-top{color:#ffc789}
.horror-intro .home-trailer-status{font-size:11px;line-height:1.5;margin:0;padding:0 12px 9px}
@media(max-width:1000px){.horror-intro{grid-template-columns:minmax(0,1fr) 58px minmax(300px,42%);gap:15px;padding:24px}.horror-intro .horror-intro-pumpkin{width:58px;height:58px}}
@media(max-width:760px){.horror-intro{grid-template-columns:minmax(0,1fr) 68px;gap:20px}.horror-intro .horror-intro-pumpkin{display:block;width:68px;height:68px}.horror-trailers:not(.is-expanded){grid-column:1/-1}.horror-intro h1{font-size:34px}}
@media(max-width:420px){.horror-intro{padding:18px;grid-template-columns:minmax(0,1fr) 45px;gap:12px}.horror-intro .horror-intro-pumpkin{width:45px;height:45px}.horror-intro h1{font-size:29px}}

/* Size the homepage rental card to its content instead of stretching it
   in proportion to the trailer; this also reduces the adjacent hero height. */
@media(min-width:761px){
  .hero-promos{grid-template-rows:auto auto;align-content:start;gap:14px}
  .hero-promos .rental-promo{align-self:start;padding:18px 24px}
}

/* Keep the trailer above the rental card at the storefront's mobile breakpoint. */
@media(max-width:760px){
  .hero-promos{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto}
  .hero-promos>.home-trailers:not(.is-expanded){grid-column:1;grid-row:1;width:100%;min-width:0}
  .hero-promos>.rental-promo{grid-column:1;grid-row:2;min-width:0}
}

/* Leave the movie at left and playback at right; give availability its own center. */
.home-trailer-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px}
.home-trailer-bottom .home-trailer-title{grid-column:1;max-width:100%;min-width:0}
.home-trailer-bottom .home-trailer-copies{grid-column:2;justify-self:center;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:7px 10px;border:1px solid #ffffff80;border-radius:6px;background:#fff;color:#711426;text-align:center;text-decoration:none;font-size:12px;line-height:1.3;font-weight:700}
.home-trailer-bottom .home-trailer-copies:hover{background:#fff0e9;text-decoration:underline}
.home-trailer-bottom .home-trailer-controls{grid-column:3;justify-self:end;white-space:nowrap}
/* Compact cards and phones retain title/controls together and wrap the CTA below. */
.home-trailers:not(.is-expanded) .home-trailer-bottom{grid-template-columns:minmax(0,1fr) auto}
.home-trailers:not(.is-expanded) .home-trailer-controls{grid-column:2;grid-row:1}
.home-trailers:not(.is-expanded) .home-trailer-copies{grid-column:1/-1;grid-row:2}
@media(max-width:600px){
 .home-trailers.is-expanded .home-trailer-bottom{grid-template-columns:minmax(0,1fr) auto}
 .home-trailers.is-expanded .home-trailer-controls{grid-column:2;grid-row:1}
 .home-trailers.is-expanded .home-trailer-copies{grid-column:1/-1;grid-row:2}
}

.home-trailer-bottom .home-trailer-copies:focus-visible{outline:3px solid #711426;outline-offset:-5px;box-shadow:0 0 0 2px #fff}

/* Mobile starts as a compact control card, not an empty video-sized rectangle.
   All play entry points expand on a tap; no frame/API is created beforehand. */
@media(max-width:760px){
 .home-trailers:not(.is-expanded) .home-trailer-screen{aspect-ratio:auto;min-height:64px;height:64px}
 .home-trailers:not(.is-expanded) .home-trailer-screen iframe{display:none}
 .home-trailers:not(.is-expanded) .home-trailer-expand{align-items:center}
 .home-trailers .home-trailer-expand span{font-size:14px}
 .home-trailers button:not(.home-trailer-expand){min-width:44px;min-height:44px;font-size:13px}
 .home-trailers .home-trailer-title,.home-trailers .home-trailer-status{font-size:13px}
}
