/* VIGYAN NATIKA - fast mobile UI (no blur / no heavy animations) */
:root {
  color-scheme: dark;
  --bg: #080a13; --bg-soft: #0e1220; --card: #12172a;
  --text: #f4f6ff; --muted: #8991aa;
  --line: rgba(161,174,218,.15);
  --accent: #a58bff; --accent-2: #5ce1cf; --accent-3: #ff79bd; --danger: #ff8195;
  --on-accent: #111426;
  --shadow: 0 10px 28px rgba(0,0,0,.30);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f5fb; --bg-soft: #eceefa; --card: #ffffff;
  --text: #171a2b; --muted: #68708a;
  --line: rgba(70,79,125,.14);
  --accent: #7358e8; --accent-2: #00a995; --accent-3: #e65ca5; --danger: #d94e69;
  --shadow: 0 10px 28px rgba(48,52,93,.12);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { touch-action: manipulation; }
body {
  margin: 0; min-height: 100vh; max-width: 100%; overflow-x: hidden;
  padding: 0 0 calc(112px + var(--safe-b));
  background: var(--bg); color: var(--text); font-family: var(--font);
  -webkit-user-select: none; user-select: none;
}
/* static glow: one cheap layer, no blur filter, no animation */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 340px at 0% 0%, rgba(120,86,255,.16), transparent 70%),
    radial-gradient(480px 360px at 100% 45%, rgba(0,217,192,.10), transparent 70%);
}
button, input { font: inherit; }
button { color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; padding: calc(12px + var(--safe-t)) 16px 11px; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-inner, .status-wrap { max-width: 820px; margin: 0 auto; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-width: 0; }
.brand-mark { flex: 0 0 44px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(165,139,255,.38); border-radius: 14px; color: var(--accent); background: rgba(165,139,255,.12); }
.brand-copy { display: grid; gap: 3px; min-width: 0; }
.brand-copy strong { overflow: hidden; text-overflow: clip; font-size: 14px; font-weight: 800; letter-spacing: .12em; white-space: nowrap; }
.brand-copy strong span { color: var(--accent); }
.brand-copy small { color: var(--muted); font-size: 9px; letter-spacing: .2em; font-weight: 700; white-space: nowrap; }
.actions { display: flex; gap: 8px; }
.action-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 46px; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--muted); font-size: 12px; font-weight: 700; }
.action-btn svg { width: 19px; height: 19px; }
.action-btn.icon-only { padding: 0; width: 46px; color: var(--accent); }
.action-btn:active { transform: scale(.94); }
.action-btn:disabled { opacity: .55; }
.subtle-danger { color: var(--danger); }
.sun-icon { display: none; }
:root[data-theme="light"] .sun-icon { display: block; }
:root[data-theme="light"] .moon-icon { display: none; }
.status-wrap { margin-top: 11px; }
.status-line { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .03em; }
#statusCount { color: var(--accent-2); font-variant-numeric: tabular-nums; }
.progress-track { height: 4px; margin-top: 7px; overflow: hidden; border-radius: 9px; background: var(--line); }
.progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3)); transition: width .4s ease; }

/* ---------- Hero ---------- */
main { width: min(100% - 28px, 820px); min-width: 0; margin: 0 auto; }
.hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 28px 22px; margin: 18px 0 26px; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(115deg, rgba(165,139,255,.14), rgba(92,225,207,.05) 55%, rgba(255,121,189,.08)), var(--card); box-shadow: var(--shadow); }
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-2); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.eyebrow i, .live-dot, .playing-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
.hero h1 { margin: 12px 0 9px; font-size: clamp(28px, 7.5vw, 48px); font-weight: 800; line-height: 1.06; letter-spacing: -.035em; }
.hero h1 span { color: var(--accent); }
.hero p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 360px; }
.hero-art { flex: 0 0 auto; }
.art-disc, .vinyl { position: relative; display: grid; place-items: center; border-radius: 50%; background: repeating-radial-gradient(circle, #25213d 0 3px, #151a2d 4px 7px); border: 1px solid rgba(165,139,255,.5); }
.art-disc { width: 112px; height: 112px; }
.disc-core { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--on-accent); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.disc-core.big { width: 28%; height: 28%; }
.disc-core.big svg { width: 50%; height: 50%; }
body.is-playing .art-disc { animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Playlist ---------- */
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 0 2px 15px; }
.section-heading h2 { margin: 5px 0 0; font-size: 25px; font-weight: 800; letter-spacing: -.03em; }
.section-heading .eyebrow { color: var(--muted); }
.track-total { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.song { display: flex; align-items: center; gap: 13px; min-height: 82px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); min-width: 0; }
.song.current { border-color: rgba(165,139,255,.6); background: linear-gradient(100deg, rgba(165,139,255,.15), transparent 75%), var(--card); }
.song.played { opacity: .5; }
.num { flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--accent); background: rgba(165,139,255,.12); font-size: 14px; font-weight: 800; }
.song.current .num { color: var(--on-accent); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.song.played .num { color: var(--muted); background: var(--bg-soft); }
.title-wrap { flex: 1; min-width: 0; }
.title { display: block; overflow: hidden; font-size: 15px; font-weight: 700; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.track-subtitle { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.mini-bars { display: none; align-items: flex-end; gap: 2px; height: 16px; }
.mini-bars i { width: 3px; height: 8px; border-radius: 3px; background: var(--accent-2); transform-origin: bottom; }
.song.is-playing .mini-bars { display: inline-flex; }
.song.is-playing .mini-bars i { animation: eq .7s ease-in-out infinite alternate; }
.song.is-playing .mini-bars i:nth-child(2) { animation-delay: -.3s; }
.song.is-playing .mini-bars i:nth-child(3) { animation-delay: -.5s; }
@keyframes eq { from { transform: scaleY(.35); } to { transform: scaleY(1.6); } }
.go { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 104px; height: 50px; padding: 0 14px; border: 1px solid rgba(165,139,255,.32); border-radius: 15px; color: var(--accent); background: rgba(165,139,255,.1); font-size: 13px; font-weight: 800; }
.go svg { width: 16px; height: 16px; }
.go:active { transform: scale(.94); }
.go:disabled { color: var(--muted); border-color: var(--line); background: var(--bg-soft); }
.song.current .go { color: var(--on-accent); border-color: transparent; background: linear-gradient(120deg, var(--accent), var(--accent-2)); }
.msg { padding: 34px 14px; color: var(--muted); text-align: center; font-size: 13px; }

/* ---------- Play buttons ---------- */
.pp .ico-pause { display: none; }
.pp.is-playing .ico-play { display: none; }
.pp.is-playing .ico-pause { display: block; }
.round-md, .play-lg { display: grid; place-items: center; border-radius: 50%; color: var(--on-accent); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.round-md { flex: 0 0 60px; width: 60px; height: 60px; }
.round-md svg { width: 28px; height: 28px; }
.play-lg { width: 84px; height: 84px; box-shadow: 0 10px 30px rgba(165,139,255,.35); }
.play-lg svg { width: 38px; height: 38px; }
.pp:active { transform: scale(.92); }
.pp:disabled { opacity: .4; }

/* ---------- Mini player ---------- */
.mini { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + var(--safe-b)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(0,0,0,.25); }
.mini-progress { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--line); overflow: hidden; }
.mini-progress i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; transform: scaleX(0); }
.mini-row { display: flex; align-items: center; gap: 12px; max-width: 820px; margin: 0 auto; }
.mini-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 60px; text-align: left; }
.mini-art { flex: 0 0 56px; display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid rgba(165,139,255,.35); border-radius: 16px; color: var(--accent); background: linear-gradient(145deg, rgba(165,139,255,.22), rgba(92,225,207,.1)); }
.mini-art svg { width: 26px; height: 26px; }
.mini-text { min-width: 0; display: grid; gap: 5px; }
.np-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.np-title { overflow: hidden; font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Full screen player ---------- */
.sheet { position: fixed; z-index: 40; inset: 0; display: flex; flex-direction: column; align-items: center; padding: calc(10px + var(--safe-t)) 22px calc(18px + var(--safe-b)); overflow-y: auto; background: linear-gradient(180deg, rgba(165,139,255,.2), transparent 45%), var(--bg); transform: translateY(100%); visibility: hidden; transition: transform .3s ease, visibility 0s .3s; }
.sheet.open { transform: none; visibility: visible; transition: transform .3s ease; }
.sheet > * { width: 100%; max-width: 440px; }
.sheet-bar { display: flex; align-items: center; justify-content: space-between; }
.sheet-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .17em; }
.ic-space { width: 48px; }
.ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: var(--text); }
.ic svg { width: 32px; height: 32px; }
.ic.sm { width: 44px; height: 44px; }
.ic.sm svg { width: 24px; height: 24px; }
.ic:active { transform: scale(.88); background: var(--line); }
.ic:disabled { opacity: .3; }
.sheet-bar .ic svg { width: 30px; height: 30px; }
.cover-wrap { display: grid; place-items: center; margin: 14px 0 18px; flex: 0 1 auto; }
.cover { display: grid; place-items: center; width: min(78vw, 42dvh, 380px); aspect-ratio: 1; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(circle at 30% 20%, rgba(165,139,255,.35), transparent 60%), radial-gradient(circle at 80% 90%, rgba(92,225,207,.25), transparent 55%), var(--card); box-shadow: var(--shadow); }
.vinyl { width: 76%; aspect-ratio: 1; }
.sheet.open .cover.playing .vinyl { animation: spin 8s linear infinite; }
.sheet-info h2 { margin: 0; font-size: 23px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; overflow-wrap: anywhere; }
.sheet-info p { margin: 5px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.sheet-seek { margin-top: 18px; }
.times { display: flex; justify-content: space-between; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ctrls { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.vol-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.vol-row input { flex: 1; }
.volume-off { display: none; }
.is-muted .volume-on { display: none; }
.is-muted .volume-off { display: block; }
.up-next { margin-top: 14px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); color: var(--muted); font-size: 13px; font-weight: 600; text-align: center; }

/* ---------- Range sliders ---------- */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; margin: 0; background: transparent; outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 9px; background: linear-gradient(90deg, var(--accent-2) var(--p, 0%), var(--line) var(--p, 0%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border: 4px solid var(--card); border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 1px rgba(92,225,207,.5); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 9px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 9px; background: var(--accent-2); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 4px solid var(--card); border-radius: 50%; background: var(--accent-2); }

/* ---------- Themed dialog ---------- */
.dlg { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(4,6,14,.62); opacity: 0; transition: opacity .16s ease; }
.dlg[hidden] { display: none; }
.dlg.show { opacity: 1; }
.dlg-card { width: min(100%, 360px); padding: 26px 22px 20px; border: 1px solid var(--line); border-radius: 26px; background: var(--card); box-shadow: var(--shadow); text-align: center; transform: scale(.94); transition: transform .16s ease; }
.dlg.show .dlg-card { transform: none; }
.dlg-ico { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px; color: var(--accent); background: rgba(165,139,255,.14); }
.dlg-ico.danger { color: var(--danger); background: rgba(255,129,149,.14); }
.dlg-card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.dlg-card p { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.dlg-actions { display: flex; gap: 10px; }
.btn { flex: 1; height: 52px; border-radius: 16px; font-size: 15px; font-weight: 800; }
.btn:active { transform: scale(.96); }
.btn.ghost { border: 1px solid var(--line); background: var(--bg-soft); color: var(--text); }
.btn.solid { color: var(--on-accent); background: linear-gradient(120deg, var(--accent), var(--accent-2)); }
.btn.solid.danger { color: #fff; background: linear-gradient(120deg, #ff6f8a, #ff8a6b); }

/* ---------- Small phones ---------- */
@media (max-width: 480px) {
  .top { padding-left: 12px; padding-right: 12px; }
  .top-inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand-mark { flex-basis: 40px; width: 40px; height: 40px; border-radius: 12px; }
  .brand-copy strong { font-size: 12.5px; letter-spacing: .07em; }
  .brand-copy small { display: none; }
  .actions { gap: 6px; }
  .action-btn span { display: none; }
  .action-btn { padding: 0; width: 42px; min-width: 42px; height: 44px; border-radius: 13px; }
  .eyebrow { letter-spacing: .12em; font-size: 9px; }
  .song { gap: 10px; padding: 10px; }
  .num { flex-basis: 42px; width: 42px; height: 42px; font-size: 13px; }
  .go { min-width: 92px; padding: 0 10px; }
  .hero { padding: 24px 18px; }
  .art-disc { width: 84px; height: 84px; }
  .disc-core { width: 32px; height: 32px; }
  .hero p { font-size: 12px; }
}
@media (hover: hover) {
  .go:hover:not(:disabled), .action-btn:hover { border-color: var(--accent); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  }
  
