:root {
  --ink: #100607;
  --ink-soft: #1c0a0d;
  --wine: #361017;
  --saffron: #f1a343;
  --marigold: #f6c767;
  --rose: #df715e;
  --cream: #fff5e8;
  --muted: rgba(255, 245, 232, 0.62);
  --faint: rgba(255, 245, 232, 0.38);
  --line: rgba(255, 245, 232, 0.16);
  --glass: rgba(16, 6, 8, 0.48);
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --dev: "Noto Sans Devanagari", "Kohinoor Devanagari", Mangal, var(--sans);
  --display: var(--dev);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

html {
  background: #101722;
  color-scheme: dark;
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--cream);
  background: #101722;
  font-family: var(--sans);
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
a,
.cover {
  -webkit-user-select: none;
  user-select: none;
}

button,
a,
.cover,
.scrub {
  touch-action: manipulation;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--marigold);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

*:focus-visible {
  outline: 2px solid var(--marigold);
  outline-offset: 3px;
}

/* ── Atmosphere ─────────────────────────────── */

.backdrop,
.backdrop > * {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.backdrop {
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 50% 28%, rgba(163, 55, 36, 0.75), transparent 72%),
    linear-gradient(145deg, #3b121a 0%, #1a080d 55%, #080304 100%);
}

.backdrop-photo {
  inset: -4%;
  background-image: url("ganesh-background.webp");
  background-position: center 44%;
  background-size: cover;
  filter: saturate(1.08) contrast(1.04) brightness(0.84);
  opacity: 1;
  transform: scale(1.04);
  animation: photo-breathe 18s ease-in-out infinite alternate;
}

@keyframes photo-breathe {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(0, -0.5%, 0); }
}

.backdrop-wash {
  background:
    linear-gradient(180deg, rgba(4, 11, 19, 0.26) 0%, rgba(19, 4, 7, 0.02) 42%, rgba(7, 3, 6, 0.58) 100%),
    linear-gradient(90deg, rgba(5, 10, 18, 0.22) 0%, rgba(75, 19, 15, 0.01) 48%, rgba(5, 7, 13, 0.34) 100%);
}

.backdrop-glow {
  inset: auto;
  width: min(42vw, 620px);
  height: min(42vw, 620px);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.36;
  animation: glow-drift 14s var(--ease) infinite alternate;
}

.glow-left {
  top: 12%;
  left: -14%;
  background: #d7522d;
}

.glow-right {
  right: -16%;
  bottom: 4%;
  background: #f0a03a;
  opacity: 0.2;
  animation-delay: -6s;
}

@keyframes glow-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(3%, -4%, 0) scale(1.08); }
}

.backdrop-rays {
  inset: -20%;
  background: repeating-conic-gradient(from 2deg at 50% 42%, rgba(255, 210, 120, 0.045) 0deg 7deg, transparent 7deg 16deg);
  mask-image: radial-gradient(ellipse at 50% 42%, #000 0%, transparent 58%);
  opacity: 0.28;
  animation: rays-turn 130s linear infinite;
}

@keyframes rays-turn {
  to { transform: rotate(360deg); }
}

.grain {
  opacity: 0.12;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 5px);
  mix-blend-mode: soft-light;
}

.petals {
  overflow: hidden;
}

.petals span {
  position: absolute;
  top: -16px;
  width: 7px;
  height: 12px;
  border-radius: 70% 35% 70% 35%;
  background: linear-gradient(150deg, #ffd781, #d86636);
  filter: blur(0.15px);
  animation: fall linear infinite;
}

@keyframes fall {
  0% { opacity: 0; transform: translate3d(0, -8vh, 0) rotate(0deg); }
  12% { opacity: 0.58; }
  100% { opacity: 0; transform: translate3d(8vw, 112vh, 0) rotate(420deg); }
}

/* ── Chrome ─────────────────────────────────── */

.topbar,
.stage,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  width: 100%;
  padding: max(20px, env(safe-area-inset-top)) clamp(18px, 3vw, 46px) 0;
  pointer-events: none;
}

.topbar > * {
  pointer-events: auto;
}

.clock,
.source-link {
  color: rgba(255, 248, 236, 0.9);
  font-size: clamp(10px, 0.92vw, 14px);
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.38);
}

.clock {
  justify-self: start;
  padding-top: 8px;
  letter-spacing: 0.02em;
}

.source-links {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: clamp(10px, 1.8vw, 26px);
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  transition: color 160ms ease, transform 160ms ease, filter 160ms ease;
}

.source-icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
}

.source-label,
.source-arrow {
  font-size: 1.1em;
}

.source-link-spotify {
  color: #1db954;
}

.source-link-youtube {
  color: #ff0000;
}

.source-link .source-label,
.source-link .source-arrow {
  color: currentColor;
}

.source-icon-spotify .source-icon-circle {
  fill: #1db954;
}

.source-icon-spotify .source-icon-wave {
  fill: none;
  stroke: #07140c;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.source-icon-youtube .source-icon-circle {
  fill: #ff0000;
}

.source-icon-youtube .source-icon-ring {
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.45;
}

.source-icon-youtube .source-icon-play {
  fill: #ffffff;
}

.source-link:hover,
.source-link:focus-visible {
  color: #ffffff;
  transform: translateY(-1px);
  filter: brightness(1.12);
}

.presence {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 245, 232, 0.2);
  border-radius: 999px;
  background: rgba(8, 8, 14, 0.42);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(16px);
  color: rgba(255, 245, 232, 0.86);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.presence-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #59e18b;
  box-shadow: 0 0 0 0 rgba(89, 225, 139, 0.55);
  animation: online-pulse 2.2s ease-out infinite;
}

@keyframes online-pulse {
  70% { box-shadow: 0 0 0 7px rgba(89, 225, 139, 0); }
  100% { box-shadow: 0 0 0 0 rgba(89, 225, 139, 0); }
}

.stage {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: clamp(86px, 9vh, 126px) 18px calc(66px + env(safe-area-inset-bottom));
}

.hero {
  display: flex;
  width: min(100%, 1240px);
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: clamp(18px, 5vh, 60px) 0 clamp(26px, 5vh, 56px);
  text-align: center;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 760px);
  margin: 0;
  line-height: 0.9;
  transform: translateY(1vh);
}

.hero-title-marathi {
  display: block;
  color: #fffaf2;
  font-family: var(--dev);
  font-size: clamp(3.2rem, 7.5vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.9;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.62), 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* ── Player ─────────────────────────────────── */

.player-zone {
  width: min(100%, 640px);
  margin: 0 auto;
  flex: 0 0 auto;
}

.player {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 20px 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 38px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.16), rgba(62, 26, 30, 0.42) 45%, rgba(255, 255, 255, 0.08)),
    rgba(24, 12, 17, 0.3);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.24), inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(28px) saturate(145%);
}

.player-topline {
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 245, 232, 0.44), transparent);
}

.player-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 76px;
  padding: 8px;
}

.cover-shell {
  position: relative;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
}

.cover-halo {
  display: none;
}

.cover {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #f4bc63, #7a1e22 72%, #1b080b);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.38), inset 0 0 0 3px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: filter 200ms ease, transform 200ms ease;
}

.cover:hover,
.cover:focus-visible {
  filter: saturate(1.15) brightness(1.08);
  transform: scale(1.04);
}

.cover.is-missing {
  font-size: 0;
}

body.is-playing .cover {
  animation: cover-turn 9s linear infinite;
}

@keyframes cover-turn {
  to { transform: rotate(360deg); }
}

.track-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-row .title {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--cream);
  font-size: clamp(13px, 1.45vw, 17px);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-info .artist {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: clamp(10px, 1vw, 12px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fav-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: rgba(255, 245, 232, 0.45);
  transition: color 180ms var(--ease), transform 180ms var(--ease);
}

.fav-btn:hover,
.fav-btn:focus-visible,
.fav-btn.is-favorite {
  color: var(--rose);
  transform: scale(1.12);
}

.fav-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.fav-btn.is-favorite svg {
  fill: currentColor;
}

.equalizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
  padding: 0 4px;
}

.eq-bar {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--marigold);
  opacity: 0.3;
}

body.is-playing .equalizer .eq-bar {
  opacity: 1;
  animation: eq-bounce 1s ease-in-out infinite alternate;
}

body.is-playing .equalizer .eq-bar:nth-child(1) { animation-duration: 0.7s; }
body.is-playing .equalizer .eq-bar:nth-child(2) { animation-duration: 0.9s; animation-delay: -0.2s; }
body.is-playing .equalizer .eq-bar:nth-child(3) { animation-duration: 0.6s; animation-delay: -0.4s; }
body.is-playing .equalizer .eq-bar:nth-child(4) { animation-duration: 0.8s; animation-delay: -0.1s; }

@keyframes eq-bounce {
  0% { height: 25%; }
  100% { height: 100%; }
}

.progress-block {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 4px;
}

.scrub {
  position: relative;
  display: block;
  width: 100%;
  height: 14px;
  padding: 5px 0;
  outline: none;
  background: transparent;
  cursor: pointer;
}

.scrub .track {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 3px;
  overflow: visible;
  border-radius: 99px;
  background: rgba(255, 245, 232, 0.18);
  transform: translateY(-50%);
  transition: height 160ms ease;
}

.scrub:hover .track,
.scrub:focus-visible .track,
.scrub.is-dragging .track {
  height: 4.5px;
}

.fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--saffron), var(--marigold));
  box-shadow: 0 0 10px rgba(241, 163, 67, 0.5);
}

.knob {
  position: absolute;
  top: 50%;
  left: 0;
  width: 9.5px;
  height: 9.5px;
  border: 1.5px solid rgba(255, 245, 232, 0.92);
  border-radius: 50%;
  background: var(--marigold);
  box-shadow: 0 0 8px rgba(246, 199, 103, 0.85);
  transform: translate(-50%, -50%);
  transition: transform 160ms ease;
}

.scrub:hover .knob,
.scrub:focus-visible .knob,
.scrub.is-dragging .knob {
  transform: translate(-50%, -50%) scale(1.25);
}

.times {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
}

.controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  width: 100%;
  margin-top: 2px;
}

.control-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.control-cluster-left {
  grid-column: 1;
  justify-content: flex-start;
}

.control-cluster-center {
  grid-column: 2;
  grid-row: 1;
  gap: 10px;
}

.control-cluster-right {
  grid-column: 3;
  justify-content: flex-end;
}

.ctrl {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 245, 232, 0.12);
  border-radius: 50%;
  background: rgba(255, 245, 232, 0.08);
  color: var(--cream);
  transition: background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
}

.ctrl svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.ctrl-quiet svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.ctrl-quiet .icon-repeat,
.ctrl-quiet .icon-vol-high,
.ctrl-quiet .icon-vol-mute {
  fill: currentColor;
  stroke: none;
}

.ctrl:hover,
.ctrl:focus-visible {
  border-color: rgba(246, 199, 103, 0.4);
  background: rgba(246, 199, 103, 0.16);
  color: var(--marigold);
  transform: translateY(-1px);
}

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

.ctrl.is-active,
.ctrl[aria-pressed="true"] {
  border-color: rgba(246, 199, 103, 0.45);
  background: rgba(246, 199, 103, 0.18);
  color: var(--marigold);
}

.ctrl-play {
  position: relative;
  width: 46px;
  height: 46px;
  border: none;
  background: var(--marigold);
  color: var(--ink);
  box-shadow: 0 0 22px rgba(246, 199, 103, 0.45);
}

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

.ctrl-play .icon-play {
  transform: translateX(1px);
}

.ctrl-play .icon-pause {
  display: none;
}

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

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

.ctrl-play:hover,
.ctrl-play:focus-visible {
  color: var(--ink);
  background: #fff;
  transform: scale(1.06);
}

.ctrl-play[data-buffering="true"] {
  cursor: progress;
}

.ctrl-play[data-buffering="true"] svg {
  opacity: 0;
}

.ctrl-play[data-buffering="true"]::before {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(16, 6, 7, 0.2);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: player-spin 800ms linear infinite;
  content: "";
}

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

.ctrl-link {
  color: rgba(255, 245, 232, 0.45);
}

#repeat {
  position: relative;
}

.repeat-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--saffron);
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  line-height: 13px;
  text-align: center;
}

.volume-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.volume-control .icon-vol-mute {
  display: none;
}

.volume-control.is-muted .icon-vol-high {
  display: none;
}

.volume-control.is-muted .icon-vol-mute {
  display: block;
}

.volume-slider {
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 245, 232, 0.2);
  accent-color: var(--marigold);
  cursor: pointer;
}

/* ── Queue ──────────────────────────────────── */

.queue {
  max-height: min(42vh, 360px);
  margin-top: 12px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(32, 15, 20, 0.36)),
    rgba(12, 8, 13, 0.28);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(28px) saturate(145%);
  scrollbar-color: rgba(255, 245, 232, 0.2) transparent;
  scrollbar-width: thin;
}

.queue-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 10px;
}

.queue-head h3 {
  margin: 3px 0 0;
  color: var(--cream);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 400;
}

.queue-kicker {
  color: var(--saffron);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#queueCount {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  white-space: nowrap;
}

.queue-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--line);
}

.queue-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.queue-search-wrap .search-icon {
  position: absolute;
  left: 10px;
  width: 16px;
  height: 16px;
  fill: var(--muted);
  pointer-events: none;
}

.queue-search {
  width: 100%;
  padding: 8px 30px 8px 34px;
  border: 1px solid rgba(255, 245, 232, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--cream);
  font-size: 13px;
  outline: none;
}

.queue-search:focus {
  border-color: var(--marigold);
}

.search-clear {
  position: absolute;
  right: 8px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 16px;
}

.queue-filter-tabs {
  display: flex;
  gap: 8px;
}

.filter-tab {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid rgba(255, 245, 232, 0.12);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.filter-tab.is-active {
  border-color: rgba(246, 199, 103, 0.35);
  background: rgba(246, 199, 103, 0.12);
  color: var(--marigold);
}

.fav-badge {
  display: inline-block;
  margin-left: 3px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(223, 113, 94, 0.3);
  color: var(--cream);
  font-size: 10px;
}

.queue-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 10px;
  list-style: none;
}

.queue-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--cream);
  text-align: left;
}

.queue-item:hover,
.queue-item:focus-visible {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
}

.queue-item.is-active {
  border-color: rgba(246, 199, 103, 0.35);
  background: rgba(246, 199, 103, 0.13);
}

.queue-item img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #4b1719;
  object-fit: cover;
}

.q-meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

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

.q-title {
  font-size: 10px;
  font-weight: 600;
}

.q-artist {
  color: var(--muted);
  font-size: 9px;
}

.q-trail {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 6px;
}

.q-fav-tag {
  font-size: 10px;
}

.q-now {
  color: var(--saffron);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  visibility: hidden;
}

.queue-item.is-active .q-now {
  visibility: visible;
}

.queue-empty {
  padding: 24px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* ── Footer / chrome extras ─────────────────── */

.footer {
  position: fixed;
  right: 0;
  bottom: max(15px, env(safe-area-inset-bottom));
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 0 clamp(18px, 4vw, 56px);
  pointer-events: none;
}

.footer p {
  margin: 0;
  color: rgba(255, 248, 236, 0.84);
  font-size: clamp(9px, 0.85vw, 13px);
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.46);
}

.footer-mantra {
  text-align: right;
}

.footer-mantra span {
  display: inline-block;
  margin: 0 5px;
  color: var(--saffron);
}

.footer .maker-link {
  position: relative;
  z-index: 1;
  color: #fff8ec;
  pointer-events: auto;
  text-decoration: underline;
  text-decoration-color: var(--marigold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.footer .maker-link span {
  display: inline-block;
  margin: 0 0 0 3px;
  color: var(--marigold);
}

.footer .maker-link:hover,
.footer .maker-link:focus-visible {
  color: var(--marigold);
}

body.queue-open .footer {
  visibility: hidden;
  opacity: 0;
}

.yt-host {
  position: fixed;
  top: -2px;
  left: -2px;
  z-index: -2;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.toast {
  position: fixed;
  right: 50%;
  bottom: max(58px, calc(48px + env(safe-area-inset-bottom)));
  z-index: 5;
  max-width: min(calc(100vw - 36px), 420px);
  padding: 9px 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 245, 232, 0.18);
  border-radius: 999px;
  background: rgba(18, 5, 8, 0.82);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
  color: var(--cream);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 8px);
  transition: opacity 220ms ease, transform 220ms var(--ease);
  backdrop-filter: blur(14px);
}

.toast.show {
  opacity: 1;
  transform: translate(50%, 0);
}

/* ── Breakpoints ────────────────────────────── */

@media (max-width: 760px) {
  .stage {
    padding-top: 88px;
  }

  .hero {
    padding-top: 18px;
  }

  .queue-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .backdrop-photo {
    background-image: url("ganesh-background-mobile.webp");
    background-position: center 42%;
  }

  .topbar {
    padding-right: 13px;
    padding-left: 13px;
  }

  .clock,
  .source-link {
    padding-top: 5px;
    font-size: 10px;
  }

  .source-links {
    gap: 10px;
  }

  .source-label {
    display: none;
  }

  .source-icon {
    width: 17px;
    height: 17px;
  }

  .presence {
    padding: 7px 10px;
    font-size: 9px;
  }

  .stage {
    padding: 80px 12px calc(62px + env(safe-area-inset-bottom));
  }

  .hero {
    padding-top: 10px;
    padding-bottom: 30px;
  }

  .hero-title {
    width: min(100%, 340px);
    transform: translateY(1.5vh);
  }

  .hero-title-marathi {
    font-size: clamp(2.6rem, 14vw, 4.3rem);
    letter-spacing: -0.07em;
    line-height: 0.92;
  }

  .player-zone {
    width: 100%;
  }

  .player {
    gap: 10px;
    padding: 16px 16px 18px;
    border-radius: 30px;
  }

  .player-main {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px 12px;
    min-height: 72px;
    padding: 8px 4px 10px;
  }

  .cover-shell,
  .cover {
    width: 52px;
    height: 52px;
  }

  .title-row .title {
    font-size: 15px;
  }

  .track-info .artist {
    font-size: 12px;
  }

  .controls {
    gap: 0;
    padding-top: 1px;
  }

  .control-cluster {
    gap: 4px;
  }

  .control-cluster-center {
    gap: 8px;
  }

  .control-cluster-right {
    gap: 4px;
  }

  .volume-slider {
    display: none;
  }

  .ctrl {
    width: 36px;
    height: 36px;
  }

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

  #openYt {
    display: none;
  }

  .footer-note {
    display: none;
  }

  .footer-mantra {
    width: 100%;
    text-align: center;
  }

  .toast {
    bottom: max(88px, calc(80px + env(safe-area-inset-bottom)));
  }
}

@media (max-width: 340px) {
  .player {
    padding-right: 14px;
    padding-left: 14px;
  }

  .player-main {
    gap: 10px;
    padding-right: 4px;
    padding-left: 4px;
  }

  .cover-shell,
  .cover {
    width: 48px;
    height: 48px;
  }

  .title-row .title {
    font-size: 14px;
  }

  .track-info .artist {
    font-size: 11px;
  }

  .ctrl {
    width: 32px;
    height: 32px;
  }

  .ctrl-play {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Mandap Ambient Toolbar & Shortcuts Modal ──────── */

.mandap-fx-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 245, 232, 0.08);
}

.mandap-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(246, 199, 103, 0.1);
  border: 1px solid rgba(246, 199, 103, 0.22);
}

.mandap-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--marigold);
  box-shadow: 0 0 8px var(--marigold);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

.mandap-badge-text {
  color: var(--cream);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fx-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fx-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 245, 232, 0.14);
  border-radius: 999px;
  background: rgba(255, 245, 232, 0.06);
  color: var(--cream);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 180ms ease;
}

.fx-btn:hover,
.fx-btn:focus-visible {
  border-color: rgba(246, 199, 103, 0.5);
  background: rgba(246, 199, 103, 0.16);
  color: var(--marigold);
  transform: translateY(-1px);
}

.help-modal {
  padding: 0;
  border: 1px solid rgba(255, 245, 232, 0.2);
  border-radius: 20px;
  background: rgba(18, 7, 9, 0.92);
  color: var(--cream);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  width: min(90vw, 420px);
}

.help-modal::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.help-content {
  padding: 20px 24px;
}

.help-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 245, 232, 0.1);
}

.help-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--marigold);
}

.close-help {
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}

.close-help:hover {
  color: var(--cream);
}

.shortcuts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.shortcuts-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.shortcuts-list kbd {
  display: inline-block;
  padding: 2px 8px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--marigold);
  background: rgba(255, 245, 232, 0.08);
  border: 1px solid rgba(255, 245, 232, 0.18);
  border-radius: 6px;
}

