:root {
  --maroon-deep: #2a0a0f;
  --maroon: #4a1220;
  --rust: #8a3a1f;
  --mustard: #d69a3c;
  --cream: #f3e3c3;
  --gold: #e8b95f;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #fff;
  min-height: 100vh;
  position: relative;
}

/* ---------- Wallpaper ---------- */

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  background-color: var(--maroon-deep);
  background-image:
    radial-gradient(ellipse 140% 100% at 50% 120%, rgba(0,0,0,0.75), transparent 60%),
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.15) 30%, rgba(0,0,0,0.45)),
    url("assets/hero-bg.png?v=2");
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 80% at 50% 45%, transparent 40%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Top bar elements ---------- */

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

.online-pill {
  position: fixed;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  padding: 7px 16px 7px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  filter: drop-shadow(0 1px 6px rgba(0,0,0,0.5));
}
.online-pill .dim { color: rgba(255,255,255,0.7); }

.pulse-dot { position: relative; display: flex; height: 10px; width: 10px; }
.pulse-ping {
  position: absolute; inset: 0; border-radius: 9999px;
  background: #4ade80; opacity: 0.75;
  animation: ping 1.6s cubic-bezier(0,0,0.2,1) infinite;
}
.pulse-core {
  position: relative; height: 10px; width: 10px; border-radius: 9999px;
  background: #4ade80; box-shadow: 0 0 8px rgba(74,222,128,0.9);
}
@keyframes ping {
  75%, 100% { transform: scale(2.4); opacity: 0; }
}

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

.pill {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.14);
  filter: drop-shadow(0 1px 6px rgba(0,0,0,0.5));
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}
.pill:hover { opacity: 0.85; background: rgba(0,0,0,0.4); }
.pill:active { transform: scale(0.95); }

/* ---------- Stage ---------- */

.stage {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 0 24px;
}

.logo {
  margin-top: 16vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.logo-mr {
  font-family: "Tiro Devanagari Marathi", serif;
  font-size: clamp(48px, 10vw, 96px);
  line-height: 1.1;
  color: var(--cream);
  text-shadow: 0 4px 24px rgba(0,0,0,0.55), 0 0 40px rgba(230,180,90,0.25);
}

.logo-en {
  font-family: "Poppins", sans-serif;
  font-size: clamp(12px, 2vw, 15px);
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* ---------- Now playing (real Spotify audio, custom CD UI) ---------- */

.yt-embed-host {
  position: fixed;
  left: -1px;
  bottom: -1px;
  height: 1px;
  width: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.now-playing {
  margin-top: auto;
  margin-bottom: 8vh;
  width: 100%;
  max-width: 34rem;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 9999px;
  padding: 12px 20px 12px 12px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.25);
}

.disc-wrap { position: relative; height: 64px; width: 64px; flex-shrink: 0; }

.disc {
  height: 100%; width: 100%;
  border-radius: 9999px;
  background: repeating-radial-gradient(circle at center, #1c1c1c 0, #1c1c1c 2px, #2c2c2c 2px, #2c2c2c 4px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 4px 14px rgba(0,0,0,0.4);
  animation: spin 6s linear infinite;
  animation-play-state: paused;
  position: relative;
  overflow: hidden;
  /* overflow+border-radius can fail to clip once the spin transform kicks in
     in some browsers, so force the circular clip explicitly. */
  clip-path: circle(50%);
}
.disc.spinning { animation-play-state: running; }

.disc-art {
  position: absolute;
  inset: 4px;
  height: calc(100% - 8px);
  width: calc(100% - 8px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: radial-gradient(circle, var(--mustard), var(--rust));
}
.disc-hole {
  position: absolute; left: 50%; top: 50%;
  height: 10px; width: 10px;
  transform: translate(-50%, -50%);
  border-radius: 9999px;
  background: #0a0a0a;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
}
@keyframes spin { to { transform: rotate(360deg); } }

.np-info { min-width: 0; flex: 1; }
.np-title {
  margin: 0; font-size: 15px; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.np-artist {
  margin: 2px 0 0; font-size: 13px; color: rgba(255,255,255,0.7);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.np-bar { margin-top: 8px; }
.np-bar-track {
  /* box-sizing: content-box here on purpose, overriding the global
     border-box, so height:4px stays the visible bar height and the
     padding below only grows the clickable hit area around it. */
  box-sizing: content-box;
  position: relative; height: 4px; width: 100%; border-radius: 9999px;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  padding: 8px 0;
  margin: -8px 0;
  background-clip: content-box;
}
.np-bar-fill {
  position: absolute; left: 0; top: 8px; bottom: 8px; width: 0%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--gold), var(--mustard));
  pointer-events: none;
}
.np-time {
  margin-top: 6px; font-size: 11px; color: rgba(255,255,255,0.6);
  font-variant-numeric: tabular-nums;
}

.np-controls { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.np-controls button {
  display: grid; place-items: center;
  height: 36px; width: 36px;
  border-radius: 9999px; border: none;
  background: transparent; color: rgba(255,255,255,0.85);
  cursor: pointer; transition: background 0.15s ease, transform 0.1s ease;
}
.np-controls button:hover { background: rgba(255,255,255,0.15); color: #fff; }
.np-controls button:active { transform: scale(0.92); }
#np-play {
  height: 44px; width: 44px;
  background: #fff; color: #1a1a1a;
}
#np-play:hover { background: #fff; opacity: 0.9; }

@media (max-width: 480px) {
  .now-playing { border-radius: 24px; }
  .platform-pills .pill-label { display: none; }
  .platform-pills .pill { padding: 10px; }
}
