/* ==========================================================================
   A CHRISTMAS CAROLING GALA — THEATER & GSAP STAGE STYLING
   ========================================================================== */

:root {
  --theater-bg: #0b090a;
  --curtain-red-dark: #3a0007;
  --curtain-red-mid: #780016;
  --curtain-red-bright: #a8182b;
  --curtain-red-highlight: #d90429;
  --gold-primary: #d4af37;
  --gold-light: #f3e5ab;
  --gold-glow: rgba(212, 175, 55, 0.45);
  --stage-wood-dark: #120d09;
  --stage-wood-mid: #2b1810;
  --stage-wood-light: #482618;
  --text-cream: #fbf8f3;
  --text-muted: #d0c7bd;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-display: 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--theater-bg);
  color: var(--text-cream);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

#theater-app {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   AMBIENT ATMOSPHERE & PARTICLES
   -------------------------------------------------------------------------- */
.theater-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%, transparent 40%, rgba(5, 3, 4, 0.85) 90%),
              radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.9) 10%, transparent 60%);
  z-index: 25;
}

#snow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 22;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   THE STAGE
   -------------------------------------------------------------------------- */
.stage-container {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  perspective: 1200px;
  overflow: hidden;
  background-color: #1a0004;
}

/* Back Red Velvet Curtain Wall */
.curtain-wall-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #600010;
  overflow: hidden;
  z-index: 1;
}

.curtain-folds-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    #320008 0px,
    #4a000d 28px,
    #7a0018 56px,
    #990422 75px,
    #590011 96px,
    #320008 120px
  );
  filter: contrast(1.15) brightness(0.92);
  box-shadow: inset 0 -60px 100px rgba(0, 0, 0, 0.85),
              inset 0 60px 100px rgba(0, 0, 0, 0.7);
}

/* Follow Spotlights */
.spotlight {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(45px);
  mix-blend-mode: screen;
  z-index: 5;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-main {
  width: 480px;
  height: 580px;
  top: 15%;
  left: 45%;
  background: radial-gradient(ellipse at center, rgba(255, 235, 185, 0.55) 0%, rgba(255, 180, 100, 0.25) 50%, transparent 75%);
  opacity: 0.85;
}

.spotlight-secondary {
  width: 700px;
  height: 400px;
  bottom: 10%;
  left: 28%;
  background: radial-gradient(ellipse at center, rgba(255, 240, 210, 0.35) 0%, rgba(200, 30, 60, 0.15) 60%, transparent 80%);
  opacity: 0.6;
}

/* Stage Floor & Footlights */
.stage-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(80px, 14vh, 140px);
  background: linear-gradient(180deg, #321c10 0%, #1c0e08 40%, #0d0603 100%);
  border-top: 3px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 -15px 35px rgba(0, 0, 0, 0.9);
  z-index: 10;
}

.stage-planks {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 120px,
    rgba(0, 0, 0, 0.45) 121px,
    transparent 122px
  ),
  linear-gradient(0deg, rgba(0,0,0,0.6) 0%, transparent 70%);
}

.footlights-rail {
  position: absolute;
  top: -8px;
  left: 5%;
  right: 5%;
  display: flex;
  justify-content: space-around;
}

.footlight {
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #fff3c4 20%, #d4af37 80%);
  border-radius: 50%;
  box-shadow: 0 0 16px 6px rgba(255, 225, 140, 0.8),
              0 -15px 30px 10px rgba(255, 200, 100, 0.4);
}

/* --------------------------------------------------------------------------
   CAST ENSEMBLE RIG (Reference Image Pose & Choreography)
   -------------------------------------------------------------------------- */
.cast-ensemble {
  position: absolute;
  bottom: clamp(65px, 11vh, 95px);
  left: 50%;
  transform: translateX(-50%) scale(var(--cast-scale, 1));
  transform-origin: 50% 100%;
  width: 900px;
  height: 380px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 8;
  pointer-events: none;
}

.performer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  cursor: pointer;
  pointer-events: auto;
  transform-origin: 50% 95%;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
  transition: filter 0.25s ease;
}

.performer:hover {
  filter: drop-shadow(0 0 15px rgba(255, 230, 150, 0.6));
}

.char-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* Individual Performer Dimensions & Layout (matching Kekkai Sensen ED) */
.performer-zapp {
  width: 140px;
  height: 290px;
  margin-right: -12px;
  z-index: 1;
}

.performer-steven {
  width: 160px;
  height: 310px;
  margin-right: -10px;
  z-index: 2;
}

.performer-chain {
  width: 120px;
  height: 270px;
  margin-right: -10px;
  z-index: 3;
}

.performer-klaus {
  width: 175px;
  height: 350px;
  margin-right: -15px;
  z-index: 4;
}

.performer-leo {
  width: 115px;
  height: 250px;
  margin-right: -12px;
  z-index: 5;
}

.performer-k-k {
  width: 135px;
  height: 315px;
  z-index: 3;
}

/* Dramatic drop shadow cast against the red velvet curtain backdrop */
.performer::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 70%;
  height: 90%;
  background: rgba(18, 0, 4, 0.82);
  filter: blur(12px);
  transform-origin: bottom center;
  transform: skewX(-20deg) scaleY(0.9) translateY(4px);
  z-index: -1;
  border-radius: 40px;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   FRONT RED VELVET CURTAINS & PELMET
   -------------------------------------------------------------------------- */
.curtain-assembly {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none;
  overflow: hidden;
}

/* Valance / Pelmet with Swags and Gold Trim */
.curtain-pelmet {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 24;
  overflow: hidden;
  background: linear-gradient(180deg, #2b0006 0%, #680014 50%, #8b001b 100%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.85);
  display: flex;
}

.pelmet-swag {
  flex: 1;
  height: 100%;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: radial-gradient(ellipse at 50% 0%, #a80524 20%, #4a000e 80%);
  border-bottom: 4px solid var(--gold-primary);
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.6), 0 4px 10px rgba(0,0,0,0.5);
}

.pelmet-fringe {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold-primary) 0px,
    var(--gold-primary) 4px,
    #5a430b 5px,
    var(--gold-light) 6px
  );
}

/* Heavy Velvet Left & Right Panes */
.curtain-drape {
  position: absolute;
  top: 0;
  width: 51%;
  height: 100%;
  pointer-events: auto;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
  background: repeating-linear-gradient(
    90deg,
    #240005 0px,
    #4a000c 20px,
    #88021a 45px,
    #b30626 65px,
    #690013 85px,
    #240005 110px
  );
}

.curtain-left {
  left: 0;
  border-right: 3px solid rgba(212, 175, 55, 0.35);
  transform-origin: left top;
}

.curtain-right {
  right: 0;
  border-left: 3px solid rgba(212, 175, 55, 0.35);
  transform-origin: right top;
}

.velvet-shading {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 20%, transparent 75%, rgba(0,0,0,0.7) 100%),
              radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}

/* Gold Braided Tiebacks / Tassels */
.curtain-tassel {
  position: absolute;
  top: 55%;
  width: 44px;
  height: 70px;
  background: radial-gradient(circle at 50% 30%, #ffd700, #b8860b 70%);
  border-radius: 8px 8px 50% 50%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7), 0 0 12px var(--gold-glow);
  opacity: 0.95;
}

.left-tassel {
  right: 15px;
}

.right-tassel {
  left: 15px;
}

/* --------------------------------------------------------------------------
   THE AGUINALDO / DONATION REVEAL CARD
   -------------------------------------------------------------------------- */
.aguinaldo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 22;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.aguinaldo-overlay.active {
  pointer-events: auto;
  visibility: visible;
}

.aguinaldo-card {
  position: relative;
  width: 90%;
  max-width: 440px;
  max-height: 86vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-primary) transparent;
  background: linear-gradient(145deg, #18090d 0%, #290d15 50%, #15060a 100%);
  border: 2px solid var(--gold-primary);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(212, 175, 55, 0.35);
  opacity: 0;
}

/* Victorian Corner Flourishes */
.card-ornament {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--gold-primary);
  border-style: solid;
  pointer-events: none;
}

.ornament-tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.ornament-tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.ornament-bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.ornament-br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

.card-badge {
  display: inline-block;
  padding: 4px 16px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 20px;
  margin-bottom: 12px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff9ea;
  line-height: 1.25;
  margin-bottom: 8px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.card-subtitle {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* QR Showcase Box */
.qr-showcase {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 14px 10px;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 0 0 1px #e2e8f0;
  max-width: 260px;
}

.qr-frame {
  width: 100%;
  display: flex;
  justify-content: center;
}

.qr-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  max-width: 220px;
  border-radius: 8px;
  display: block;
}

.bank-details {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.bank-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0b2545;
  letter-spacing: 0.05em;
}

.account-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #133c55;
  letter-spacing: 0.04em;
}

.account-number {
  font-size: 0.75rem;
  color: #596579;
  letter-spacing: 0.1em;
}

/* Action Buttons */
.card-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary) 0%, #b8860b 100%);
  color: #1c0e08;
  border: none;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffd700 0%, var(--gold-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-cream);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   LOBBY / MARQUEE START SCREEN
   -------------------------------------------------------------------------- */
.lobby-screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 23;
  background: rgba(5, 2, 4, 0.82);
  backdrop-filter: blur(8px);
}

.marquee-board {
  position: relative;
  max-width: 580px;
  width: 90%;
  background: linear-gradient(160deg, #1b070c 0%, #2c0e16 60%, #150509 100%);
  border: 3px solid var(--gold-primary);
  border-radius: 18px;
  padding: 44px 32px 38px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px var(--gold-glow);
}

.marquee-chaser-lights {
  position: absolute;
  top: 10px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
}

.bulb {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffeb99;
  box-shadow: 0 0 10px 3px rgba(255, 220, 100, 0.85);
  animation: bulbFlash 1.2s infinite alternate ease-in-out;
}

.bulb:nth-child(even) {
  animation-delay: 0.6s;
}

@keyframes bulbFlash {
  0% { opacity: 0.35; filter: drop-shadow(0 0 2px #d4af37); }
  100% { opacity: 1; filter: drop-shadow(0 0 8px #fff099); }
}

.marquee-header {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.marquee-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #fff9ea;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.4);
  margin-bottom: 12px;
}

.marquee-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 32px;
}

.btn-curtain-rise {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #120905;
  background: linear-gradient(135deg, #ffd700 0%, var(--gold-primary) 50%, #b8860b 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5), 0 0 30px var(--gold-glow);
  transition: all 0.25s ease;
}

.btn-curtain-rise:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 35px rgba(212, 175, 55, 0.7), 0 0 40px var(--gold-glow);
}

.play-icon {
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   BOTTOM CONTROL BAR & ORCHESTRA PIT MINI MONITOR
   -------------------------------------------------------------------------- */
.stage-controls-dock {
  position: relative;
  width: 100%;
  height: 72px;
  background: linear-gradient(180deg, #15090c 0%, #0c0406 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 30;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.75);
}

/* Retro CRT Orchestra Pit TV Monitor */
.orchestra-pit {
  display: flex;
  align-items: center;
}

.pit-tv-frame {
  position: relative;
  width: 140px;
  height: 52px;
  background: #141416;
  border: 2px solid #5a4b2a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8), 0 3px 8px rgba(0, 0, 0, 0.5);
}

.pit-tv-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 14px;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
  z-index: 5;
}

.rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e63946;
  box-shadow: 0 0 6px #e63946;
  animation: recBlink 1s infinite alternate;
}

@keyframes recBlink {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

.pit-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-light);
}

.pit-equalizer {
  position: absolute;
  top: 14px;
  left: 0;
  width: 140px;
  height: 38px;
  background: #080608;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  padding: 0 14px 6px;
}

.eq-bar {
  width: 6px;
  background: linear-gradient(180deg, #ff4d6d 0%, var(--gold-primary) 50%, #2a9d8f 100%);
  border-radius: 2px;
  height: 6px;
  transition: height 0.1s ease;
}

.pit-equalizer.active .eq-1 { animation: eqBounce 0.4s infinite alternate ease-in-out; }
.pit-equalizer.active .eq-2 { animation: eqBounce 0.6s infinite alternate ease-in-out 0.1s; }
.pit-equalizer.active .eq-3 { animation: eqBounce 0.35s infinite alternate ease-in-out 0.2s; }
.pit-equalizer.active .eq-4 { animation: eqBounce 0.5s infinite alternate ease-in-out 0.15s; }
.pit-equalizer.active .eq-5 { animation: eqBounce 0.42s infinite alternate ease-in-out 0.05s; }
.pit-equalizer.active .eq-6 { animation: eqBounce 0.58s infinite alternate ease-in-out 0.25s; }
.pit-equalizer.active .eq-7 { animation: eqBounce 0.38s infinite alternate ease-in-out 0.18s; }

@keyframes eqBounce {
  0% { height: 4px; opacity: 0.6; }
  50% { height: 26px; opacity: 1; }
  100% { height: 12px; opacity: 0.8; }
}

/* Playback Controls & Progress Bar */
.playback-controls {
  flex: 1;
  max-width: 720px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 20px;
  min-width: 0;
}

.control-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.control-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-primary);
  transform: scale(1.06);
}

.time-track-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.track-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.track-title {
  color: #fffaf0;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.track-time {
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 2px 10px;
  border-radius: 12px;
  flex-shrink: 0;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.progress-bar-container {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  background: linear-gradient(90deg, #d4af37, #ffd700);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.skip-btn {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 20px;
  padding: 8px 16px;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.skip-btn:hover {
  background: rgba(212, 175, 55, 0.3);
  color: #ffffff;
  box-shadow: 0 0 12px var(--gold-glow);
}

/* --------------------------------------------------------------------------
   MUSIC SETTINGS MODAL
   -------------------------------------------------------------------------- */
.settings-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.music-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.music-modal-card {
  width: 90%;
  max-width: 440px;
  background: #1c0c11;
  border: 1px solid var(--gold-primary);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 25px var(--gold-glow);
}

.music-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.music-modal-header h3 {
  font-family: var(--font-serif);
  color: var(--gold-light);
  font-size: 1.2rem;
}

.close-modal-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.close-modal-btn:hover {
  color: #fff;
}

.btn-primary-alt {
  width: 100%;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.08) 100%);
  border: 1px solid var(--gold-primary);
  border-radius: 10px;
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary-alt:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.45) 0%, rgba(212, 175, 55, 0.2) 100%);
  color: #fff;
  transform: translateY(-1px);
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.input-with-btn {
  display: flex;
  gap: 8px;
}

.input-with-btn input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-size: 0.85rem;
}

.input-with-btn input:focus {
  outline: none;
  border-color: var(--gold-primary);
}

.divider {
  display: flex;
  align-items: center;
  margin: 16px 0;
  text-align: center;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.divider span {
  padding: 0 10px;
  font-size: 0.7rem;
  color: var(--gold-light);
  letter-spacing: 0.1em;
}

#mp3-file-input {
  width: 100%;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN ADAPTATIONS (Desktop, Tablet, Mobile)
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  :root {
    --cast-scale: 0.88;
  }
}

@media (max-width: 860px) {
  :root {
    --cast-scale: 0.72;
  }
}

@media (max-width: 680px) {
  :root {
    --cast-scale: 0.52;
  }
  .stage-controls-dock {
    height: 64px;
    padding: 0 12px;
    gap: 8px;
  }
  .orchestra-pit {
    display: none; /* Hide mini CRT TV on mobile so controls breathe */
  }
  .playback-controls {
    margin-left: 0;
    max-width: 100%;
    gap: 12px;
  }
  .control-btn {
    width: 38px;
    height: 38px;
  }
  .track-title {
    font-size: 0.74rem;
  }
  .track-time {
    font-size: 0.70rem;
    padding: 2px 6px;
  }
  .skip-btn {
    padding: 6px 10px;
    font-size: 0.72rem;
  }
  .marquee-board {
    padding: 26px 16px;
  }
  .marquee-title {
    font-size: 1.65rem;
  }
  .marquee-tagline {
    font-size: 0.82rem;
    margin-bottom: 22px;
  }
  .btn-curtain-rise {
    padding: 12px 24px;
    font-size: 0.82rem;
  }
  .aguinaldo-card {
    padding: 20px 16px;
  }
  .card-title {
    font-size: 1.15rem;
  }
  .card-subtitle {
    font-size: 0.8rem;
    margin-bottom: 14px;
  }
  .qr-showcase {
    max-width: 210px;
    padding: 10px;
    margin-bottom: 14px;
  }
  .btn-primary, .btn-secondary {
    padding: 8px 14px;
    font-size: 0.78rem;
  }
}

@media (max-width: 440px) {
  :root {
    --cast-scale: 0.42;
  }
  .playback-controls {
    gap: 8px;
  }
  .control-btn {
    width: 34px;
    height: 34px;
  }
  .skip-btn {
    padding: 5px 8px;
    font-size: 0.68rem;
  }
}

@media (max-width: 360px) {
  :root {
    --cast-scale: 0.36;
  }
}
