@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/rajdhani-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/rajdhani-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/rajdhani-700.woff2') format('woff2');
}

:root {
  --bg: #08090a;
  --grey-100: #f2f2f2;
  --grey-300: #cfcfcf;
  --grey-500: #8f8f8f;
  --grey-700: #4a4a4a;
  --grey-800: #2a2a2a;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #e6e6e6;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--grey-100);
  font-family: 'Rajdhani', 'Arial Narrow', sans-serif;
  overflow: hidden;
}

#visualizer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  filter: grayscale(1) contrast(1.2) brightness(0.85);
  background: var(--bg);
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.75) 100%);
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035) 0px,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 3px
  );
}

.stage {
  position: relative;
  z-index: 2;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(16px, 4vw, 48px);
  pointer-events: none;
}

.brand h1 {
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(28px, 7vw, 64px);
  color: var(--grey-100);
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
}

.tagline {
  margin: 4px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: clamp(10px, 1.6vw, 13px);
  color: var(--grey-500);
  font-weight: 600;
}

.listeners {
  position: absolute;
  top: clamp(16px, 4vw, 48px);
  right: clamp(16px, 4vw, 48px);
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: clamp(10px, 1.4vw, 12px);
  color: var(--grey-300);
  font-weight: 600;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grey-700);
  box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  transition: background 0.4s, box-shadow 0.4s;
}

.dot.live {
  background: var(--grey-100);
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.6);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.console {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  padding: clamp(12px, 2.4vw, 20px) clamp(16px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.play-btn {
  flex: none;
  width: clamp(52px, 8vw, 64px);
  height: clamp(52px, 8vw, 64px);
  border-radius: 50%;
  border: 1.5px solid var(--grey-300);
  background: transparent;
  color: var(--grey-100);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
}

.play-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--grey-100); }
.play-btn:active { transform: scale(0.94); }
.play-btn svg { display: block; }
.play-btn .spin { animation: spin 1s linear infinite; }

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

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--marquee-distance, 50%))); }
}

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

.meta-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: clamp(9px, 1.2vw, 11px);
  color: var(--grey-500);
  font-weight: 600;
}

.meta-track {
  margin: 2px 0 0;
  font-size: clamp(14px, 2.4vw, 19px);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  color: var(--grey-100);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}

.meta-track-track {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
}

.meta-track.scrolling .meta-track-track {
  animation: marquee var(--marquee-duration, 12s) linear infinite;
}

.meta-track-text {
  padding-right: 48px;
}

.volume {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--grey-300);
}

.volume input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: clamp(70px, 10vw, 110px);
  height: 2px;
  background: var(--grey-700);
  border-radius: 2px;
  outline: none;
}

.volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--grey-100);
  cursor: pointer;
  margin-top: -5.5px;
}

.volume input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: none;
  border-radius: 50%;
  background: var(--grey-100);
  cursor: pointer;
}

@media (max-width: 560px) {
  .console { border-radius: 24px; flex-wrap: wrap; }
  .volume { order: 3; width: 100%; padding-left: calc(64px + 14px); }
  .meta { order: 2; }
}
