:root {
  --bg: #000;
  --bg-card: rgba(0, 0, 0, 0.58);
  --bg-soft: rgba(255, 255, 255, 0.055);
  --bg-elev: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.28);
  --border-soft: rgba(255, 255, 255, 0.14);
  --fg: #f4f4f4;
  --muted: #a8a8a8;
  --muted-deep: #696969;
  --accent: #fff;
  --accent-soft: rgba(255, 255, 255, 0.11);
  --accent-strong: rgba(255, 255, 255, 0.42);
  --ok: #98f5b0;
  --bad: #ff7f7f;
  --talk: #a8d8ff;
  --panel-shadow: 0 24px 80px rgba(0, 0, 0, 0.72);
  --pixel-font: "Fusion Pixel 12px Mono zh_hans", "Courier New", "PingFang SC", monospace;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: var(--fg);
  font-family: var(--pixel-font);
  -webkit-font-smoothing: none;
  text-rendering: geometricPrecision;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}

#app {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 54%, rgba(255, 255, 255, 0.12), transparent 12%),
    radial-gradient(circle at 16% 74%, rgba(255, 255, 255, 0.12), transparent 22%),
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.09), transparent 20%),
    #000;
  isolation: isolate;
}

.noise-layer,
.scanline-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.noise-layer {
  opacity: 0.54;
  background:
    radial-gradient(circle, rgba(255,255,255,0.22) 0 1px, transparent 1px 7px),
    linear-gradient(90deg, rgba(255,255,255,0.05), transparent 35%, rgba(255,255,255,0.03) 70%, transparent);
  background-size: 8px 8px, 100% 100%;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 86%, transparent 100%);
  animation: field-drift 22s linear infinite;
}

.scanline-layer {
  opacity: 0.28;
  background:
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.16) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(to right, rgba(255,255,255,0.05) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}

@keyframes field-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-64px, 48px, 0); }
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.28; }
}

@keyframes scene-in {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.985);
    filter: contrast(1.4) brightness(1.5);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes orbit-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes vinyl-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes qdot {
  0%, 80%, 100% { opacity: .25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-4px); }
}

@keyframes eq {
  0%, 100% { transform: scaleY(0.25); opacity: 0.55; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 32px 12px;
  color: var(--fg);
}

.brand-lockup {
  min-width: 250px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-orb {
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent);
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(-16deg, #fff 0 3px, transparent 3px 6px),
    #000;
  box-shadow: 0 0 0 2px #000, 0 0 26px rgba(255,255,255,0.3);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: var(--bad);
  box-shadow: 0 0 14px var(--bad);
  transition: background .2s, box-shadow .2s;
}

.dot.on {
  background: var(--ok);
  box-shadow: 0 0 14px var(--ok);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.brand-copy strong {
  font-size: 22px;
  letter-spacing: 0;
}

.brand-copy span {
  font-size: 10px;
  color: var(--muted);
}

.scene-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-left: auto;
}

.scene-tab,
.controls button,
.chip,
.chat button[type=submit],
.card-action,
.card-link,
.setup-primary,
.setup-secondary,
.taste-modal-head button {
  border-radius: 0;
}

.scene-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--fg);
  min-height: 28px;
  padding: 4px 8px;
  font-size: 14px;
  letter-spacing: 0;
  transition: color .2s cubic-bezier(0.4, 0, 0.2, 1), background .2s cubic-bezier(0.4, 0, 0.2, 1), border-color .2s;
}

.scene-tab:hover,
.scene-tab.active {
  background: var(--fg);
  color: #000;
  border-color: var(--fg);
}

.status-cluster {
  min-width: 190px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.window-toggle {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #000;
  color: var(--fg);
  border: 1px solid var(--border-soft);
}

.window-toggle:hover,
.window-toggle.active,
#btn-window-inline.active {
  background: var(--fg);
  color: #000;
  border-color: var(--fg);
}

.badge {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid var(--border-soft);
  padding: 5px 8px;
  color: var(--muted);
  font-size: 11px;
  background: rgba(0,0,0,0.45);
}

.thinking-state {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
  opacity: 0;
  transition: opacity .3s;
}

.thinking-state.show {
  opacity: 1;
}

.mobile-menu-button {
  display: none;
  width: 34px;
  height: 34px;
  padding: 0;
  background: #000;
  border: 1px solid var(--border);
  color: var(--fg);
}

.mobile-menu-button span {
  display: block;
  width: 16px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  transition: transform .2s, opacity .2s;
}

.mobile-menu-button.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-button.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-scene-menu {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 35;
  display: none;
  background: rgba(0,0,0,0.94);
  border-bottom: 1px solid var(--border-soft);
}

.mobile-scene-menu .scene-tab {
  width: 100%;
  height: 69px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-width: 1px 0 0;
  border-color: var(--border-soft);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .3s ease-out, transform .3s ease-out, background .2s, color .2s;
}

.mobile-scene-menu.open .scene-tab {
  opacity: 1;
  transform: translateY(0);
}

#claude-banner {
  position: fixed;
  top: 76px;
  left: 50%;
  z-index: 60;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: #110000;
  border: 1px solid rgba(255, 127, 127, 0.5);
  color: #ffd1d1;
  font-size: 12px;
}

#claude-banner[hidden] {
  display: none;
}

.scene-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 84px 40px 34px;
}

.scene {
  position: absolute;
  inset: 84px 40px 34px;
  display: none;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 18%, rgba(255,255,255,0.04)),
    rgba(0,0,0,0.4);
  box-shadow: var(--panel-shadow);
}

.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.16), transparent 18%, transparent 82%, rgba(255,255,255,0.12)),
    repeating-radial-gradient(circle at 50% 120%, rgba(255,255,255,0.14) 0 1px, transparent 1px 10px);
  opacity: 0.22;
  z-index: 0;
}

.scene.active {
  display: block;
  animation: scene-in .42s steps(6, end);
}

.scene > * {
  position: relative;
  z-index: 1;
}

.scene-heading {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 18px;
  padding-top: 46px;
  text-align: center;
}

.scene-heading span {
  color: var(--muted);
  font-size: 13px;
}

.scene-heading h2 {
  margin: 0;
  color: var(--fg);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0;
}

.chat-column .scene-heading {
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 44px;
}

.chat-column .scene-heading h2 {
  font-size: clamp(20px, 1.7vw, 23px);
  line-height: 1.1;
}

.chat-column .scene-heading span {
  font-size: 12px;
}

.scene-onair {
  display: none;
}

.scene-onair.active {
  display: block;
}

.onair-layout {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(380px, 0.86fr) minmax(560px, 1.14fr);
  grid-template-rows: minmax(0, 1fr) 188px;
  gap: 0;
  padding: 34px;
}

.player-column,
.chat-column,
.onair-queue-column {
  min-height: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.player-column {
  grid-row: 1 / span 2;
  position: relative;
  display: grid;
  grid-template-rows: minmax(150px, 0.9fr) auto auto minmax(52px, auto) auto;
  justify-items: center;
  align-items: center;
  text-align: center;
  padding: 22px 28px 20px;
}

.player-column::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2) 14%, rgba(255,255,255,0.13) 72%, transparent);
}

.chat-column {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  padding: 0 34px 22px;
}

.chat-column::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.16) 12%, rgba(255,255,255,0.1), transparent);
}

.onair-queue-column {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 12px 34px 12px;
  overflow: hidden;
}

.queue-rail-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding-left: 8px;
  border-left: 1px solid rgba(255,255,255,0.18);
}

.queue-rail-head span {
  color: var(--muted-deep);
  font-size: 10px;
}

.queue-rail-head strong {
  color: var(--fg);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
}

.queue-rail-body {
  position: relative;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  min-height: 0;
  padding: 8px 0;
}

.queue-rail-body::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,0.04), rgba(255,255,255,0.2), rgba(255,255,255,0.05));
}

.rail-block {
  position: relative;
  min-width: 0;
  min-height: 0;
}

.rail-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
}

.orbital-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.orbit {
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(72vw, 980px);
  height: min(34vw, 410px);
  border: 1px dashed rgba(255,255,255,0.17);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
}

.orbit-b {
  width: min(92vw, 1220px);
  height: min(48vw, 560px);
  opacity: .38;
  transform: translate(-50%, -50%) rotate(9deg);
}

.orbit-dot {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 8px;
  height: 8px;
  background: var(--fg);
  box-shadow: 0 0 18px rgba(255,255,255,0.9);
  transform-origin: 0 0;
}

.dot-a { animation: orbit-dot-a 9s linear infinite; }
.dot-b { animation: orbit-dot-b 13s linear infinite; }
.dot-c { animation: orbit-dot-c 18s linear infinite reverse; }

@keyframes orbit-dot-a {
  from { transform: rotate(0deg) translateX(390px); }
  to { transform: rotate(360deg) translateX(390px); }
}

@keyframes orbit-dot-b {
  from { transform: rotate(80deg) translateX(510px); }
  to { transform: rotate(440deg) translateX(510px); }
}

@keyframes orbit-dot-c {
  from { transform: rotate(180deg) translateX(290px); }
  to { transform: rotate(540deg) translateX(290px); }
}

.vinyl-stage {
  align-self: end;
  display: grid;
  place-items: center;
  width: min(23vw, 270px);
  aspect-ratio: 1;
}

.vinyl {
  position: relative;
  width: min(21vw, 246px);
  height: min(21vw, 246px);
}

.vinyl::before,
.vinyl::after {
  content: "";
  position: absolute;
  inset: -16%;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 50%;
  animation: orbit-spin 24s linear infinite;
}

.vinyl::after {
  inset: -28%;
  opacity: 0.45;
  animation-duration: 36s;
  animation-direction: reverse;
}

.vinyl-disc {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 17%, rgba(255,255,255,0.08) 17.5% 18.2%, transparent 18.4%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08) 0 1px, transparent 1px 7px),
    radial-gradient(circle, #111 0%, #020202 68%, #2a2a2a 69%, #050505 71%, #000 100%);
  box-shadow: 0 0 0 2px #000, inset 0 0 0 1px rgba(255,255,255,0.3), 0 18px 80px rgba(0,0,0,0.8);
  animation: vinyl-spin 8s linear infinite;
  animation-play-state: paused;
}

.vinyl.playing .vinyl-disc {
  animation-play-state: running;
}

.vinyl-grooves {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 8px, rgba(255,255,255,0.07) 8px 9px);
  opacity: 0.65;
}

.vinyl-cover-wrap {
  position: relative;
  width: 42%;
  height: 42%;
  overflow: hidden;
  border-radius: 0;
  background: #050505;
  border: 1px solid rgba(255,255,255,0.45);
  image-rendering: pixelated;
}

#cover {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(1) contrast(1.35);
}

#cover[src=""],
#cover:not([src]) {
  display: none;
}

.cover-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted-deep);
  font-size: 56px;
}

#cover[src]:not([src=""]) ~ .cover-fallback {
  display: none;
}

.vinyl-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  background: var(--fg);
  box-shadow: 0 0 0 8px #000, 0 0 28px rgba(255,255,255,0.8);
}

.now-meta {
  width: 100%;
  min-height: 54px;
  padding: 4px clamp(20px, 5vw, 76px) 0;
  overflow: hidden;
}

.now-meta .title {
  --marquee-distance: 0px;
  display: block;
  width: 100%;
  color: var(--fg);
  font-size: clamp(24px, 2.9vw, 40px);
  line-height: 1.08;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  will-change: transform;
}

.now-meta .title.scrolling {
  text-overflow: clip;
  animation: title-marquee 10s linear infinite alternate;
}

@keyframes title-marquee {
  0%, 16% { transform: translateX(0); }
  84%, 100% { transform: translateX(var(--marquee-distance)); }
}

.now-meta .artist {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

#wave {
  width: min(100%, 460px);
  height: 50px;
  display: block;
  margin: 6px auto 0;
  image-rendering: pixelated;
}

.wave-console {
  position: relative;
  width: min(100%, 460px);
  display: grid;
  grid-template-columns: 1fr;
}

.voice-pulse {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.voice-pulse.active {
  opacity: 1;
}

.voice-pulse span {
  width: 5px;
  height: 22px;
  background: var(--fg);
  animation: eq .55s ease-in-out infinite;
  transform-origin: center;
}

.voice-pulse span:nth-child(2) { animation-delay: -.08s; height: 34px; }
.voice-pulse span:nth-child(3) { animation-delay: -.16s; height: 46px; }
.voice-pulse span:nth-child(4) { animation-delay: -.24s; height: 36px; }
.voice-pulse span:nth-child(5) { animation-delay: -.32s; height: 28px; }
.voice-pulse span:nth-child(6) { animation-delay: -.4s; height: 18px; }

.lyric-stage {
  width: min(100%, 460px);
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.lyric-prev,
.lyric-next {
  color: var(--muted-deep);
  font-size: 12px;
  min-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lyric-now {
  color: var(--fg);
  font-size: 16px;
  line-height: 1.35;
  min-height: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .35s, color .25s;
}

.lyric-now.show {
  opacity: 1;
  animation: blink 1.5s steps(2, end) infinite;
}

.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.controls button,
.chip,
.chat button[type=submit],
.card-action,
.card-link,
.setup-primary,
.setup-secondary {
  background: #000;
  color: var(--fg);
  border: 1px solid var(--border);
  min-height: 38px;
  padding: 8px 13px;
  transition: background .18s, color .18s, border-color .18s, transform .12s;
}

.controls button:hover:not(:disabled),
.chip:hover,
.chat button[type=submit]:hover,
.card-action:hover,
.card-link:hover,
.setup-primary:hover,
.setup-secondary:hover {
  background: var(--fg);
  color: #000;
  border-color: var(--fg);
}

.controls button:active:not(:disabled) {
  transform: translateY(1px);
}

.controls .primary {
  min-width: 190px;
  background: var(--fg);
  color: #000;
  border-color: var(--fg);
}

.controls #btn-start.primary {
  flex: 1 1 100%;
}

.controls .primary:hover:not(:disabled) {
  background: #000;
  color: var(--fg);
}

.controls button#btn-like.active {
  color: var(--bad);
  border-color: var(--bad);
}

body.window-mode #app {
  min-height: 420px;
  background:
    radial-gradient(circle at 50% 34%, rgba(255,255,255,0.14), transparent 24%),
    #000;
}

body.window-mode .bar,
body.window-mode .mobile-scene-menu,
body.window-mode .orbital-field,
body.window-mode .onair-queue-column,
body.window-mode .scene-queue,
body.window-mode .scene-mixer,
body.window-mode .scene-profile,
body.window-mode .scene-heading,
body.window-mode .mid-header,
body.window-mode .chat {
  display: none !important;
}

body.window-mode .scene-shell {
  height: 100svh;
  padding: 0;
}

body.window-mode .scene,
body.window-mode .scene-onair.active {
  position: relative;
  inset: auto;
  height: 100svh;
  display: block;
}

body.window-mode .onair-layout {
  height: 100svh;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(250px, 1fr) minmax(92px, 0.34fr);
  padding: 14px;
}

body.window-mode .player-column {
  grid-row: auto;
  grid-template-rows: minmax(118px, 1fr) auto auto minmax(42px, auto) auto;
  padding: 8px 10px 10px;
}

body.window-mode .player-column::after,
body.window-mode .chat-column::after {
  display: none;
}

body.window-mode .vinyl-stage,
body.window-mode .vinyl {
  width: min(52vw, 168px);
  height: min(52vw, 168px);
}

body.window-mode .now-meta {
  min-height: 42px;
  padding: 0 12px;
}

body.window-mode .now-meta .title {
  font-size: 20px;
}

body.window-mode .now-meta .artist {
  margin-top: 5px;
  font-size: 11px;
}

body.window-mode #wave {
  height: 34px;
}

body.window-mode .lyric-stage {
  min-height: 44px;
  gap: 4px;
}

body.window-mode .lyric-prev,
body.window-mode .lyric-next {
  display: none;
}

body.window-mode .lyric-now {
  font-size: 13px;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body.window-mode .controls {
  gap: 6px;
}

body.window-mode .controls button {
  min-height: 34px;
  min-width: 38px;
  padding: 6px 9px;
}

body.window-mode .controls .primary {
  min-width: 132px;
}

body.window-mode .chat-column {
  min-height: 0;
  padding: 0 10px 8px;
  grid-template-rows: minmax(0, 1fr);
}

body.window-mode .stream {
  min-height: 0;
  padding: 0;
  font-size: 11px;
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 100%);
}

body.window-mode .bubble {
  margin-bottom: 6px;
  padding: 7px 8px;
}

.mid-header {
  display: flex;
  justify-content: center;
  padding: 18px 0 8px;
}

.mode-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.55);
}

.mode-btn {
  min-width: 96px;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 16px;
  transition: background .18s, color .18s;
}

.mode-btn.active,
.mode-btn:hover {
  background: var(--fg);
  color: #000;
}

.stream {
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px max(18px, 8vw);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.stream::-webkit-scrollbar,
.recent-list::-webkit-scrollbar,
.queue-list::-webkit-scrollbar,
.feedback-list::-webkit-scrollbar,
.setup-card::-webkit-scrollbar,
.taste-modal-body::-webkit-scrollbar {
  width: 6px;
}

.stream::-webkit-scrollbar-thumb,
.recent-list::-webkit-scrollbar-thumb,
.queue-list::-webkit-scrollbar-thumb,
.feedback-list::-webkit-scrollbar-thumb,
.setup-card::-webkit-scrollbar-thumb,
.taste-modal-body::-webkit-scrollbar-thumb {
  background: var(--border);
}

.bubble {
  max-width: min(82%, 760px);
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  background: rgba(0,0,0,0.68);
  color: var(--fg);
  font-size: 14px;
  line-height: 1.65;
  word-break: break-word;
  animation: scene-in .24s steps(5, end);
}

.bubble.you {
  align-self: flex-end;
  background: var(--fg);
  color: #000;
  border-color: var(--fg);
}

.bubble.dj {
  align-self: flex-start;
}

.bubble.dj .who {
  color: var(--fg);
  font-size: 11px;
  margin-bottom: 5px;
}

.bubble.dj .dj-text {
  white-space: pre-wrap;
}

.bubble.dj.streaming .dj-caret {
  display: inline-block;
  margin-left: 3px;
  color: var(--fg);
  animation: blink 1s steps(1) infinite;
}

.bubble.talk .who,
.bubble.dj.talk.streaming .dj-caret {
  color: var(--talk);
}

.bubble.system,
.bubble.now {
  align-self: center;
  max-width: 100%;
  text-align: center;
  background: transparent;
  color: var(--muted);
  border-style: dashed;
  font-size: 12px;
}

.silent-view {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
}

.silent-view[hidden] {
  display: none;
}

.silent-cover {
  width: min(42vw, 310px);
  height: min(42vw, 310px);
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.25);
  image-rendering: pixelated;
  color: var(--muted-deep);
  font-size: 64px;
}

.silent-title {
  font-size: 28px;
  text-align: center;
}

.silent-artist {
  color: var(--muted);
  font-size: 13px;
}

.silent-lyric {
  color: var(--fg);
  font-size: 18px;
  min-height: 28px;
  opacity: 0;
  transition: opacity .35s;
}

.silent-lyric.show {
  opacity: 1;
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px max(18px, 8vw) 0;
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 30px;
  padding: 5px 10px;
  color: var(--muted);
  font-size: 12px;
}

.chat-row {
  display: flex;
  gap: 8px;
}

.chat input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 11px 13px;
  color: var(--fg);
  background: rgba(0,0,0,0.72);
  border: 1px solid var(--border);
  outline: none;
}

.chat input:focus {
  border-color: var(--fg);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.12);
}

.chat button[type=submit] {
  min-width: 94px;
}

.scene-queue,
.scene-mixer,
.scene-profile {
  padding: 0 42px 38px;
}

.scene-queue.active,
.scene-mixer.active,
.scene-profile.active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 28px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 18px;
}

.hidden-stats {
  display: none !important;
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.stat {
  min-height: 122px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 16px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.15));
}

.stat-num {
  color: var(--fg);
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.deck-grid,
.profile-grid,
.mixer-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.profile-grid {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr;
  max-width: 980px;
  width: 100%;
  justify-self: center;
}

.mixer-grid {
  grid-template-columns: minmax(360px, 0.95fr) minmax(320px, 0.65fr);
  max-width: 1160px;
  width: 100%;
  justify-self: center;
}

.card {
  min-height: 0;
  padding: 18px;
  border: 1px solid var(--border-soft);
  background: rgba(0,0,0,0.62);
  overflow: hidden;
}

.card-large {
  grid-row: auto;
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--fg);
  font-size: 13px;
  text-transform: uppercase;
}

.card-subtitle {
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 11px;
}

.card-action,
.card-link {
  min-height: 30px;
  padding: 4px 8px;
  color: var(--muted);
}

.card-link {
  margin-top: 12px;
}

.recent-list,
.queue-list,
.feedback-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.onair-queue-column .recent-list,
.onair-queue-column .queue-list {
  overflow: hidden;
}

.recent-list,
.queue-list {
  max-height: calc(100% - 36px);
}

.recent-list li,
.queue-list li,
.feedback-list li {
  display: grid;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 9px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
  color: var(--fg);
  font-size: 12px;
}

.onair-queue-column .recent-list li,
.onair-queue-column .queue-list li {
  border-color: rgba(255,255,255,0.07);
  background: rgba(0,0,0,0.28);
}

.recent-list li {
  grid-template-columns: 38px minmax(0, 1fr) auto;
}

.onair-queue-column .recent-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.onair-queue-column .recent-list li {
  min-height: 80px;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 7px;
  padding: 8px;
}

.onair-queue-column .recent-list .rt-cover {
  width: 100%;
  height: 34px;
}

.onair-queue-column .recent-list .rt-artist,
.onair-queue-column .recent-list .rt-fb {
  display: none;
}

.onair-queue-column .recent-list .rt-title {
  font-size: 10px;
  line-height: 1.35;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.queue-list li {
  grid-template-columns: 44px minmax(0, 1fr);
  min-height: 68px;
}

.onair-queue-column .queue-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(82px, 1fr) 34px;
  gap: 8px 10px;
}

.queue-list li.queue-next {
  grid-column: 1 / -1;
  min-height: 82px;
  grid-template-columns: 52px minmax(0, 1fr);
  padding: 10px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08), transparent 45%),
    rgba(255,255,255,0.04);
}

.queue-list li.queue-next .rt-cover {
  width: 52px;
  height: 52px;
}

.queue-list li.queue-next .rt-title {
  font-size: 14px;
}

.queue-list li.queue-next .rt-artist {
  font-size: 12px;
}

.queue-list li.queue-next .queue-reason {
  -webkit-line-clamp: 1;
}

.queue-list li.queue-follow {
  min-height: 34px;
  grid-template-columns: 6px minmax(0, 1fr);
  gap: 8px;
  padding: 6px 8px;
  border-color: rgba(255,255,255,0.04);
  background: transparent;
}

.queue-list li.queue-follow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.66);
  align-self: center;
}

.queue-list li.queue-follow .rt-cover,
.queue-list li.queue-follow .rt-artist,
.queue-list li.queue-follow .queue-reason {
  display: none;
}

.queue-list li.queue-follow .rt-title {
  font-size: 11px;
}

.feedback-list li {
  grid-template-columns: auto minmax(0, 1fr);
}

.recent-list li.empty,
.queue-list li.empty,
.feedback-list li.empty {
  display: flex;
  align-items: center;
  background: transparent;
  color: var(--muted-deep);
  border-style: dashed;
  font-style: normal;
}

.onair-queue-column .recent-list li.empty,
.onair-queue-column .queue-list li.empty {
  min-height: 74px;
  grid-column: 1 / -1;
  justify-content: center;
}

.onair-queue-column .queue-list li.queue-loading {
  grid-column: 2;
  min-height: 34px;
  border: 0;
  background: transparent;
}

.rt-cover {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-soft);
  background-color: #050505;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.2);
  image-rendering: pixelated;
}

.queue-list .rt-cover {
  width: 44px;
  height: 44px;
}

.rt-text {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.rt-title,
.rt-artist {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rt-title {
  font-size: 12px;
  line-height: 1.25;
}

.rt-artist,
.queue-reason {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.queue-reason {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  white-space: normal;
  overflow: hidden;
  line-height: 1.35;
}

.queue-list .rt-title,
.queue-list .rt-artist,
.queue-list .queue-reason {
  max-width: 100%;
}

.rt-fb,
.queue-tag {
  flex: 0 0 auto;
  color: var(--fg);
  font-size: 11px;
}

.queue-tag {
  display: none;
  border: 1px solid var(--border-soft);
  padding: 3px 6px;
}

.queue-list li.queue-loading {
  justify-content: center;
  background: transparent;
}

.queue-loading span {
  width: 5px;
  height: 5px;
  background: var(--fg);
  animation: qdot 1s infinite ease-in-out;
}

.queue-loading span:nth-child(2) { animation-delay: .12s; }
.queue-loading span:nth-child(3) { animation-delay: .24s; }

.taste-preview {
  max-height: 270px;
  overflow: hidden;
  color: var(--fg);
  font-size: 13px;
  line-height: 1.78;
  white-space: pre-wrap;
  mask-image: linear-gradient(to bottom, #000 78%, transparent);
}

.feedback-list {
  max-height: 170px;
}

.fb-icon {
  color: var(--muted);
}

.fb-icon.like { color: var(--bad); }
.fb-icon.skip { color: var(--talk); }

.vol-knob {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mixer-mascot {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  align-items: center;
  margin: 6px 0 18px;
  padding: 16px;
  border: 1px dashed var(--border-soft);
  background: rgba(255,255,255,0.035);
}

.mixer-face {
  position: relative;
  width: 78px;
  height: 78px;
  border: 1px solid var(--fg);
  background:
    linear-gradient(90deg, transparent 0 18px, rgba(255,255,255,0.13) 18px 19px, transparent 19px),
    #050505;
}

.mixer-face::before,
.mixer-face::after {
  content: "";
  position: absolute;
  top: 25px;
  width: 10px;
  height: 10px;
  background: var(--fg);
  animation: blink 2.4s steps(2, end) infinite;
}

.mixer-face::before { left: 19px; }
.mixer-face::after { right: 19px; }

.mixer-face span {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  height: 2px;
  background: var(--fg);
  box-shadow: 0 8px 0 rgba(255,255,255,0.45);
}

.mixer-mascot p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.vol-knob.muted {
  opacity: 0.5;
}

.vol-emoji {
  position: relative;
  width: 34px;
  height: 34px;
  background: #000;
  color: var(--fg);
  border: 1px solid var(--border);
  padding: 0;
}

.vol-emoji::before,
.vol-emoji::after {
  content: "";
  position: absolute;
  display: block;
}

.vol-icon-music::before {
  left: 11px;
  top: 6px;
  width: 4px;
  height: 20px;
  background: var(--fg);
  box-shadow: 10px -4px 0 var(--fg);
}

.vol-icon-music::after {
  left: 7px;
  bottom: 6px;
  width: 10px;
  height: 8px;
  border: 2px solid var(--fg);
  box-shadow: 10px -4px 0 -1px #000, 10px -4px 0 1px var(--fg);
}

.vol-icon-voice::before {
  left: 12px;
  top: 6px;
  width: 10px;
  height: 15px;
  border: 2px solid var(--fg);
  border-bottom-width: 5px;
}

.vol-icon-voice::after {
  left: 9px;
  bottom: 6px;
  width: 16px;
  height: 10px;
  border-bottom: 2px solid var(--fg);
  border-left: 2px solid transparent;
  border-right: 2px solid transparent;
}

.vol-emoji:hover,
.vol-emoji.pulsing {
  background: var(--fg);
  color: #000;
}

.vol-emoji:hover::before,
.vol-emoji:hover::after,
.vol-emoji.pulsing::before,
.vol-emoji.pulsing::after {
  filter: invert(1);
}

.vol-meta {
  flex: 1;
  min-width: 0;
}

.vol-label {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
}

.vol-track {
  position: relative;
  height: 20px;
}

.vol-track input[type=range] {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: grab;
}

.vol-track::before,
.vol-fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 5px;
  transform: translateY(-50%);
}

.vol-track::before {
  content: "";
  right: 0;
  background: rgba(255,255,255,0.12);
}

.vol-fill {
  width: 100%;
  background: var(--fg);
  transition: width .08s linear;
}

.vol-blob {
  position: absolute;
  left: 100%;
  top: 50%;
  width: 12px;
  height: 12px;
  background: var(--fg);
  transform: translate(-50%, -50%);
  transition: left .08s linear, box-shadow .2s;
}

.vol-knob.active-drag .vol-blob {
  box-shadow: 0 0 0 6px rgba(255,255,255,0.18);
}

.vol-val {
  min-width: 36px;
  color: var(--fg);
  text-align: right;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  transition: transform .15s, color .15s;
}

.vol-val.bump {
  transform: scale(1.18);
}

.vol-ducking {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px;
  border: 1px dashed var(--border-soft);
  color: var(--muted);
  font-size: 11px;
}

.vol-ducking strong {
  color: var(--fg);
}

.card-settings summary {
  cursor: pointer;
  list-style: none;
}

.card-settings summary::-webkit-details-marker {
  display: none;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  color: var(--fg);
  font-size: 12px;
}

.setting-hint {
  color: var(--muted);
  font-size: 10px;
}

.setting-hint.fallback {
  color: var(--bad);
}

.setting-row select {
  min-width: 130px;
  background: #000;
  color: var(--fg);
  border: 1px solid var(--border);
  padding: 7px 8px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  background: #000;
  cursor: pointer;
}

.switch .slider::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  left: 3px;
  top: 3px;
  background: var(--muted);
  transition: transform .2s, background .2s;
}

.switch input:checked + .slider::before {
  transform: translateX(16px);
  background: var(--fg);
}

#taste-modal,
#setup-overlay,
#boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(4px);
  animation: fade-in .25s ease;
}

#setup-overlay {
  z-index: 2000;
  overflow-y: auto;
}

#taste-modal[hidden],
#setup-overlay[hidden],
#boot-overlay[hidden] {
  display: none;
}

.taste-modal-card,
.setup-card,
.boot-card {
  border: 1px solid var(--border);
  background:
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 5px),
    #050505;
  box-shadow: var(--panel-shadow);
}

.taste-modal-card {
  width: min(720px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
}

.taste-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--fg);
  font-size: 13px;
}

.taste-modal-head button {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  min-width: 34px;
  min-height: 30px;
}

.taste-modal-body {
  flex: 1;
  margin: 0;
  padding: 18px 22px;
  overflow-y: auto;
  color: var(--fg);
  font-family: var(--pixel-font);
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.setup-card {
  width: min(620px, 92vw);
  max-height: 92vh;
  overflow-y: auto;
  padding: 32px 28px;
}

.setup-step h2 {
  margin: 0 0 12px;
  color: var(--fg);
  font-size: 26px;
  font-weight: 400;
}

.setup-lead,
.setup-list,
.setup-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.setup-list {
  padding-left: 22px;
}

.setup-note {
  padding: 12px;
  border-left: 2px solid var(--fg);
  background: rgba(255,255,255,0.05);
}

.setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.setup-actions.center {
  justify-content: center;
}

.setup-primary {
  background: var(--fg);
  color: #000;
  border-color: var(--fg);
}

.setup-secondary {
  background: #000;
  color: var(--fg);
}

.setup-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 240px;
  margin: 0 auto 16px;
  padding: 12px;
  background: #fff;
  color: #000;
}

.setup-qr img,
.setup-qr canvas {
  width: 100%;
  height: 100%;
}

.setup-status {
  text-align: center;
  color: var(--fg);
  font-size: 13px;
}

.setup-status.scanned { color: var(--ok); }
.setup-status.error { color: var(--bad); }

.setup-diagnostic {
  margin-top: 8px;
  min-height: 16px;
  text-align: center;
  color: var(--muted-deep);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.setup-textarea {
  width: 100%;
  min-height: 360px;
  padding: 14px;
  resize: vertical;
  color: var(--fg);
  background: #000;
  border: 1px solid var(--border);
  outline: none;
  font-family: var(--pixel-font);
  font-size: 13px;
  line-height: 1.7;
}

.setup-textarea:focus {
  border-color: var(--fg);
}

.setup-cookie-textarea {
  min-height: 132px;
}

.setup-field-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  margin: 14px 0;
}

.setup-field-row + .setup-field-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.setup-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.setup-field input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--fg);
  background: #000;
  border: 1px solid var(--border);
  outline: none;
}

.setup-field input:focus {
  border-color: var(--fg);
}

.setup-inline-button {
  min-height: 42px;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .setup-field-row,
  .setup-field-row + .setup-field-row {
    grid-template-columns: 1fr;
  }

  .setup-inline-button {
    width: 100%;
  }
}

.boot-card {
  width: min(190px, 60vw);
  padding: 34px 28px 18px;
}

.boot-eq {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 44px;
}

.boot-eq span {
  display: block;
  width: 5px;
  background: var(--fg);
  animation: eq .9s ease-in-out infinite;
}

.boot-eq span:nth-child(1) { animation-delay: -.8s; height: 50%; }
.boot-eq span:nth-child(2) { animation-delay: -.6s; height: 80%; }
.boot-eq span:nth-child(3) { animation-delay: -.4s; height: 100%; }
.boot-eq span:nth-child(4) { animation-delay: -.2s; height: 70%; }
.boot-eq span:nth-child(5) { animation-delay: 0s; height: 60%; }

@media (max-width: 1080px) {
  #app {
    min-height: 0;
    overflow: auto;
  }

  .bar {
    height: 68px;
    padding: 16px 20px;
    background: rgba(0,0,0,0.92);
    border-bottom: 1px solid var(--border-soft);
  }

  .brand-lockup {
    min-width: 0;
  }

  .brand-copy strong {
    font-size: 20px;
  }

  .brand-copy span,
  .status-cluster,
  .scene-nav {
    display: none;
  }

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

  .mobile-scene-menu {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease-out;
  }

  .mobile-scene-menu.open {
    max-height: 276px;
  }

  .scene-shell {
    height: auto;
    min-height: 100svh;
    padding: 84px 16px 24px;
  }

  .scene {
    position: relative;
    inset: auto;
    min-height: calc(100svh - 108px);
    padding-bottom: 20px;
  }

  .scene:not(.active) {
    display: none;
  }

  .scene-heading {
    flex-direction: column;
    gap: 6px;
    padding-top: 28px;
  }

  .scene-heading h2 {
    font-size: 22px;
  }

  .onair-layout {
    height: auto;
    min-height: calc(100svh - 108px);
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 14px;
  }

  .player-column {
    grid-row: auto;
    grid-template-rows: auto auto auto auto auto;
    padding: 18px 14px;
  }

  .chat-column {
    min-height: 420px;
    padding: 0 14px 14px;
  }

  .onair-queue-column {
    grid-template-columns: 1fr;
  }

  .vinyl-stage,
  .vinyl {
    width: min(78vw, 300px);
    height: min(78vw, 300px);
  }

  .now-meta .title {
    font-size: 28px;
  }

  #wave,
  .lyric-stage {
    width: 100%;
  }

  .controls {
    width: 100%;
  }

  .controls .primary {
    flex: 1 1 100%;
  }

  .scene-queue,
  .scene-mixer,
  .scene-profile {
    padding: 0 14px 18px;
  }

  .stream,
  .chat {
    padding-left: 0;
    padding-right: 0;
  }

  .chat-row {
    flex-direction: column;
  }

  .chat button[type=submit] {
    width: 100%;
  }

  .stat-grid,
  .deck-grid,
  .mixer-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .scene-queue.active,
  .scene-mixer.active,
  .scene-profile.active {
    gap: 16px;
  }

  .stat {
    min-height: 92px;
  }

  .card-large {
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
