:root {
  --bg: #090909;
  --bg-soft: #121010;
  --card: rgba(22, 17, 17, 0.85);
  --card-solid: #181313;
  --text: #f3e5cf;
  --muted: #c6b7a0;
  --gold: #b8860b;
  --gold-soft: #d6ad43;
  --text-top: #0099ff;
  --text-middle: #bbb199;
  --text-bottom: #ff0000;
  --wine: #4a1a1a;
  --wine-dark: #2a0a0a;
  --border: #5d4236;
  --accent: #bcd9e7;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(184, 134, 11, .08), transparent 35%),
    linear-gradient(180deg, #050505, #0b0909 40%, #050505);
  color: var(--text);
  font-family: 'Crimson Text', serif;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.hidden {
  display: none !important;
}

.section {
  position: relative;
  padding: 96px 20px;
}

.section::after,
.card::after,
.framed::after,
.intro-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.section-dark {
  background: linear-gradient(180deg, #060606, rgba(74, 26, 26, .2), #060606);
}

.section-secondary {
  background: linear-gradient(180deg, #060606, rgba(56, 38, 31, .28), #060606);
}

.section-inner {
  position: relative;
  z-index: 1;
  margin: 0 auto;
}

.section-inner.wide {
  max-width: 1240px;
}

.section-inner.narrow {
  max-width: 920px;
}

.section-title {
  margin: 0 0 16px;
  font-family: 'Cinzel', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
  text-align: center;
  letter-spacing: .04em;
}

.section-title.left,
.section-subtitle.left {
  text-align: left;
}

.section-title.small {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-subtitle {
  margin: 0 auto 24px;
  max-width: 820px;
  text-align: center;
  color: var(--accent);
  font-family: 'Bodoni Moda', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.ornament-line,
.line-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.ornament-line span,
.line-full {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.ornament-line span {
  width: min(140px, 24vw);
}

.ornament-line i {
  width: 10px;
  height: 10px;
  display: inline-block;
  background: var(--gold);
  transform: rotate(45deg);
}

.line-full {
  width: 100%;
  margin: 0 auto 28px;
}

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  overflow: hidden;
}

.curtain-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 20;
  pointer-events: none;
}

.curtain-panel {
  width: 50%;
  height: 100%;
  position: relative;
  background: repeating-linear-gradient(90deg, var(--wine) 0 60px, #f5e6d3 60px 120px);
}

.curtain-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .3;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
}

.curtain-panel.left {
  box-shadow: inset -20px 0 40px rgba(0, 0, 0, .7);
  border-right: 4px solid var(--wine-dark);
}

.curtain-panel.right {
  box-shadow: inset 20px 0 40px rgba(0, 0, 0, .7);
  border-left: 4px solid var(--wine-dark);
}

.curtain-panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .65));
}

.intro-screen.opening .curtain-panel {
  transform: translateY(-110%);
  transition: transform 1.2s ease-in-out;
}

.intro-overlay,
.intro-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.intro-overlay {
  background: radial-gradient(circle, rgba(0, 0, 0, .35), rgba(0, 0, 0, .82));
  z-index: 30;
}

.intro-spotlight {
  z-index: 31;
  background: radial-gradient(circle at center, rgba(184, 134, 11, .22), transparent 45%);
  animation: pulse 4s ease-in-out infinite;
}

.intro-content {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.intro-content h1,
.hero-title {
  font-family: 'Rye', serif;
}

.footer h3,
.final-line {
  font-family: 'Smokum', serif;
}

.intro-content h1 {
  margin: 0 0 30px;
  font-size: clamp(3rem, 9vw, 6.2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  background: linear-gradient(
    to bottom,
    var(--text-top) 0%,
    var(--text-middle) 52%,
    var(--text-bottom) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1.5px #000;
  paint-order: stroke fill;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, .12),
    0 0 6px rgba(214, 173, 67, .10),
    0 0 14px rgba(217, 137, 137, .10);
}

.intro-screen.opening .intro-content {
  opacity: 0;
  transition: opacity .35s ease;
}

.btn {
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--text);
  padding: 14px 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary {
  background: rgba(74, 26, 26, .9);
  box-shadow: 0 0 22px rgba(184, 134, 11, .22), 0 0 50px rgba(184, 134, 11, .08);
  font-family: 'Slackey', cursive;
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: .03em;
}

.btn-accent {
  background: var(--gold);
  color: #110e09;
  font-family: 'Slackey', cursive;
  font-weight: 400;
  letter-spacing: .03em;
}

.btn-full {
  width: 100%;
}

.site-content {
  opacity: 1;
  animation: fadeIn .9s ease;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.hero-bg,
.hero-bg img,
.overlay {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    radial-gradient(circle at center, rgba(184, 134, 11, .2), transparent 40%),
    linear-gradient(180deg, rgba(0, 0, 0, .72), rgba(74, 26, 26, .35), rgba(0, 0, 0, .82));
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  text-align: center;
}

.hero-title {
  margin: 18px 0;
  font-size: clamp(3.3rem, 10vw, 7rem);
  line-height: .95;
  font-weight: 400;
  letter-spacing: 0.02em;
  background: linear-gradient(
    to bottom,
    var(--text-top) 0%,
    var(--text-middle) 52%,
    var(--text-bottom) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1.5px #000;
  paint-order: stroke fill;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, .12),
    0 0 6px rgba(214, 173, 67, .10),
    0 0 14px rgba(217, 137, 137, .10);
}

.hero-subtitle {
  margin: 0 0 20px;
  font-family: 'Bodoni Moda', serif;
  font-style: italic;
  color: var(--accent);
  font-size: clamp(1.3rem, 3vw, 2.2rem);
}

.hero-text,
.prose,
.newsletter-copy,
.footer p,
.program-note {
  font-size: 1.18rem;
  line-height: 1.7;
  color: rgba(243, 229, 207, .9);
}

.hero-text {
  max-width: 760px;
  margin: 0 auto;
}

.card {
  position: relative;
  background: var(--card);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(93, 66, 54, .8);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.framed::before,
.media-card::before,
.character-card::before,
.poster-preview::before,
.modal-content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(var(--gold), var(--gold)) top left / 60px 4px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top left / 4px 60px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top right / 60px 4px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top right / 4px 60px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left / 60px 4px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left / 4px 60px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 60px 4px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 4px 60px no-repeat;
  opacity: .5;
}

.aged-paper {
  padding: 40px;
}

.dropcap {
  float: left;
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 4rem;
  line-height: .8;
  margin-right: 10px;
}

.prose p {
  margin: 0 0 18px;
}

.grid {
  display: grid;
  gap: 28px;
}

.cards-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.media-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.character-card,
.media-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card-solid);
  border: 2px solid rgba(93, 66, 54, .78);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.character-card:hover,
.media-card:hover,
.act-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, .45);
}

.card-image-wrap {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}

.character-card:hover img,
.media-card:hover img {
  transform: scale(1.08);
}

.card-image-wrap::after,
.media-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .65));
}

.card-body {
  padding: 24px;
}

.card-body h3,
.media-card h3,
.act-title,
.modal-content h3 {
  font-family: 'Cinzel', serif;
  margin: 0 0 10px;
  letter-spacing: .03em;
}

.card-body .role,
.footer .accent,
.act-time {
  color: var(--accent);
  font-family: 'Bodoni Moda', serif;
  font-style: italic;
}

.card-body p:last-child,
.media-card p {
  color: var(--muted);
  margin: 0;
}

.mystery-card .card-image-wrap {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(184, 134, 11, .12), transparent 35%), linear-gradient(135deg, #321010, #1a1515 58%, #000);
}

.mystery-icon {
  font-size: 4rem;
  color: rgba(243, 229, 207, .35);
}

.mystery-card .card-body {
  text-align: center;
}

.mystery-card .role {
  color: rgba(243, 229, 207, .45);
}

.media-thumb {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.play-badge span {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(184, 134, 11, .8);
  color: #0e0b06;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}

.editor-layout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px;
  align-items: start;
}

.poster-preview {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 22px;
  background: #111;
  border: 4px solid var(--gold);
}

.poster-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
}

.poster-stage.dragging {
  cursor: grabbing;
}

#preview-image {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: none;
  user-select: none;
  transform-origin: center center;
}

.upload-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 24px;
}

.upload-icon {
  font-size: 3rem;
  line-height: 1;
}

.poster-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .9));
}

.controls-card {
  padding: 28px;
}

.label {
  display: block;
  margin: 0 0 10px;
  font-family: 'Cinzel', serif;
  color: var(--text);
}

input[type="file"],
input[type="email"],
input[type="range"] {
  width: 100%;
}

input[type="email"],
input[type="file"] {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(93, 66, 54, .85);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
}

input[type="range"] {
  accent-color: var(--gold);
}

.hint-box {
  margin: 18px 0 24px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(93, 66, 54, .85);
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
}

.hint-box p {
  margin: 8px 0 0;
}

.acts-list {
  display: grid;
  gap: 18px;
}

.act-card {
  position: relative;
  padding: 24px 26px;
  border-radius: 22px;
  border: 2px solid rgba(93, 66, 54, .8);
  background: var(--card);
  transition: transform .35s ease, box-shadow .35s ease;
}

.act-card.featured {
  border-color: var(--gold);
}

.featured-badge {
  position: absolute;
  top: -12px;
  right: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: #100c08;
  font-family: 'Cinzel', serif;
  font-size: .82rem;
  font-weight: 700;
}

.act-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: start;
}

.act-time {
  color: var(--gold-soft);
  font-size: 1.35rem;
  font-weight: 700;
  font-style: normal;
}

.act-copy {
  color: var(--muted);
  margin: 0;
}

.program-note {
  text-align: center;
  color: var(--accent);
  font-style: italic;
  margin-top: 28px;
}

.newsletter-card {
  padding: 44px 34px;
  text-align: center;
}

.newsletter-icon {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.newsletter-form {
  max-width: 460px;
  margin: 26px auto 0;
  display: grid;
  gap: 16px;
}

.legal-copy {
  color: var(--muted);
  font-size: .98rem;
}

.footer {
  position: relative;
  padding: 64px 20px 40px;
  background: linear-gradient(180deg, #050505, rgba(74, 26, 26, .26), #050505);
  border-top: 2px solid rgba(184, 134, 11, .65);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 36px 0;
}

.footer h3 {
  font-size: 2.2rem;
  margin: 0 0 12px;
}

.footer h4 {
  font-family: 'Cinzel', serif;
  margin: 0 0 16px;
}

.footer nav {
  display: grid;
  gap: 10px;
  text-align: center;
}

.footer nav a:hover {
  color: var(--gold-soft);
}

.socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.socials a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(93, 66, 54, .8);
  background: rgba(255, 255, 255, .03);
}

.socials a:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.footer-bottom {
  border-top: 1px solid rgba(93, 66, 54, .8);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.final-line {
  margin: 28px 0 0;
  text-align: center;
  color: var(--gold-soft);
  font-family: 'Sacramento', cursive;
  font-size: 2.4rem;
  font-style: normal;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .9);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: min(940px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 20px auto;
  padding: 28px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
}

.modal-image {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 18px;
  max-height: 72vh;
  object-fit: cover;
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #080808;
  border: 1px solid rgba(93, 66, 54, .7);
  color: var(--muted);
  text-align: center;
  padding: 20px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 500;
  background: rgba(15, 11, 11, .95);
  color: var(--text);
  border: 1px solid rgba(184, 134, 11, .6);
  border-radius: 999px;
  padding: 12px 20px;
  box-shadow: var(--shadow);
}

@keyframes pulse {

  0%,
  100% {
    opacity: .2;
    transform: scale(1);
  }

  50% {
    opacity: .48;
    transform: scale(1.08);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 1100px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .editor-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {

  .cards-grid,
  .media-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .act-row {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 76px 16px;
  }

  .aged-paper,
  .controls-card,
  .newsletter-card,
  .modal-content {
    padding: 22px;
  }

  .cards-grid,
  .media-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(3rem, 14vw, 4.6rem);
  }

  .footer nav,
  .footer-grid div {
    text-align: left;
  }

  .socials {
    justify-content: flex-start;
  }
}

.audio-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 450;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.14), transparent 38%),
    rgba(20, 12, 12, .88);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, .45),
    0 0 18px rgba(184, 134, 11, .18);
  backdrop-filter: blur(8px);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    opacity .22s ease;
}

.audio-toggle:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: var(--gold-soft);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, .5),
    0 0 24px rgba(184, 134, 11, .28);
}

.audio-toggle:active {
  transform: scale(.97);
}

.audio-toggle__icon {
  font-size: 1.35rem;
  line-height: 1;
}

.audio-toggle.is-muted {
  opacity: .82;
  border-color: rgba(93, 66, 54, .95);
}

@media (max-width: 640px) {
  .audio-toggle {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }

  .audio-toggle__icon {
    font-size: 1.15rem;
  }
}

.media-thumb-video {
  aspect-ratio: 16 / 9;
  height: auto;
  background: #000;
}

.media-thumb-video iframe {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
  display: block;
}

.video-placeholder {
  width: 100%;
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .8));
}

.template-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.template-option {
  appearance: none;
  border: 2px solid rgba(93, 66, 54, .85);
  background: rgba(255, 255, 255, .03);
  border-radius: 18px;
  padding: 10px;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  color: var(--text);
}

.template-option:hover {
  transform: translateY(-3px);
}

.template-option.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(184, 134, 11, .2);
}

.template-option img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin-bottom: 8px;
}

.template-option span {
  display: block;
  text-align: center;
  font-family: 'Cinzel', serif;
}

.poster-photo-window {
  position: absolute;
  overflow: hidden;
  z-index: 1;
  cursor: grab;
}

.poster-photo-window.hidden {
  display: none;
}

.poster-template-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  pointer-events: none;
}

#preview-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
  max-height: none;
  user-select: none;
  pointer-events: none;
  transform-origin: center center;
}

.poster-stage .upload-placeholder {
  z-index: 0;
}

@media (max-width: 900px) {
  .template-options {
    grid-template-columns: 1fr;
  }

  .media-thumb-video iframe,
  .video-placeholder {
    min-height: 220px;
  }
}

.poster-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #000;
}

.poster-photo-window {
  position: absolute;
  overflow: hidden;
  z-index: 1;
  cursor: grab;
  background: #000;
}

.poster-template-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 2;
  pointer-events: none;
}

.media-thumb-video video {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: block;
  object-fit: cover;
  background: #000;
}