:root {
  --bg: #140818;
  --ink: #fff8fc;
  --muted: #e4d0ef;
  --dim: #cbb6da;
  --pink: #ff4fa3;
  --pink-deep: #ff2d86;
  --gold: #ffd166;
  --cyan: #7ef6ee;
  --card: rgba(42, 18, 58, 0.82);
  --line: rgba(255, 248, 252, 0.16);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  font-family: "Outfit", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 8% -10%, rgba(255, 79, 163, 0.48), transparent 46%),
    radial-gradient(ellipse at 110% 0%, rgba(126, 246, 238, 0.22), transparent 42%),
    radial-gradient(ellipse at 50% 120%, rgba(150, 90, 255, 0.38), transparent 48%),
    var(--bg);
}
body::before {
  content: "♪";
  position: fixed;
  right: -1rem;
  bottom: -2.5rem;
  font-family: "Lilita One", "Trebuchet MS", sans-serif;
  font-size: 16rem;
  color: rgba(255, 255, 255, 0.035);
  pointer-events: none;
  line-height: 1;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); }
button, input, summary { font: inherit; }
h1, h2, .brand-title {
  font-family: "Lilita One", "Trebuchet MS", sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: 1.45rem; }
p { margin: 0; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: #2a0614;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  z-index: 20;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(1080px, calc(100% - 1.25rem));
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 1.5rem;
}
main { flex: 1; }

.top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem 1.2rem;
  padding: 1.1rem 0 0.4rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}
.brand-title {
  display: block;
  font-size: 1.85rem;
  text-shadow: 0 0 16px rgba(255, 79, 163, 0.75);
}
.brand-slogan {
  display: block;
  margin-top: 0.12rem;
  color: var(--gold);
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1.25;
}
.eq {
  width: 34px;
  height: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex: 0 0 auto;
}
.eq span {
  display: block;
  width: 5px;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(var(--cyan), var(--pink));
}

.nav { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.nav a, .count, .genre, .status-pill, .chip {
  border-radius: 999px;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.45rem 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}
.nav a.is-active, .chip.is-on {
  background: linear-gradient(100deg, var(--pink), #ff8a3d);
  color: #2a0614;
  border-color: transparent;
  font-weight: 700;
}
.icon-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.nav a.icon-btn {
  width: 44px;
  height: 44px;
  padding: 0;
}
.nav-pop { position: relative; }
.nav-pop > summary { list-style: none; }
.nav-pop > summary::-webkit-details-marker { display: none; }
.nav-pop[open] > summary {
  background: linear-gradient(100deg, var(--pink), #ff8a3d);
  color: #2a0614;
  border-color: transparent;
}
.nav-pop-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.55rem);
  z-index: 20;
  width: min(24rem, calc(100vw - 1.5rem));
  padding: 1rem;
  background: #2a1238;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.nav-pop-panel .settings-grid { margin-top: 0.7rem; }
.nav-pop-panel form + form { margin-top: 0.8rem; }
.night-users {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.night-users > strong { color: var(--gold); }
.night-users .meta { margin-top: 0.35rem; }
.night-user-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.6rem;
  max-height: 15rem;
  overflow-y: auto;
}
.night-user-list form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0 !important;
  padding: 0.4rem 0.5rem 0.4rem 0.7rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}
.night-user-list form span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.night-user-list .btn { padding: 0.35rem 0.6rem; }
.stage-credit {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  text-align: center;
}
.stage-credit-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.15rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.14);
  border: 1px solid rgba(255, 209, 102, 0.5);
  color: var(--gold);
  font-family: "Lilita One", "Trebuchet MS", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-shadow: 0 0 14px rgba(255, 209, 102, 0.45);
}
.count {
  display: inline-block;
  min-width: 1.3rem;
  text-align: center;
  background: #2a0614;
  color: var(--gold);
  font-size: 0.8rem;
  padding: 0.05rem 0.35rem;
}

.page-head, .hero-card, .empty-card, .panel, .song-card, .queue-card, .library-card, .stage-banner, .search-panel, .genre-panel, .voting-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.page-head, .hero-card, .empty-card, .stage-banner { padding: 1.3rem 1.25rem 1.4rem; }
.page-head { margin: 0.8rem 0 1rem; }
.kicker {
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.lead, .hint, .meta, .artist { color: var(--muted); }
.lead { margin-top: 0.55rem; max-width: 42rem; }
.slots { margin-top: 0.7rem; }
.slots strong { color: var(--gold); }
.voting-card {
  margin: 0.8rem 0 1rem;
  padding: 1.2rem;
  border-color: rgba(255, 209, 102, 0.55);
}
body.voting-active { overflow: hidden; }
body.voting-active .top,
body.voting-active main > :not([data-voting-slot]) {
  display: none !important;
}
body.voting-active [data-voting-slot] {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 1rem;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 79, 163, 0.45), transparent 42%),
    radial-gradient(circle at 85% 90%, rgba(126, 246, 238, 0.22), transparent 42%),
    var(--bg);
}
body.voting-active .voting-card {
  width: min(38rem, 100%);
  margin: auto;
  padding: clamp(1.25rem, 5vw, 2.25rem);
  border-color: rgba(255, 209, 102, 0.8);
  box-shadow: 0 0 50px rgba(255, 79, 163, 0.3);
}
body.voting-active .voting-card h2 { font-size: clamp(2rem, 7vw, 3.5rem); }
.voting-song { margin-top: 0.25rem; color: var(--muted); }
.vote-form { display: grid; gap: 1rem; margin-top: 1rem; }
.rating-field { margin: 0; padding: 0; border: 0; }
.rating-field legend { margin-bottom: 0.25rem; font-weight: 700; }
.stars { display: flex; gap: 0.3rem; width: fit-content; }
.stars label {
  display: block;
  position: relative;
  color: rgba(255, 255, 255, 0.22);
  font-size: 2.35rem;
  line-height: 1;
  cursor: pointer;
}
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label:has(input:checked),
.stars label:has(~ label input:checked),
.stars label:hover,
.stars label:has(~ label:hover) {
  color: var(--gold);
  text-shadow: 0 0 14px rgba(255, 209, 102, 0.45);
}
.stars label:focus-within {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}
.vote-done { margin-top: 0.8rem; color: var(--gold); font-weight: 700; }
.vote-wait { margin-top: 0.45rem; color: var(--muted); }
.vote-progress { margin: 0.8rem 0; }
.vote-progress strong { color: var(--gold); }
.vote-complete { display: block; margin-top: 0.2rem; color: var(--cyan); font-weight: 700; }
.admin-voting-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}
.admin-voting-head .kicker { margin: 0; }
.pending-voters {
  margin: 0 0 1rem;
  padding: 0.75rem;
  border-radius: 14px;
  background: rgba(255, 209, 102, 0.09);
  border: 1px solid rgba(255, 209, 102, 0.28);
}
.pending-voters > strong { color: var(--gold); }
.pending-voters ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0.55rem 0 0;
}
.pending-voters li {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}
.admin-voting form { margin-top: 0.8rem; }
.admin-voting .voting-actions {
  margin: 1.5rem 0 1.4rem;
  gap: 0.75rem;
}
.btn-calculate-votes {
  padding: 0.42rem 0.72rem;
  font-size: 0.88rem;
}

.hero-card {
  max-width: 34rem;
  margin: 8vh auto 2rem;
  position: relative;
  overflow: hidden;
}
.hero-card::after {
  content: "♫";
  position: absolute;
  right: 0.4rem;
  bottom: -1.3rem;
  font-family: "Lilita One", sans-serif;
  font-size: 7rem;
  color: rgba(255, 79, 163, 0.16);
  pointer-events: none;
}
.hero-card form, .song-form, .sing-form, .settings-grid { display: grid; gap: 0.7rem; margin-top: 1rem; }
label { display: grid; gap: 0.35rem; font-weight: 600; }
input[type="text"], input[type="url"], input[type="password"], input[type="number"], input[type="search"], input:not([type]), select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 2, 12, 0.45);
  color: var(--ink);
  padding: 0.85rem 0.95rem;
  font-size: 16px;
}
input:focus-visible, button:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.btn, summary.sing, .sing summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
}
.btn-primary {
  background: linear-gradient(100deg, var(--pink-deep), #ff9a3c);
  color: #2a0614;
  box-shadow: 0 8px 24px rgba(255, 79, 163, 0.32);
}
.btn-ghost {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(126, 246, 238, 0.55);
}
.btn-danger {
  background: transparent;
  color: #ffd0dc;
  border-color: rgba(255, 140, 170, 0.7);
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.actions, .settings-grid .btn, .song-form .actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.actions form, .library-card form { margin: 0; }

.search-panel,
.genre-panel {
  padding: 0.8rem;
  margin-bottom: 0.75rem;
}
.search-panel {
  position: sticky;
  top: 0.6rem;
  z-index: 5;
  backdrop-filter: blur(14px);
}
.filter-label {
  margin: 0 0 0.55rem;
  font-weight: 700;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}
.result-line { margin-top: 0.65rem; color: var(--dim); font-size: 0.92rem; }

.song-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
.song-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 0.9rem;
  padding: 0.85rem;
}
.song-card.is-mine { border-color: rgba(255, 209, 102, 0.7); }
.song-card .sing,
.song-card .song-action {
  grid-column: 1 / -1;
  text-align: center;
}
form.undo { margin-top: 5px; }
.song-visual {
  width: 112px;
  height: 84px;
  object-fit: cover;
  border-radius: 16px;
  background: #1a1024;
}
.song-poster {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 0.65rem;
  text-align: center;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.song-poster::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -35%;
  opacity: 0.55;
  transform: rotate(-12deg);
  background: repeating-linear-gradient(90deg, transparent 0 12px, rgba(255, 255, 255, 0.16) 13px 15px);
}
.song-poster span {
  max-width: 100%;
  font-size: clamp(0.82rem, 2.6vw, 1.25rem);
  line-height: 0.98;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.55);
}
.poster-pop {
  background: linear-gradient(145deg, #ff3f9f, #8d48e8);
  font-family: "Lilita One", sans-serif;
}
.poster-rock {
  background: linear-gradient(145deg, #17131a, #a61f2c);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.poster-soft {
  background: linear-gradient(145deg, #285f77, #d18ba7);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 700;
}
.poster-classics {
  background: linear-gradient(145deg, #4d241a, #b78b4e);
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
}
.poster-schlager {
  background: linear-gradient(145deg, #ff8c42, #df337c);
  font-family: "Lilita One", sans-serif;
}
.poster-hiphop {
  background: linear-gradient(145deg, #171717, #715cff);
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.poster-party {
  background: linear-gradient(145deg, #00a99d, #ff5470);
  font-family: "Permanent Marker", cursive;
}
.poster-v2::before { transform: rotate(18deg); }
.poster-v3::before { background: repeating-radial-gradient(circle at 50% 50%, transparent 0 10px, rgba(255, 255, 255, 0.18) 11px 13px); }
.poster-v4::before { background: linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.25) 46% 54%, transparent 55%); }

.language-card {
  width: min(36rem, 100%);
  margin: clamp(3rem, 12vh, 8rem) auto 2rem;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.language-subtitle { margin-top: 0.4rem; color: var(--muted); font-size: 1.15rem; }
.language-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}
.language-option {
  width: 100%;
  min-height: 8rem;
  display: grid;
  place-items: center;
  gap: 0.3rem;
  padding: 1rem;
  border: 1px solid rgba(255, 209, 102, 0.42);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  cursor: pointer;
}
.language-option:hover, .language-option:focus-visible {
  background: linear-gradient(135deg, var(--pink), #ff8a3d);
  color: #2a0614;
  transform: translateY(-2px);
}
.language-flag {
  width: 3.2rem;
  height: 2.1rem;
  display: block;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.24);
}
.flag-de { background: linear-gradient(#151515 0 33.33%, #d71920 33.33% 66.66%, #ffce00 66.66%); }
.flag-es { background: linear-gradient(#aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75%); }
.language-code { color: var(--gold); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.15em; }
.language-option:hover .language-code, .language-option:focus-visible .language-code { color: inherit; }
.language-option strong { font-family: "Lilita One", sans-serif; font-size: 1.65rem; font-weight: 400; }
.language-change { margin-top: 1.1rem; text-align: center; font-size: 0.9rem; }
.song-body { display: grid; align-content: start; gap: 0.28rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; }
.artist { font-size: 0.98rem; margin: 0; }
.artist-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--cyan);
  font: inherit;
  font-weight: 650;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.genre, .status-pill {
  display: inline-flex;
  width: fit-content;
  padding: 0.12rem 0.55rem;
  background: rgba(126, 246, 238, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(126, 246, 238, 0.28);
  font-size: 0.78rem;
  font-weight: 700;
}
.meta { font-size: 0.88rem; color: var(--dim); }
.yours { color: var(--gold); font-weight: 700; }
.video-link, .youtube-url { font-weight: 650; }
.youtube-url { display: inline-block; word-break: break-all; font-size: 0.92rem; }
.sing summary {
  display: flex;
  list-style: none;
  width: fit-content;
  margin-inline: auto;
  margin-bottom: 10px;
  background: linear-gradient(100deg, var(--pink-deep), #ff9a3c);
  color: #2a0614;
}
.sing[open] summary {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  box-shadow: none;
}
.sing summary::-webkit-details-marker { display: none; }
.sing[open] { margin-top: 0.2rem; }
.sing-panel {
  width: 100%;
  margin-top: calc(0.75rem + 5px);
  display: grid;
  gap: 0.55rem;
}
.sing-panel .btn {
  width: 100%;
  font-size: 1.0625rem;
}
.sing-or {
  margin: 0.15rem 0 0;
  text-align: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
}
.sing-form { margin-top: 0; }

.stack { display: grid; gap: 0.85rem; }
.queue-card, .library-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1rem;
}
.library-card { grid-template-columns: 1fr; }
.place {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Lilita One", sans-serif;
  font-size: 1.4rem;
  color: #2a0614;
  background: var(--gold);
}
.status { color: var(--gold); font-weight: 700; margin-bottom: 0.15rem; }
.songline span { color: var(--muted); }
.songline span::before { content: "· "; }
.queue-card.is-now, .stage-banner {
  border-color: rgba(255, 79, 163, 0.85);
  animation: glow 2.4s ease-in-out infinite;
}
.queue-card.is-focus { padding: 1.15rem; }
.stage-banner { margin-bottom: 1rem; background: linear-gradient(135deg, rgba(255, 45, 134, 0.28), rgba(42, 18, 58, 0.9)); }
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 79, 163, 0.45), 0 0 28px rgba(255, 79, 163, 0.22); }
  50% { box-shadow: 0 0 0 1px rgba(126, 246, 238, 0.55), 0 0 28px rgba(126, 246, 238, 0.2); }
}

.panel { padding: 0.95rem 1rem 1rem; margin: 0 0 1rem; }
.panel summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.7rem;
}
.check input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; }
.check small { display: block; color: var(--dim); font-weight: 400; margin-top: 0.2rem; }
.form-grid { display: grid; gap: 0.75rem; }
.hint { margin: 0 0 0.8rem; }
.empty-card { display: grid; gap: 0.55rem; justify-items: start; }
.empty-card h2, .history h2 { margin-bottom: 0.2rem; }

.history { margin-top: 1.2rem; }
.history-list { list-style: none; padding: 0; margin: 0.8rem 0 0; display: grid; gap: 0.55rem; }
.history-list li { display: flex; flex-wrap: wrap; gap: 0.45rem 0.7rem; align-items: center; }

.flash {
  border-radius: 16px;
  padding: 0.8rem 1rem;
  margin: 0.8rem 0;
  font-weight: 650;
}
.flash-ok { background: rgba(126, 246, 238, 0.14); border: 1px solid rgba(126, 246, 238, 0.45); }
.flash-error { background: rgba(255, 90, 120, 0.16); border: 1px solid rgba(255, 150, 170, 0.6); }
.flash-warn { background: rgba(255, 209, 102, 0.14); border: 1px solid rgba(255, 209, 102, 0.55); color: #ffe7a8; }
code {
  font-family: Consolas, ui-monospace, monospace;
  background: rgba(0, 0, 0, 0.28);
  padding: 0.05rem 0.35rem;
  border-radius: 6px;
}

.foot {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1rem;
  color: var(--dim);
  font-size: 0.92rem;
}
.start-stage {
  margin: 1.2rem auto 0;
  max-width: 760px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.7rem;
}
.start-brand {
  margin-top: 0.4rem;
}
.qr-frame {
  width: min(68vh, 520px);
  margin-top: 0.6rem;
  padding: 1rem;
  background: #ffffff;
  border-radius: 28px;
}
.qr-frame svg { display: block; width: 100%; height: auto; }
.qr-url {
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  font-weight: 700;
  word-break: break-all;
}
.screen-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.screen-switch form { margin: 0; }
.video-open {
  margin-top: 1.5rem;
  min-height: 4.5rem;
  padding: 0.9rem 2rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
}
.video-view .lead {
  max-width: 40rem;
}
.stage-view,
.video-view,
.calculating-view,
.results-view {
  margin: 0.4rem auto 0;
  width: 100%;
  max-width: none;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
}
.start-screen:has([data-view="video"]:not([hidden])) .wrap {
  width: min(1600px, calc(100% - 1rem));
}
.stage-view .kicker,
.video-view .kicker,
.calculating-view .kicker,
.results-view .kicker {
  color: var(--pink);
  font-size: clamp(1rem, 2.2vw, 1.45rem);
}
.stage-view .stage-credit-name,
.video-view .stage-credit-name {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  padding: 0.15rem 1.3rem;
  gap: 0.5rem;
  border-width: 2px;
}
.stage-song {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--muted);
}
.stage-coming {
  margin-top: 1.6rem;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
}
.stage-view .stage-coming .kicker {
  font-size: clamp(0.95rem, 2vw, 1.3rem);
}
.stage-next {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
}
.stage-next-name {
  color: var(--gold);
  font-weight: 700;
}
.stage-next-sep {
  color: var(--muted);
  padding: 0 0.45rem;
}
.stage-next-title {
  color: var(--muted);
}
.calculating-view h1 {
  max-width: 1000px;
  font-size: clamp(2.5rem, 6vw, 5rem);
  text-wrap: balance;
}
.result-equalizer {
  height: clamp(150px, 32vh, 300px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.4rem, 1.2vw, 1rem);
  margin: clamp(1rem, 4vh, 2.5rem) 0;
}
.result-equalizer span {
  width: clamp(12px, 2.2vw, 30px);
  height: 24%;
  border-radius: 999px;
  background: linear-gradient(to top, var(--pink), var(--gold), var(--cyan));
  box-shadow: 0 0 22px rgba(255, 79, 163, 0.45);
  animation: result-bars 0.85s ease-in-out infinite alternate;
}
.result-equalizer span:nth-child(2n) { animation-duration: 1.15s; animation-delay: -0.4s; }
.result-equalizer span:nth-child(3n) { animation-duration: 0.65s; animation-delay: -0.2s; }
.result-equalizer span:nth-child(4n) { animation-duration: 1.35s; animation-delay: -0.7s; }
@keyframes result-bars {
  from { height: 18%; filter: hue-rotate(0deg); }
  to { height: 96%; filter: hue-rotate(35deg); }
}
.result-countdown {
  display: grid;
  justify-items: center;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.35rem);
}
.result-countdown strong {
  color: var(--gold);
  font-family: "Lilita One", "Trebuchet MS", sans-serif;
  font-size: clamp(4rem, 14vw, 10rem);
  font-weight: 400;
  line-height: 0.85;
  text-shadow: 0 0 35px rgba(255, 209, 102, 0.5);
}
.results-view h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
.voting-winners {
  width: min(900px, 100%);
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.8rem;
}
.voting-winners li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid rgba(255, 209, 102, 0.5);
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.12);
  text-align: left;
}
.winner-place, .winner-score {
  color: var(--gold);
  font-family: "Lilita One", "Trebuchet MS", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}
.winner-main { display: grid; }
.winner-main strong {
  color: var(--gold);
  font-family: "Lilita One", "Trebuchet MS", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.7rem);
  font-weight: 400;
}
.winner-main small { color: var(--muted); font-size: clamp(0.95rem, 2vw, 1.35rem); }
.start-screen .wrap {
  width: min(1100px, calc(100% - 1.5rem));
}
.area-admin .wrap, .area-admin-auth .wrap {
  width: min(1120px, calc(100% - 2.5rem));
}
.area-admin .queue-card.is-focus h2 { font-size: 2rem; }

@media (max-width: 720px) {
  .area-guest .wrap, .area-guest-auth .wrap {
    width: calc(100% - 0.8rem);
  }
  .area-guest .top, .area-guest-auth .top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.7rem;
    padding-top: 0.7rem;
  }
  .area-guest .brand, .area-guest-auth .brand {
    justify-content: center;
  }
  .area-guest .brand-title, .area-guest-auth .brand-title { font-size: 1.5rem; }
  .area-guest .brand-slogan, .area-guest-auth .brand-slogan { font-size: 0.86rem; }
  .area-guest .nav, .area-guest-auth .nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
  .area-guest .nav a, .area-guest-auth .nav a {
    flex: 0 0 auto;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .area-guest .hero-card, .area-guest-auth .hero-card { margin-top: 1rem; }
  .area-guest h1, .area-guest-auth h1 { font-size: 2rem; }
  .area-guest .page-head, .area-guest .song-card, .area-guest .search-panel, .area-guest .genre-panel {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

@media (min-width: 760px) {
  .song-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: span 2; }
  .library-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
@media (max-width: 460px) {
  .song-card { grid-template-columns: 1fr; }
  .song-visual, .disc { width: 100%; height: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
