/* Zuschauerseite: Festivalnacht zuhause. Mobil zuerst gedacht, auf großen Screens zweispaltig. */

body {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 70% at 50% -12%, rgba(51, 71, 156, 0.55) 0%, rgba(10, 13, 42, 0) 60%),
    linear-gradient(180deg, #0a0d2a 0%, #05071c 100%);
  --energy: 0;
}

/* ---------- Atmosphäre: Bühnenlicht und Goldfunken ---------- */

.sparks {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora i {
  position: absolute;
  border-radius: 50%;
  opacity: calc(0.55 + var(--energy) * 0.45);
  transition: opacity 1.2s ease;
}
.aurora .a1 {
  width: 70vmax;
  height: 70vmax;
  left: -18vmax;
  top: -34vmax;
  background: radial-gradient(closest-side, rgba(229, 0, 125, 0.32), rgba(229, 0, 125, 0));
}
.aurora .a2 {
  width: 80vmax;
  height: 80vmax;
  right: -30vmax;
  top: -40vmax;
  background: radial-gradient(closest-side, rgba(51, 71, 156, 0.6), rgba(51, 71, 156, 0));
}
.aurora .a3 {
  width: 90vmax;
  height: 50vmax;
  left: 10vmax;
  bottom: -32vmax;
  background: radial-gradient(closest-side, rgba(235, 182, 109, 0.14), rgba(235, 182, 109, 0));
}
@media (prefers-reduced-motion: no-preference) {
  .aurora .a1 {
    animation: drift-a 26s ease-in-out infinite alternate;
  }
  .aurora .a2 {
    animation: drift-b 32s ease-in-out infinite alternate;
  }
  .aurora .a3 {
    animation: drift-a 40s ease-in-out infinite alternate-reverse;
  }
}
@keyframes drift-a {
  to {
    transform: translate3d(14vmax, 8vmax, 0) scale(1.12);
  }
}
@keyframes drift-b {
  to {
    transform: translate3d(-12vmax, 10vmax, 0) scale(0.92);
  }
}

/* ---------- Header ---------- */

.slot-bar {
  position: relative;
  z-index: 3;
}
.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
  padding: 0 24px;
  max-width: 1760px;
  width: 100%;
  margin: 0 auto;
  flex: none;
}
.brand img {
  height: 32px;
  width: auto;
}
.status {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.pill-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-2);
  box-shadow: inset 0 0 0 1px var(--line);
  white-space: nowrap;
}
.pill-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.mode-live .pill-live {
  color: #fff;
  background: var(--pink);
  box-shadow: 0 0 24px rgba(229, 0, 125, 0.55);
}
.mode-live .pill-live i {
  background: #fff;
}
.mode-ended .pill-live {
  color: var(--text-2);
}
.loc {
  font-size: 0.86rem;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.viewers {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-2);
  white-space: nowrap;
}
.viewers b {
  color: var(--text);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.viewers-pulse {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ee0a8;
  box-shadow: 0 0 12px rgba(78, 224, 168, 0.8);
}
.hdr-cta {
  flex: none;
}
.viewers[hidden] + .hdr-cta,
.status + .hdr-cta {
  margin-left: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .mode-live .pill-live i,
  .viewers-pulse {
    animation: beat 1.6s ease-in-out infinite;
  }
}
@keyframes beat {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.65);
    opacity: 0.6;
  }
}

/* ---------- Layout ---------- */

.layout {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(340px, 27vw, 430px);
  gap: 24px;
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 24px 20px;
}
.stage {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.stage::-webkit-scrollbar {
  display: none;
}
.stage > * {
  width: 100%;
  max-width: max(640px, calc((100dvh - 270px) * 1.7778));
  margin-inline: auto;
}
.side {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------- Player ---------- */

.player-frame {
  position: relative;
  flex: none;
}
.player {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  container-type: inline-size;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(51, 71, 156, 0.55), rgba(5, 7, 28, 0) 70%),
    #060824;
  box-shadow:
    0 0 0 1px var(--line),
    0 30px 80px rgba(2, 3, 16, 0.65),
    0 0 140px -30px rgba(229, 0, 125, calc(0.25 + var(--energy) * 0.4));
  transition: box-shadow 1.2s ease;
}
.player > * {
  grid-area: 1 / 1;
}
.video {
  position: relative;
  min-height: 0;
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.rx-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

/* Bildschirme im Player: Wartepage, Einlass, Ende, Offline */
.screen {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: clamp(18px, 5cqi, 56px);
  text-align: center;
}
.screen:empty {
  display: none;
}
.scr-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
}
.scr-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 90% at 50% 40%, rgba(10, 13, 42, 0.55), rgba(5, 7, 28, 0.92)),
    linear-gradient(180deg, rgba(5, 7, 28, 0.3), rgba(5, 7, 28, 0.85));
}
.scr-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2.2cqi, 22px);
  max-width: 820px;
}
.scr-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.45em 1em;
  border-radius: 999px;
  font-size: clamp(0.68rem, 1.5cqi, 0.86rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
  background: rgba(235, 182, 109, 0.1);
  box-shadow: inset 0 0 0 1px var(--line);
}
.scr-title {
  margin: 0;
  font-size: clamp(1.3rem, 4.4cqi, 3.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
}
.scr-text {
  margin: 0;
  max-width: 58ch;
  font-size: clamp(0.88rem, 1.9cqi, 1.12rem);
  color: var(--text-2);
  text-wrap: pretty;
}
.scr-logo {
  height: clamp(22px, 4.6cqi, 46px);
  width: auto;
}

.cdown {
  display: flex;
  gap: clamp(8px, 1.6cqi, 16px);
}
.cdown > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(64px, 12cqi, 128px);
  padding: clamp(8px, 1.6cqi, 16px) clamp(8px, 1.4cqi, 14px) clamp(6px, 1.2cqi, 12px);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(34, 48, 109, 0.6), rgba(12, 16, 48, 0.6));
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.cdown b {
  font-size: clamp(1.9rem, 7.4cqi, 4.8rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  background: var(--gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cdown span {
  margin-top: 0.4em;
  font-size: clamp(0.62rem, 1.3cqi, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.soon {
  font-size: clamp(1rem, 2.6cqi, 1.5rem);
  font-weight: 700;
  color: var(--gold-2);
}

/* Einlass */
.gate-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(76px, 13cqi, 128px);
  height: clamp(76px, 13cqi, 128px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 0 0 10px rgba(235, 182, 109, 0.12), 0 20px 60px rgba(235, 182, 109, 0.35);
  cursor: pointer;
  transition: transform 0.35s var(--ease);
}
.gate-btn .i {
  width: 40%;
  height: 40%;
  margin-left: 6%;
}
.gate-btn:hover {
  transform: scale(1.05);
}
.gate-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(247, 224, 164, 0.5);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .gate-ring {
    animation: ring 2.4s var(--ease) infinite;
  }
  .gate-ring.r2 {
    animation-delay: 1.2s;
  }
}
@keyframes ring {
  from {
    transform: scale(0.9);
    opacity: 1;
  }
  to {
    transform: scale(1.7);
    opacity: 0;
  }
}
.gate-label {
  font-size: clamp(1.1rem, 3cqi, 1.8rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.gate-sub {
  margin-top: -6px;
  font-size: clamp(0.82rem, 1.7cqi, 1rem);
  color: var(--text-2);
}
.flash {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(247, 224, 164, 0.95), rgba(229, 0, 125, 0.35) 35%, rgba(5, 7, 28, 0) 70%);
  animation: flash 0.9s ease-out forwards;
}
@keyframes flash {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  30% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: scale(2.2);
  }
}

/* Einblendung über dem Player */
.slot-player {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 5;
  width: min(420px, calc(100% - 32px));
}

/* ---------- Unter dem Player ---------- */

.under {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex: none;
}
.now {
  min-width: 0;
}
.now-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-1);
}
.now-title {
  margin: 4px 0 2px;
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.now-sub {
  margin: 0;
  color: var(--text-2);
}
.next {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: var(--text-3);
}
.next b {
  color: var(--text-2);
  font-weight: 700;
}
.mode-ended .now {
  visibility: hidden;
}

.rx {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: none;
}
.rx-buttons {
  display: flex;
  gap: 8px;
}
.rx-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--line-2);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.rx-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}
.rx-btn:active,
.rx-btn.pop {
  transform: scale(0.88);
}
.rx-toggle {
  width: 36px;
  height: 36px;
  margin-left: 4px;
  align-self: center;
  font-size: 1rem;
  color: var(--text-3);
  background: none;
}
.rx-toggle:hover {
  color: var(--text);
}
.energy {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-2);
}
.energy-track {
  width: 140px;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
}
.energy-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--royal-2), var(--pink) 55%, var(--gold-1));
  transform-origin: left;
  transform: scaleX(var(--energy));
  transition: transform 0.9s var(--ease);
}

/* Fliegende Reaktionen */
.float {
  position: absolute;
  bottom: -40px;
  font-size: var(--size, 28px);
  line-height: 1;
  will-change: transform, opacity;
  animation: float var(--dur, 3s) cubic-bezier(0.25, 0.6, 0.35, 1) forwards;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}
@keyframes float {
  0% {
    transform: translate3d(0, 0, 0) scale(0.6);
    opacity: 0;
  }
  12% {
    opacity: 1;
    transform: translate3d(calc(var(--dx) * 0.2), calc(var(--rise) * 0.12), 0) scale(1);
  }
  50% {
    transform: translate3d(calc(var(--dx) * -0.5), calc(var(--rise) * 0.5), 0) scale(1.05);
  }
  100% {
    transform: translate3d(var(--dx), var(--rise), 0) scale(0.9);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .float {
    display: none;
  }
}

.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.78rem;
  color: var(--text-3);
}
.legal a {
  color: var(--text-3);
  text-decoration: none;
}
.legal a:hover {
  color: var(--text-2);
}
.legal-m {
  display: none;
}

/* ---------- Seitenspalte ---------- */

.slot-side:empty,
.slot-poll:empty {
  display: none;
}
.slot-side,
.slot-poll {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  border-radius: var(--r);
}

.panel {
  flex: 1 0 300px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-2), var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}
@media (prefers-reduced-transparency: reduce) {
  .panel {
    background: var(--surface-solid);
    backdrop-filter: none;
  }
}
.tabs-bar {
  display: flex;
  align-items: center;
  flex: none;
  padding: 0 8px;
  border-bottom: 1px solid var(--line-2);
}
.tabs {
  display: flex;
  flex: 1;
  min-width: 0;
}
.chat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-3);
  background: none;
  cursor: pointer;
}
.chat-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 12px;
  border: 0;
  background: none;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-3);
  cursor: pointer;
}
.tab[aria-selected='true'] {
  color: var(--text);
}
.tab[aria-selected='true']::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}
.tab .count {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-3);
}

.tab-chat,
.tab-program {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.tab-program {
  overflow-y: auto;
}

.pinned {
  flex: none;
  display: flex;
  gap: 10px;
  margin: 10px 12px 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.88rem;
  background: linear-gradient(90deg, rgba(235, 182, 109, 0.14), rgba(235, 182, 109, 0.05));
  box-shadow: inset 0 0 0 1px var(--line);
}
.pinned .i {
  color: var(--gold-1);
  margin-top: 2px;
}
.pinned b {
  color: var(--gold-2);
  margin-right: 6px;
}
.pinned p {
  margin: 0;
  overflow-wrap: anywhere;
}

.msgs-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
}
.msgs {
  height: 100%;
  margin: 0;
  padding: 10px 10px 6px;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
.msg {
  padding: 5px 8px;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}
.msg .n {
  font-weight: 800;
  margin-right: 0.45em;
}
.msg .x {
  color: var(--text);
}
.msg.me .n::after {
  content: ' (du)';
  font-weight: 500;
  color: var(--text-3);
}
.msg.team {
  margin: 4px 0;
  padding: 8px 10px;
  background: linear-gradient(90deg, rgba(235, 182, 109, 0.16), rgba(235, 182, 109, 0.04));
  box-shadow: inset 2px 0 0 var(--gold-3);
}
.msg.team .n {
  color: var(--gold-2);
}
.tag {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  vertical-align: 2px;
  color: var(--ink);
  background: var(--gold);
}
.msg.featured {
  box-shadow: inset 2px 0 0 var(--pink);
}
.msg .star {
  color: var(--gold-1);
  margin-right: 4px;
}
@media (prefers-reduced-motion: no-preference) {
  .msg.in {
    animation: msg-in 0.35s var(--ease) both;
  }
}
@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.msgs-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 24px;
  text-align: center;
  color: var(--text-3);
  pointer-events: none;
}
.msgs-empty strong {
  font-size: 1.1rem;
  color: var(--text-2);
}
.new-msgs {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink);
  background: var(--gold);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.chat-note {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.05);
}

.composer {
  flex: none;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line-2);
}
.compose-row,
.name-row {
  display: flex;
  gap: 8px;
}
.composer input,
.name-step input:not([type='checkbox']) {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 16px; /* verhindert Zoom auf iOS */
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.composer input::placeholder,
.name-step input::placeholder {
  color: var(--text-3);
}
.composer input:focus,
.name-step input:focus {
  border-color: rgba(247, 224, 164, 0.6);
  background: rgba(255, 255, 255, 0.09);
}
.composer input:disabled {
  opacity: 0.5;
}
.send {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--gold);
  cursor: pointer;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}
.send:active {
  transform: scale(0.92);
}
.send:disabled {
  opacity: 0.45;
  cursor: default;
}
/* Name und Zustimmung: eigenes Fenster, am Handy von unten, am Desktop mittig */
.name-step {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(460px, calc(100% - 32px));
  padding: 22px 22px 14px;
  border-radius: var(--r-lg);
  background: #11163d;
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(2, 3, 16, 0.7), 0 0 0 100vmax rgba(4, 6, 24, 0.66);
  transform: translate(-50%, -50%);
}
@media (prefers-reduced-motion: no-preference) {
  .name-step:not([hidden]) {
    animation: ov-fade 0.3s ease both;
  }
}
@media (max-width: 1023px) {
  .name-step {
    top: auto;
    bottom: 0;
    width: 100%;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    transform: translateX(-50%);
  }
}
.name-step .ov-later {
  align-self: center;
}
.name-step label {
  font-weight: 800;
  font-size: 0.95rem;
}
.name-row .btn {
  min-height: 46px;
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-2);
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--gold-3);
}
.consent a {
  color: var(--gold-2);
}
.name-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-3);
}
.name-err {
  color: var(--pink-2);
  font-size: 0.82rem;
}

/* Programm */
.agenda {
  margin: 0;
  padding: 10px;
  list-style: none;
}
.agenda li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 2px 12px;
  padding: 10px 10px;
  border-radius: 12px;
}
.agenda .t {
  grid-row: span 2;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--gold-1);
}
.agenda .ti {
  font-weight: 700;
}
.agenda .su {
  font-size: 0.82rem;
  color: var(--text-3);
}
.agenda li.past {
  opacity: 0.45;
}
.agenda li.now {
  background: linear-gradient(90deg, rgba(229, 0, 125, 0.18), rgba(229, 0, 125, 0.04));
  box-shadow: inset 2px 0 0 var(--pink);
}
.agenda .now-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  vertical-align: 2px;
  color: #fff;
  background: var(--pink);
}

/* Umfrage */
.poll {
  padding: 16px 16px 14px;
  border-radius: var(--r);
  background: linear-gradient(160deg, rgba(109, 12, 75, 0.55), rgba(14, 19, 54, 0.9) 60%);
  box-shadow: 0 0 0 1px rgba(255, 79, 163, 0.25), var(--shadow);
}
.poll-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff8fc7;
}
.poll-head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.poll-q {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}
.poll-opts {
  display: grid;
  gap: 8px;
}
.poll-opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  font-weight: 700;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px var(--line-2);
  cursor: pointer;
  transition: background 0.2s;
}
.poll-opt:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}
.poll-opt:disabled {
  cursor: default;
}
.poll-opt::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(229, 0, 125, 0.45), rgba(255, 79, 163, 0.25));
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  transition: transform 0.8s var(--ease);
}
.poll-opt.mine::before {
  background: linear-gradient(90deg, rgba(235, 182, 109, 0.55), rgba(247, 224, 164, 0.25));
}
.poll-opt > * {
  position: relative;
  z-index: 1;
}
.poll-opt .pct {
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
}
.poll-foot {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-3);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  background: #2b1238;
  box-shadow: 0 0 0 1px rgba(255, 79, 163, 0.4), var(--shadow);
  transform: translate(-50%, 30px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
.noscript {
  position: relative;
  z-index: 5;
  padding: 24px;
  text-align: center;
}

/* ---------- Tablet und Handy ---------- */

@media (max-width: 1023px) {
  .top {
    height: 58px;
    gap: 10px;
    padding: 0 14px;
  }
  .brand img {
    height: 22px;
  }
  .loc {
    display: none;
  }
  .viewers {
    font-size: 0.8rem;
  }
  .layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }
  .stage {
    flex: none;
    overflow: visible;
    gap: 0;
  }
  .stage > * {
    max-width: none;
  }
  .player {
    border-radius: 0;
    box-shadow: 0 1px 0 var(--line-2);
  }
  .slot-player {
    position: static;
    width: auto;
    padding: 10px 10px 0;
  }
  .slot-player:empty {
    display: none;
  }
  .under {
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
  }
  .now-label {
    font-size: 0.64rem;
  }
  .now-title {
    margin: 2px 0 0;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .now-sub,
  .next {
    display: none;
  }
  .rx {
    gap: 0;
  }
  .rx-buttons {
    gap: 4px;
  }
  .rx-btn {
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
  }
  .rx-toggle {
    width: 30px;
    margin-left: 0;
  }
  .energy {
    display: none;
  }
  .legal {
    display: none;
  }
  .legal-m {
    display: flex;
    padding: 6px 20px 18px;
  }
  .side {
    flex: 1;
    gap: 8px;
    padding: 0 10px 10px;
  }
  .panel {
    border-radius: var(--r);
  }
  .tab {
    height: 44px;
  }
  .ov-side {
    display: grid;
    grid-template-columns: 96px 1fr;
  }
  .ov-side:not(:has(.ov-img)) {
    grid-template-columns: 1fr;
  }
  .ov-side .ov-img {
    aspect-ratio: auto;
  }
  .ov-side .ov-body {
    padding: 10px 40px 10px 12px;
    gap: 0.3rem;
  }
  .ov-side .ov-title {
    font-size: 0.98rem;
  }
  .ov-side .ov-text {
    display: none;
  }
  .ov-side .btn-cta,
  .ov-player .btn-cta {
    min-height: 34px;
    font-size: 0.68rem;
    align-self: flex-start;
  }
  .ov-player .ov-img {
    width: 84px;
  }
  .ov-player .ov-text {
    display: none;
  }
  .poll {
    padding: 12px;
  }
  .poll-q {
    margin-bottom: 8px;
    font-size: 0.95rem;
  }
  .poll-opt {
    min-height: 38px;
  }
}

@media (max-width: 1023px) and (max-height: 700px) {
  .ov-side .ov-img {
    display: none;
  }
  .ov-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .chat-toggle span {
    display: none;
  }
  .viewers-l {
    display: none;
  }
  .hdr-cta span {
    display: none;
  }
  .hdr-cta {
    padding: 0 12px;
  }
  .status .pill-live {
    height: 24px;
    padding: 0 9px;
    font-size: 0.64rem;
  }
}

/* Querformat auf dem Handy: Video so groß wie möglich */
@media (max-width: 1023px) and (orientation: landscape) and (max-height: 520px) {
  body {
    height: auto;
    overflow: auto;
  }
  .layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
    gap: 10px;
    padding: 0 10px 10px;
  }
  .side {
    height: calc(100dvh - 58px);
    padding: 0;
  }
  .player {
    border-radius: var(--r);
  }
}
