/* Shared theater theme: velvet-and-gold palette over the stage photo. No purple.
   The other themes override it in theme-club.css, theme-rock.css and theme-adaptive.css;
   stage options: theme-options.css; the control panel layout: theme-layout.css. */
:root {
  --stage-dim: 0.4;
  --qr-scale: 1;
  --gold: #f4c25b;
  --gold-deep: #d99a2b;
  --velvet: #8f1d1d;
  --ink: #f6efe4;
}

html { background: #0b0705; }
/* dvh, not vh: on phones 100vh is the height with the address bar hidden, so a 100vh body is
   taller than the screen whenever the bar shows and the page scrolls by that much (vh = fallback) */
body { color: var(--ink); font-family: "Inter", system-ui, sans-serif; min-height: 100vh; min-height: 100dvh; }

/* Stage photo + darkening layer, fixed so it never scrolls (works on iOS too) */
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; }
body::before { z-index: -2; background: url("/static/img/theater.jpg") center 30% / cover no-repeat; }
body::after {
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 7, 5, .62) 0%, rgba(11, 7, 5, .84) 55%, rgba(11, 7, 5, .96) 100%);
  opacity: calc(0.2 + var(--stage-dim, 0.4) * 0.8);
  transition: opacity 0.3s ease;
}
/* The TV keeps more of the stage visible, darkening the edges like a spotlight */
body.tv::after {
  background: radial-gradient(ellipse 70% 60% at 42% 45%, rgba(11, 7, 5, .38), rgba(11, 7, 5, .9));
}

.font-display { font-family: "Playfair Display", Georgia, serif; }
.text-gold { color: var(--gold); }
.panel {
  background: rgba(14, 9, 6, .62);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(244, 194, 91, .14);
  border-radius: 1rem;
}
.btn-gold { background: linear-gradient(180deg, var(--gold), var(--gold-deep)); color: #1c1206; font-weight: 700; }
.btn-gold:hover { filter: brightness(1.08); }
.btn-gold:disabled { filter: grayscale(.8) brightness(.6); }

/* Sliders: gold track fill, round thumb */
input[type=range] { accent-color: var(--gold); cursor: pointer; }
input[type=range]:disabled { cursor: default; opacity: .4; }

/* Guide Vocal Slider */
.guide-slider {
  width: var(--guide-slider-width, 25%);
  min-width: 5.5rem;
  max-width: 7.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  outline: none;
  transition: width 0.2s ease;
}

body.smiley-guide .guide-slider::-webkit-slider-thumb,
.guide-slider.thumb-smiley::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #f4c25b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctext y='19' font-size='19'%3E%F0%9F%98%8A%3C/text%3E%3C/svg%3E") center/contain no-repeat;
  border: none;
  cursor: pointer;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

body.smiley-guide .guide-slider::-moz-range-thumb,
.guide-slider.thumb-smiley::-moz-range-thumb {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #f4c25b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctext y='19' font-size='19'%3E%F0%9F%98%8A%3C/text%3E%3C/svg%3E") center/contain no-repeat;
  border: none;
  cursor: pointer;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Karaoke word fill: --p runs 0% -> 100% while the word is sung */
.word {
  white-space: pre-wrap;
  background: linear-gradient(90deg, var(--gold) var(--p, 0%), rgba(255, 248, 236, .95) var(--p, 0%));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lyric-shadow { filter: drop-shadow(0 3px 12px rgba(0, 0, 0, .85)); }

.mic-glow { filter: drop-shadow(0 10px 40px rgba(244, 194, 91, .35)); }

/* Party mode: when the singer is on it, sung words shimmer with a moving highlight */
.vibe-shine .word {
  background-image: linear-gradient(100deg, transparent 40%, rgba(255, 250, 230, .9) 50%, transparent 60%),
                    linear-gradient(90deg, var(--gold) var(--p, 0%), rgba(255, 248, 236, .95) var(--p, 0%));
  background-size: 250% 100%, 100% 100%;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { from { background-position: 150% 0, 0 0; } to { background-position: -100% 0, 0 0; } }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: rgba(244, 194, 91, .25); border-radius: 8px; }
.scrollbar-none::-webkit-scrollbar { display: none; }
.scrollbar-none { -ms-overflow-style: none; scrollbar-width: none; }

/* Drag and Drop Queue */
.drop-target-above {
  box-shadow: 0 -2px 0 0 #f4c25b !important;
  border-top-color: #f4c25b !important;
}
.drop-target-below {
  box-shadow: 0 2px 0 0 #f4c25b !important;
  border-bottom-color: #f4c25b !important;
}
.dragging-queue * {
  user-select: none;
}
