/* Light-weight by design: no backdrop blur on phones, no fixed backgrounds,
   no big glows or filters — flat surfaces, one accent (gold) for actions. */
:root {
  --bg: #050d1a;
  --bg-2: #0a1a30;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.08);
  --text: #eaf2fc;
  --muted: #8da2bd;
  --cyan: #4cc9ff;
  --gold: #f2c55c;
  --gold-grad: linear-gradient(180deg, #fff3c4 0%, #f3cf72 45%, #d8a136 100%);
  --on-gold: #2a1a00;
  --radius: 14px;
  --gutter: 16px;
  --top-h: 60px;
  --pop: #0b1b31;          /* dropdowns, mini player, inputs */
  --top-bg: rgba(5, 13, 26, 0.94);
  --tab-bg: #071223;
  --glow: #12345c;
  --title: #f4f7fb;
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #f5f7fb;
  --bg-2: #e6ecf5;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --line: rgba(10, 30, 60, 0.1);
  --text: #0e1c30;
  --muted: #5b6b82;
  --cyan: #0a78b8;
  --gold: #a87411;
  --pop: #ffffff;
  --top-bg: rgba(255, 255, 255, 0.95);
  --tab-bg: #ffffff;
  --glow: #dfe9f7;
  --title: #0e1c30;
  color-scheme: light;
}
:root[data-theme='light'] .card, :root[data-theme='light'] .res, :root[data-theme='light'] .trk, :root[data-theme='light'] .ver, :root[data-theme='light'] .my-item { box-shadow: 0 1px 3px rgba(10, 30, 60, 0.08); }
:root[data-theme='light'] .dur { color: #fff; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0;
  font-family: Heebo, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(900px 420px at 50% -120px, var(--glow) 0%, transparent 70%) no-repeat, var(--bg);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
/* off-screen via clipping, never via a negative offset: in RTL a far-left element
   widens the page and the whole app slides sideways / opens on a blank area */
.skip { position: absolute; top: 0; right: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; top: 8px; right: 8px; z-index: 99; background: #000; color: #fff; padding: 8px 12px; border-radius: 8px; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }

/* ── header ── */
.top { position: sticky; top: 0; z-index: 30; background: var(--top-bg); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 14px; height: var(--top-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 10px; }
.brand-t { display: flex; flex-direction: column; line-height: 1.05; }
.brand-t b { font-weight: 800; font-size: 1.25rem; color: var(--gold); }
.brand-t small { font-size: 0.66rem; letter-spacing: 0.12em; color: var(--muted); direction: ltr; text-align: right; }
.nav { display: flex; gap: 2px; }
.nav a { color: var(--text); padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.nav a:hover { background: var(--surface); text-decoration: none; }
.nav-yt svg { color: #ff4e45; font-size: 1.2em; }
.nav-radio svg { color: var(--gold); }
.top-search { position: relative; flex-shrink: 0; display: flex; align-items: center; border: 1px solid transparent; border-radius: 10px; transition: background 0.2s, border-color 0.2s; }
.top-search.open { background: var(--surface); border-color: var(--line); }
.top-search input { background: none; border: 0; color: var(--text); padding: 0; width: 0; min-width: 0; height: 34px; font: inherit; font-size: 0.92rem; outline: none; opacity: 0; transition: width 0.22s ease, padding 0.22s ease, opacity 0.15s; }
.top-search.open input { width: 240px; padding: 0 12px; opacity: 1; }
.top-search .ts-btn { width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--muted); display: grid; place-items: center; font-size: 1.1rem; }
.top-search .ts-btn:hover { color: var(--text); background: var(--surface); }
/* what's playing now, in the top bar */
.hdr-now { display: inline-flex; align-items: center; gap: 8px; max-width: 260px; height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--surface); color: var(--text); font-size: 0.88rem; font-weight: 500; margin-inline-start: auto; }
.hdr-now:hover { background: var(--surface-2); }
.hdr-now-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-now .eq { display: inline-flex; }
.hdr-now:not(.is-playing) .eq i { animation: none; height: 4px; }
.hdr-now:not([hidden]) + .top-acts { margin-inline-start: 0; }
.top-search .ac { left: auto; right: 0; width: 420px; }
.pg-home .top-search { display: none; }
.install-pill { display: inline-flex; align-items: center; height: 36px; border: 1px solid rgba(242, 197, 92, 0.35); border-radius: 10px; flex-shrink: 0; }
.install-btn { display: inline-flex; align-items: center; gap: 6px; height: 100%; background: none; border: 0; color: var(--gold); padding: 0 4px 0 12px; font-weight: 600; font-size: 0.88rem; white-space: nowrap; }
.install-x { height: 100%; background: none; border: 0; color: var(--muted); padding: 0 10px 0 8px; font-size: 0.72rem; line-height: 1; }
.install-x:hover { color: var(--text); }

/* ── header actions: radio + theme ── */
.top-acts { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-inline-start: auto; }
.hdr-btn { height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text); font-weight: 500; font-size: 0.92rem; transition: background 0.15s, border-color 0.15s; }
.hdr-btn:hover { background: var(--surface); }
.hdr-btn svg { font-size: 1.05rem; }
.hdr-radio svg { color: var(--gold); }
.hdr-radio .radio-pill-t { max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-on .hdr-radio { border-color: rgba(242, 197, 92, 0.55); background: rgba(242, 197, 92, 0.08); }
.radio-on .hdr-radio .eq { display: inline-flex; }
.hdr-icon { width: 36px; padding: 0; justify-content: center; border-color: transparent; color: var(--muted); }
.hdr-icon:hover { color: var(--text); }
.th-sun { display: none; }
:root[data-theme='light'] .th-sun { display: inline; }
:root[data-theme='light'] .th-moon { display: none; }
.radio-card h2 { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 4px; }
.radio-card h2 svg { color: var(--gold); }
.radio-all { width: 100%; display: flex; align-items: center; gap: 12px; text-align: right; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(242, 197, 92, 0.4); background: rgba(242, 197, 92, 0.08); margin: 10px 0 6px; }
.radio-all .radio-dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: var(--on-gold); font-size: 1.2rem; }
.radio-all span:last-child { display: flex; flex-direction: column; }
.radio-all small { color: var(--muted); }
.radio-all.on, .radio-chips button.on { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.radio-groups { text-align: right; max-height: 46vh; overflow-y: auto; margin-bottom: 12px; }
.radio-groups h3 { font-size: 0.85rem; color: var(--muted); font-weight: 600; margin: 12px 0 6px; }
.radio-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.radio-chips button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-weight: 500; }
.radio-chips small { color: var(--muted); }
.colls a.is-style { border-style: dashed; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ── likes & comments ── */
.social { margin: 18px 0 0; }
.social-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.like-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px; font-weight: 600; transition: background 0.15s, color 0.15s; }
.like-btn svg { font-size: 1.15rem; color: var(--muted); transition: color 0.15s, transform 0.2s; }
.like-btn[aria-pressed='true'] { border-color: rgba(255, 92, 120, 0.5); background: rgba(255, 92, 120, 0.1); }
.like-btn[aria-pressed='true'] svg { color: #ff5c78; }
.like-btn.pop svg { transform: scale(1.35); }
.like-n { font-variant-numeric: tabular-nums; }
.cmt-jump { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.cmts .h2 { margin-bottom: 10px; }
.cmt-form { display: grid; gap: 8px; max-width: 640px; margin-bottom: 18px; }
.cmt-form input, .cmt-form textarea { width: 100%; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--text); font: inherit; padding: 10px 12px; resize: vertical; }
.cmt-form input:focus, .cmt-form textarea:focus { outline: none; border-color: var(--cyan); }
.cmt-form .btn { justify-self: start; margin: 0; }
.cmt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.cmt { background: var(--surface); border-radius: 12px; padding: 10px 14px; }
.cmt.is-new { box-shadow: inset -3px 0 0 var(--gold); }
.cmt-h { display: flex; gap: 10px; align-items: baseline; }
.cmt-h small { color: var(--muted); font-size: 0.8rem; }
.cmt p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ── subscribe to the channel ── */
.sub-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 10px; background: #e62117; color: #fff; font-weight: 600; font-size: 0.9rem; white-space: nowrap; transition: background 0.15s; }
.sub-btn:hover { background: #cc1a10; text-decoration: none; }
.sub-btn svg { font-size: 1.15rem; }
.sub-btn-lg { height: 40px; padding: 0 18px; margin-top: 12px; border-radius: 999px; }
.stage-acts .sub-btn-lg { margin-top: 12px; }
.np-subscribe { background: #e62117 !important; color: #fff !important; }
.sub-card { display: flex; align-items: center; gap: 16px; margin: 34px 0; padding: 18px 20px; border-radius: 18px; background: linear-gradient(135deg, rgba(230, 33, 23, 0.12), var(--surface)); border: 1px solid var(--line); }
.sub-card img { border-radius: 14px; flex-shrink: 0; }
.sub-card-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sub-card-t b { font-size: 1.1rem; font-weight: 600; }
.sub-card-t span { color: var(--muted); font-size: 0.92rem; }
.sub-card .sub-btn-lg { margin: 0; }

/* ── account ── */
.hdr-login { border-color: rgba(242, 197, 92, 0.45); color: var(--gold); font-weight: 600; }
.hdr-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; border: 2px solid rgba(242, 197, 92, 0.6); flex-shrink: 0; }
.hdr-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tab-me-ico { display: grid; place-items: center; height: 1.4em; }
.tab-me-ico img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 2px solid transparent; }
.tabbar a.on .tab-me-ico img { border-color: var(--gold); }
.btn-google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; gap: 10px; }
.btn-google:hover { background: #f6f8fc; }
.btn-google svg { font-size: 1.15rem; }
.me { margin-bottom: 22px; }
.my-contact { margin: 34px 0 10px; text-align: center; color: var(--muted); font-size: 0.92rem; }
.foot-contact { font-weight: 600; }
.me-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: linear-gradient(135deg, rgba(242, 197, 92, 0.1), var(--surface)); border: 1px solid var(--line); flex-wrap: wrap; }
.me-card .btn { margin: 0; }
.me-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.me-guest { display: grid; place-items: center; background: var(--gold-grad); color: var(--on-gold); font-size: 1.5rem; }
.me-t { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.me-t b { font-size: 1.1rem; font-weight: 600; }
.me-t small { color: var(--muted); }
.me-sync { color: #5fd38d; }
.me-searches { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.ac-clear { background: none; border: 0; color: var(--cyan); font-size: 0.82rem; padding: 2px 6px; }
.ac-head-row { display: flex; justify-content: space-between; align-items: center; }
.ac-recent { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; cursor: pointer; }
.ac-recent:hover { background: var(--surface-2); }
.ac-recent-ico { color: var(--muted); width: 22px; text-align: center; }
.ac-recent-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-recent-x { background: none; border: 0; color: var(--muted); font-size: 0.75rem; padding: 4px 6px; border-radius: 6px; }
.ac-recent-x:hover { color: var(--text); background: var(--surface); }

/* ── for you (home) ── */
.home-personal:empty { display: none; }
.home-personal { margin-top: 26px; }
.fy-h { font-size: 1.5rem; font-weight: 700; margin: 0 0 14px; color: var(--title); }
.fy-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.fy-tile { display: flex; align-items: center; gap: 12px; padding: 0; overflow: hidden; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-align: right; min-height: 64px; transition: background 0.15s; font: inherit; }
.fy-tile:hover { background: var(--surface-2); text-decoration: none; }
.fy-tile img { width: 86px; height: 64px; object-fit: cover; flex-shrink: 0; }
.fy-tile > span:not(.fy-ico) { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 8px 0; }
.fy-tile small { color: var(--muted); font-size: 0.75rem; }
.fy-tile b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fy-tile em { font-style: normal; color: var(--muted); font-size: 0.8rem; padding-inline-end: 14px; }
.fy-ico { width: 64px; height: 64px; display: grid; place-items: center; flex-shrink: 0; font-size: 1.5rem; background: linear-gradient(135deg, #1a3a66, #0c2342); color: #cfe3ff; }
.fy-liked { background: linear-gradient(135deg, #f2c55c, #c98a1e); color: var(--on-gold); }
.fy-play { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: var(--on-gold); margin-inline-end: 12px; font-style: normal; flex-shrink: 0; }
.fy-rail { margin-top: 26px; }
.fy-login { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px dashed var(--line); color: var(--muted); font-size: 0.92rem; }
.fy-login .btn { margin: 0; }

/* ── collections as artwork tiles ── */
.coll-tiles { list-style: none; margin: 18px 0 0; padding: 0; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; width: 100%; }
.coll-tile { position: relative; display: flex; flex-direction: column; width: 180px; border-radius: 12px; overflow: hidden; color: var(--text); text-align: right; background: var(--surface); transition: background 0.15s; }
.coll-tile:hover { text-decoration: none; background: var(--surface-2); }
.coll-tile img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.3s; }
.coll-tile:hover img { transform: scale(1.04); }
.coll-shade { display: none; }
.coll-name { padding: 7px 10px 0; font-weight: 600; font-size: 0.95rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coll-n { padding: 0 10px 8px; font-size: 0.75rem; color: var(--muted); }

/* ── autocomplete ── */
.ac {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 35; margin: 0; padding: 6px; list-style: none;
  background: var(--pop); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  max-height: min(70vh, 520px); overflow-y: auto; text-align: right;
}
.ac-head { padding: 6px 10px 4px; color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.ac-item { display: flex; align-items: center; gap: 6px; border-radius: 10px; }
.ac-item.is-active, .ac-item:hover { background: var(--surface-2); }
.ac-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 8px; color: var(--text); }
.ac-link:hover { text-decoration: none; }
.ac-thumb { width: 64px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--bg-2); flex-shrink: 0; }
.ac-body { min-width: 0; display: flex; flex-direction: column; }
.ac-body b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-body small { color: var(--muted); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac mark, .res mark, .sov-list mark { background: rgba(242, 197, 92, 0.22); color: inherit; border-radius: 3px; }
.ac-play { flex-shrink: 0; width: 34px; height: 34px; margin-inline-end: 6px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--gold); }
.ac-play:hover { background: var(--gold); color: var(--on-gold); }
.ac-add { flex-shrink: 0; width: 34px; height: 34px; border: 0; border-radius: 50%; display: grid; place-items: center; background: none; color: var(--muted); }
.ac-add:hover { background: var(--surface-2); color: var(--text); }
.ac-tag { flex-shrink: 0; margin-inline-end: 10px; font-size: 0.72rem; color: var(--cyan); border: 1px solid rgba(76, 201, 255, 0.35); border-radius: 999px; padding: 0 8px; }
.ac-tag-coll { color: var(--gold); border-color: rgba(242, 197, 92, 0.4); }
.ac-coll-ico { width: 64px; aspect-ratio: 16 / 9; border-radius: 6px; display: grid; place-items: center; background: rgba(242, 197, 92, 0.12); color: var(--gold); font-size: 1.3rem; flex-shrink: 0; }
.ac-all { padding: 10px; text-align: center; color: var(--cyan); font-weight: 700; cursor: pointer; border-radius: 10px; }
.ac-all:hover { background: var(--surface); }
.ac-empty { padding: 16px; color: var(--muted); text-align: center; }

/* ── hero ── */
.hero { padding: 34px 0 0; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.banner-wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.banner { width: 100%; height: auto; aspect-ratio: 2000 / 324; min-height: 100px; object-fit: cover; border-radius: 16px; }
.hero-in { display: flex; flex-direction: column; align-items: center; }
.hero-h { margin: 26px 0 4px; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.gold-t { font-weight: 800; font-size: clamp(3rem, 10vw, 5.2rem); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }
.hero-sub { font-size: clamp(1.15rem, 3.6vw, 1.6rem); font-weight: 700; color: var(--cyan); margin-top: 8px; }
.hero-p { max-width: 540px; color: var(--muted); font-size: 1.02rem; margin: 12px 0 22px; }
.search { position: relative; width: 100%; max-width: 620px; background: var(--pop); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; transition: border-color 0.15s; }
.search:focus-within { border-color: var(--cyan); }
.search input { width: 100%; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: inherit; font-size: 1.1rem; padding: 16px 54px 16px 22px; }
.search input::placeholder { color: #6c84a3; }
.search-ico { position: absolute; top: 50%; right: 20px; transform: translateY(-50%); color: var(--cyan); font-size: 1.3rem; display: flex; pointer-events: none; }
.search .ac { top: calc(100% + 8px); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.radio-cta { display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 10px; border-radius: 999px; border: 1px solid rgba(242, 197, 92, 0.35); background: rgba(242, 197, 92, 0.08); text-align: right; transition: background 0.15s; }
.radio-cta:hover { background: rgba(242, 197, 92, 0.15); }
.radio-orb { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: var(--on-gold); font-size: 1.25rem; }
.radio-t { display: flex; flex-direction: column; line-height: 1.25; }
.radio-t b { font-weight: 800; }
.radio-t small { color: var(--muted); font-size: 0.82rem; }
.radio-on .radio-eq { display: inline-flex; }
.res-thumb.ac-coll-ico { width: 96px; font-size: 1.6rem; }
.radio-on .radio-t small::after { content: ' · לחצו לנעימה הבאה'; color: var(--gold); }
.colls { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.colls a, .tag-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 0.92rem; }
.colls a:hover, .tag-chip:hover { background: var(--surface-2); text-decoration: none; border-color: rgba(242, 197, 92, 0.4); }
.colls small { color: var(--muted); font-weight: 400; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag-chip { padding: 3px 12px; font-size: 0.85rem; }
.stats { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin: 16px 0 4px; color: var(--muted); font-size: 0.9rem; }
.stats b { color: var(--text); font-weight: 800; }
.install-cta { margin-top: 16px; display: flex; align-items: center; width: 100%; max-width: 420px; border-radius: 14px; border: 1px solid rgba(242, 197, 92, 0.3); background: rgba(242, 197, 92, 0.06); }
.install-cta-main { flex: 1; display: flex; align-items: center; gap: 12px; text-align: right; background: none; border: 0; padding: 10px 12px; }
.install-cta-main img { border-radius: 10px; }
.install-cta-main span { flex: 1; display: flex; flex-direction: column; }
.install-cta-main small { color: var(--muted); }
.install-cta-main > svg { color: var(--gold); font-size: 1.3rem; }
.install-cta .install-x { align-self: stretch; padding: 0 14px; border-inline-start: 1px solid rgba(242, 197, 92, 0.2); }
.wave { display: block; width: 100%; height: 46px; margin-top: 22px; opacity: 0.4; }

/* ── sections, rails, cards ── */
.sec { margin: 34px 0; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-sub { margin: 2px 0 0; color: var(--muted); font-size: 0.9rem; }
.h1 { font-weight: 600; font-size: clamp(1.6rem, 4.6vw, 2.25rem); line-height: 1.2; letter-spacing: -0.01em; margin: 4px 0 6px; color: var(--title); }
.h2 { font-size: 1.2rem; font-weight: 600; margin: 0; color: var(--title); }
.kicker { margin: 0; color: var(--cyan); font-weight: 700; font-size: 0.88rem; }
.lead { margin: 0; font-size: 1.08rem; opacity: 0.9; }
.aka { margin: 6px 0 0; color: var(--muted); font-size: 0.95rem; }
.rail-ctl { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.rail-ctl a { font-weight: 600; font-size: 0.92rem; margin-inline-end: 6px; white-space: nowrap; }
.rail-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.rail-btn:hover { background: var(--surface-2); }
.rail-next svg { transform: scaleX(-1); }
.rail-track {
  list-style: none; margin: 0; padding: 2px 0 8px; display: grid; grid-auto-flow: column; overscroll-behavior-x: contain;
  grid-auto-columns: 232px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > li { scroll-snap-align: start; }
.rail-wide .rail-track { grid-auto-columns: 300px; }
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.grid-sets { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.card { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; transition: background 0.15s; }
.card:hover { background: var(--surface-2); }
.card-link { display: block; color: var(--text); height: 100%; }
.card-link:hover { text-decoration: none; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--bg-2); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.card:hover .thumb img { transform: scale(1.03); }
.dur { position: absolute; bottom: 6px; left: 6px; background: rgba(0, 0, 0, 0.72); padding: 0 6px; border-radius: 5px; font-size: 0.76rem; font-weight: 700; direction: ltr; }
.card-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.card-title { font-weight: 600; font-size: 0.98rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-sub { color: var(--muted); font-size: 0.86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { font-size: 0.74rem; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.chip-c { color: var(--cyan); }
.play-btn { position: absolute; top: 8px; left: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--gold-grad); color: var(--on-gold); font-size: 1.05rem; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4); transition: transform 0.12s; }
.play-btn:hover { transform: scale(1.08); }

/* artwork layer for songs inside a set (they share one thumbnail) */
.thumb.art img { filter: saturate(1.1); }
.art-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 10, 20, 0.15) 0%, rgba(4, 10, 20, 0.55) 45%, rgba(4, 10, 20, 0.88) 100%); }
.art-name {
  position: absolute; left: 10px; right: 10px; bottom: 26px; text-align: center;
  font-family: 'Frank Ruhl Libre', Heebo, serif; font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.6rem); line-height: 1.1;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.7));
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-bottom: 0.05em;
}
.art-n { position: absolute; bottom: 6px; right: 8px; font-size: 0.7rem; font-weight: 700; color: rgba(255, 255, 255, 0.85); letter-spacing: 0.04em; direction: ltr; }
.card:hover .thumb.art img { transform: scale(1.05); }
@media (max-width: 720px) { .art-name { font-size: 1.1rem; bottom: 22px; } }

/* ── song / set / tag pages ── */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 0.86rem; margin: 18px 0 4px; }
.crumbs a { color: var(--muted); }
.song-head { margin: 6px 0 16px; }
.head-row { display: flex; align-items: center; gap: 12px; }
.head-row .h1 { margin: 2px 0; }
.head-row .social { margin: 0; flex-shrink: 0; }
.head-row .like-btn { width: 40px; height: 40px; padding: 0; justify-content: center; gap: 4px; }
.head-row .like-btn:has(.like-n:not(:empty)) { width: auto; padding: 0 12px; }
.head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--muted); font-size: 0.9rem; }
.head-meta .kicker { font-size: 0.85rem; }
.head-meta .tags { margin: 0; }
.head-meta .tag-chip { padding: 1px 10px; font-size: 0.8rem; }
.song-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.stage { position: sticky; top: calc(var(--top-h) + 16px); }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.player-poster { position: absolute; inset: 0; padding: 0; border: 0; background: #000; display: block; width: 100%; }
.player-poster img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.big-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 1.9rem; background: var(--gold-grad); color: var(--on-gold); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); transition: transform 0.15s; }
.player-poster:hover .big-play { transform: translate(-50%, -50%) scale(1.06); }
.now { min-height: 1.5em; margin: 10px 2px 0; color: var(--cyan); font-weight: 700; }
.now:empty { display: none; }
.btn-yt, .btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 16px; border-radius: 999px; background: var(--surface); color: var(--text); font-weight: 600; }
.btn-yt svg { color: #ff4e45; font-size: 1.25em; }
.btn-yt:hover, .btn:hover { background: var(--surface-2); text-decoration: none; }
.vers { min-width: 0; }
.vers .h2 { margin-bottom: 12px; }
.ver-list, .trk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ver { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; background: var(--surface); }
.ver.is-current, .trk.is-current { background: rgba(242, 197, 92, 0.1); box-shadow: inset -3px 0 0 var(--gold); }
.ver-play { border: 0; padding: 0; background: none; border-radius: 8px; overflow: hidden; }
.ver-thumb { position: relative; display: block; width: 112px; aspect-ratio: 16 / 9; }
.ver-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ver-ico { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.3); font-size: 1.3rem; color: #fff; }
.ver-title { font-weight: 600; }
.ver-meta, .ver-time { color: var(--muted); font-size: 0.85rem; }
.tc { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; color: var(--cyan); font-weight: 700; }
.ver-yt { color: #ff4e45; font-size: 1.45rem; display: flex; padding: 6px; }
.trk { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 7px 12px 7px 14px; border-radius: 12px; background: var(--surface); }
.trk:hover { background: var(--surface-2); }
.trk-play { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface-2); position: relative; display: grid; place-items: center; }
.trk-n { font-weight: 800; color: var(--muted); font-size: 0.88rem; }
.trk-ico { position: absolute; inset: 0; display: none; place-items: center; color: var(--gold); }
.trk:hover .trk-n, .trk.is-current .trk-n { display: none; }
.trk:hover .trk-ico, .trk.is-current .trk-ico { display: grid; }
.trk.is-current .trk-play { background: var(--gold-grad); }
.trk.is-current .trk-ico { color: var(--on-gold); }
.trk-body { display: flex; flex-direction: column; min-width: 0; }
.trk-name { color: var(--text); font-weight: 600; }
.trk-credit { color: var(--muted); font-size: 0.84rem; }
.more { margin: 40px 0; }
.more .h2 { margin-bottom: 14px; }
.eq { display: none; gap: 2px; align-items: flex-end; height: 13px; vertical-align: middle; }
.is-playing .eq { display: inline-flex; }
.eq i { width: 3px; background: var(--gold); border-radius: 1px; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: 0.2s; }
.eq i:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px var(--tab-bg), 0 0 0 4px rgba(242, 197, 92, 0); } 50% { box-shadow: 0 0 0 4px var(--tab-bg), 0 0 0 9px rgba(242, 197, 92, 0.25); } }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 13px; } }

/* ── A–Z ── */
.az-search { position: sticky; top: calc(var(--top-h) + 8px); z-index: 7; display: flex; align-items: center; margin: 0 0 14px; background: var(--pop); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); }
.az-search:focus-within { border-color: var(--cyan); }
.az-search .search-ico { right: 16px; font-size: 1.15rem; }
.az-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: inherit; font-size: 1rem; padding: 12px 46px 12px 12px; }
.az-count { flex-shrink: 0; color: var(--muted); font-size: 0.85rem; padding-inline-end: 16px; }
.az { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.az a { min-width: 34px; text-align: center; padding: 4px 8px; border-radius: 9px; background: var(--surface); color: var(--text); font-weight: 700; }
.az a:hover { background: var(--surface-2); text-decoration: none; }
.az-sec { margin-bottom: 24px; scroll-margin-top: calc(var(--top-h) + 12px); }
.az-h { font-size: 1.4rem; font-weight: 700; margin: 0 0 6px; color: var(--gold); border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.az-list { list-style: none; padding: 0; margin: 0; columns: 3 250px; column-gap: 28px; }
.az-list li { break-inside: avoid; padding: 4px 0; display: flex; gap: 8px; align-items: baseline; }
.az-list a { color: var(--text); font-weight: 500; }
.az-list span { color: var(--muted); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.az-list em { font-style: normal; font-size: 0.7rem; color: var(--gold); }

/* ── full results ── */
.results { margin: 24px 0 40px; }
.res-h { color: var(--muted); margin: 0 0 10px; font-size: 0.92rem; }
.res-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.res { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 8px; border-radius: 12px; background: var(--surface); }
.res:hover { background: var(--surface-2); }
.res-thumb { width: 96px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; }
.res-thumb img { width: 100%; height: 100%; object-fit: cover; }
.res-body { min-width: 0; display: flex; flex-direction: column; }
.res-body a { color: var(--text); font-weight: 600; font-size: 1.02rem; }
.res-body small { color: var(--muted); }
.res .play-btn { position: static; }
.res-empty { text-align: center; padding: 30px; color: var(--muted); }

/* ── global player (stage ⇄ mini) ── */
.gp { position: fixed; z-index: 45; background: #000; overflow: hidden; }
.gp-v { position: relative; width: 100%; height: 100%; }
.gp-v > * { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gp-bar { display: none; }
.gp.is-stage { border-radius: var(--radius); }
.gp.is-mini { left: 16px; bottom: 16px; width: 360px; height: auto; background: var(--pop); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55); animation: pop 0.2s ease-out; }
.gp.is-mini .gp-v { aspect-ratio: 16 / 9; height: auto; }
.gp.is-mini .gp-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; }
.gp-t { flex: 1; min-width: 0; font-weight: 700; font-size: 0.92rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-radio-tag { display: none; font-size: 0.7rem; font-weight: 800; color: var(--on-gold); background: var(--gold); border-radius: 999px; padding: 0 7px; }
.radio-on .gp-radio-tag, .queue-on .gp-radio-tag { display: inline; }
.gp-pp, .gp-x, .gp-next { flex-shrink: 0; border: 0; display: grid; place-items: center; border-radius: 50%; }
.gp-pp { width: 38px; height: 38px; background: var(--gold-grad); color: var(--on-gold); }
.gp-next { width: 34px; height: 34px; background: var(--surface-2); color: var(--text); display: none; }
.radio-on .gp-next, .queue-on .gp-next { display: grid; }
.gp-x { width: 30px; height: 30px; background: none; color: var(--muted); font-size: 0.85rem; }
@keyframes pop { from { transform: translateY(16px); opacity: 0; } }

/* ── mini player extras ── */
.gp-prog { display: none; }
.gp.is-mini .gp-prog { direction: ltr; display: block; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 2; background: rgba(255, 255, 255, 0.08); }
.gp-prog i { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.25s linear; }
.gp.is-mini .gp-bar { cursor: pointer; }
/* in the mini player a tap on the video opens Now Playing (YouTube's iframe would swallow it) */
.gp-tap { display: none; }
.gp.is-mini .gp-tap { display: block; position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.gp-loop { color: var(--gold); display: inline-flex; font-size: 1rem; }
.gp-expand { display: none; }
.gp.is-mini .gp-expand { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text); }
.gp-expand svg { transform: rotate(-90deg); }
.gp.in-np { z-index: 58; border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }

/* ── Now Playing: a living screen ── */
.np {
  --art: #1a3a66;
  position: fixed; inset: 0; z-index: 57; overflow-y: auto; overscroll-behavior: contain; color: #f4f7fb;
  background: #050a14; transform: translateY(100%); transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.np.is-in { transform: translateY(0); }
.np-bg { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.np-bg-img { position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover; opacity: 0.55; filter: saturate(1.4); transform: scale(1.05); }
.np-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(90% 60% at 70% 20%, color-mix(in srgb, var(--art) 55%, transparent), transparent 70%), linear-gradient(180deg, rgba(5, 10, 20, 0.55) 0%, rgba(5, 10, 20, 0.82) 55%, #050a14 100%); }
.np-orb { position: absolute; z-index: 1; width: 46vmax; height: 46vmax; border-radius: 50%; opacity: 0.32; mix-blend-mode: screen; animation: orb 18s ease-in-out infinite alternate; will-change: transform; background: radial-gradient(circle, var(--art) 0%, transparent 65%); }
.np-orb-1 { top: -12vmax; right: -10vmax; }
.np-orb-2 { bottom: -18vmax; left: -12vmax; background: radial-gradient(circle, rgba(242, 197, 92, 0.55) 0%, transparent 65%); animation-duration: 23s; animation-delay: -6s; }
.np-orb-3 { top: 35%; left: 30%; width: 30vmax; height: 30vmax; background: radial-gradient(circle, rgba(76, 201, 255, 0.4) 0%, transparent 65%); animation-duration: 27s; animation-delay: -12s; }
.np:not(.is-playing) .np-orb { animation-play-state: paused; }
@keyframes orb { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-6vmax, 4vmax) scale(1.15); } 100% { transform: translate(5vmax, -3vmax) scale(0.95); } }
/* equalizer along the bottom (decorative; pauses with the music) */
.np-viz { position: fixed; z-index: 1; left: 0; right: 0; bottom: 0; height: 22vh; display: flex; align-items: flex-end; gap: 3px; padding: 0 6px; pointer-events: none; opacity: 0.32; -webkit-mask-image: linear-gradient(0deg, #000, transparent); mask-image: linear-gradient(0deg, #000, transparent); }
.np-viz i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(0deg, var(--gold), color-mix(in srgb, var(--art) 70%, #4cc9ff)); transform-origin: bottom; transform: scaleY(0.12); transition: transform 0.6s; }
.np.is-playing .np-viz i { animation: viz 1.1s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -1); }
@keyframes viz { 0% { transform: scaleY(0.15); } 35% { transform: scaleY(0.75); } 70% { transform: scaleY(0.35); } 100% { transform: scaleY(1); } }
.np-in { position: relative; z-index: 2; max-width: 560px; margin: 0 auto; padding: calc(10px + env(safe-area-inset-top)) 22px calc(30px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; min-height: 100%; }
.np-top { display: flex; align-items: center; gap: 10px; touch-action: none; }
.np-top::before { content: ''; position: absolute; top: calc(4px + env(safe-area-inset-top)); left: 50%; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: rgba(255, 255, 255, 0.3); }
.np-src { flex: 1; text-align: center; display: flex; flex-direction: column; min-width: 0; }
.np-src small { font-size: 0.72rem; opacity: 0.7; letter-spacing: 0.04em; }
.np-src b { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-ic { width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); color: inherit; font-size: 1.25rem; flex-shrink: 0; position: relative; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.np-ic:hover { background: rgba(255, 255, 255, 0.18); }
.np-stage { touch-action: none; position: relative; }
.np-video { width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: rgba(0, 0, 0, 0.35); }
.np-stage::after { content: ''; position: absolute; inset: -14px; z-index: -1; border-radius: 26px; background: radial-gradient(closest-side, color-mix(in srgb, var(--art) 70%, transparent), transparent); filter: blur(18px); opacity: 0.8; }
.np-meta { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.np-meta-t { min-width: 0; width: 100%; display: flex; flex-direction: column; align-items: center; }
.np-meta-acts { display: flex; gap: 10px; justify-content: center; }
.np-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; color: var(--gold); text-transform: uppercase; }
.np:not(.is-playing) .np-kicker .eq i { animation: none; height: 4px; }
.np-kicker .eq { display: inline-flex; }
.np-title {
  margin: 4px 0 0; font-family: 'Frank Ruhl Libre', Heebo, serif; font-weight: 700; font-size: clamp(2rem, 8vw, 2.6rem); line-height: 1.08;
  background: linear-gradient(180deg, #fff 0%, #fff3c4 55%, #f3cf72 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.45)); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; padding-bottom: 0.06em;
}
/* new song, letter by letter: each letter rises out of a soft blur (slow, gentle) */
.np-meta-t { position: relative; }
.np-title.split { background: none; }
.np-title .ch {
  display: inline-block; white-space: pre;
  background: linear-gradient(180deg, #fff 0%, #fff3c4 55%, #f3cf72 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: chIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes chIn {
  0% { opacity: 0; transform: translateY(0.42em) scale(0.92); filter: blur(9px); }
  45% { opacity: 0.85; filter: blur(2px); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
/* the previous name drifts up, opens its letter spacing and dissolves */
.np-title-out { position: absolute; inset-inline: 0; margin: 0 !important; pointer-events: none; animation: titleOut 0.9s cubic-bezier(0.4, 0, 0.2, 1) both; }
.np-title-out .ch { animation: none; }
@keyframes titleOut {
  0% { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 4px 18px rgba(0, 0, 0, 0.45)); letter-spacing: 0; }
  100% { opacity: 0; transform: translateY(-0.35em); filter: blur(12px) drop-shadow(0 4px 18px rgba(0, 0, 0, 0)); letter-spacing: 0.06em; }
}
.np-sub.np-enter { animation-delay: 0.75s !important; animation-duration: 1s !important; }
/* older single-block entrance (kept for the subtitle) */
.np-enter { animation: npEnter 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.np-sub.np-enter { animation-delay: 0.18s; }
.np-kicker.np-enter { animation-name: npFade; animation-duration: 0.6s; }
@keyframes npEnter { from { opacity: 0; transform: translateY(14px) scale(0.985); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
/* the title keeps its shadow: same filter list at both ends so it interpolates smoothly */
@keyframes npTitleEnter { from { opacity: 0; transform: translateY(16px) scale(0.98); filter: blur(10px) drop-shadow(0 4px 18px rgba(0, 0, 0, 0.45)); } to { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 4px 18px rgba(0, 0, 0, 0.45)); } }
@keyframes npFade { from { opacity: 0; } }
.np-sub { margin: 4px 0 0; opacity: 0.78; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-social { margin: 0; }
.np .like-btn { padding: 0; border: 0; gap: 0; background: rgba(255, 255, 255, 0.1); }
.np .like-btn svg { color: rgba(255, 255, 255, 0.85); font-size: 1.2rem; }
.np .like-btn[aria-pressed='true'] { background: rgba(255, 92, 120, 0.2); }
.np .like-btn[aria-pressed='true'] svg { color: #ff5c78; }
.np .like-n { display: none; }
/* progress & volume: gold, filling left → right */
.np-range, .np-volr { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 0; direction: ltr; cursor: pointer; }
.np-range::-webkit-slider-runnable-track, .np-volr::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #d8a136 0%, #f6d47c var(--p, 0%), rgba(255, 255, 255, 0.18) var(--p, 0%)); }
.np-range::-moz-range-track, .np-volr::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #d8a136 0%, #f6d47c var(--p, 0%), rgba(255, 255, 255, 0.18) var(--p, 0%)); }
.np-range::-webkit-slider-thumb, .np-volr::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5px; border-radius: 50%; background: #fff3c4; border: 2px solid #d8a136; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45); transition: transform 0.15s; }
.np-range::-moz-range-thumb, .np-volr::-moz-range-thumb { width: 14px; height: 14px; border: 2px solid #d8a136; border-radius: 50%; background: #fff3c4; }
.np-range:active::-webkit-slider-thumb, .np-volr:active::-webkit-slider-thumb { transform: scale(1.3); }
.np-times { display: flex; justify-content: space-between; font-size: 0.78rem; opacity: 0.75; font-variant-numeric: tabular-nums; direction: ltr; margin-top: 2px; }
.np-vol { display: flex; align-items: center; gap: 10px; direction: ltr; padding: 0 6px; width: 100%; max-width: 340px; margin: 0 auto; }
.np-vol .np-ic { width: 36px; height: 36px; font-size: 1.15rem; background: none; }
.np-mute .vol-x { display: none; }
.np.is-muted .np-mute .vol-x { display: inline; }
.np.is-muted .np-mute .vol-w { display: none; }
.np.no-vol .np-vol { display: none; }
.np-ctl { display: flex; align-items: center; justify-content: center; gap: clamp(4px, 3.2vw, 18px); padding: 0; direction: ltr; }
.np-ctl > * { flex-shrink: 0; } /* never squash the round buttons into ovals */
.np-big { width: 56px; height: 56px; font-size: 1.9rem; background: none; backdrop-filter: none; }
.np-big:hover { background: rgba(255, 255, 255, 0.08); }
.np-pp { width: 78px; height: 78px; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 2.1rem; background: var(--gold-grad); color: var(--on-gold); box-shadow: 0 10px 34px color-mix(in srgb, var(--gold) 45%, transparent), 0 0 0 0 rgba(242, 197, 92, 0.5); transition: transform 0.12s; }
.np.is-playing .np-pp { animation: ppPulse 2.4s ease-out infinite; }
@keyframes ppPulse { 0% { box-shadow: 0 10px 34px rgba(242, 197, 92, 0.35), 0 0 0 0 rgba(242, 197, 92, 0.45); } 70% { box-shadow: 0 10px 34px rgba(242, 197, 92, 0.35), 0 0 0 18px rgba(242, 197, 92, 0); } 100% { box-shadow: 0 10px 34px rgba(242, 197, 92, 0.35), 0 0 0 0 rgba(242, 197, 92, 0); } }
.np-pp:active { transform: scale(0.94); }
.np-tg { background: none; opacity: 0.75; backdrop-filter: none; }
.np-tg[aria-pressed='true'] { opacity: 1; color: var(--gold); background: rgba(242, 197, 92, 0.14); }
.np-one { display: none; position: absolute; top: 6px; right: 6px; font-size: 0.6rem; font-weight: 800; background: var(--gold); color: var(--on-gold); border-radius: 50%; width: 13px; height: 13px; line-height: 13px; text-align: center; }
.np.rep-one .np-one { display: block; }
.np-extra { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.np-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.09); color: inherit; font-size: 0.86rem; font-weight: 500; }
.np-chip:hover { background: rgba(255, 255, 255, 0.16); text-decoration: none; }
.np-chip.on { color: var(--gold); background: rgba(242, 197, 92, 0.14); }
a.np-chip { color: inherit; }
.np-sleep-wrap { position: relative; }
.np-menu { position: absolute; bottom: calc(100% + 6px); right: 0; z-index: 3; background: #13233b; border-radius: 12px; padding: 4px; min-width: 150px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); display: flex; flex-direction: column; }
.np-menu button { background: none; border: 0; text-align: right; padding: 9px 12px; border-radius: 8px; color: #f4f7fb; }
.np-menu button:hover { background: rgba(255, 255, 255, 0.08); }
.np-q-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.np-q-h h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.np-qi { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; }
.np-qi:hover { background: rgba(255, 255, 255, 0.06); }
.np-qi img { width: 54px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.np-qi > span:not(.row-acts) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.np-qi b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-qi small { opacity: 0.6; font-size: 0.78rem; }
.np .icon-btn { background: rgba(255, 255, 255, 0.08); color: #f4f7fb; }
.np-q-empty { padding: 12px; text-align: center; }
.np-open { text-decoration: none; }
html.np-shown { overflow: hidden; }
@media (min-width: 900px) {
  .np-in { max-width: 1160px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-areas: 'top top' 'meta stage' 'prog stage' 'ctl stage' 'vol stage' 'extra stage'; column-gap: 56px; row-gap: 18px; align-content: center; padding-top: 24px; }
  .np-top { grid-area: top; }
  .np-stage { grid-area: stage; align-self: center; max-width: 440px; width: 100%; justify-self: center; }
  .np-meta { grid-area: meta; align-self: end; }
  .np-title { font-size: clamp(2.8rem, 5.2vw, 4.6rem); -webkit-line-clamp: 3; }
  .np-sub { font-size: 1.2rem; }
  .np-prog { grid-area: prog; }
  .np-ctl { grid-area: ctl; gap: 26px; }
  .np-vol { grid-area: vol; }
  .np-extra { grid-area: extra; align-self: start; }
  .np-top::before { display: none; }
}

@media (max-width: 400px) {
  .np-pp { width: 68px; height: 68px; font-size: 1.85rem; }
  .np-big { width: 48px; height: 48px; font-size: 1.65rem; }
  .np-tg { width: 38px; height: 38px; font-size: 1.1rem; }
}
@media (max-width: 340px) {
  .np-pp { width: 60px; height: 60px; font-size: 1.6rem; }
  .np-big { width: 42px; height: 42px; font-size: 1.45rem; }
  .np-tg { width: 34px; height: 34px; font-size: 1rem; }
  .np-in { padding-inline: 14px; }
}

/* ── Now Playing: up-next list under the video (≈10 rows visible, the rest scrolls) ── */
.np-ic-space { width: 42px; height: 42px; flex-shrink: 0; }
.np-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.np-queue { background: rgba(0, 0, 0, 0.3); border-radius: 16px; padding: 10px 10px 6px; }
.np-q-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; padding: 0 4px; }
.np-q-h h3 { margin: 0; font-size: 0.95rem; font-weight: 600; }
.np-qlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: calc(10 * 54px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.25) transparent; }
.np-qi { min-height: 52px; padding: 5px 6px; }
.np-qi img { width: 48px; }
.np-qi .icon-btn svg { font-size: 0.9rem; }
@media (min-width: 900px) {
  .np-side { grid-area: stage; align-self: center; max-width: 440px; width: 100%; justify-self: center; }
  .np-stage { grid-area: auto; max-width: none; }
  .np-qlist { max-height: min(calc(10 * 54px), 40vh); }
}
@media (max-width: 899px) {
  /* phones: video first, then the title & controls, the list at the bottom */
  .np-side { display: contents; }
  .np-stage { order: 1; }
  .np-meta { order: 2; }
  .np-prog { order: 3; }
  .np-ctl { order: 4; }
  .np-vol { order: 5; }
  .np-extra { order: 6; }
  .np-queue { order: 7; }
  .np-top { order: 0; }
}

/* ── artists ── */
.ac-avatar { border-radius: 50% !important; aspect-ratio: 1 !important; object-fit: cover; }
.ac-thumb.ac-avatar { width: 44px; margin-inline: 10px; }
.res-thumb .ac-avatar { width: 64px; height: 64px; margin: 0 auto; }
.ac-tag-artist { color: #ff9fb2; border-color: rgba(255, 159, 178, 0.4); }
.artist-head { display: flex; align-items: center; gap: 18px; }
.artist-pic { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(242, 197, 92, 0.6); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); flex-shrink: 0; }
.artist-head .hero-actions { margin-top: 10px; }
.artist-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.artist-card { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--text); padding: 12px 8px; border-radius: 16px; transition: background 0.15s; }
.artist-card:hover { background: var(--surface); text-decoration: none; }
.artist-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; transition: transform 0.25s; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }
.artist-card:hover img { transform: scale(1.05); }
.artist-card b { font-weight: 600; }
.artist-card small { color: var(--muted); font-size: 0.8rem; }
.artist-search { margin-bottom: 20px; }
@media (max-width: 720px) { .artist-pic { width: 84px; height: 84px; } .artist-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .artist-card img { width: 84px; height: 84px; } }

/* ── continue listening ── */
#resume:empty { display: none; }
#resume { margin-top: 26px; }
.resume { width: 100%; display: flex; align-items: center; gap: 14px; text-align: right; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(90deg, rgba(242, 197, 92, 0.1), var(--surface)); color: var(--text); }
.resume:hover { background: linear-gradient(90deg, rgba(242, 197, 92, 0.16), var(--surface-2)); }
.resume img { width: 104px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.resume-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.resume-t b { font-weight: 600; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resume-t small { color: var(--muted); font-size: 0.8rem; }
.resume-t small:first-child { color: var(--gold); font-weight: 600; }
.resume-play { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: var(--on-gold); font-size: 1.15rem; flex-shrink: 0; margin-inline-end: 4px; }
.my-cover.is-auto { background: linear-gradient(135deg, #f2c55c, #d8a136); color: var(--on-gold); font-size: 1.4rem; }

/* ── sheets & overlays ── */
.sheet { position: fixed; inset: 0; z-index: 65; background: rgba(0, 0, 0, 0.6); display: flex; align-items: flex-end; justify-content: center; }
.sheet-card { width: 100%; max-width: 460px; background: var(--bg-2); border-radius: 20px 20px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); text-align: center; animation: up 0.22s ease-out; }
.sheet-card img { margin: 0 auto 8px; border-radius: 14px; }
.dlg { align-items: center; padding: 16px; animation: fade 0.15s ease-out; }
.dlg-card { border-radius: 20px; max-width: 380px; text-align: center; padding: 24px 22px; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); animation: pop 0.18s ease-out; }
.dlg-card p { margin: 0 0 16px; }
.dlg-input { width: 100%; margin: 4px 0 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; color: var(--text); font: inherit; padding: 11px 14px; }
.dlg-input:focus { outline: none; border-color: var(--cyan); }
.dlg-acts { display: flex; gap: 10px; justify-content: center; }
.dlg-acts .abtn { flex: 1; padding: 11px 16px; font-weight: 600; }
.contact-mail { font-weight: 700; font-size: 1.1rem; margin: 0 0 16px !important; color: var(--gold); user-select: all; }
.contact-acts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.contact-acts .abtn { display: block; padding: 11px 16px; font-weight: 600; color: var(--text); text-decoration: none; text-align: center; }
.contact-acts .abtn-gold { color: var(--on-gold); }
.contact-close { width: 100%; background: none !important; border: 0 !important; color: var(--muted) !important; }
.abtn-danger-fill { background: #e5484d; color: #fff; border: 0; }
.sheet-card h2 { margin: 0 0 12px; font-size: 1.2rem; }
.steps { text-align: right; padding-inline-start: 22px; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.steps svg { color: var(--cyan); vertical-align: -3px; font-size: 1.15em; }
@keyframes up { from { transform: translateY(100%); } }
.sov { position: fixed; inset: 0; z-index: 55; background: var(--bg); display: flex; flex-direction: column; animation: fade 0.15s ease-out; }
.sov-bar { display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) var(--gutter) 10px; border-bottom: 1px solid var(--line); position: relative; }
.sov-ico { position: absolute; right: calc(var(--gutter) + 14px); color: var(--cyan); display: flex; font-size: 1.15rem; pointer-events: none; }
.sov-bar input { flex: 1; min-width: 0; background: var(--surface-2); border: 0; border-radius: 12px; color: var(--text); font: inherit; font-size: 1.05rem; padding: 11px 42px 11px 12px; outline: none; }
.sov-x { background: none; border: 0; color: var(--cyan); font-weight: 600; padding: 8px 4px; }
.sov-list { flex: 1; overflow-y: auto; list-style: none; margin: 0; padding: 8px 8px calc(16px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
.ov-open { overflow: hidden; }
@keyframes fade { from { opacity: 0; } }

/* ── footer ── */
.foot { border-top: 1px solid var(--line); margin-top: 50px; padding: 24px 0 32px; color: var(--muted); font-size: 0.9rem; }
.foot-in { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; }
.foot-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-nav a { color: var(--muted); }
.empty { text-align: center; padding: 80px 16px; }

/* ── playlists ── */
.add-btn { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(5, 13, 26, 0.75); color: var(--text); font-size: 1.05rem; opacity: 0; transition: opacity 0.15s, background 0.15s; }
.card:hover .add-btn, .add-btn:focus-visible { opacity: 1; }
@media (hover: none) { .card .add-btn { opacity: 1; } }
.add-btn:hover { background: var(--gold); color: var(--on-gold); }
.add-btn.is-added { opacity: 1; background: var(--gold); color: var(--on-gold); }
.add-inline { position: static; opacity: 1; width: 32px; height: 32px; background: var(--surface-2); }
.row-acts { display: flex; align-items: center; gap: 6px; }
.stage-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { border: 0; }
.btn-gold { background: var(--gold-grad); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-grad); filter: brightness(1.05); }
.az-links { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.az-links .btn { margin: 0; }
.pl-card h2 { margin: 0 0 8px; font-size: 1rem; color: var(--muted); font-weight: 600; text-align: right; }
.pl-song { margin: 0 0 12px; font-weight: 700; font-size: 1.05rem; }
.pl-queue { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.pl-queue button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 600; }
.pl-queue button:first-child { background: var(--gold-grad); color: var(--on-gold); border: 0; }
.my-queue { margin-bottom: 22px; }
.my-queue:empty { display: none; }
.pl-choices { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 40vh; overflow-y: auto; }
.pl-choices button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-align: right; }
.pl-choices button.on { border-color: var(--gold); background: rgba(242, 197, 92, 0.1); }
.pl-choices small { color: var(--muted); }
.pl-new { display: flex; gap: 8px; margin-bottom: 12px; }
.pl-new input { flex: 1; min-width: 0; background: var(--surface-2); border: 0; border-radius: 10px; color: var(--text); font: inherit; padding: 10px 12px; }
.sheet .abtn { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 16px; font-weight: 600; }
.sheet .abtn-gold { background: var(--gold-grad); color: var(--on-gold); border: 0; }
.toast { position: fixed; z-index: 75; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #eaf2fc; color: #0a1a30; font-weight: 700; padding: 10px 18px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); animation: toast 0.2s ease-out; white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
@keyframes toast { from { transform: translate(-50%, 10px); opacity: 0; } }
.my { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.my-lists { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.my-lists button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; border: 1px solid transparent; background: var(--surface); text-align: right; }
.my-lists button[aria-current='true'] { border-color: var(--gold); background: rgba(242, 197, 92, 0.08); }
.my-cover { width: 52px; height: 52px; border-radius: 10px; background: var(--bg-2) center / cover; flex-shrink: 0; display: grid; place-items: center; color: var(--gold); }
.my-lists span { display: flex; flex-direction: column; min-width: 0; }
.my-lists small { color: var(--muted); }
.my-new { display: flex; gap: 8px; margin-top: 10px; }
.my-new input, .my-head input { flex: 1; min-width: 0; background: var(--surface-2); border: 0; border-radius: 10px; color: var(--text); font: inherit; padding: 9px 12px; }
.my-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.my-head h2 { margin: 0; flex: 1; font-size: 1.5rem; }
.my-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.my-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 12px; background: var(--surface); }
.my-item.is-current { background: rgba(242, 197, 92, 0.1); box-shadow: inset -3px 0 0 var(--gold); }
.my-item img { width: 88px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.my-item b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-item a { color: var(--text); }
.my-item small { color: var(--muted); }
.icon-btn { width: 32px; height: 32px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--surface-2); color: var(--text); }
.icon-btn:hover { background: var(--surface); }
.icon-btn:disabled { opacity: 0.3; }
.my-empty { padding: 30px; text-align: center; color: var(--muted); background: var(--surface); border-radius: var(--radius); }

/* tactile feedback — makes the app feel responsive */
.card, .res, .trk, .ver, .my-item, .tabbar a, .btn, .radio-cta, .play-btn, .add-btn, .ac-item { -webkit-tap-highlight-color: transparent; }
.card:active, .res:active, .trk:active, .ver:active, .my-item:active { transform: scale(0.985); transition: transform 0.08s; }
.btn:active, .radio-cta:active, .play-btn:active, .add-btn:active, .icon-btn:active { transform: scale(0.94); }

/* ── app tab bar (phones) ── */
.tabbar { display: none; }

/* ── page transitions (cheap cross-fade) ── */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.14s; }
.gp { view-transition-name: player; }

/* ── admin ── */
.admin { margin: 26px 0; }
.admin-card { background: var(--surface); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-tabs button, .abtn { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 14px; font-weight: 600; }
.admin-tabs button[aria-selected='true'] { background: #1a5fb0; border-color: var(--cyan); }
.abtn-gold { background: var(--gold-grad); color: var(--on-gold); border: 0; font-weight: 800; }
.abtn-danger { color: #ff8a80; }
.abtn-sm { padding: 3px 9px; font-size: 0.82rem; }
.abtn:disabled { opacity: 0.45; cursor: default; }
.admin input[type='search'], .admin input[type='text'], .admin textarea, .admin select { width: 100%; min-width: 0; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 8px 12px; font: inherit; }
.admin select { width: auto; padding: 4px 8px; font-size: 0.85rem; }
.atable { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.atable th, .atable td { text-align: right; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.atable th { color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.dirty-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #2b2003; border: 1px solid var(--gold); border-radius: 12px; padding: 10px 14px; margin-top: 12px; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.kv div { background: rgba(0, 0, 0, 0.2); border-radius: 10px; padding: 10px; }
.kv b { display: block; font-size: 1.4rem; }
.tag { font-size: 0.75rem; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.tag-warn { color: var(--gold); border-color: rgba(242, 197, 92, 0.4); }
.atag { display: inline-flex; align-items: center; gap: 4px; font-size: 0.78rem; padding: 1px 4px 1px 9px; border-radius: 999px; background: rgba(242, 197, 92, 0.12); color: var(--gold); margin: 2px; }
.atag button { background: none; border: 0; color: var(--muted); padding: 0 4px; font-size: 0.75rem; }
.tag-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tag-list button { width: 100%; text-align: right; display: flex; justify-content: space-between; gap: 8px; background: var(--surface); border: 1px solid transparent; border-radius: 10px; padding: 8px 12px; }
.tag-list button[aria-current='true'] { border-color: var(--gold); background: rgba(242, 197, 92, 0.08); }
.tag-items { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tag-items li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: rgba(0, 0, 0, 0.2); }
.tag-items li span { flex: 1; min-width: 0; }
.picker { position: relative; }
.picker-list { position: absolute; z-index: 5; top: 100%; left: 0; right: 0; list-style: none; margin: 4px 0 0; padding: 4px; background: var(--pop); border: 1px solid var(--line); border-radius: 10px; max-height: 300px; overflow-y: auto; }
.picker-list button { width: 100%; text-align: right; background: none; border: 0; padding: 7px 10px; border-radius: 8px; display: flex; justify-content: space-between; gap: 8px; }
.picker-list button:hover { background: var(--surface-2); }
.row-2 { display: flex; gap: 8px; align-items: center; }
.row-2 > * { flex: 1; }
.row-2 > .abtn { flex: 0 0 auto; }

/* header gets tighter step by step instead of wrapping */
@media (max-width: 1240px) { .install-btn span { display: none; } .install-btn { padding: 0 2px 0 10px; } }
@media (max-width: 1120px) { .top-search.open input { width: 170px; } .nav a { padding: 8px 9px; } .hdr-now { max-width: 170px; } }
@media (max-width: 960px) { .hdr-now { display: none; } }
@media (max-width: 1020px) { .brand-t small { display: none; } }
@media (max-width: 900px) and (min-width: 721px) { .top-search { display: none; } }

/* ── tablets & phones ── */
@media (max-width: 900px) {
  .song-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { position: sticky; top: var(--top-h); z-index: 6; background: var(--bg); padding: 0 var(--gutter) 6px; margin: 0 calc(var(--gutter) * -1); }
  .now { margin-top: 6px; }
  .tag-grid { grid-template-columns: minmax(0, 1fr); }
  .my { grid-template-columns: minmax(0, 1fr); }
  .my-lists { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .my-lists li { flex: 0 0 auto; }
  .my-lists button { padding: 8px 12px 8px 8px; }

}
@media (max-width: 720px) {
  :root { --top-h: 54px; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  body.has-mini { padding-bottom: calc(62px + 86px + env(safe-area-inset-bottom)); }
  .nav, .top-search { display: none; }
  .brand-t small { display: none; }
  .brand img { width: 34px; height: 34px; }
  .top-in { justify-content: space-between; }
  .install-btn span { display: none; }
  .hdr-radio { display: none; }  /* on phones the radio lives in the tab bar */
  .sub-card { flex-wrap: wrap; padding: 16px; }
  .sub-card img { width: 48px; height: 48px; }
  .sub-card .sub-btn-lg { width: 100%; justify-content: center; }
  .top-acts { gap: 6px; }
  .radio-on .tab-radio-ico { animation: pulse 1.6s ease-in-out infinite; }
  .tab-radio .radio-pill-t { max-width: 64px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* collections: one swipeable row instead of a wall of chips */
  .colls-row { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; width: calc(100% + var(--gutter) * 2); margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter); }
  .colls-row::-webkit-scrollbar { display: none; }
  .colls-row li { flex-shrink: 0; }
  .coll-tiles { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; width: calc(100% + var(--gutter) * 2); margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .coll-tiles::-webkit-scrollbar { display: none; }
  .coll-tiles li { flex-shrink: 0; }
  .coll-tile { width: 150px; }
  .fy-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .fy-tile img { width: 56px; height: 56px; }
  .fy-ico { width: 56px; height: 56px; font-size: 1.3rem; }
  .fy-tile { min-height: 56px; gap: 8px; }
  .fy-tile em, .fy-tile small { display: none; }
  .fy-play { width: 30px; height: 30px; margin-inline-end: 8px; }
  .hdr-login { padding: 0 10px; border-color: rgba(242, 197, 92, 0.45); color: var(--gold); }
  .install-btn { padding: 6px 4px 6px 10px; }
  .hero { padding-top: 18px; }
  .toast { bottom: calc(74px + env(safe-area-inset-bottom)); }
  body.has-mini .toast { bottom: calc(160px + env(safe-area-inset-bottom)); }
  .my-item img { width: 72px; }
  .search input { font-size: 1.02rem; padding: 14px 48px 14px 16px; }
  .rail-track { grid-auto-columns: 62%; gap: 10px; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .rail-wide .rail-track { grid-auto-columns: 82%; }
  .rail-btn { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid-sets { grid-template-columns: minmax(0, 1fr); }
  .card-body { padding: 8px 10px 10px; }
  .card-title { font-size: 0.94rem; }
  .play-btn { width: 36px; height: 36px; top: 6px; left: 6px; }
  .ver-thumb { width: 88px; }
  .res-thumb { width: 80px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); background: var(--tab-bg); border-top: 1px solid var(--line);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 0; color: var(--muted); font-size: 0.7rem; font-weight: 600; }
  .tabbar a:hover { text-decoration: none; }
  .tabbar svg { font-size: 1.4rem; }
  .tabbar a.on { color: var(--gold); }
  .tabbar a:active svg { transform: scale(0.9); }
  .tab-radio-ico { width: 40px; height: 40px; margin-top: -16px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: var(--on-gold); box-shadow: 0 0 0 4px var(--tab-bg); }
  .tab-radio { color: var(--gold) !important; }
  /* mini player: one compact row above the tab bar (video ≥ 200px wide, YouTube's minimum) */
  .gp.is-mini { left: 8px; right: 8px; width: auto; bottom: calc(66px + env(safe-area-inset-bottom)); display: flex; align-items: center; border-radius: 14px; }
  .gp.is-mini .gp-v { width: 200px; flex-shrink: 0; }
  .gp.is-mini .gp-bar { flex: 1; min-width: 0; flex-wrap: wrap; padding: 6px 8px; row-gap: 4px; }
  .gp.is-mini .gp-t { flex-basis: 100%; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 0.85rem; line-height: 1.3; }
  .foot-nav { display: none; }
}
/* desktop-only niceties (kept off phones for speed) */
@media (min-width: 721px) and (hover: hover) {
  .top { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}
/* installed app */
.standalone .top { padding-top: env(safe-area-inset-top); }
.standalone .foot { display: none; }
.standalone body { overscroll-behavior-y: none; }
.standalone * { -webkit-tap-highlight-color: transparent; }
.standalone .nav-yt { display: none; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
