.cinema-page #cinema-auditorium {scroll-margin-top:.25rem}
.screen-idle {position:absolute; inset:0; display:grid; place-content:center; justify-items:center; gap:.36rem; padding:.6rem; background:radial-gradient(ellipse,#342415,#160e0b 73%); color:#ffe8b3; text-align:center; line-height:1.35}
.screen-idle strong {font:bold clamp(.75rem,3.6vw,2.4rem)/1.2 Georgia,serif; letter-spacing:.07em}
.screen-idle p {font-size:clamp(.75rem,2.4vw,.94rem); margin:.35rem 0 0}
.film-shelf,.film-details {box-sizing:border-box; margin:1.2rem auto 0; padding:clamp(1rem,3.4vw,2rem); border:1px solid #e4bd762e; border-radius:.55rem; color:#fff0d6; background:#2b1923}
.film-shelf h1,.film-details h2 {margin:.2rem 0; font-size:clamp(1.25rem,4vw,1.75rem); line-height:1.3}
.film-kicker {margin:0; color:#f3c881; font-size:.79rem; font-weight:800; letter-spacing:.12em}
.film-instruction,#film-description {margin:.45rem 0 0}
.film-grid {
  display:flex; align-items:flex-start; gap:clamp(.55rem,1.6vw,1rem);
  min-width:0; margin-top:.35rem; padding:.3rem .25rem .65rem;
  overflow-x:auto; overscroll-behavior-inline:contain; scroll-snap-type:x mandatory; scroll-padding-inline:.25rem;
  scrollbar-color:#a77558 #25141f;
}
.film-grid:focus-visible {outline:2px solid #f3c881;outline-offset:2px}
.film-carousel-controls {display:flex; justify-content:flex-end; gap:.45rem; margin-top:.55rem}
.film-carousel-controls[hidden] {display:none}
.film-carousel-controls button {
  width:44px;height:44px;display:grid;place-items:center;border:1px solid #e4bd7666;border-radius:50%;
  background:#3a2530;color:#ffe9bc;font:1.8rem/1 system-ui,sans-serif;cursor:pointer;
}
.film-carousel-controls button:hover:not(:disabled) {background:#50303a}
.film-carousel-controls button:focus-visible {outline:2px solid #f3c881;outline-offset:2px}
.film-carousel-controls button:disabled {opacity:.42;cursor:default}
.film-card {box-sizing:border-box; display:flex; flex-direction:column; justify-self:start; width:min(100%,10rem); gap:.25rem; padding:.4rem; border-radius:.4rem; text-decoration:none; line-height:1.3; color:#fff0d6}
.film-card:hover,.film-card[aria-current] {background:#50303a}
.film-card:focus-visible {outline-color:#f3c881}
.film-poster {box-sizing:border-box; width:100%; aspect-ratio:2/3; display:grid; place-content:center; justify-items:center; gap:.6rem; padding:.5rem; border:.22rem double #6b351b; border-radius:.15rem; text-align:center; background:repeating-linear-gradient(135deg,#e5a64c 0 11px,#e9af5c 11px 20px); color:#44201c}
.film-poster span {font-size:.68rem; font-weight:850; letter-spacing:.07em}
.film-poster b {font:900 clamp(1.15rem,5vw,1.8rem)/.96 Georgia,serif}
.film-poster i {font-style:normal; line-height:1}
.film-poster img {display:block; width:100%; height:100%; object-fit:cover}
.film-poster:has(img) {display:block; padding:0}
.film-card-name {font-size:.9rem; font-weight:800}
.film-card-genre {font-size:.76rem; color:#f3c881}
.film-shelf .film-details {background:#3a2530; padding:clamp(.9rem,2.8vw,1.4rem)}
.film-details h3 {margin:1rem 0 .35rem; font-size:1rem}
.film-facts,.film-facts>div {display:flex; flex-wrap:wrap; gap:.35rem .6rem; align-items:baseline}
.film-facts {gap:.5rem 1.2rem; margin:.65rem 0 0}
.film-facts dt {font-size:.83rem; font-weight:800; color:#f3c881}
.film-facts dd {margin:0; font-size:.92rem}
.film-screen-link {display:inline-block; margin-top:.85rem; color:#f7ce84; font-weight:750; text-underline-offset:.18em}

/* One poster rail, with a glimpse of the next card. */
.film-grid .film-card {flex:0 0 calc(29% - .2rem);width:auto;max-width:none;min-width:0;scroll-snap-align:start}
.film-poster:has(img) {display:grid; grid-template-rows:auto auto 1fr auto; align-content:start; justify-content:stretch; place-items:center; gap:.35rem; padding:clamp(.22rem,1.1vw,.65rem); overflow:hidden}
.film-poster:has(img) img {width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; border:1px solid #512a22; border-radius:.15rem}
.film-poster:has(img) b {font:900 clamp(.68rem,2vw,1.2rem)/1.12 system-ui,sans-serif; overflow-wrap:anywhere}
.film-poster:has(img) span {font-size:clamp(.47rem,1.1vw,.68rem); line-height:1.2}
.film-card-name {overflow-wrap:anywhere}
.film-card[data-film="favorite"] .film-poster {background:#f2c681}
.film-card[data-film="trick-or-treat"] .film-poster {background:#d59884}
.film-card[data-film="honey-hunt"] .film-poster {background:#ebbd65}
.film-card[data-film="jacaranda"] .film-poster {background:#d4c3de}
@media (max-width:590px) {
  .film-grid .film-card {flex-basis:43%}
  .film-poster:has(img) b {font-size:clamp(.75rem,3.5vw,1.05rem)}
  .film-poster:has(img) span {font-size:.58rem}
}

/* Keep utility links out of the transition from the screen to the poster wall. */
.cinema-page .film-shelf {margin-top:clamp(.55rem,1.5vw,1.1rem);}
.film-detail-links {display:flex;flex-wrap:wrap;gap:0 1.1rem;}
.film-detail-links [hidden] {display:none;}
.cinema-exit {margin:.85rem 0 1.5rem;text-align:center;}
.cinema-exit a {color:inherit;text-underline-offset:.23em;}


/* The approved artwork includes its own lettering and border. */
.film-card .film-poster-art:has(img) {display:block; padding:0; border:0; border-radius:.12rem; overflow:hidden;}
.film-card .film-poster-art:has(img) img {width:100%; height:auto; aspect-ratio:2/3; object-fit:contain; border:0; border-radius:0;}

.cinema-rotate {display:none;}
@media (orientation:portrait) and (max-width:600px) {
  .cinema-page .cinema-rotate {
    display:flex; align-items:center; justify-content:center; gap:.48rem;
    margin:0; padding:.5rem .6rem; border-bottom:1px solid #bd90525c;
    background:#2b1a20; color:#ffe2ac; font-size:.8rem; line-height:1.42;
  }
  .cinema-rotate svg {flex:none; color:#f4bc69;}
}

.cinema-page .cinema-photo .theater-stage {
  aspect-ratio:1672/941; height:auto; min-height:0;
  background:#1e120e url("/media/cinema-audience-near.webp") center / 100% 100% no-repeat;
}
.cinema-page .cinema-photo .screen-proscenium {
  left:21.99%; top:19.61%; width:56.02%; height:50.5%;
}
.cinema-page .cinema-photo-seats {display:none;}
.cinema-page .screen-idle strong {font-size:clamp(.62rem,2.9vw,2rem);}
.cinema-page .screen-idle p {font-size:clamp(.64rem,2vw,.94rem);margin:0;}
@media(max-width:640px) {
  .cinema-page .cinema-photo .theater-stage {background-image:url("/media/cinema-audience-near-small.webp");}
}
@media(orientation:landscape) and (max-height:540px) {
  /* Keep the projection opening fully visible below the fixed header. */
  .cinema-page .cinema-photo .screening-room {
    width:min(100%,max(245px,calc((100svh - var(--header-height,52px) - 14px) * 2.48)));
  }
}

.cinema-immersive {position:relative;}
.cinema-expand {
  position:absolute; z-index:2; right:clamp(.35rem,2vw,.9rem); bottom:clamp(.35rem,2vw,.9rem);
  display:inline-flex; align-items:center; gap:.4rem; min-height:44px; padding:.38rem .68rem;
  border:1px solid #e9bd7942; border-radius:.35rem; color:#eee2d2; background:#171112b8;
  font:550 clamp(.72rem,2.2vw,.82rem)/1.2 system-ui,sans-serif; cursor:pointer;
}
.cinema-expand:hover {background:#241a1be6;}
.cinema-expand-close {display:none;}
.cinema-expand[hidden] {display:none;}
.cinema-expand:focus-visible {outline:3px solid #ffd984; outline-offset:3px;}
html.cinema-immersed {overflow:hidden;}
.cinema-page .cinema-immersive.is-expanded {
  position:fixed; inset:0; z-index:2000; display:grid; place-items:center;
  box-sizing:border-box; width:100%; height:100dvh; overflow:hidden; background:#090608;
  padding-bottom:env(safe-area-inset-bottom,0px);
}
.cinema-page .cinema-immersive.is-expanded .theater-stage {
  width:min(100%,calc((100dvh - env(safe-area-inset-bottom,0px)) * 1.77683));
}
.cinema-immersive.is-expanded .cinema-expand {
  top:max(.42rem,env(safe-area-inset-top,0px)); right:max(.55rem,env(safe-area-inset-right,0px));
  bottom:auto; display:grid; place-items:center; width:44px; height:44px;
  padding:0; border:0; background:none; color:#eee2d2;
}
.cinema-immersive.is-expanded .cinema-expand[hidden] {display:none;}
.cinema-immersive.is-expanded .cinema-expand svg {
  display:block; width:28px; height:28px; padding:5px; box-sizing:border-box;
  border-radius:.35rem; background:#171112a8;
}
.cinema-immersive.is-expanded .cinema-expand:is(:hover,:focus-visible) svg {background:#241a1be6;}
.cinema-immersive.is-expanded .cinema-expand span {
  position:absolute; width:1px; height:1px; padding:0; overflow:hidden;
  clip-path:inset(50%); white-space:nowrap;
}
.cinema-immersive.is-expanded .cinema-expand-open {display:none;}
.cinema-immersive.is-expanded .cinema-expand-close {display:initial;}
.cinema-immersive:fullscreen {background:#090608;}

/* A closer camera position, while keeping the room and audience in frame. */
.cinema-page .cinema-photo .theater-stage {
  background-size:118.2% 118.2%; background-position:50% 28%;
}
.cinema-page .cinema-photo .screen-proscenium {
  left:16.91%; top:18.08%; width:66.22%; height:59.69%; z-index:2;
}
.cinema-lighting {
  position:absolute; inset:0; z-index:1; pointer-events:none; background:#08040b;
  opacity:0; transition:opacity 900ms ease;
}
.is-projecting .cinema-lighting {opacity:.21;}
/* Match the stage background’s 118.2% scale and 50% / 28% position.
   Local masks keep the remaining auditorium at the existing dim level. */
.cinema-playback-look {
  position:absolute; inset:0; overflow:hidden;
  z-index:1; background-image:inherit; background-size:0 0; background-repeat:no-repeat;
  opacity:0; pointer-events:none; transition:opacity 900ms ease;
}
.cinema-playback-look span {
  position:absolute; inset:-5.096% auto auto -9.1%; width:118.2%; height:118.2%;
  background:inherit; background-size:100% 100%; background-position:center;
  mask-size:100% 100%; mask-repeat:no-repeat;
}
.cinema-sconces-off {
  mask-image:url("/media/cinema-sconces-mask.svg");
  filter:brightness(.22) saturate(.58);
}
.cinema-audience-rim {
  mask-image:url("/media/cinema-audience-rim-mask.svg");
  filter:grayscale(.97) sepia(.17) hue-rotate(166deg) saturate(.8) brightness(.84);
}
.is-projecting .cinema-playback-look {opacity:1;}

.cinema-expand {z-index:3;}
@media (orientation:landscape) and (max-height:540px) {
  .cinema-page .cinema-photo .screening-room {
    width:min(100%,max(245px,calc((100svh - var(--header-height,52px) - 14px) * 2.25)));
  }
}
@media (prefers-reduced-motion:reduce) {
  .cinema-lighting,.cinema-playback-look {transition:none;}
}

/* Studio-owned preview, removed before the YouTube player is mounted. */
.cinema-play {position:absolute;inset:0;display:grid;place-items:center;width:100%;height:100%;padding:0;border:0;background:#190e14;cursor:pointer;color:white;}
.cinema-play img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.82;}
.cinema-play-icon {display:grid;place-items:center;position:relative;width:clamp(49px,9vw,76px);height:clamp(39px,6vw,53px);border-radius:.7rem;background:#be142b;color:white;font-size:1.45rem;box-shadow:0 .2rem .6rem #1009;}
.cinema-play:focus-visible {outline:3px solid #ffd984;outline-offset:-4px;}
@media (orientation:portrait) and (max-width:600px) {
  /* Give the embedded controls YouTube's minimum 200 px viewport height. */
  .cinema-page .cinema-photo .has-projector .theater-stage {min-height:336px;}
}
@media (orientation:landscape) and (max-height:540px) {
  .cinema-page header {position:relative;}
  .cinema-page .cinema-photo .cinema-immersive.is-expanded .theater-stage {
    width:min(100%,calc((100dvh - env(safe-area-inset-bottom,0px)) * 2.25));
    transform:translateY(-2%);
  }
}
@media (orientation:portrait) and (max-width:600px) {
  .cinema-page .cinema-photo .has-projector .screen-proscenium {
    left:50%;width:min(100%,max(66.22%,200px));transform:translateX(-50%);
  }
}

/* Lift the auditorium artwork without changing the video or its controls. */
.cinema-page .theater-stage::before {
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:inherit; filter:brightness(1.13);
}

/* The auditorium fades in after walking through the exterior door. */
@media(prefers-reduced-motion:no-preference) {
  .cinema-page .cinema-immersive {animation:auditorium-arrival .48s ease-out both;}
  .cinema-page .cinema-immersive.is-expanded {animation:none;}
  @keyframes auditorium-arrival {from {opacity:.42;} to {opacity:1;}}
}

/* Photographic lobby backdrop; the live posters scroll independently. */
.poster-lobby {
  position:relative; isolation:isolate; margin-top:.32rem;
  border:1px solid #140f0e; border-radius:.25rem;
  box-shadow:0 .35rem .9rem #100a0c65;
  background:#221814 url("/media/cinema/poster-lobby-photo.webp") center / cover no-repeat;
}
.poster-lobby .film-grid {
  --lobby-gutter:clamp(.7rem,2.6vw,1.65rem);
  gap:clamp(.85rem,3.25vw,2.5rem); margin:0;
  padding:clamp(3.05rem,6vw,4.45rem) var(--lobby-gutter) clamp(1.8rem,4vw,3.25rem);
  scroll-padding-inline:var(--lobby-gutter); scrollbar-color:#906b40 #241a1b;
}
.poster-lobby .film-card {
  position:relative; isolation:isolate; flex-basis:calc(29% - .2rem); padding:0;
  min-width:0; gap:.27rem; background:none; text-align:center;
}
/* A single black, glass-fronted display case with an integrated status plate. */
.poster-lobby .film-frame {
  position:relative; box-sizing:border-box; width:100%;
  padding:clamp(.25rem,.7vw,.46rem); border:1px solid #050506; border-radius:.18rem;
  background:
    linear-gradient(155deg,#261c1545,#09090adb 78%),
    #171616 url("/media/cinema/poster-frame-metal.webp") center / cover;
  box-shadow:.16rem .55rem 1rem #080608d9,inset 0 0 0 1px #f6d0a54d,inset 0 0 0 3px #0c0c0dd9;
}
.poster-lobby .film-frame-status {
  display:block; padding:.47rem .05rem .48rem;
  color:#fff2dc; border-bottom:1px solid #fff0ca40;
  font:800 clamp(.78rem,1.5vw,.98rem)/1.1 "Arial Narrow",Arial,sans-serif;
  letter-spacing:.135em; text-align:center; white-space:nowrap;
  text-shadow:0 0 .45rem #ffd99a50;
}
.poster-lobby .film-card .film-poster-art:has(img) {
  position:relative; box-sizing:border-box; padding:0;
  border:1px solid #000; border-radius:0;
}
.poster-lobby .film-poster-art::after {
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(145deg,#ffedc926,transparent 34%,transparent 79%,#fce9d00d);
}
.poster-lobby .film-card:is(:hover,:focus-visible,[aria-current]) .film-frame {
  border-color:#a28b63;
  box-shadow:0 .4rem .95rem #080608d9,0 0 .7rem #f2bd6240,inset 0 0 0 1px #ffffff40;
}
.poster-lobby .film-card-name {margin-top:.45rem; color:#fff0d6;text-shadow:0 1px 3px #000;}
.poster-lobby .film-card-genre {color:#d9bb91;}
@media(max-width:590px) { .poster-lobby .film-card {flex-basis:43%;} }
