:root {
  --accent: #e2543a;
  --neon: #39ff14;
  --dot-light: #ffe4a3;
  --fg: #f5f1e8;
  --fg-dim: rgba(245, 241, 232, .68);
  --fg-faint: rgba(245, 241, 232, .42);
  --glass-bg: rgba(18, 12, 10, .24);
  --glass-bg-strong: rgba(14, 10, 9, .6);
  --glass-border: rgba(255, 255, 255, .14);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-ui: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  font-family: var(--font-ui);
  color: var(--fg);
}

.scene {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transform: translate(var(--mx, 0px), var(--my, 0px)) scale(1.06);
  transition: transform .4s ease-out;
}

.bg-night {
  opacity: 0;
  transition: opacity 2.2s cubic-bezier(.16, 1, .3, 1), transform .4s ease-out;
}

.scene.is-night .bg-night {
  opacity: 1;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('grain.svg');
  background-size: 300px 300px;
  opacity: 0.9;
  mix-blend-mode: overlay;
  animation: grainShift 1s steps(8) infinite;
}

@keyframes grainShift {
  0% {
    background-position: 0 0;
  }

  12% {
    background-position: -42px 18px;
  }

  24% {
    background-position: 55px -27px;
  }

  36% {
    background-position: -18px 44px;
  }

  48% {
    background-position: 26px -58px;
  }

  60% {
    background-position: -51px 9px;
  }

  72% {
    background-position: 39px 31px;
  }

  84% {
    background-position: -9px -46px;
  }

  100% {
    background-position: 0 0;
  }
}

.tint {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(160deg, #3a180e, #0a0605);
  mix-blend-mode: multiply;
  opacity: .35;
  transition: opacity 2.2s cubic-bezier(.16, 1, .3, 1);
}

/* the night image is already dark on its own — the dusk tint tuned for the
   bright day image just muddies it further, so ease off here */
.scene.is-night .tint {
  opacity: .12;
}

.dust-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.mote {
  position: absolute;
  bottom: -10px;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(255, 232, 196, .85);
  filter: blur(1px);
  opacity: 0;
  animation: moteFloat var(--dur) linear infinite;
  animation-delay: var(--delay);
}

@keyframes moteFloat {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }

  8% {
    opacity: var(--peak);
  }

  50% {
    transform: translate(var(--drift), -55vh);
  }

  92% {
    opacity: var(--peak);
  }

  100% {
    transform: translate(calc(var(--drift) * 2), -110vh);
    opacity: 0;
  }
}

/* ---------- discoverable hotspots ---------- */
.hotspot-layer {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: translate(var(--mx, 0px), var(--my, 0px)) scale(1.06);
  transition: transform .4s ease-out;
}

.hotspot {
  cursor: pointer;
  pointer-events: auto;
  outline: none;
}

.hotspot-hit {
  fill: transparent;
}

.hotspot-dot {
  fill: var(--dot-light);
  opacity: .55;
  filter: drop-shadow(0 0 5px rgba(255, 228, 163, .7)) drop-shadow(0 0 2px rgba(255, 255, 255, .6));
  transform-box: fill-box;
  transform-origin: center;
  animation: hotspotBreathe 2.8s ease-in-out infinite;
  transition: opacity .2s ease, transform .2s ease;
}

@keyframes hotspotBreathe {

  0%,
  100% {
    opacity: .5;
    transform: scale(.85);
  }

  50% {
    opacity: .85;
    transform: scale(1.05);
  }
}

.hotspot:hover .hotspot-dot,
.hotspot:focus-visible .hotspot-dot {
  opacity: .95;
  transform: scale(1.35);
  animation-play-state: paused;
}


.hotspot:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 6px;
  border-radius: 50%;
}

.hotspot.is-active .hotspot-dot {
  animation: hotspotPulseOut .6s ease-out;
}

@keyframes hotspotPulseOut {
  0% {
    opacity: .95;
    transform: scale(1.35);
  }

  100% {
    opacity: .5;
    transform: scale(1.9);
  }
}

.hotspot-caption {
  position: fixed;
  z-index: 4;
  opacity: 0;
  transform: translate(-50%, 0) scale(.94) rotate(-2deg);
  transform-origin: center top;
  transition: opacity .25s ease-out, transform .25s ease-out;
  pointer-events: none;
}

.hotspot-caption.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1) rotate(-2deg);
}

.hotspot-caption.is-above {
  transform: translate(-50%, -100%) scale(.94) rotate(-2deg);
  transform-origin: center bottom;
}

.hotspot-caption.is-above.is-visible {
  transform: translate(-50%, -100%) scale(1) rotate(-2deg);
}

.hotspot-caption img {
  display: block;
  width: auto;
  height: auto;
  max-width: 190px;
  max-height: 260px;
  filter: sepia(.16) saturate(.88) contrast(1.06) brightness(.97) drop-shadow(0 14px 26px rgba(0, 0, 0, .45));
}

.hotspot-caption-grain {
  position: absolute;
  inset: 0;
  background-image: url('grain.svg');
  background-size: 140px 140px;
  mix-blend-mode: overlay;
  opacity: .55;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  animation: grainShift 1s steps(8) infinite;
}

.hotspot-caption.no-hint .hotspot-caption-hint {
  display: none;
}

.hotspot-caption-hint {
  position: absolute;
  right: -10px;
  bottom: -10px;
  z-index: 1;
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #241a10;
  background: var(--dot-light);
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
  transform: rotate(-4deg);
}

.scrim {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}

.scrim-top {
  top: 0;
  height: 180px;
  background: linear-gradient(to bottom, rgba(10, 7, 6, .55), transparent);
}

.scrim-bottom {
  bottom: 0;
  height: 260px;
  background: linear-gradient(to top, rgba(10, 7, 6, .62), transparent);
}

/* ---------- top bar ---------- */
.topbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
}

.clock-wrap {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 7px;
}

.clock {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
  white-space: nowrap;
}

.day-icon {
  display: block;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--fg-dim);
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .45));
}

.ambient-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--fg-dim);
  cursor: pointer;
  flex-shrink: 0;
  transition: color .15s ease;
}

.ambient-toggle svg {
  display: block;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .45));
}

.ambient-toggle-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--fg);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
  white-space: nowrap;
}

.ambient-toggle:hover {
  color: var(--fg);
}

.ambient-toggle:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
  border-radius: 4px;
}

.presence {
  justify-self: center;
}

.streamlinks {
  grid-column: 3;
  justify-self: end;
}

.presence {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  color: var(--fg-dim);
}

#visitCount {
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}

.presence-icon {
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--neon);
  filter: drop-shadow(0 0 4px var(--neon));
}

.streamlinks {
  display: flex;
  gap: 20px;
  font-size: 13px;
  font-weight: 500;
}

.streamlinks a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--fg-dim);
  text-decoration: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
  transition: color .15s ease;
  white-space: nowrap;
}

.arrow-icon {
  display: block;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.streamlinks a:hover,
.streamlinks a:focus-visible {
  color: var(--fg);
}

.x-icon {
  display: block;
  width: 13px;
  height: 13px;
}

/* ---------- hero title ---------- */
.hero-title {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  pointer-events: none;
  animation: heroReveal 1100ms cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%);
    filter: blur(0);
  }
}

.hero-title-inner {
  transform: translate(var(--tx, 0px), var(--ty, 0px));
  transition: transform .35s ease-out;
}

.hero-hindi {
  margin: 0;
  font-family: 'Yatra One', 'Noto Sans Devanagari', var(--font-ui);
  font-weight: 400;
  font-size: clamp(130px, 20vw, 270px);
  line-height: 1;
  color: var(--fg);
  text-shadow: 0 0 60px rgba(226, 84, 58, .35), 0 0 120px rgba(226, 84, 58, .2);
}

.hero-tag {
  margin: -12px auto 0;
  max-width: 100%;
  font-family: 'Space Grotesk', var(--font-ui);
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* ---------- tablet ---------- */
@media (min-width: 561px) and (max-width: 1024px) {
  .hero-hindi {
    font-size: clamp(180px, 25vw, 210px);
  }
}

/* ---------- player ---------- */
.explore-hint {
  position: fixed;
  left: 50%;
  bottom: 132px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}

.explore-hint.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.explore-hint-icon {
  display: block;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--fg-dim);
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .45));
}

.explore-hint span {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--fg-dim);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
  white-space: nowrap;
}

.player {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  width: min(92vw, 640px);
  border-radius: var(--radius-lg);
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}

.art {
  position: relative;
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 4px 14px rgba(0, 0, 0, .4);
  animation: spin 16s linear infinite;
  animation-play-state: paused;
}

.art.is-spinning {
  animation-play-state: running;
}

iframe#ytPlayer {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 250% !important;
  height: 250% !important;
  transform: translate(-50%, -50%);
}

.art-disc {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.08);
}

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

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

.title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 14px;
  height: 11px;
  flex-shrink: 0;
}

.eq span {
  width: 3px;
  height: 30%;
  border-radius: 1px;
  background: var(--accent);
  animation: eqBounce .9s ease-in-out infinite;
  animation-play-state: paused;
}

.eq span:nth-child(1) {
  animation-delay: 0s;
}

.eq span:nth-child(2) {
  animation-delay: .2s;
}

.eq span:nth-child(3) {
  animation-delay: .4s;
}

.eq.is-playing span {
  animation-play-state: running;
}

@keyframes eqBounce {

  0%,
  100% {
    height: 25%;
  }

  50% {
    height: 100%;
  }
}

.artist {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--fg-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scrubber {
  margin-top: 7px;
}

.progress {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .22);
  cursor: pointer;
  position: relative;
}

.progress-fill {
  position: relative;
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: var(--accent);
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
  transform: translateY(-50%) scale(0);
  transition: transform .15s ease;
  pointer-events: none;
}

.progress:hover .progress-fill::after,
.progress:focus-visible .progress-fill::after {
  transform: translateY(-50%) scale(1);
}

.times {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
}

.controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ctrl-btn {
  border: none;
  background: transparent;
  color: var(--fg-dim);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .1s ease;
}

.ctrl-btn svg {
  width: 19px;
  height: 19px;
}

.ctrl-btn:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, .08);
}

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

#shuffleBtn svg {
  width: 16px;
  height: 16px;
}

#shuffleBtn.is-active {
  color: var(--accent);
  background: rgba(226, 84, 58, .16);
}

.ctrl-btn--primary {
  width: 46px;
  height: 46px;
  background: var(--accent);
  color: #fff;
}

.ctrl-btn--primary svg {
  width: 18px;
  height: 18px;
}

.ctrl-btn--primary:hover {
  background: #ea6449;
}

.volume {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

#muteBtn svg {
  width: 17px;
  height: 17px;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 64px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .22);
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--fg);
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: none;
  border-radius: 50%;
  background: var(--fg);
  cursor: pointer;
}

.volume-slider::-moz-range-track {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .22);
}

.ctrl-btn:focus-visible,
.progress:focus-visible,
.volume-slider:focus-visible,
.streamlinks a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

/* ---------- responsive ---------- */
@media (max-width: 560px) {
  .topbar {
    padding: 18px 16px;
  }

  .streamlinks {
    gap: 12px;
  }

  .explore-hint {
    bottom: 102px;
  }

  .explore-hint span {
    font-size: 11.5px;
  }

  .player {
    width: 94vw;
    bottom: 16px;
    padding: 10px 12px;
    gap: 12px;
  }

  .art {
    width: 54px;
    height: 54px;
  }

  .ctrl-btn--primary {
    width: 34px;
    height: 34px;
  }

  .hero-title {
    width: 90vw;
  }

  .hero-hindi {
    font-size: 170px;
  }

  .volume-slider {
    display: none;
  }

  .eq {
    display: none;
  }

  .presence {
    display: none;
  }

  .ambient-toggle-label {
    display: none;
  }

  .topbar {
    grid-template-columns: auto 1fr auto;
  }

  .hotspot-caption img {
    max-width: 45vw;
    max-height: 220px;
  }

  .hotspot-layer,
  .hotspot-caption,
  .explore-hint {
    display: none;
  }
}