/* ==========================================================================
   GOKUL DHUN (गोकुल धुन) — Sri Krishna Janmashtami 2026
   Aesthetic: Studio Ghibli Anime Nostalgia meets Deluxe Saloon & Truck Wala Music
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  --bg-midnight: #050b18;
  --bg-deep-blue: #0b1a36;
  --bg-surface: rgba(14, 26, 54, 0.65);
  --bg-glass: rgba(255, 255, 255, 0.12);
  --bg-glass-hover: rgba(255, 255, 255, 0.18);
  --border-glass: rgba(255, 255, 255, 0.22);
  --border-gold: rgba(245, 197, 66, 0.45);

  --gold-primary: #f5c542;
  --gold-light: #fef3c7;
  --gold-vibrant: #fbbf24;
  --gold-glow: rgba(251, 191, 36, 0.45);
  --peacock-emerald: #10b981;
  --peacock-blue: #0284c7;
  --lotus-pink: #f472b6;
  --marigold-orange: #f97316;
  --marigold-yellow: #eab308;

  --text-pure: #ffffff;
  --text-creamy: #fdf8e6;
  --text-muted: rgba(255, 255, 255, 0.78);
  --text-subtle: rgba(255, 255, 255, 0.55);

  --font-devanagari: 'Rozha One', 'Yatra One', serif;
  --font-retro-hindi: 'Yatra One', cursive;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-handwritten: 'Caveat', cursive;

  --radius-full: 9999px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --shadow-pill: 0 16px 48px -4px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  --shadow-glow: 0 0 25px rgba(245, 197, 66, 0.4);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden; /* Only the first visible viewport */
  background-color: var(--bg-midnight);
  color: var(--text-pure);
  font-family: var(--font-sans);
  line-height: 1.5;
  overscroll-behavior: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Atmospheric Canvas Layer (Ghibli Wind, Fireflies & Flower Shower) --- */
#atmosphereCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 15;
}

/* --- Backdrop Artwork & Texture Scrim --- */
.bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-art {
  position: absolute;
  inset: -10px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: brightness(0.95) contrast(1.04) saturate(1.05);
  transform: scale(1.01);
  transition: background-image 0.6s ease, transform 12s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

body.is-playing .bg-art {
  transform: scale(1.035);
}

.bg-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(5, 11, 24, 0.1) 0%, rgba(5, 11, 24, 0.35) 75%, rgba(3, 7, 18, 0.8) 100%),
              linear-gradient(to bottom, rgba(5, 11, 24, 0.55) 0%, transparent 18%, transparent 70%, rgba(3, 7, 18, 0.9) 100%);
  transition: background 0.5s ease;
}

body.theme-day .bg-scrim {
  background: radial-gradient(circle at 50% 45%, rgba(4, 10, 25, 0.05) 0%, rgba(4, 10, 25, 0.25) 75%, rgba(2, 6, 18, 0.72) 100%),
              linear-gradient(to bottom, rgba(2, 6, 18, 0.5) 0%, transparent 18%, transparent 72%, rgba(2, 6, 18, 0.85) 100%);
}

body.theme-night .bg-scrim {
  background: radial-gradient(circle at 50% 35%, rgba(5, 11, 24, 0.04) 0%, rgba(5, 11, 24, 0.32) 75%, rgba(2, 6, 18, 0.8) 100%),
              linear-gradient(to bottom, rgba(2, 6, 18, 0.48) 0%, transparent 20%, transparent 68%, rgba(2, 6, 18, 0.9) 100%);
}

.bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- Festive Hanging Marigold Toran Garland --- */
.festive-toran {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 25;
  pointer-events: none;
  height: 28px;
  overflow: hidden;
}

.toran-string {
  position: absolute;
  top: 2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 2%, #d97706 15%, #f59e0b 50%, #d97706 85%, transparent 98%);
  opacity: 0.85;
}

.toran-flowers {
  display: flex;
  justify-content: space-around;
  padding: 0 4vw;
}

.flower {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.genda-yellow {
  background: radial-gradient(circle, #fde047 30%, #eab308 90%);
}

.genda-orange {
  background: radial-gradient(circle, #fb923c 30%, #ea580c 90%);
}

.leaf.mango-leaf {
  width: 6px;
  height: 16px;
  background: linear-gradient(180deg, #15803d, #166534);
  border-radius: 0 50% 50% 50%;
  transform: rotate(45deg);
  display: inline-block;
  margin-top: 1px;
}

/* --- Main Viewport Shell (Single Viewport Layout) --- */
.app-shell {
  position: relative;
  z-index: 10;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 1.25rem;
  padding: max(env(safe-area-inset-top, 0px), 1.25rem) max(env(safe-area-inset-right, 0px), 1.5rem) max(env(safe-area-inset-bottom, 0px), 1.25rem) max(env(safe-area-inset-left, 0px), 1.5rem);
  overflow: hidden;
}

/* --- TOPBAR --- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 30;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.clock-pill, .midnight-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  background: rgba(8, 16, 36, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-creamy);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.icon-clock {
  color: var(--gold-vibrant);
}

.tz-badge {
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  background: rgba(245, 197, 66, 0.25);
  color: var(--gold-light);
  border-radius: 4px;
  font-weight: 600;
}

.midnight-pill {
  color: #fef08a;
  border-color: rgba(254, 240, 138, 0.25);
}

.topbar-sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
}

/* Live Devotees Pill */
.devotees-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1.05rem;
  background: rgba(6, 14, 32, 0.75);
  border: 1px solid rgba(16, 185, 129, 0.38);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-pure);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.devotees-pill:hover {
  border-color: rgba(16, 185, 129, 0.7);
  transform: translateY(-1px);
}

.pulse-indicator {
  position: relative;
  display: flex;
  width: 9px;
  height: 9px;
}

.pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--peacock-emerald);
  opacity: 0.75;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pulse-core {
  position: relative;
  display: inline-flex;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.95);
}

.devotees-count {
  font-weight: 700;
  color: #a7f3d0;
  letter-spacing: 0.03em;
}

.devotees-label {
  color: rgba(255, 255, 255, 0.85);
}

/* Topbar Right Nav / Support Us Button */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-creamy);
  background: rgba(8, 16, 36, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.22s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.pill-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.35);
}

.pill-btn:active {
  transform: scale(0.96);
}

.support-btn.highlight-gold {
  background: linear-gradient(135deg, #d97706, #b45309);
  border: 1px solid rgba(251, 191, 36, 0.6);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.4), 0 0 12px rgba(251, 191, 36, 0.3);
}

.support-btn.highlight-gold:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.6), 0 0 18px rgba(251, 191, 36, 0.5);
  transform: translateY(-2px) scale(1.03);
}

.support-heart {
  display: inline-block;
  animation: heart-beat 1.8s ease-in-out infinite;
}

@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.25); }
  28% { transform: scale(1); }
  42% { transform: scale(1.25); }
  70% { transform: scale(1); }
}

/* --- INTERACTIVE SIDE ALTAR WIDGETS --- */
.interactive-altar-left {
  position: fixed;
  left: 2rem;
  top: 5.5rem;
  z-index: 25;
}

.makhan-handi-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  animation: handi-sway 4.5s ease-in-out infinite;
  transform-origin: top center;
  user-select: none;
  touch-action: manipulation;
}

.rope-support {
  width: 2px;
  height: 48px;
  background: linear-gradient(180deg, #d97706, #92400e);
}

.handi-image-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 3px;
  background: radial-gradient(circle, rgba(245, 197, 66, 0.5), rgba(0, 0, 0, 0.7));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(245, 197, 66, 0.35);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.makhan-handi-container:hover .handi-image-wrapper {
  transform: scale(1.12) rotate(4deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(245, 197, 66, 0.6);
}

.makhan-handi-container:active .handi-image-wrapper {
  transform: scale(0.92);
}

.handi-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.handi-hint {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(6, 12, 28, 0.85);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(245, 197, 66, 0.35);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.interactive-altar-right {
  position: fixed;
  right: 2rem;
  top: 5.5rem;
  z-index: 25;
}

.temple-bell-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transform-origin: top center;
  user-select: none;
  touch-action: manipulation;
}

.bell-chain {
  width: 3px;
  height: 48px;
  background: repeating-linear-gradient(180deg, #d97706 0px, #d97706 4px, #78350f 4px, #78350f 8px);
  border-radius: 2px;
}

.bell-body {
  position: relative;
  width: 44px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
  transition: transform 0.2s ease;
}

.bell-dome {
  width: 34px;
  height: 30px;
  background: linear-gradient(135deg, #fef08a 0%, #eab308 40%, #a16207 100%);
  border-radius: 50% 50% 12% 12%;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.7);
}

.bell-highlight {
  position: absolute;
  top: 4px;
  left: 6px;
  width: 8px;
  height: 18px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: rotate(-25deg);
}

.bell-rim {
  width: 44px;
  height: 8px;
  background: linear-gradient(180deg, #facc15, #ca8a04);
  border-radius: 4px;
  margin-top: -2px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.bell-clapper {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 10px;
  background: #78350f;
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.bell-rope {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 4px;
}

.rope-tassel {
  width: 6px;
  height: 22px;
  background: linear-gradient(180deg, #dc2626, #991b1b);
  border-radius: 0 0 3px 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.bell-hint {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(6, 12, 28, 0.85);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(245, 197, 66, 0.35);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.is-ringing {
  animation: bell-swing 1.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.is-ringing .bell-clapper {
  animation: clapper-swing 1.6s ease-in-out both;
}

/* --- CENTER CLEAN SECTION (Middle text box removed for clear artwork) --- */
.hero-center.clean-middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto 0;
  padding: 0.5rem 1rem;
  position: relative;
  z-index: 20;
}

.action-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  background: rgba(10, 20, 44, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: var(--text-creamy);
  font-size: 0.84rem;
  font-weight: 500;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.chip-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(245, 197, 66, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(245, 197, 66, 0.35);
}

.chip-btn:active {
  transform: scale(0.96);
}

.chip-icon {
  font-size: 1.05rem;
}

/* --- INTEGRATED VIDEO DOCK --- */
.video-dock {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.video-container {
  position: relative;
  width: 260px;
  height: 146px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(245, 197, 66, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(245, 197, 66, 0.25);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.video-container iframe {
  width: 100% !important;
  height: 100% !important;
  display: block;
  border: none;
}

.video-header {
  position: absolute;
  top: 6px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 5;
}

.video-live-badge {
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.7);
  color: #fef08a;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-close-btn {
  pointer-events: auto;
  width: 22px;
  height: 22px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  line-height: 1;
  transition: all 0.2s;
}

.video-close-btn:hover {
  background: rgba(220, 38, 38, 0.9);
  transform: scale(1.1);
}

.video-dock.is-minimized .video-container {
  width: 160px;
  height: 40px;
  opacity: 0.15;
  transform: translateY(20px) scale(0.6);
  pointer-events: none;
}

/* --- FLOATING MUSIC PILL PLAYER --- */
.player-dock {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 30;
}

.player-pill-wrapper {
  width: 100%;
  max-width: 680px;
  position: relative;
}

.player-pill {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.75rem 1.25rem 0.75rem 0.85rem;
  background: rgba(10, 20, 44, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius-full);
  backdrop-filter: blur(32px) saturate(170%);
  -webkit-backdrop-filter: blur(32px) saturate(170%);
  box-shadow: var(--shadow-pill);
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.player-pill:hover {
  border-color: rgba(245, 197, 66, 0.55);
  box-shadow: 0 20px 54px -4px rgba(0, 0, 0, 0.8), 0 0 32px rgba(245, 197, 66, 0.35);
}

/* Vinyl Disc Container */
.disc-container {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.25);
  animation: spin-vinyl 8s linear infinite;
  animation-play-state: paused;
}

body.is-playing .vinyl-disc {
  animation-play-state: running;
}

.vinyl-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.vinyl-grooves {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 25%, rgba(0,0,0,0.4) 30%, transparent 35%, rgba(0,0,0,0.3) 48%, transparent 52%, rgba(0,0,0,0.4) 65%, transparent 70%);
  pointer-events: none;
}

.spindle-hole {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: #000;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.sound-wave-rings {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.is-playing .sound-wave-rings {
  opacity: 1;
}

.sound-wave-rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(245, 197, 66, 0.55);
  animation: wave-ripple 2.4s ease-out infinite;
}

.sound-wave-rings span:nth-child(2) {
  animation-delay: 1.2s;
}

/* Track Metadata & Seek Section */
.player-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.track-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.text-meta {
  min-width: 0;
}

.track-title {
  font-size: 0.96rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

.track-artist {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mood-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  background: rgba(245, 197, 66, 0.18);
  color: var(--gold-vibrant);
  border: 1px solid rgba(245, 197, 66, 0.35);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* Interactive Seek Rail */
.seek-section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.seek-rail {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  cursor: pointer;
  padding: 8px 0;
  background-clip: content-box;
  touch-action: none;
}

.seek-fill {
  position: absolute;
  top: 8px;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, #f59e0b, #fef08a);
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.65);
  pointer-events: none;
}

.seek-thumb {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border: 2px solid var(--gold-vibrant);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}

.seek-rail:hover .seek-thumb {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.2);
}

.time-readout {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-subtle);
}

/* Controls */
.player-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.ctrl-btn {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  transition: all 0.2s ease;
}

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

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

.prev-btn, .next-btn {
  width: 34px;
  height: 34px;
}

.play-btn {
  width: 44px;
  height: 44px;
  background: #ffffff;
  color: #050b18;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 18px rgba(255, 255, 255, 0.35);
}

.play-btn:hover {
  background: var(--gold-light);
  color: #050b18;
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 25px rgba(245, 197, 66, 0.65);
}

.vol-btn, .playlist-btn {
  width: 32px;
  height: 32px;
}

/* Volume Popover */
.volume-container {
  position: relative;
}

.volume-slider-pop {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(10, 18, 40, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 0.6rem 0.8rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
}

.volume-container:hover .volume-slider-pop,
.volume-slider-pop:focus-within {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

#volSlider {
  appearance: none;
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
  touch-action: none;
}

#volSlider::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--gold-vibrant);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

/* Playlist Dropdown */
.playlist-dropdown {
  position: absolute;
  bottom: calc(100% + 14px);
  right: 0;
  width: 380px;
  max-width: 92vw;
  background: rgba(8, 16, 36, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 40;
}

.playlist-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.playlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 0.65rem;
}

.playlist-header h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gold-light);
}

.close-btn {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1;
}

.close-btn:hover {
  color: #fff;
}

.playlist-items {
  list-style: none;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.playlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
}

.playlist-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(3px);
}

.playlist-item.is-active {
  background: rgba(245, 197, 66, 0.22);
  border-left: 3px solid var(--gold-vibrant);
}

.item-meta h5 {
  font-size: 0.85rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 230px;
}

.item-meta p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.item-duration {
  font-size: 0.72rem;
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
}

/* Footer bottom bar & Support link */
.footer-bottom-bar {
  text-align: center;
  margin-top: 0.65rem;
}

.footer-credit {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(6, 12, 28, 0.75);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-support-link {
  color: var(--gold-light);
  font-weight: 600;
  border-bottom: 1px dashed var(--gold-vibrant);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.footer-support-link:hover {
  color: #ffffff;
  border-bottom-style: solid;
}

/* --- SUPPORT US QR CODE MODAL DIALOG --- */
.support-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.support-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.support-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 16, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.support-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(155deg, rgba(16, 30, 64, 0.96), rgba(8, 16, 36, 0.98));
  border: 1px solid rgba(245, 197, 66, 0.5);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 50px rgba(245, 197, 66, 0.3);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

.support-modal.is-active .support-card {
  transform: scale(1);
}

.support-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 1.75rem;
  color: var(--text-muted);
  line-height: 1;
  transition: color 0.2s;
}

.support-close-btn:hover {
  color: #fff;
}

.support-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.95rem;
  background: rgba(245, 197, 66, 0.18);
  border: 1px solid rgba(245, 197, 66, 0.4);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.85rem;
}

.support-title {
  font-family: 'Outfit', var(--font-sans), sans-serif;
  font-weight: 700;
  font-size: 1.85rem;
  color: #fff;
  margin-bottom: 0.4rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.support-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.qr-frame {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 1.25rem;
  padding: 10px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 197, 66, 0.4);
}

.qr-glow {
  position: absolute;
  inset: -3px;
  border-radius: 19px;
  background: linear-gradient(135deg, #f59e0b, #d97706, #10b981);
  z-index: -1;
  opacity: 0.85;
}

.qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.support-payment-methods {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.upi-tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: var(--text-creamy);
}

.support-download-wrap {
  margin-bottom: 1.15rem;
}

.qr-download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold-light);
  padding: 0.35rem 0.85rem;
  background: rgba(245, 197, 66, 0.12);
  border: 1px dashed rgba(245, 197, 66, 0.35);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.2s ease;
}

.qr-download-link:hover {
  background: rgba(245, 197, 66, 0.22);
  border-color: rgba(245, 197, 66, 0.7);
  color: #ffffff;
  transform: translateY(-1px);
}

.support-blessing {
  font-family: var(--font-handwritten);
  font-size: 1.2rem;
  color: var(--gold-vibrant);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.support-done-btn {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
  transition: all 0.2s ease;
}

.support-done-btn:hover {
  background: linear-gradient(135deg, #fbbf24, #ea580c);
  transform: translateY(-2px);
}

/* --- INTERACTIVE BLESSING MODAL (From Dahi Handi) --- */
.blessing-modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.blessing-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.blessing-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(145deg, rgba(14, 28, 60, 0.95), rgba(7, 14, 32, 0.95));
  border: 1px solid rgba(245, 197, 66, 0.4);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(245, 197, 66, 0.25);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.blessing-modal.is-active .blessing-card {
  transform: scale(1);
}

.blessing-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.blessing-avatar {
  font-size: 2rem;
}

.blessing-close {
  font-size: 1.5rem;
  color: var(--text-muted);
}

.blessing-close:hover {
  color: #fff;
}

.blessing-title {
  font-family: var(--font-retro-hindi);
  font-size: 1.75rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.blessing-quote {
  font-family: var(--font-handwritten);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold-vibrant);
  margin-bottom: 0.75rem;
}

.blessing-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.blessing-action-btn {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
  transition: all 0.2s ease;
}

.blessing-action-btn:hover {
  background: linear-gradient(135deg, #fbbf24, #ea580c);
  transform: translateY(-2px);
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes spin-vinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes wave-ripple {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

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

@keyframes handi-sway {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(2.5deg); }
  75% { transform: rotate(-2.5deg); }
}

@keyframes bell-swing {
  0% { transform: rotate(0deg); }
  15% { transform: rotate(18deg); }
  30% { transform: rotate(-14deg); }
  45% { transform: rotate(10deg); }
  60% { transform: rotate(-6deg); }
  75% { transform: rotate(3deg); }
  100% { transform: rotate(0deg); }
}

@keyframes clapper-swing {
  0%, 100% { transform: translateX(-50%); }
  15% { transform: translateX(calc(-50% - 6px)); }
  30% { transform: translateX(calc(-50% + 5px)); }
  45% { transform: translateX(calc(-50% - 3px)); }
  60% { transform: translateX(calc(-50% + 2px)); }
}

/* --- DEVOTIONAL TOAST NOTICE (Right Click / Devtools restriction feedback) --- */
.devotee-toast-notice {
  position: fixed;
  top: 4.8rem;
  left: 50%;
  transform: translateX(-50%) translateY(-20px) scale(0.92);
  background: rgba(10, 20, 44, 0.94);
  border: 1px solid rgba(245, 197, 66, 0.65);
  border-radius: var(--radius-full);
  padding: 0.55rem 1.3rem;
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.75), 0 0 28px rgba(245, 197, 66, 0.35);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.devotee-toast-notice.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .interactive-altar-left {
    left: 1.25rem;
    top: 5rem;
  }
  .interactive-altar-right {
    right: 1.25rem;
    top: 5rem;
  }
}

/* Tablet & Mobile Screens */
@media (max-width: 768px) {
  .app-shell {
    padding: 0.6rem 0.6rem 0.8rem;
    padding: max(env(safe-area-inset-top), 0.6rem) max(env(safe-area-inset-right), 0.6rem) max(env(safe-area-inset-bottom), 0.8rem) max(env(safe-area-inset-left), 0.6rem);
  }

  /* Compact single-row topbar */
  .topbar {
    padding: 0.35rem 0.6rem;
    gap: 0.35rem;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .topbar-left {
    gap: 0.35rem;
  }

  .clock-pill {
    padding: 0.32rem 0.55rem;
    font-size: 0.74rem;
  }

  .clock-pill svg {
    width: 12px;
    height: 12px;
  }

  .tz-badge {
    font-size: 0.6rem;
    padding: 0.05rem 0.3rem;
  }

  .topbar-sep {
    display: none;
  }

  .midnight-pill {
    display: none;
  }

  .devotees-pill {
    padding: 0.32rem 0.55rem;
    font-size: 0.72rem;
    flex-shrink: 0;
  }

  .devotees-label {
    display: none; /* Keep "109" with green pulsing dot to fit on mobile */
  }

  .topbar-right {
    gap: 0.35rem;
  }

  .hidden-xs {
    display: none;
  }

  .pill-btn {
    padding: 0.32rem 0.6rem;
    font-size: 0.74rem;
    gap: 0.3rem;
  }

  .support-btn.highlight-gold .btn-text {
    font-size: 0.74rem;
  }

  /* MANDIR GHANTI & MAKHAN MATKI - Always visible hanging from top sides */
  .interactive-altar-left {
    left: 0.5rem;
    top: 4.4rem;
    bottom: auto;
    z-index: 35;
    pointer-events: auto;
  }

  .interactive-altar-right {
    right: 0.5rem;
    top: 4.4rem;
    bottom: auto;
    z-index: 35;
    pointer-events: auto;
  }

  .rope-support {
    height: 22px;
    width: 2px;
  }

  .handi-image-wrapper {
    width: 52px;
    height: 52px;
  }

  .bell-chain {
    height: 20px;
  }

  .bell-body {
    transform: scale(0.82);
  }

  /* Keep both hints clearly visible on mobile */
  .handi-hint, .bell-hint {
    display: inline-block;
    margin-top: 0.3rem;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-full);
    background: rgba(6, 12, 28, 0.9);
    border: 1px solid rgba(245, 197, 66, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.01em;
  }

  /* Middle Action Chips */
  .hero-center.clean-middle {
    padding: 0.25rem 0.5rem;
  }

  .action-chips {
    gap: 0.4rem;
  }

  .chip-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.74rem;
    gap: 0.35rem;
  }

  .chip-icon {
    font-size: 0.95rem;
  }

  /* Video screen scaled for mobile */
  .video-container {
    width: min(88vw, 240px);
    height: 135px;
  }

  /* Floating Music Pill Player on Mobile */
  .player-dock {
    padding: 0 0.35rem;
  }

  .player-pill {
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: 24px;
  }

  .disc-container {
    width: 48px;
    height: 48px;
  }

  .track-title {
    font-size: 0.85rem;
  }

  .track-artist {
    font-size: 0.72rem;
  }

  .mood-tag {
    display: none;
  }

  .seek-section {
    gap: 0.35rem;
  }

  .time-readout {
    font-size: 0.66rem;
  }

  .player-controls {
    gap: 0.25rem;
  }

  .ctrl-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

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

  .ctrl-btn.play-btn {
    width: 46px;
    height: 46px;
  }

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

  /* Volume slider: show on tap via .is-open class on mobile */
  .volume-container {
    display: flex;
  }

  .volume-slider-pop.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .footer-bottom-bar {
    margin-top: 0.3rem;
  }

  .footer-credit {
    font-size: 0.68rem;
  }

  /* Modals on Mobile */
  .support-modal, .blessing-modal {
    padding: 0.85rem;
  }

  .support-card {
    padding: 1.5rem 1.15rem;
    max-height: 90vh;
    overflow-y: auto;
  }

  .support-title {
    font-size: 1.45rem;
  }

  .support-subtitle {
    font-size: 0.8rem;
    margin-bottom: 0.85rem;
  }

  .qr-frame {
    width: 170px;
    height: 170px;
    margin-bottom: 0.85rem;
  }

  .support-blessing {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .playlist-dropdown {
    width: 100%;
    max-height: 290px;
    bottom: 5.2rem;
  }
}

/* Extra Small Phones (<= 480px) */
@media (max-width: 480px) {
  .interactive-altar-left {
    left: 0.3rem;
    top: 4.2rem;
  }

  .interactive-altar-right {
    right: 0.3rem;
    top: 4.2rem;
  }

  .handi-image-wrapper {
    width: 46px;
    height: 46px;
  }

  .bell-body {
    transform: scale(0.75);
  }

  .handi-hint, .bell-hint {
    font-size: 0.58rem;
    padding: 0.1rem 0.38rem;
  }

  .action-chips {
    gap: 0.3rem;
  }

  .chip-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.7rem;
  }

  .player-pill {
    padding: 0.5rem 0.65rem;
    gap: 0.5rem;
  }

  .disc-container {
    width: 42px;
    height: 42px;
  }
}
