/* ytm-fast TMA — DeepSeek Harness visual language (tokens read from deepseek.com/en/harness,
   2026-10-03) on YouTube Music's information architecture.
   Performance rules (Telegram's WebView on mid-range phones): no backdrop-filter, no filter: blur.
   Soft colour fields are tiny (8x8) cover thumbnails upscaled by the GPU's bilinear sampler or
   plain gradients; progress bars move with transform only; hidden screens are visibility:hidden. */
:root {
  --bg: #0a0a0a; --bg-solid: #151517; --surface-card: #19191c; --surface-raised: #232327;
  --surface-1: rgba(255,255,255,.06); --surface-2: rgba(255,255,255,.04);
  --border-subtle: rgba(255,255,255,.06); --border: rgba(255,255,255,.12);
  --text: #fff; --text-2: rgba(255,255,255,.8); --text-3: rgba(255,255,255,.52); --text-4: rgba(255,255,255,.32);
  --accent: #6799fe; --accent-strong: #4d6bfe;
  --hover: rgba(255,255,255,.06); --active: rgba(255,255,255,.08);
  --r-pill: 100px; --r-card: 20px; --r-panel: 16px; --r-row: 12px; --r-input: 10px; --r-sm: 8px;
  --gutter: 16px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: Montserrat, var(--font);
  --font-mono: "Fragment Mono", ui-monospace, "SF Mono", monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow-float: 0 0 0 .5px rgba(255,255,255,.1), 0 8px 24px rgba(0,0,0,.4);
  --tabbar-h: 58px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: var(--tg-content-safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; color: var(--text); font: 400 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
body { background: radial-gradient(120% 420px at 50% -120px, #13284f 0%, rgba(19,40,79,0) 100%) no-repeat, var(--bg); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; }
::selection { background: var(--accent); color: #fff; }

#app { position: relative; min-height: 100%; }
.tab, .page { min-height: 100vh; padding: 0 var(--gutter) calc(var(--tabbar-h) + 96px + var(--safe-b)); }
.tab[hidden], .page[hidden] { display: none; }
.page { position: fixed; inset: 0; z-index: 5; overflow-y: auto; background: var(--bg);
  animation: page-in .24s var(--ease); -webkit-overflow-scrolling: touch; will-change: transform; }
.page.dragging { animation: none; transition: none; box-shadow: -12px 0 32px rgba(0,0,0,.5); }
.page.settle { transition: transform .2s var(--ease); }
@keyframes page-in { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ------------------------------------------------------------------ headings */
.eyebrow { display: inline-block; font: 500 13px/1.3 var(--font); color: var(--text-3); }
.head { padding: calc(20px + var(--safe-t)) 0 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.head h1 { margin: 0; font: 500 28px/1.2 var(--font-display); letter-spacing: -.02em; }
.shelf { margin: 24px 0 4px; content-visibility: auto; contain-intrinsic-size: auto 240px; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.shelf-head h2 { margin: 0; font: 500 19px/1.3 var(--font-display); letter-spacing: -.01em; }
.shelf-head .more { font: 500 13px/1 var(--font); color: var(--text-3); padding: 6px 0 6px 10px; }

/* ------------------------------------------------------------------ Моя волна */
.wave { position: relative; display: flex; align-items: center; gap: 16px; min-height: 132px; margin-top: 6px; padding: 20px;
  border-radius: var(--r-card); overflow: hidden; cursor: pointer; isolation: isolate;
  background: radial-gradient(90% 140% at 100% 0%, #3b6fd8 0%, rgba(59,111,216,0) 60%),
              radial-gradient(80% 120% at 0% 100%, #1d3f86 0%, rgba(29,63,134,0) 70%), #0f1a33;
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.12); }
.wave .txt { flex: 1; min-width: 0; }
.wave h2 { margin: 0; font: 600 24px/1.15 var(--font-display); letter-spacing: -.02em; }
.wave p { margin: 6px 0 0; font: 400 14px/1.4 var(--font); color: var(--text-2); }
.wave .go { width: 56px; height: 56px; border-radius: 50%; background: #fff; color: #0a0a0a; display: grid; place-items: center; flex: none; }
.wave .go svg { width: 24px; height: 24px; }
.wave:active { transform: scale(.985); transition: transform .1s; }
.wave.is-on .go { background: var(--accent); color: #fff; }

/* ------------------------------------------------------------------ search */
.search-box { position: sticky; top: 0; z-index: 3; padding: 8px var(--gutter) 10px; margin: 0 calc(-1 * var(--gutter)); }
.search-box.stuck { background: var(--bg); box-shadow: 0 .5px 0 var(--border-subtle); }
.search-field { position: relative; display: flex; align-items: center; height: 46px; border-radius: var(--r-row);
  background: var(--surface-1); border: 1px solid var(--border); }
.search-field:focus-within { border-color: rgba(255,255,255,.3); }
.search-field svg { width: 18px; height: 18px; margin: 0 10px 0 14px; color: var(--text-3); flex: none; }
.search-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--text);
  font: 400 16px var(--font); }
.search-field input::placeholder { color: var(--text-4); }
.search-field input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.search-field .clear { width: 40px; height: 40px; color: var(--text-3); display: grid; place-items: center; }
.search-field .clear[hidden] { display: none; }
.search-field .clear svg { margin: 0; width: 18px; height: 18px; }
.status:empty { display: none; }
.status { margin: 8px 2px 0; font: 400 13px/1.4 var(--font); color: var(--text-3); }

.suggest { margin: 4px 0 0; padding: 0; list-style: none; }
.suggest li { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 4px; border-radius: var(--r-input);
  color: var(--text-2); cursor: pointer; }
.suggest li:active { background: var(--hover); }
.suggest li svg { width: 16px; height: 16px; color: var(--text-4); flex: none; }
.suggest li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest li b { color: var(--text); font-weight: 500; }
.suggest li .fill { width: 32px; height: 32px; display: grid; place-items: center; color: var(--text-4); }
.suggest li .fill svg { transform: rotate(-45deg); }

.chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 2px; margin: 0 calc(-1 * var(--gutter));
  padding-inline: var(--gutter); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 32px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--border-subtle);
  font: 500 13px/30px var(--font); color: var(--text-3); background: var(--surface-2); }
.chip.is-active { background: #fff; color: #0a0a0a; border-color: #fff; }

/* ------------------------------------------------------------------ rows */
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 6px 4px 6px 6px; margin: 0 -6px;
  border-radius: var(--r-row); cursor: pointer; user-select: none; -webkit-user-select: none; }
.row:active { background: var(--hover); }
.row.is-playing { background: var(--active); }
.row.is-playing .title { color: var(--accent); }
.row .cover { width: 48px; height: 48px; border-radius: var(--r-sm); object-fit: cover; background: var(--surface-1); flex: none; }
.row .cover.round { border-radius: 50%; }
.row .num { width: 28px; text-align: center; font: 400 13px var(--font-mono); color: var(--text-4); flex: none; }
.row .meta { flex: 1; min-width: 0; }
.row .title { font: 500 15px/1.3 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .sub { font: 400 13px/1.4 var(--font); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge-e { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-right: 5px; border-radius: 3px;
  background: rgba(255,255,255,.35); color: #0a0a0a; font: 700 9px/1 var(--font); vertical-align: 1px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); flex: none; }
.icon-btn:active { background: var(--hover); }
.icon-btn svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ cards / carousels */
.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter));
  padding: 2px var(--gutter) 6px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.card { flex: none; width: 146px; scroll-snap-align: start; cursor: pointer; }
.card .art { position: relative; width: 146px; height: 146px; border-radius: var(--r-row); overflow: hidden; background: var(--surface-1); }
.card .art img { width: 100%; height: 100%; object-fit: cover; }
.card.round .art { border-radius: 50%; }
.card .t { margin-top: 8px; font: 500 14px/1.35 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .s { font: 400 12px/1.4 var(--font); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.round .t, .card.round .s { text-align: center; }
/* personal mix: cover with a tinted label strip */
.card.mix .art::after { content: ""; position: absolute; inset: auto 0 0; height: 46%;
  background: linear-gradient(rgba(10,10,10,0), rgba(10,10,10,.82)); }
.card.mix .label { position: absolute; left: 10px; right: 10px; bottom: 9px; z-index: 1; font: 600 14px/1.2 var(--font-display);
  letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* quick picks: 4-row grid that pages sideways */
.grid4 { display: grid; grid-auto-flow: column; grid-template-rows: repeat(4, auto); grid-auto-columns: 86%;
  gap: 0 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.grid4::-webkit-scrollbar { display: none; }
.grid4 .row { margin: 0; scroll-snap-align: start; }

/* ------------------------------------------------------------------ top result */
.top-card { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r-card);
  background: var(--surface-card); box-shadow: inset 0 0 0 .5px var(--border); }
.top-card .cover { width: 84px; height: 84px; border-radius: var(--r-row); object-fit: cover; flex: none; background: var(--surface-1); }
.top-card .cover.round { border-radius: 50%; }
.top-card .info { flex: 1; min-width: 0; }
.top-card .name { font: 500 20px/1.25 var(--font-display); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-card .kind { margin-top: 3px; font: 400 13px var(--font); color: var(--text-3); }
.top-card .actions { display: flex; gap: 8px; margin-top: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px;
  padding: 0 16px; border-radius: var(--r-pill); font: 500 14px/1 var(--font); background: #fff; color: #0a0a0a;
  border: 1px solid transparent; white-space: nowrap; }
.btn:active { opacity: .8; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.ghost { background: var(--surface-1); color: #fff; border-color: var(--border); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }

/* ------------------------------------------------------------------ artist / album pages */
.page-top { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 4px;
  height: calc(52px + var(--safe-t)); padding: var(--safe-t) 8px 0; margin: 0 calc(-1 * var(--gutter)); }
.page-top.solid { background: var(--bg-solid); box-shadow: 0 .5px 0 var(--border-subtle); }
.page-top .ttl { flex: 1; min-width: 0; font: 500 15px var(--font); opacity: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-top.solid .ttl { opacity: 1; }
.page-top .icon-btn { color: var(--text); }
.artist-hero { position: relative; margin: calc(-52px - var(--safe-t)) calc(-1 * var(--gutter)) 0; height: 320px; overflow: hidden; }
.artist-hero img { width: 100%; height: 100%; object-fit: cover; }
.artist-hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(10,10,10,.1) 30%, rgba(10,10,10,.6) 70%, var(--bg)); }
.artist-head { position: relative; margin-top: -92px; }
.artist-head h1 { margin: 0 0 4px; font: 500 34px/1.1 var(--font-display); letter-spacing: -.02em; }
.artist-head .stats { font: 400 13px var(--font); color: var(--text-3); }
.hero-actions { display: flex; align-items: center; gap: 10px; margin: 16px 0 8px; }
.hero-actions .spacer { flex: 1; }
.circle-play { width: 52px; height: 52px; border-radius: 50%; background: #fff; color: #0a0a0a; display: grid; place-items: center; }
.circle-play svg { width: 22px; height: 22px; }
.album-hero { position: relative; text-align: center; padding: 6px 0 4px; isolation: isolate; }
.album-hero .bg { position: absolute; inset: calc(-52px - var(--safe-t)) calc(-1 * var(--gutter)) auto; height: 380px; z-index: -1;
  overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent); }
.album-hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.album-hero .cover { width: 220px; height: 220px; margin: 4px auto 0; border-radius: var(--r-panel); object-fit: cover;
  box-shadow: 0 0 0 .5px rgba(255,255,255,.1), 0 20px 50px rgba(0,0,0,.45); background: var(--surface-1); }
.album-hero h1 { margin: 16px 0 4px; font: 500 24px/1.2 var(--font-display); letter-spacing: -.02em; }
.album-hero .by { font: 500 14px var(--font); color: var(--text-2); cursor: pointer; }
.album-hero .eyebrow { margin-top: 4px; }
.album-hero .hero-actions { justify-content: center; }
.desc { margin: 8px 0 0; font: 400 14px/1.6 var(--font); color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden; }
.foot-note { margin: 14px 0 0; font: 400 13px var(--font); color: var(--text-4); }

.empty { padding: 40px 12px; text-align: center; color: var(--text-3); font-size: 14px; }
.empty .big { display: block; margin-bottom: 8px; font: 500 18px var(--font-display); color: var(--text-2); }

/* ------------------------------------------------------------------ tab bar + mini player */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b); background: #0e0e10; box-shadow: 0 -.5px 0 var(--border-subtle); }
.tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--text-4); font: 500 11px/1 var(--font); }
.tabbar button svg { width: 24px; height: 24px; }
.tabbar button.is-active { color: #fff; }

/* mini player: one 8 px inset everywhere -- cover, buttons and the progress line share the same edges */
.mini { position: fixed; left: 8px; right: 8px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 6px); z-index: 21;
  display: none; align-items: center; gap: 12px; height: 60px; padding: 0 8px; border-radius: 12px;
  background: #1f2126; box-shadow: var(--shadow-float); cursor: pointer; overflow: hidden; }
.mini.on { display: flex; }
.mini .cover { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--surface-1); flex: none; }
.mini .meta { flex: 1; min-width: 0; }
.mini .title { font: 500 15px/20px var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .sub { font: 400 13px/18px var(--font); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .play { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #0a0a0a; display: grid; place-items: center; flex: none; }
.mini .play svg { width: 18px; height: 18px; }
.mini .icon-btn { width: 32px; height: 40px; border-radius: 8px; color: var(--text); margin-left: -4px; }
.mini .icon-btn svg { width: 22px; height: 22px; }
.mini .progress { position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; border-radius: 2px 2px 0 0;
  background: rgba(255,255,255,.1); overflow: hidden; }
.mini .progress i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
@media (min-width: 640px) { .mini { left: 50%; right: auto; width: 600px; transform: translateX(-50%); } }

/* ------------------------------------------------------------------ now playing (one vertical scroll) */
.np { position: fixed; inset: 0; z-index: 30; background: var(--bg); transform: translateY(100%); visibility: hidden;
  transition: transform .3s var(--ease), visibility 0s linear .3s; contain: strict; }
.np.on { transform: none; visibility: visible; transition: transform .3s var(--ease); }
.np-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.np-bg img { width: 100%; height: 72%; object-fit: cover; opacity: .55; }  /* 8x8 thumbnail: the upscale is the blur */
.np-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(10,10,10,.25), rgba(10,10,10,.75) 45%, var(--bg) 72%); }
.np-top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  height: calc(52px + var(--safe-t)); padding: var(--safe-t) 12px 0; }
.np-top.solid { background: var(--bg-solid); box-shadow: 0 .5px 0 var(--border-subtle); }
.np-top .icon-btn { color: var(--text); }
.np-from { flex: 1; min-width: 0; text-align: center; font: 500 13px/1.3 var(--font); color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 8px; }
.np-scroll { position: absolute; inset: 0; z-index: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.np-main { display: flex; flex-direction: column; min-height: 100%; padding: calc(56px + var(--safe-t)) 22px 8px; }
.art-wrap { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 8px 0 20px; touch-action: pan-y; }
.art { width: min(100%, 46vh); aspect-ratio: 1; border-radius: var(--r-panel); object-fit: cover; background: var(--surface-1);
  box-shadow: 0 0 0 .5px rgba(255,255,255,.1), 0 24px 60px rgba(0,0,0,.5); }
.np-title { display: flex; align-items: center; gap: 2px; }
.np-title .meta { flex: 1; min-width: 0; margin-right: 6px; }
.np-title h2 { margin: 0; font: 500 22px/1.25 var(--font-display); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-title .artist { font: 400 15px/1.4 var(--font); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.np-title .icon-btn { width: 44px; height: 44px; color: var(--text-2); }
.np-title .icon-btn svg { width: 24px; height: 24px; }
.np-title .like.is-on { color: var(--accent); }
.scrub { position: relative; height: 28px; margin-top: 14px; touch-action: none; cursor: pointer; }
.scrub .track { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); overflow: hidden; }
.scrub .fill { position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.scrub .knob { position: absolute; top: 7px; left: 0; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff;
  transform: translateX(0) scale(.0); transition: transform .12s; pointer-events: none; }
.scrub.drag .knob { transform: var(--knob-x, translateX(0)) scale(1); }
.times { display: flex; justify-content: space-between; font: 400 12px var(--font-mono); color: var(--text-3); }
.controls { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 4px; }
.controls .icon-btn { width: 52px; height: 52px; color: var(--text); }
.controls .icon-btn svg { width: 28px; height: 28px; }
.controls .icon-btn.small svg { width: 22px; height: 22px; }
.controls .icon-btn.small { color: var(--text-4); }
.controls .icon-btn.small.on { color: var(--accent); }
.controls .big { width: 72px; height: 72px; border-radius: 50%; background: #fff; color: #0a0a0a; display: grid; place-items: center; }
.controls .big svg { width: 30px; height: 30px; }
.np-peek { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 10px auto calc(4px + var(--safe-b));
  padding: 6px 16px; font: 500 13px var(--font); color: var(--text-3); }
.np-peek::after { content: ""; width: 9px; height: 9px; margin-top: 2px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.np-ttfs { display: none; text-align: center; font: 400 11px var(--font-mono); color: var(--text-4); }
.debug .np-ttfs { display: block; }

.np-card { margin: 0 14px 14px; padding: 16px 16px 12px; border-radius: var(--r-card); background: var(--surface-card);
  box-shadow: inset 0 0 0 .5px var(--border-subtle); }
.np-card:last-child { margin-bottom: calc(20px + var(--safe-b)); }
.np-card[hidden] { display: none; }
.np-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.np-card-head h3 { margin: 0; font: 600 17px/1.3 var(--font-display); letter-spacing: -.01em; }
.np-card-head .src { font: 400 12px var(--font); color: var(--text-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-card-sub { margin: -4px 0 6px; font: 400 13px var(--font); color: var(--text-3); }
.np-card-sub:empty { display: none; }
.autoplay { display: flex; align-items: center; gap: 10px; font: 400 13px var(--font); color: var(--text-3); }
.switch { width: 40px; height: 24px; border-radius: 24px; background: rgba(255,255,255,.18); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: var(--accent-strong); }
.switch.on::after { transform: translateX(16px); }
.lyrics { max-height: 46vh; overflow-y: auto; padding: 4px 0 8px; overscroll-behavior: contain; -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 10%, #000 88%, transparent); }
.lyrics p { margin: 0; padding: 6px 0; font: 600 20px/1.35 var(--font-display); letter-spacing: -.01em; color: var(--text-4); cursor: pointer; transition: color .25s; }
.lyrics p.now { color: #fff; }
.lyrics p.past { color: var(--text-3); }
.lyrics.plain { -webkit-mask-image: none; mask-image: none; }
.lyrics.plain p { font: 400 16px/1.7 var(--font); color: var(--text-2); white-space: pre-wrap; cursor: default; }
.lyrics .none { padding: 8px 0 12px; font: 400 14px var(--font); color: var(--text-3); }

/* ------------------------------------------------------------------ bottom sheet (⋮) */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 86vh; overflow-y: auto;
  padding: 6px 16px calc(14px + var(--safe-b)); background: var(--bg-solid); border-radius: 22px 22px 0 0;
  box-shadow: 0 -.5px 0 var(--border); transform: translateY(105%); visibility: hidden;
  transition: transform .26s var(--ease), visibility 0s linear .26s; }
.sheet.on { transform: none; visibility: visible; transition: transform .26s var(--ease); }
.sheet .grab { width: 36px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.25); margin: 4px auto 10px; }
.sheet .sheet-head { display: flex; align-items: center; gap: 12px; padding: 4px 2px 12px; box-shadow: 0 .5px 0 var(--border-subtle); margin-bottom: 6px; }
.sheet .sheet-head img { width: 48px; height: 48px; border-radius: var(--r-sm); object-fit: cover; background: var(--surface-1); flex: none; }
.sheet .sheet-head .round { border-radius: 50%; }
.sheet .sheet-head .t { font: 500 15px/1.3 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet .sheet-head .s { font: 400 13px/1.4 var(--font); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet .item { display: flex; align-items: center; gap: 16px; width: 100%; height: 50px; padding: 0 6px; border-radius: var(--r-input);
  font: 400 15px var(--font); color: var(--text); text-align: left; }
.sheet .item:active { background: var(--hover); }
.sheet .item svg { width: 22px; height: 22px; color: var(--text-3); flex: none; }

/* ------------------------------------------------------------------ toast + misc */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 76px); z-index: 50;
  transform: translate(-50%, 12px); opacity: 0; padding: 10px 16px; border-radius: var(--r-pill); max-width: calc(100% - 40px);
  background: #2c2c30; box-shadow: var(--shadow-float); font: 500 13px/1.3 var(--font); transition: opacity .2s, transform .2s;
  pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.np.on ~ .toast { bottom: calc(24px + var(--safe-b)); }
.skeleton { background: var(--surface-2); border-radius: var(--r-sm); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.sk-row { height: 48px; margin: 12px 0; }
.sk-wave { height: 132px; margin-top: 6px; border-radius: var(--r-card); }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; margin-right: 6px; }
.eq i { width: 3px; height: 12px; background: var(--accent); transform-origin: 50% 100%; animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.paused .eq i { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
