:root {
  color-scheme: dark;
  --accent: #ff6a1f;
  --accent-2: #ff2f58;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #fff;
  background: #2a1810;
}

.stage {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
}

/* ---------- Hero background ---------- */

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background-color: #a8593f;
  background-image: url('hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, transparent 28%, transparent 58%, rgba(0, 0, 0, 0.48) 100%);
}

/* ---------- Top bar (floats directly on the art, no chips) ---------- */

.topbar-clock {
  position: fixed;
  left: 20px;
  top: 20px;
  z-index: 20;
  font-size: 0.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: #fff;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.5));
}

.topbar-status {
  position: fixed;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.5));
}

.status-label {
  color: rgba(255, 255, 255, 0.7);
}

.status-dot {
  position: relative;
  display: inline-flex;
  width: 10px;
  height: 10px;
}

.dot-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #4ade80;
  opacity: 0.75;
  animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.dot-core {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.9);
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.topbar-links {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
}

.source-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.5));
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.source-pill:hover {
  opacity: 0.8;
}

.source-pill:active {
  transform: scale(0.95);
}

.pill-label {
  display: none;
}

.pill-arrow {
  display: none;
}

.pill-arrow svg {
  opacity: 0.5;
  transform: rotate(-45deg);
  transition: opacity 0.15s ease;
}

.source-pill:hover .pill-arrow svg {
  opacity: 0.9;
}

/* ---------- Wordmark ---------- */

.wordmark-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  pointer-events: none;
}

.wordmark {
  margin: 0;
  color: #fff;
  font-family: 'Anek Gurmukhi', 'Inter', -apple-system, sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 10vw, 6.4rem);
  line-height: 1;
  text-align: center;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.4));
}

.wordmark-sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 600;
  font-size: clamp(0.8rem, 1.8vw, 1.05rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-align: center;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

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

.player-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8vh;
  display: flex;
  justify-content: center;
  padding: 0 24px;
}

.player {
  width: 100%;
  max-width: 576px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px 12px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(140, 58, 34, 0.5) 0%, rgba(58, 26, 18, 0.72) 55%, rgba(38, 18, 14, 0.78) 100%);
  backdrop-filter: blur(70px) saturate(1.15);
  -webkit-backdrop-filter: blur(70px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.player-art {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.player-art-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  animation: spin 8s linear infinite;
  animation-play-state: paused;
}

.player-art-hole {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

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

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

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

.player-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

.player-artist {
  margin-top: 2px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.player-seek {
  margin-top: 8px;
}

.player-seek input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 16px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  --fill: 0%;
}

.player-seek input[type='range']::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.9) var(--fill), rgba(255, 255, 255, 0.22) var(--fill));
}

.player-seek input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.player-seek input[type='range']::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.player-seek input[type='range']::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.player-seek input[type='range']::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.player-seek:hover input[type='range']::-webkit-slider-thumb,
.player-seek input[type='range']:focus-visible::-webkit-slider-thumb {
  opacity: 1;
}

.player-seek:hover input[type='range']::-moz-range-thumb,
.player-seek input[type='range']:focus-visible::-moz-range-thumb {
  opacity: 1;
}

.player-time {
  margin-top: 6px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.6);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ctrl-btn {
  display: grid;
  place-items: center;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.ctrl-btn:active {
  transform: scale(0.95);
}

.ctrl-btn.play {
  width: 44px;
  height: 44px;
  background: #fff;
  color: #0a0a0a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.ctrl-btn.play:hover {
  background: #fff;
  transform: scale(1.05);
}

.icon-pause {
  display: none;
}

.ctrl-btn.play.is-playing .icon-play {
  display: none;
}

.ctrl-btn.play.is-playing .icon-pause {
  display: block;
}

.ctrl-btn.play:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

#yt-mount {
  position: fixed;
  left: -9999px;
  bottom: 0;
  width: 2px;
  height: 2px;
  overflow: hidden;
}

/* ---------- Responsive ---------- */

@media (min-width: 640px) {
  .pill-label,
  .pill-arrow {
    display: inline-flex;
  }

  .source-pill {
    padding: 8px 14px 8px 12px;
  }
}

@media (max-width: 480px) {
  .wordmark {
    font-size: clamp(2.2rem, 13vw, 3.6rem);
  }

  .player {
    gap: 12px;
    padding: 10px 16px 10px 10px;
  }

  .player-art {
    width: 64px;
    height: 64px;
  }

  .topbar-status {
    font-size: 0.8rem;
  }
}
