:root {
  --theater-black: #090608;
  --theater-wall: #241018;
  --theater-wall-soft: #3b1823;
  --velvet: #94162a;
  --velvet-deep: #4b0712;
  --velvet-bright: #c72d43;
  --gold: #e4bf64;
  --gold-deep: #76501f;
  --screen-blue: #d8e8ee;
}

* { box-sizing: border-box; }

.theater-body {
  min-height: 100vh;
  margin: 0;
  color: #fff7e5;
  background: transparent;
}

.theater-bar {
  position: relative;
  z-index: 20;
  background: rgba(8, 5, 7, .96);
  border-bottom: 1px solid rgba(228, 191, 100, .32);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .38);
}

.theater {
  position: relative;
  min-height: calc(100vh - 66px);
  overflow: hidden;
  padding: clamp(18px, 3vw, 38px) clamp(12px, 2.5vw, 34px) 32px;
  isolation: isolate;
}

.theater::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0,0,0,.72), transparent 18% 82%, rgba(0,0,0,.72)),
    repeating-linear-gradient(90deg, transparent 0 84px, rgba(228,191,100,.035) 84px 86px),
    linear-gradient(180deg, var(--theater-wall-soft), #160a10 62%, #080507);
}

.theater::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12vh;
  width: 76vw;
  height: 64vh;
  z-index: -1;
  transform: translateX(-50%) perspective(620px) rotateX(57deg);
  transform-origin: bottom;
  background:
    linear-gradient(90deg,
      #3f111a 0 41%, #c19442 41% 41.5%, #7c5927 41.5% 58.5%,
      #c19442 58.5% 59%, #3f111a 59% 100%);
  border: 1px solid rgba(228, 191, 100, .16);
  box-shadow: 0 -35px 80px rgba(0,0,0,.65);
}

.room {
  position: relative;
  width: min(1180px, 100%);
  min-height: min(740px, calc(100vh - 105px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.surface,
.house-lights { pointer-events: none; }

.ceiling {
  position: absolute;
  z-index: -1;
  left: 8%;
  right: 8%;
  top: -38px;
  height: 130px;
  clip-path: polygon(13% 0, 87% 0, 100% 100%, 0 100%);
  background:
    radial-gradient(circle at 20% 62%, #ffd68a 0 3px, transparent 4px),
    radial-gradient(circle at 50% 55%, #ffd68a 0 3px, transparent 4px),
    radial-gradient(circle at 80% 62%, #ffd68a 0 3px, transparent 4px),
    linear-gradient(#180b11, #29131b);
  opacity: .72;
  transition: opacity .9s ease;
}

.wall {
  position: absolute;
  z-index: -1;
  top: 92px;
  bottom: 120px;
  width: 17%;
  background:
    linear-gradient(90deg, rgba(0,0,0,.72), transparent),
    repeating-linear-gradient(90deg, #351620 0 45px, #2c121b 45px 47px);
  border-top: 2px solid rgba(228,191,100,.25);
}

.wall-left {
  left: -7%;
  clip-path: polygon(0 0, 100% 10%, 100% 92%, 0 100%);
}

.wall-right {
  right: -7%;
  transform: scaleX(-1);
  clip-path: polygon(0 0, 100% 10%, 100% 92%, 0 100%);
}

.sconce {
  position: absolute;
  left: 28%;
  width: 10px;
  height: 28px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(#ffe0a2, #ad6d25);
  box-shadow: 0 0 38px 15px rgba(255, 193, 110, .28);
  transition: opacity .9s ease, box-shadow .9s ease;
}

.sconce:first-child { top: 28%; }
.sconce:last-child { top: 64%; }

.house-lights {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: radial-gradient(ellipse at 50% 30%, rgba(255,204,128,.10), transparent 58%);
  transition: opacity .9s ease;
}

.theater.lights-down .ceiling,
.theater.lights-down .house-lights { opacity: .08; }
.theater.lights-down .sconce {
  opacity: .18;
  box-shadow: 0 0 8px 2px rgba(255,193,110,.08);
}

.stage-area {
  position: relative;
  z-index: 4;
  width: min(940px, 86vw);
}

.proscenium {
  position: relative;
  padding: clamp(22px, 3vw, 38px) clamp(22px, 3.4vw, 46px) clamp(25px, 3vw, 42px);
  border-radius: 46% 46% 12px 12px / 22% 22% 12px 12px;
  background:
    linear-gradient(90deg, #5c3d17, #e1bd62 4%, #76531f 8%, #3c260d 14% 86%,
      #76531f 92%, #e1bd62 96%, #5c3d17);
  box-shadow:
    0 0 0 3px #2b1808,
    0 0 0 6px rgba(228,191,100,.52),
    0 26px 70px rgba(0,0,0,.72);
}

.proscenium::before {
  content: "LITTLE SPROUTS PICTURE HOUSE";
  position: absolute;
  left: 14%;
  right: 14%;
  top: 7px;
  z-index: 8;
  text-align: center;
  color: #f5dc94;
  font: 800 clamp(.56rem, 1.1vw, .78rem)/1 var(--serif);
  letter-spacing: .22em;
  text-shadow: 0 2px 2px #321b08;
}

.valance {
  position: absolute;
  z-index: 9;
  left: 34px;
  right: 34px;
  top: 30px;
  height: 62px;
  border-radius: 24px 24px 42% 42%;
  background:
    radial-gradient(ellipse at 10% 0, transparent 46%, var(--velvet-deep) 47% 52%, transparent 53%) 0 24px/20% 52px repeat-x,
    repeating-linear-gradient(90deg,
      var(--velvet-deep) 0 5%, var(--velvet) 7%, var(--velvet-bright) 9%,
      var(--velvet) 11%, var(--velvet-deep) 14%);
  box-shadow: inset 0 -18px 24px rgba(0,0,0,.46), 0 7px 14px rgba(0,0,0,.45);
}

.screen-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 8px solid #160e0b;
  border-radius: 7px;
  background: #020304;
  box-shadow:
    inset 0 0 0 2px rgba(228,191,100,.3),
    inset 0 0 45px rgba(0,0,0,.85),
    0 10px 30px rgba(0,0,0,.62);
}

.screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #010203;
}

.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  box-shadow: inset 0 0 65px rgba(0,0,0,.35);
}

.screen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.screen-idle {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 11px;
  padding: 38px;
  text-align: center;
  color: #fff8e8;
  background:
    radial-gradient(circle at 50% 42%, rgba(103,148,156,.28), transparent 28%),
    linear-gradient(135deg, #16252d, #070a0c 70%);
  transition: opacity .4s ease;
}

.theater.playing .screen-idle {
  opacity: 0;
  pointer-events: none;
}

.screen-kicker {
  margin: 0;
  color: var(--gold);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.screen-idle h1 {
  margin: 0;
  max-width: 18ch;
  color: #fff8e7;
  font: 500 clamp(1.55rem, 4vw, 3.15rem)/1.04 var(--serif);
}

.screen-idle p:not(.screen-kicker) {
  margin: 0;
  max-width: 46ch;
  color: rgba(255,248,231,.7);
  font: clamp(.78rem, 1.4vw, 1rem)/1.5 var(--serif);
}

.big-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 14px 26px;
  border: 2px solid #f4d77f;
  border-radius: 999px;
  background: linear-gradient(#e6be59, #b27b25);
  color: #1c1013;
  box-shadow: 0 7px 0 #624216, 0 12px 28px rgba(0,0,0,.38);
  font: 900 .95rem var(--serif);
  cursor: pointer;
}

.big-play:hover { filter: brightness(1.1); }
.big-play:active { transform: translateY(4px); box-shadow: 0 3px 0 #624216; }

.curtain {
  position: absolute;
  z-index: 7;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background:
    linear-gradient(90deg, transparent 92%, rgba(0,0,0,.32)),
    repeating-linear-gradient(90deg,
      var(--velvet-deep) 0 6%, var(--velvet) 9%, var(--velvet-bright) 12%,
      var(--velvet) 16%, var(--velvet-deep) 20%);
  box-shadow: inset 0 -35px 55px rgba(0,0,0,.45);
  transition: transform 1.65s cubic-bezier(.72, 0, .18, 1);
  will-change: transform;
}

.curtain::after {
  content: "";
  position: absolute;
  top: 53%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-deep), 0 0 18px rgba(228,191,100,.55);
}

.curtain-left { left: 0; transform-origin: left center; }
.curtain-right { right: 0; transform-origin: right center; }
.curtain-left::after { right: 9%; }
.curtain-right::after { left: 9%; }

.theater.lights-down .curtain-left { transform: translateX(-88%) scaleX(.5); }
.theater.lights-down .curtain-right { transform: translateX(88%) scaleX(.5); }

.curtain-play {
  position: absolute;
  z-index: 11;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  padding: 13px 23px;
  border: 2px solid #f4d77f;
  border-radius: 999px;
  color: #1b1013;
  background: linear-gradient(#efd274, #ba8128);
  box-shadow: 0 6px 0 #614016, 0 10px 28px rgba(0,0,0,.45);
  font: 900 clamp(.72rem, 1.4vw, .95rem) var(--serif);
  cursor: pointer;
  transition: opacity .25s ease, transform .25s ease;
}

.curtain-play:hover { filter: brightness(1.08); }
.curtain-play:active { transform: translate(-50%, calc(-50% + 4px)); box-shadow: 0 2px 0 #614016; }
.theater.lights-down .curtain-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.92);
}

.audience {
  position: relative;
  z-index: 10;
  width: min(1040px, 95vw);
  height: 280px;
  margin-top: -10px;
  perspective: 950px;
  pointer-events: none;
}

.seat-row {
  position: absolute;
  left: 50%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(4px, 1vw, 12px);
  transform: translateX(-50%);
  transform-origin: center bottom;
}

.seat-row[data-row="0"] { top: 5px; width: 72%; transform: translateX(-50%) scale(.68); opacity: .72; }
.seat-row[data-row="1"] { top: 73px; width: 84%; transform: translateX(-50%) scale(.84); opacity: .86; }
.seat-row[data-row="2"] { top: 142px; width: 98%; transform: translateX(-50%); }

.seat {
  position: relative;
  width: clamp(58px, 7.5vw, 90px);
  height: 126px;
}

.seat::after {
  content: "";
  position: absolute;
  z-index: 4;
  left: 4%;
  right: 4%;
  bottom: 0;
  height: 66px;
  border-radius: 18px 18px 5px 5px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.25), transparent 20% 80%, rgba(0,0,0,.28)),
    linear-gradient(#841b2c, #4a0c16 75%);
  box-shadow: inset 0 3px rgba(255,255,255,.09), 0 6px 12px rgba(0,0,0,.45);
}

.seat::before {
  content: "";
  position: absolute;
  z-index: 5;
  left: 15%;
  right: 15%;
  bottom: 13px;
  height: 3px;
  border-radius: 2px;
  background: rgba(228,191,100,.28);
}

.seat-figure {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 50px;
  width: 90%;
  height: 96px;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%);
  filter: brightness(.72) saturate(.75) drop-shadow(0 5px 6px rgba(0,0,0,.5));
  transition: filter .9s ease;
}

.theater.lights-down .seat-figure {
  filter:
    brightness(.20) saturate(.35)
    drop-shadow(0 -3px 7px rgba(168,215,235,.38));
}

.theater.lights-down .seat::after { filter: brightness(.34); }

.theater-controls {
  position: relative;
  z-index: 14;
  min-height: 45px;
  margin-top: -2px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.theater-controls button {
  padding: .65rem 1.1rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: #fff5d7;
  background: rgba(72,20,31,.92);
  font: 800 .78rem var(--serif);
  cursor: pointer;
}

.theater-controls button:hover { background: #7d1b2a; }
.lights-note { color: rgba(255,240,210,.48); font-size: .72rem; }
.theater.lights-down .lights-note { opacity: 0; }

.now-showing {
  position: relative;
  z-index: 14;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  width: min(760px, 94vw);
  margin: 10px auto 0;
  transition: opacity .4s ease;
}

.theater.lights-down .now-showing {
  opacity: 0;
  pointer-events: none;
}

.bill {
  flex: 1 1 260px;
  display: grid;
  gap: 4px;
  padding: 13px 16px;
  text-align: left;
  border: 1px solid rgba(228,191,100,.32);
  border-radius: 12px;
  color: #fff6df;
  background: linear-gradient(135deg, rgba(91,29,42,.8), rgba(25,12,17,.9));
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
  cursor: pointer;
}

.bill:hover,
.bill[aria-current="true"] {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(132,42,57,.88), rgba(43,19,27,.94));
}

.bill em {
  color: var(--gold);
  font-size: .6rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.bill b { font: 500 1rem var(--serif); }
.bill span { color: rgba(255,246,223,.62); font-size: .72rem; line-height: 1.35; }

@media (max-width: 760px) {
  .theater { padding-inline: 8px; }
  .proscenium { padding: 26px 16px 18px; border-radius: 26px 26px 8px 8px; }
  .proscenium::before { top: 7px; font-size: .46rem; }
  .valance { left: 14px; right: 14px; top: 21px; height: 42px; }
  .audience { height: 225px; margin-top: -3px; }
  .seat-row[data-row="0"] { top: 0; }
  .seat-row[data-row="1"] { top: 53px; }
  .seat-row[data-row="2"] { top: 110px; }
  .seat { height: 110px; }
  .seat::after { height: 55px; }
  .seat-figure { height: 78px; bottom: 42px; }
  .wall { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .curtain, .curtain-play, .house-lights, .sconce, .seat-figure, .now-showing { transition: none; }
  .theater.lights-down .curtain-left { transform: translateX(-100%); }
  .theater.lights-down .curtain-right { transform: translateX(100%); }
}
