#spm-theater {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #0e0913;
  color: #fff3e4;
  --amber: #ffc978;
  --purple: #bd9aff;
}
:where(#spm-theater) * { box-sizing: border-box; }
:where(#spm-theater) [hidden] { display: none !important; }
#spm-theater {
  margin: 0;
  background: radial-gradient(ellipse at 50% 30%, #321521, #100a16 60%, #09070d);
}
:where(#spm-theater) a { color: inherit; }
:where(#spm-theater) a:focus-visible, :where(#spm-theater) button:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
}
:where(#spm-theater) #lobby {
  max-width: 72rem;
  margin: auto;
  padding: 1.65rem clamp(.75rem, 4vw, 3rem) 2.75rem;
  text-align: center;
}
:where(#spm-theater) h1 {
  font: 700 clamp(1.65rem, 4vw, 3.25rem)/1.1 Georgia, serif;
  margin: 0 0 1.35rem;
}
:where(#spm-theater) .marquee { perspective: 850px; }
:where(#spm-theater) .crown {
  display: table;
  margin: 0 auto;
  padding: .55rem 1.5rem .65rem;
  border: 3px double #f1af63;
  border-bottom: 0;
  border-radius: 55% 55% 0 0 / 70% 70% 0 0;
  background: linear-gradient(#832d20, #461019);
  color: #ffe2aa;
  font-size: clamp(.65rem, 2.5vw, .9rem);
  font-weight: 800;
  letter-spacing: .19em;
}
:where(#spm-theater) .panels {
  display: grid;
  grid-template-columns: 1.05fr 2.9fr 1.05fr;
  align-items: stretch;
  border-radius: .65rem;
  background: #3f1118;
  box-shadow: 0 0 2.8rem #ff732b55, 0 .9rem 2rem #0009;
}
:where(#spm-theater) .panel {
  min-width: 0;
  display: grid;
  place-items: stretch;
  padding: .8rem var(--edge);
  --edge: clamp(.25rem, 1vw, .65rem);
  color: #100e0d;
  border: 2px solid #c97847;
  border-radius: .5rem;
  background:
    radial-gradient(circle, #fff0bd 12%, #ffc16b 28%, #f17c37 39%, transparent 57%) top left / 15px 12px repeat-x,
    radial-gradient(circle, #fff0bd 12%, #ffc16b 28%, #f17c37 39%, transparent 57%) bottom left / 15px 12px repeat-x,
    linear-gradient(#803022, #3e1018);
  cursor: pointer;
  text-decoration: none;
}
:where(#spm-theater) .panel:first-child { transform: rotateY(18deg); transform-origin: right; }
:where(#spm-theater) .panel:last-child { transform: rotateY(-18deg); transform-origin: left; }
:where(#spm-theater) .letterboard {
  display: grid;
  place-items: center;
  min-height: clamp(3.6rem, 9vw, 6.6rem);
  padding: .15em;
  background: repeating-linear-gradient(#fffaf1 0 24px, #ddd5c9 25px, #fffaf1 26px);
  box-shadow: inset 0 0 9px #94796780;
  font: 950 clamp(.67rem, 2.25vw, 1.65rem)/1.04 "Arial Black", system-ui, sans-serif;
  letter-spacing: .035em;
  text-transform: uppercase;
}
:where(#spm-theater) .panel[aria-current="true"] .letterboard {
  font-size: clamp(1.03rem, 4.6vw, 3.6rem);
}
:where(#spm-theater) .panel:hover, :where(#spm-theater) .panel:focus-visible { position: relative; z-index: 1; box-shadow: inset 0 0 0 3px #a174ff; }
:where(#spm-theater) .controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin: .75rem 0;
}
:where(#spm-theater) .controls button, :where(#spm-theater) .action {
  min-height: 44px;
  min-width: 44px;
  border: 1px solid #795789;
  border-radius: .45rem;
  background: #25182d;
  color: white;
  font: inherit;
  cursor: pointer;
}
:where(#spm-theater) .controls button { font-size: 1.25rem; }
:where(#spm-theater) .controls button:hover, :where(#spm-theater) .action:hover { background: #4b2869; }
:where(#spm-theater) #selection { margin: 0; min-width: 8rem; color: #f6dcbf; }
:where(#spm-theater) .poster { max-width: 40rem; margin: auto; }
:where(#spm-theater) .poster img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #8c6147;
  border-radius: .5rem;
  background: #24191c;
}
:where(#spm-theater) .action {
  display: inline-grid;
  place-items: center;
  margin-top: .85rem;
  padding: .65rem 1.4rem;
  background: #5722a3;
  font-weight: 750;
  text-decoration: none;
}
:where(#spm-theater) #auditorium { padding: 1.2rem clamp(.65rem, 3vw, 2.5rem) 2rem; text-align: center; }
:where(#spm-theater) .auditorium-heading a { display: inline-block; margin-bottom: .65rem; }
:where(#spm-theater) .auditorium-heading h1 { margin-bottom: .8rem; }
:where(#spm-theater) .proscenium {
  max-width: 100rem;
  margin: 0 auto .85rem;
  padding: clamp(.45rem, 2vw, 1.5rem);
  border: 1px solid #6b3e47;
  border-radius: .75rem;
  background: repeating-linear-gradient(90deg, #260b14, #520f21 10px, #260b14 23px);
  box-shadow: 0 0 2rem #000;
}
:where(#spm-theater) #screen {
  width: 100%;
  min-height: 200px;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 0 0 2px #0a080a, 0 0 0 3px #805d44;
}
:where(#spm-theater) #screen iframe { display: block; width: 100%; height: 100%; border: 0; }

:where(#spm-theater) #screen { position: relative; }
:where(#spm-theater) #screen iframe,
:where(#spm-theater) .screen-poster,
:where(#spm-theater) .screen-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
:where(#spm-theater) .screen-poster {
  display: grid;
  place-items: center;
}
:where(#spm-theater) .screen-poster img { object-fit: contain; }
:where(#spm-theater) .screen-poster :is(button, p) {
  position: relative;
  margin: 0;
}
:where(#spm-theater) .screen-poster p {
  padding: .65rem 1rem;
  background: #25182d;
  color: white;
}
:where(#spm-theater) #screen iframe[hidden] {
  display: block !important;
  visibility: hidden;
}

:where(#spm-theater) .film-details {
  max-width: 100rem;
  margin: 1.25rem auto 0;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid #795789;
  border-radius: .75rem;
  background: #1c1225;
  color: #fff3e4;
  text-align: left;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
:where(#spm-theater) .film-details h2 {
  margin: 0 0 .65rem;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: #ffc978;
}
:where(#spm-theater) #film-synopsis { max-width: 80ch; margin: 0 0 1.25rem; }
:where(#spm-theater) #film-facts { margin: 0; }
:where(#spm-theater) #film-facts > div {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: .25rem 1rem;
  padding: .6rem 0;
  border-top: 1px solid #493354;
}
:where(#spm-theater) #film-facts dt { color: #dfcaff; font-weight: 700; }
:where(#spm-theater) #film-facts dd { margin: 0; }
:where(#spm-theater) .film-source-block { margin-top: 1.25rem; }
:where(#spm-theater) .film-source-block h3 { margin: 0 0 .4rem; font-size: 1rem; }
:where(#spm-theater) #film-sources { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; }
:where(#spm-theater) #film-sources a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #dfcaff;
  text-decoration: underline;
  text-underline-offset: .2em;
}
@media (max-width: 480px) {
  :where(#spm-theater) #film-facts > div { grid-template-columns: minmax(0, 1fr); }
}
