/* ---------- Royal Theater modal ---------- */
#royal-theater {
  position: fixed;
  inset: 0;
  z-index: 280;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: "Georgia", serif;
}
#royal-theater.open {
  display: flex;
}
.theater-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(40, 5, 35, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.theater-card {
  position: relative;
  width: min(min(720px, 92vw), 92vh);
  padding: 22px 22px 18px;
  background: linear-gradient(180deg, #fff7fb 0%, #ffe6f2 100%);
  border: 4px solid #ff8ac0;
  border-radius: 22px;
  color: #5a1c3a;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(255, 138, 192, 0.5);
  text-align: center;
}
.theater-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
  color: #b03579;
}
#royal-theater-video {
  width: 100%;
  max-height: 70vh;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: #000;
  display: block;
}
.theater-close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #ff8ac0;
  background: #fff;
  color: #b03579;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 2px 0 rgba(176, 53, 121, 0.18);
}
.theater-close:hover {
  background: #ffe6f2;
}
.theater-close:focus-visible {
  outline: 3px solid rgba(123, 224, 200, 0.85);
  outline-offset: 2px;
}

