* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Ensure hidden attribute always works, even with display: flex/grid */
[hidden] {
  display: none !important;
}

:root {
  --bg: #090412;
  --bg-2: #140a26;
  --card: rgba(255, 255, 255, 0.055);
  --card-strong: rgba(255, 255, 255, 0.09);
  --stroke: rgba(255, 255, 255, 0.12);
  --pink: #ff2e88;
  --cyan: #00e5ff;
  --yellow: #ffe600;
  --orange: #ff6b35;
  --violet: #8b5cf6;
  --live: #ff3b3b;
  --text: #ffffff;
  --text-dim: #b9b0d6;
  --radius: 22px;
  --pulse: 0;
}

html, body {
  min-height: 100%;
}

body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

button, input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible, input:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

/* ================ ACHTERGROND ================ */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(ellipse at top, #1d0b38 0%, var(--bg) 60%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: calc(0.45 + var(--pulse) * 0.35);
  transition: opacity 0.15s;
}

.blob-1 {
  width: 55vmax; height: 55vmax;
  background: var(--pink);
  top: -20vmax; left: -15vmax;
  animation: drift1 22s ease-in-out infinite;
}

.blob-2 {
  width: 50vmax; height: 50vmax;
  background: var(--violet);
  bottom: -25vmax; right: -15vmax;
  animation: drift2 26s ease-in-out infinite;
}

.blob-3 {
  width: 30vmax; height: 30vmax;
  background: var(--cyan);
  top: 40%; left: 55%;
  opacity: calc(0.18 + var(--pulse) * 0.3);
  animation: drift3 30s ease-in-out infinite;
}

@keyframes drift1 { 50% { transform: translate(12vw, 10vh) scale(1.1); } }
@keyframes drift2 { 50% { transform: translate(-10vw, -12vh) scale(1.15); } }
@keyframes drift3 { 50% { transform: translate(-25vw, 8vh) scale(0.85); } }

.grid-floor {
  position: absolute;
  left: -50%; right: -50%;
  bottom: -10vh;
  height: 55vh;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.35) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(400px) rotateX(65deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, black 10%, transparent 90%);
  -webkit-mask-image: linear-gradient(to top, black 10%, transparent 90%);
  animation: gridMove 4s linear infinite;
  opacity: 0.5;
}

@keyframes gridMove { to { background-position: 0 60px, 0 0; } }

/* ================ LOGO ================ */
.logo {
  font-family: 'Bangers', cursive;
  font-size: clamp(3.5rem, 14vw, 6.5rem);
  color: var(--orange);
  letter-spacing: 4px;
  line-height: 1;
  text-shadow: 3px 3px 0 var(--yellow), 7px 7px 0 rgba(0, 0, 0, 0.35), 0 0 40px rgba(255, 107, 53, 0.5);
  animation: logoBounce 2.2s ease-in-out infinite;
}

.logo span, .brand-logo span {
  color: var(--cyan);
}

.logo-sub {
  font-family: 'Bangers', cursive;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  letter-spacing: 14px;
  color: var(--yellow);
  margin-right: -14px;
}

@keyframes logoBounce {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

/* ================ SPLASH ================ */
.splash {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 30px 16px;
  text-align: center;
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.splash-vinyl {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  position: relative;
  background:
    repeating-radial-gradient(circle, #111 0 2px, #1c1c1c 2px 4px);
  box-shadow: 0 0 0 4px #000, 0 0 60px rgba(255, 46, 136, 0.5);
  animation: spin 3s linear infinite;
  margin-bottom: 10px;
}

.splash-status {
  font-weight: 900;
  color: var(--text-dim);
  min-height: 1.5em;
}

.splash-status.is-live {
  color: var(--live);
  animation: blink 1.2s ease-in-out infinite;
}

.btn-mega {
  font-family: 'Bangers', cursive;
  font-size: 2.2rem;
  letter-spacing: 3px;
  padding: 16px 56px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 8px 0 #8a1048, 0 12px 40px rgba(255, 46, 136, 0.5);
  transition: transform 0.12s, box-shadow 0.12s;
}

.btn-mega:hover { transform: translateY(-2px) scale(1.03); }
.btn-mega:active { transform: translateY(6px); box-shadow: 0 2px 0 #8a1048, 0 6px 20px rgba(255, 46, 136, 0.5); }

/* ================ TOPBAR ================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(9, 4, 18, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand-logo {
  font-family: 'Bangers', cursive;
  font-size: 1.9rem;
  letter-spacing: 2px;
  color: var(--orange);
  text-shadow: 2px 2px 0 var(--yellow);
}

.brand-tag {
  font-family: 'Bangers', cursive;
  color: var(--yellow);
  letter-spacing: 4px;
}

.top-stats {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--card-strong);
  border: 1px solid var(--stroke);
  font-weight: 900;
  font-size: 0.85rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pill-live {
  background: var(--live);
  border-color: transparent;
  box-shadow: 0 0 20px rgba(255, 59, 59, 0.6);
}

.pill-off {
  color: var(--text-dim);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1s ease-in-out infinite;
}

@keyframes blink { 50% { opacity: 0.25; } }

.share-btn {
  font-family: 'Bangers', cursive;
  letter-spacing: 2px;
  font-size: 1.05rem;
  padding: 7px 14px;
  border-radius: 999px;
  border: 2px solid var(--cyan);
  background: transparent;
  color: var(--cyan);
  transition: background 0.15s, color 0.15s;
}

.share-btn:hover {
  background: var(--cyan);
  color: var(--bg);
}

/* ================ LAYOUT ================ */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 16px 10px;
  align-items: start;
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px;
}

.card-title {
  font-family: 'Bangers', cursive;
  font-weight: 400;
  letter-spacing: 2px;
  font-size: 1.35rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge {
  font-family: 'Nunito', sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 1px;
  background: var(--yellow);
  color: var(--bg);
  border-radius: 999px;
  padding: 3px 8px;
}

.side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ================ STAGE ================ */
.stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px 18px;
  text-align: center;
  position: sticky;
  top: 76px;
}

.show-dj {
  font-weight: 900;
  color: var(--cyan);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.show-name {
  font-family: 'Bangers', cursive;
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: 2px;
  line-height: 1.05;
  background: linear-gradient(90deg, var(--yellow), var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.show-tagline {
  color: var(--text-dim);
  font-weight: 700;
  margin-top: 2px;
}

/* Draaitafel */
.turntable {
  position: relative;
  width: min(360px, 82vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

#visualizer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.vinyl {
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  background:
    conic-gradient(from 0deg, transparent 0 40deg, rgba(255, 255, 255, 0.09) 60deg, transparent 80deg 220deg, rgba(255, 255, 255, 0.07) 240deg, transparent 260deg),
    repeating-radial-gradient(circle, #0d0d0d 0 2px, #1b1b1b 2px 4px);
  box-shadow: 0 0 0 5px #000, 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 calc(var(--pulse) * 60px) rgba(255, 46, 136, 0.7);
  /* 'scale' los van 'transform', zodat de bass-pulse niet botst met de draai-animatie */
  scale: calc(1 + var(--pulse) * 0.05);
  transition: scale 0.08s;
}

.vinyl.spinning {
  animation: spin 1.8s linear infinite;
}

.vinyl-label {
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--bg) 0 7%, transparent 8%), linear-gradient(135deg, var(--pink), var(--orange));
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.3);
}

.vinyl-label span {
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  color: var(--bg);
  transform: translateY(-140%);
  letter-spacing: 1px;
}

.splash-vinyl .vinyl-label span {
  font-size: 1rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

.play-btn {
  position: absolute;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: var(--bg);
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  box-shadow: 0 0 0 6px rgba(9, 4, 18, 0.8), 0 0 40px rgba(255, 230, 0, 0.5);
  display: grid;
  place-items: center;
  transition: transform 0.15s, filter 0.15s;
}

.play-btn:hover:not(:disabled) { transform: scale(1.08); }
.play-btn:active:not(:disabled) { transform: scale(0.94); }

.play-btn:disabled {
  filter: grayscale(1) brightness(0.6);
  cursor: not-allowed;
}

.play-btn.loading .play-icon {
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid rgba(9, 4, 18, 0.25);
  border-top-color: var(--bg);
  font-size: 0;
  animation: spin 0.8s linear infinite;
}

.play-icon {
  line-height: 1;
  transform: translateX(6%);
}

.play-btn.playing .play-icon {
  transform: none;
}

/* Nu op de radio */
.np {
  width: 100%;
  max-width: 420px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 10px 14px;
}

.np-label {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--pink);
}

.np-track {
  overflow: hidden;
  white-space: nowrap;
}

.np-track p {
  display: inline-block;
  font-weight: 900;
  font-size: 1.15rem;
  padding-top: 2px;
}

.np-track p.scrolling {
  animation: marquee var(--marquee-dur, 14s) linear infinite;
}

/* De titel staat er twee keer in; na de helft begint de lus naadloos opnieuw */
@keyframes marquee { to { transform: translateX(-50%); } }

/* Offline */
.offline-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.offline-title {
  font-family: 'Bangers', cursive;
  font-size: 1.7rem;
  letter-spacing: 2px;
}

.offline-sub {
  color: var(--text-dim);
  font-weight: 700;
}

.countdown {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.countdown div {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 8px 6px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--stroke);
}

.countdown b {
  font-family: 'Bangers', cursive;
  font-weight: 400;
  font-size: 2rem;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}

.countdown span {
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Volume */
.volume {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 300px;
}

input[type="range"] {
  flex: 1;
  accent-color: var(--pink);
  height: 6px;
}

/* Reacties */
.reactions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.reaction-btn {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: var(--card-strong);
  font-size: 1.6rem;
  line-height: 1;
  transition: transform 0.1s, background 0.15s;
}

.reaction-btn:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-3px); }
.reaction-btn:active { transform: scale(0.85); }
.reaction-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

/* Hype-meter */
.hype {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
}

.hype-title {
  font-family: 'Bangers', cursive;
  letter-spacing: 2px;
  color: var(--yellow);
}

.hype-bar {
  flex: 1;
  height: 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--stroke);
  overflow: hidden;
}

.hype-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--yellow), var(--orange), var(--pink));
  background-size: 420px 100%;
  transition: width 0.5s ease;
}

.hype-label {
  min-width: 80px;
  text-align: right;
  font-weight: 900;
  font-size: 0.85rem;
}

.hype.on-fire .hype-fill { animation: fire 0.6s ease-in-out infinite alternate; }
.hype.on-fire .hype-label { color: var(--pink); }

@keyframes fire { to { filter: brightness(1.5) saturate(1.4); } }

/* Vliegende emoji's */
.reaction-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  overflow: hidden;
}

.flying {
  position: absolute;
  bottom: -60px;
  font-size: 2.2rem;
  animation: floatUp var(--dur, 3s) cubic-bezier(0.2, 0.6, 0.4, 1) forwards;
  will-change: transform, opacity;
}

@keyframes floatUp {
  0% { transform: translate(0, 0) scale(0.6); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(var(--drift, 0px), -105vh) scale(1.3) rotate(var(--rot, 0deg)); opacity: 0; }
}

/* ================ OMROEP & TOAST ================ */
.announce {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: min(640px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: var(--bg);
  box-shadow: 0 15px 50px rgba(255, 107, 53, 0.55);
  animation: dropIn 0.5s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.announce p {
  font-weight: 900;
  font-size: 1.15rem;
  line-height: 1.3;
}

.announce-icon {
  font-size: 2rem;
  animation: wiggle 0.5s ease-in-out infinite alternate;
}

@keyframes dropIn { from { transform: translate(-50%, -150%); } }
@keyframes wiggle { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  padding: 12px 20px;
  border-radius: 14px;
  background: rgba(20, 10, 38, 0.95);
  border: 1px solid var(--cyan);
  font-weight: 700;
  max-width: calc(100% - 32px);
  text-align: center;
  animation: toastIn 0.25s ease;
}

@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ================ POLL ================ */
.poll-card {
  border-color: rgba(255, 230, 0, 0.45);
  box-shadow: 0 0 30px rgba(255, 230, 0, 0.12);
}

.poll-question {
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.poll-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.poll-option {
  position: relative;
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 12px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  transition: border-color 0.15s, transform 0.1s;
}

.poll-option:not(:disabled):hover { border-color: var(--yellow); transform: translateX(3px); }
.poll-option:disabled { cursor: default; }

.poll-option .bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, rgba(255, 46, 136, 0.45), rgba(255, 107, 53, 0.45));
  transition: width 0.6s ease;
  z-index: 0;
}

.poll-option.mine .bar { background: linear-gradient(90deg, rgba(0, 229, 255, 0.5), rgba(139, 92, 246, 0.5)); }
.poll-option.winner { border-color: var(--yellow); }

.poll-option span {
  position: relative;
  z-index: 1;
}

.poll-option .pct {
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.poll-meta {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ================ CHAT ================ */
.chat-status {
  font-family: 'Nunito', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0;
  margin-left: auto;
}

.chat-messages {
  height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 4px;
  margin-bottom: 10px;
  overscroll-behavior: contain;
}

.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 3px; }

.chat-empty {
  color: var(--text-dim);
  text-align: center;
  margin: auto;
  font-size: 0.9rem;
}

.chat-msg {
  font-size: 0.9rem;
  line-height: 1.35;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  animation: chatIn 0.2s ease;
  word-break: break-word;
}

.chat-msg .name {
  font-weight: 900;
  margin-right: 6px;
}

.chat-msg .time {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-left: 6px;
}

.chat-msg.dj {
  background: linear-gradient(135deg, rgba(255, 46, 136, 0.25), rgba(255, 107, 53, 0.2));
  border: 1px solid rgba(255, 46, 136, 0.5);
}

.dj-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 1px;
  background: var(--pink);
  color: #fff;
  padding: 1px 6px;
  border-radius: 6px;
  margin-right: 5px;
  vertical-align: 1px;
}

.chat-msg.system {
  background: none;
  text-align: center;
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.82rem;
}

@keyframes chatIn {
  from { opacity: 0; transform: translateY(5px); }
}

.emoji-bar {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.emoji-bar button {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 5px 7px;
  font-size: 1.05rem;
  line-height: 1;
}

.emoji-bar button:active { transform: scale(0.9); }

.chat-form, .request-form {
  display: flex;
  gap: 6px;
}

.chat-form input, .request-form input {
  min-width: 0;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  padding: 10px 12px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
}

.chat-form input:focus, .request-form input:focus { border-color: var(--cyan); }
.chat-form input::placeholder, .request-form input::placeholder { color: var(--text-dim); }

#chatName { width: 84px; flex-shrink: 0; }
#chatText, #requestText { flex: 1; }

.chat-form button, .request-form button {
  flex-shrink: 0;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  font-weight: 900;
  padding: 0 14px;
  min-width: 46px;
}

.request-form button {
  font-family: 'Bangers', cursive;
  font-weight: 400;
  letter-spacing: 2px;
  font-size: 1.1rem;
}

.chat-form input:disabled, .chat-form button:disabled,
.request-form input:disabled, .request-form button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.request-status {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  min-height: 1.2em;
}

.request-status.ok { color: var(--cyan); }
.request-status.error { color: var(--pink); }

/* ================ HISTORY ================ */
.history {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
}

.history li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
}

.history li:first-child {
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.35);
}

.history .title {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history .ago {
  color: var(--text-dim);
  font-size: 0.78rem;
  white-space: nowrap;
}

.history .empty {
  justify-content: center;
  color: var(--text-dim);
  background: none;
  border: none;
}

/* ================ FOOTER ================ */
.footer {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  padding: 20px 16px calc(24px + env(safe-area-inset-bottom));
}

/* ================ RESPONSIVE ================ */
@media (max-width: 860px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .stage {
    position: static;
  }
}

@media (max-width: 520px) {
  .topbar { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .brand-tag { display: none; }
  .brand-logo { font-size: 1.5rem; }
  .share-btn { padding: 6px 10px; font-size: 0.95rem; }
  .pill { padding: 5px 9px; font-size: 0.78rem; }
  .countdown div { min-width: 56px; }
  .reaction-btn { width: 44px; height: 44px; font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .grid-floor, .logo, .splash-vinyl, .vinyl.spinning, .np-track p.scrolling, .announce-icon {
    animation: none !important;
  }
}
