/* FD WAVE: монохром, молнии, хром-звёзды, машинописный шрифт. Все цвета здесь. */
:root {
  --bg: #000;
  --surface: rgba(12, 12, 12, .62);
  --surface-2: rgba(28, 28, 28, .72);
  --line: rgba(255, 255, 255, .13);
  --line-strong: rgba(255, 255, 255, .35);
  --text: #f2f2f2;
  --muted: #8d8d8d;
  --accent: #fff;
  --glow: 0 0 6px rgba(255, 255, 255, .75), 0 0 22px rgba(190, 205, 255, .35);
  --glow-soft: 0 0 14px rgba(200, 210, 255, .18);
  --radius: 5px;
  --mono: "Courier Prime", "PT Mono", ui-monospace, monospace;
  --tabbar: 62px;
  --mini: 0px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg) url("../assets/bg.webp") center top / cover fixed no-repeat;
  color: var(--text);
  font: 15px/1.35 var(--mono);
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}
body::before { /* затемнение фона, чтобы текст читался */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.82) 35%, rgba(0,0,0,.9) 100%);
}
body::after { /* гранж-шум */
  content: ""; position: fixed; inset: 0; z-index: 1000; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
img { display: block; }
.hidden { display: none !important; }

/* ---------- каркас ---------- */
#app { min-height: 100%; padding-bottom: calc(var(--tabbar) + var(--mini) + var(--safe-b) + 16px); }
.screen { padding: 14px 16px 0; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.logo { width: 44px; height: 42px; mix-blend-mode: screen; filter: contrast(1.3); }
.brand { font-weight: 700; letter-spacing: .32em; font-size: 15px; text-transform: uppercase; }
.brand small { display: block; font-weight: 400; letter-spacing: .08em; color: var(--muted); font-size: 11px; text-transform: none; }
.topbar .spacer { flex: 1; }
.avatar { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); object-fit: cover; background: #111; }

h1, h2, h3 { margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
h1 { font-size: 20px; }
h2 { font-size: 13px; color: var(--text); }
.section { margin: 26px 0 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.section h2::before { content: "✦ "; text-shadow: var(--glow); }
.section .more { font-size: 12px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700;
  transition: box-shadow .15s, background .15s, transform .1s;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: #000; border-color: var(--accent); box-shadow: var(--glow); }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 11px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn.on { text-shadow: var(--glow); filter: drop-shadow(0 0 5px rgba(255,255,255,.7)); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 32px; padding: 0 12px; display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 12px; letter-spacing: .06em; white-space: nowrap;
}
.chip.on { border-color: var(--accent); background: var(--accent); color: #000; box-shadow: var(--glow); }

/* ---------- поиск ---------- */
.searchbar {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.searchbar input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 15px; }
.searchbar input::placeholder { color: var(--muted); }
.searchbar svg { width: 18px; height: 18px; opacity: .7; flex: none; }

/* ---------- волна ---------- */
.wave-card {
  position: relative; overflow: hidden; margin-top: 16px; padding: 22px 18px 18px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.10), rgba(0,0,0,.55) 60%), var(--surface);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.wave-card .bolt { position: absolute; right: -10px; top: -14px; width: 150px; opacity: .55; pointer-events: none; }
.wave-play {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
}
.wave-play .disc {
  width: 64px; height: 64px; flex: none; border-radius: 50%; border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--glow);
  background: rgba(0,0,0,.6);
}
.wave-play .disc svg { width: 26px; height: 26px; }
.wave-title { font-size: 22px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; text-shadow: var(--glow-soft); }
.wave-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.wave-card .chips { margin-top: 14px; }

/* ---------- карточки ---------- */
.hscroll { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
.hscroll::-webkit-scrollbar { display: none; }
.card { flex: none; width: 142px; text-align: left; scroll-snap-align: start; }
.card .art { width: 142px; height: 142px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #0b0b0b; position: relative; }
.card .art img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) contrast(1.05); }
.card .collage { display: grid; grid-template-columns: 1fr 1fr; width: 100%; height: 100%; }
.card .collage img { width: 100%; height: 100%; object-fit: cover; }
.card .t { margin-top: 7px; font-size: 13px; font-weight: 700; line-height: 1.2; }
.card .s { font-size: 11px; color: var(--muted); }
.card.text .art {
  display: flex; align-items: flex-end; padding: 10px;
  background: linear-gradient(160deg, rgba(255,255,255,.13), rgba(0,0,0,.7) 55%), #050505;
}
.card.text .art span { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; line-height: 1.15; }
.card.text .art::before { content: "✦"; position: absolute; top: 8px; right: 10px; font-size: 18px; text-shadow: var(--glow); }
.card.round .art { border-radius: 50%; width: 96px; height: 96px; }
.card.round { width: 96px; text-align: center; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile {
  height: 54px; padding: 0 12px; display: flex; align-items: center; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 700;
  letter-spacing: .04em; text-align: left;
}

/* ---------- треки ---------- */
.tracks { margin-top: 6px; }
.track { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.05); width: 100%; text-align: left; }
.track .cv { width: 46px; height: 46px; flex: none; border-radius: 4px; object-fit: cover; background: #111; border: 1px solid var(--line); }
.track .meta { flex: 1; min-width: 0; }
.track .tt { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track .ar { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track .dur { font-size: 12px; color: var(--muted); flex: none; }
.track .icon-btn { width: 34px; height: 34px; flex: none; }
.track .icon-btn svg { width: 19px; height: 19px; }
.track.current .tt { text-shadow: var(--glow); }
.track.current .tt::before { content: "✦ "; }

/* ---------- шапка списка ---------- */
.list-head { display: flex; gap: 14px; align-items: flex-end; margin: 4px 0 14px; }
.list-head .art { width: 120px; height: 120px; flex: none; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--glow-soft); }
.list-head .art img { width: 100%; height: 100%; object-fit: cover; }
.list-head .art .collage { display: grid; grid-template-columns: 1fr 1fr; width: 100%; height: 100%; }
.list-head .kicker { font-size: 11px; color: var(--muted); letter-spacing: .2em; text-transform: uppercase; }
.list-head h1 { margin-top: 4px; font-size: 18px; word-break: break-word; }
.list-head.round .art { border-radius: 50%; }

/* ---------- профиль ---------- */
.profile { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.profile .avatar { width: 64px; height: 64px; }
.stats { display: flex; gap: 18px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.stats b { color: var(--text); }
.menu { border-top: 1px solid var(--line); margin-top: 18px; }
.menu-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 15px 2px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.menu-item .n { margin-left: auto; color: var(--muted); font-size: 12px; }
.menu-item svg { width: 20px; height: 20px; }

/* ---------- таббар ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  height: calc(var(--tabbar) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: flex; border-top: 1px solid var(--line); background: rgba(0,0,0,.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tabbar button svg { width: 22px; height: 22px; }
.tabbar button.on { color: var(--text); text-shadow: var(--glow); }
.tabbar button.on svg { filter: drop-shadow(0 0 4px rgba(255,255,255,.8)); }

/* ---------- мини-плеер ---------- */
.mini {
  position: fixed; left: 8px; right: 8px; z-index: 49;
  bottom: calc(var(--tabbar) + var(--safe-b) + 6px);
  display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 7px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: rgba(10,10,10,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}
.mini .cv { width: 42px; height: 42px; border-radius: 4px; object-fit: cover; }
.mini .meta { flex: 1; min-width: 0; text-align: left; }
.mini .tt { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .ar { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .bar { position: absolute; left: 0; bottom: 0; height: 2px; background: #fff; box-shadow: var(--glow); width: 0; }

/* ---------- полноэкранный плеер ---------- */
.player {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column;
  padding: 12px 22px calc(22px + var(--safe-b));
  background: rgba(0,0,0,.55) url("../assets/bg.webp") center / cover;
  transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.player::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.85) 70%); }
.player.open { transform: none; }
.player .top { display: flex; align-items: center; justify-content: space-between; }
.player .ctx { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-align: center; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 8px; }
.player .cover-wrap { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 18px 0; }
.player .cover { width: min(78vw, 46vh); aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line-strong); box-shadow: 0 0 40px rgba(200,210,255,.18), 0 20px 60px rgba(0,0,0,.8); }
.player .names { display: flex; align-items: center; gap: 10px; }
.player .names .meta { flex: 1; min-width: 0; }
.player .names .tt { font-size: 19px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .names .ar { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .names .ar button { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.seek { margin-top: 16px; }
.seek input { width: 100%; -webkit-appearance: none; appearance: none; height: 22px; background: transparent; }
.seek input::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, #fff var(--p, 0%), rgba(255,255,255,.18) var(--p, 0%)); box-shadow: 0 0 6px rgba(255,255,255,.35); }
.seek input::-moz-range-track { height: 2px; background: rgba(255,255,255,.18); }
.seek input::-moz-range-progress { height: 2px; background: #fff; }
.seek input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: var(--glow); }
.seek input::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; box-shadow: var(--glow); }
.seek .times { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.controls { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.controls .main { width: 72px; height: 72px; border-radius: 50%; background: #fff; color: #000; box-shadow: var(--glow); display: flex; align-items: center; justify-content: center; }
.controls .main svg { width: 30px; height: 30px; }
.controls .icon-btn svg { width: 26px; height: 26px; }
.player .actions { display: flex; justify-content: space-between; margin-top: 18px; }
.player .actions .icon-btn { width: 44px; height: 44px; }

/* ---------- шторка ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .2s; }
.sheet-bg.open { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 91; max-height: 82vh; overflow-y: auto;
  padding: 10px 16px calc(16px + var(--safe-b)); border-top: 1px solid var(--line-strong);
  border-radius: 12px 12px 0 0; background: rgba(8,8,8,.97);
  transform: translateY(100%); transition: transform .24s cubic-bezier(.2,.8,.2,1);
}
.sheet.open { transform: none; }
.sheet .grip { width: 38px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 0 auto 12px; }
.sheet .head { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.sheet .head img { width: 48px; height: 48px; border-radius: 4px; object-fit: cover; }
.sheet .opt { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 2px; text-align: left; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.05); }
.sheet .opt svg { width: 20px; height: 20px; flex: none; }
.sheet .opt.danger { color: #ff8a8a; }
.sheet h3 { margin: 6px 0 12px; font-size: 13px; }
.sheet p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.choice { width: 100%; text-align: left; padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); margin-bottom: 10px; background: var(--surface); }
.choice b { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; margin-bottom: 4px; }
.choice span { color: var(--muted); font-size: 12px; }

/* ---------- формы ---------- */
.field { width: 100%; padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(0,0,0,.6); outline: 0; font-size: 14px; }
textarea.field { min-height: 160px; resize: vertical; }
.field:focus { border-color: #fff; box-shadow: var(--glow-soft); }
label.radio { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; }
.progress { height: 3px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; margin: 12px 0 6px; }
.progress div { height: 100%; background: #fff; box-shadow: var(--glow); width: 0; transition: width .3s; }

/* ---------- прочее ---------- */
.toast {
  position: fixed; left: 16px; right: 16px; z-index: 120; top: 12px;
  padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: rgba(10,10,10,.95); font-size: 13px; box-shadow: var(--glow-soft);
  display: flex; gap: 10px; align-items: center; transform: translateY(-150%); transition: transform .25s;
}
.toast.show { transform: none; }
.toast .act { margin-left: auto; text-transform: uppercase; font-weight: 700; font-size: 11px; letter-spacing: .12em; white-space: nowrap; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; font-size: 13px; }
.empty .big { font-size: 34px; text-shadow: var(--glow); margin-bottom: 8px; color: var(--text); }
.spinner { width: 26px; height: 26px; margin: 40px auto; border: 2px solid rgba(255,255,255,.15); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; box-shadow: var(--glow-soft); }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

.gate { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 24px; gap: 14px; }
.gate .logo { width: 150px; height: 144px; margin-bottom: 6px; }
.gate h1 { font-size: 22px; letter-spacing: .3em; }
.gate p { color: var(--muted); max-width: 300px; margin: 0 0 8px; }
.gate .btn { width: 100%; max-width: 320px; }
.tagline { font-size: 11px; color: var(--muted); letter-spacing: .06em; margin-top: 18px; }
.tagline::after { content: ""; display: block; width: 16px; height: 1px; background: var(--muted); margin-top: 6px; }

.onb-artists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.onb-artist { text-align: center; font-size: 12px; }
.onb-artist .art { width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 1px solid var(--line); margin-bottom: 6px; position: relative; }
.onb-artist .art img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3); }
.onb-artist.on .art { border-color: #fff; box-shadow: var(--glow); }
.onb-artist.on .art::after { content: "✦"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 30px; background: rgba(0,0,0,.45); text-shadow: var(--glow); }
.sticky-bottom { position: sticky; bottom: calc(12px + var(--safe-b)); margin-top: 20px; }

@media (min-width: 560px) {
  .screen { max-width: 560px; margin: 0 auto; }
  .onb-artists { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- доработки после просмотра ---------- */
.btn svg { width: 18px; height: 18px; flex: none; }
.hscroll { scroll-padding-inline: 16px; }
input[type="radio"], input[type="checkbox"] { accent-color: #fff; width: 18px; height: 18px; }
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none; width: 16px; height: 16px; cursor: pointer;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'><path d='M6 6l12 12M18 6L6 18'/></svg>") center / contain no-repeat;
  opacity: .7;
}
.card.text .art { background: linear-gradient(170deg, rgba(255,255,255,.08), rgba(0,0,0,.75) 60%), url("../assets/bg.webp") var(--pos, 50% 30%) / 340% auto, #050505; }
.sticky-bottom { padding: 10px 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.92) 35%); }
.wave-card .bolt { width: 130px; right: 6px; top: -6px; opacity: .7; }

/* ---------- обложки: тёмная заглушка, пока грузится, потом мягко проявляется ---------- */
img.im { background: #151515; color: transparent; }
img.im.ok { animation: im-in .22s ease; }
@keyframes im-in { from { opacity: 0; } to { opacity: 1; } }
.player .cover-wrap { touch-action: pan-y; will-change: transform; }
.mini { touch-action: pan-y; }

/* ---------- 4 вкладки ---------- */
.tabbar button { letter-spacing: .06em; font-size: 9.5px; white-space: nowrap; transition: color .2s; }
.tabbar button.on svg { animation: tab-pop .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes tab-pop { 40% { transform: translateY(-3px) scale(1.12); } }
.page-title { margin: 6px 0 16px; }

/* ---------- плеер: обложка по размеру экрана (ширину и высоту ставит JS) ---------- */
.player .cover-wrap { overflow: visible; padding: 10px 0; }
.player .cover { width: min(78vw, 40vh); height: auto; max-width: 100%; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.player.paused .cover { transform: scale(.93); }
.player .names { position: relative; z-index: 1; }

/* ---------- «Моя волна»: линии и эквалайзер ---------- */
.wave-card { isolation: isolate; padding-bottom: 72px; }
.wave-viz { position: absolute; inset: auto 0 0 0; height: 66px; z-index: -1; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.wave-viz .lines { position: absolute; inset: 0; transform-origin: 50% 70%; transform: scaleY(.55); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.wave-viz svg { position: absolute; left: 0; top: 8px; width: 200%; height: 52px; animation: drift var(--t) linear infinite; will-change: transform; }
.wave-viz svg path { fill: none; stroke: #fff; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.wave-viz svg.l1 { top: 12px; animation-direction: reverse; }
.wave-viz svg.l2 { top: 4px; }
@keyframes drift { to { transform: translateX(-50%); } }
.wave-viz .bars { position: absolute; left: 18px; right: 18px; bottom: 0; height: 44px; display: flex; align-items: flex-end; gap: 4px; opacity: 0; transition: opacity .5s; }
.wave-viz .bars i { flex: 1; height: 100%; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.05));
  transform-origin: 50% 100%; transform: scaleY(.06); }
.wave-card.playing .wave-viz .lines { transform: scaleY(1.15); }
.wave-card.playing .wave-viz .bars { opacity: .45; }
.wave-card.playing .wave-viz .bars i { animation: eq var(--d) ease-in-out var(--dl) infinite alternate; will-change: transform; }
@keyframes eq { from { transform: scaleY(.06); } to { transform: scaleY(var(--h)); } }
.wave-play .disc { position: relative; transition: transform .15s ease; }
.wave-play:active .disc { transform: scale(.92); }
.wave-play .disc .ring { position: absolute; inset: -5px; border-radius: 50%; opacity: 0; transition: opacity .4s;
  background: conic-gradient(from 0deg, transparent 0 60%, rgba(255,255,255,.9) 85%, transparent 100%);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%); mask: radial-gradient(circle, transparent 58%, #000 60%); }
.wave-card.playing .disc .ring { opacity: 1; animation: spin 2.4s linear infinite; }
.wave-play .disc .ico { display: flex; }
.wave-play .disc .ico svg { width: 26px; height: 26px; }
.wave-card.playing .disc { animation: none; }
.wave-card.retune .wave-viz .lines { animation: retune .7s ease; }
@keyframes retune { 30% { opacity: .2; transform: scaleY(1.6); } }
.wave-sub { transition: opacity .2s; }
/* плеер открыт поверх главной: анимации главной стоят, батарея не тратится */
body.player-open .wave-viz *, body.player-open .disc .ring { animation-play-state: paused !important; }

/* ---------- мини-плеер: эквалайзер на обложке ---------- */
.mini .cv-wrap { position: relative; flex: none; width: 42px; height: 42px; }
.mini .eq { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; gap: 2px; padding: 0 0 9px;
  border-radius: 4px; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .25s; }
.mini .eq i { width: 3px; height: 16px; background: #fff; border-radius: 1px; transform-origin: 50% 100%; transform: scaleY(.3); }
.mini.playing .eq { opacity: 1; }
.mini.playing .eq i { animation: eq .7s ease-in-out infinite alternate; --h: 1; }
.mini.playing .eq i:nth-child(2) { animation-duration: .5s; animation-delay: -.2s; --h: .8; }
.mini.playing .eq i:nth-child(3) { animation-duration: .85s; animation-delay: -.4s; --h: .9; }

/* ---------- лёгкие анимации нажатий ---------- */
.icon-btn, .chip, .tile, .menu-item, .card, .gate-ch, .likes-card, .controls .main, .btn { transition: transform .14s ease, background .18s, color .18s, border-color .18s, box-shadow .18s; }
.icon-btn:active, .chip:active, .tile:active, .gate-ch:active { transform: scale(.92); }
.menu-item:active, .likes-card:active { transform: scale(.98); }
.card:active { transform: scale(.96); }
.controls .main:active { transform: scale(.9); }
.track { transition: background .15s; border-radius: 4px; }
.track:active { background: rgba(255,255,255,.05); }
.controls .main svg, #mini-toggle svg, .wave-play .ico svg { animation: icon-in .22s cubic-bezier(.3,1.5,.5,1); }
@keyframes icon-in { from { transform: scale(.6); opacity: .3; } }
.icon-btn { position: relative; }
.icon-btn.pop svg { animation: heart-pop .45s cubic-bezier(.3,1.6,.5,1); }
.icon-btn.pop::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1.5px solid #fff;
  box-shadow: 0 0 10px rgba(255,255,255,.6); animation: ring-out .45s ease-out forwards; pointer-events: none; }
@keyframes heart-pop { 0% { transform: scale(1); } 35% { transform: scale(1.4); } 100% { transform: scale(1); } }
@keyframes ring-out { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.chip.on { animation: chip-on .25s ease; }
@keyframes chip-on { 50% { transform: scale(1.06); } }

/* ---------- «Моя музыка» ---------- */
.likes-card { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px; text-align: left;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: radial-gradient(120% 140% at 0% 0%, rgba(255,255,255,.14), rgba(0,0,0,.5) 60%), var(--surface); }
.likes-card .heart { width: 52px; height: 52px; flex: none; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); background: #fff; color: #000; box-shadow: var(--glow); }
.likes-card .heart svg { width: 26px; height: 26px; }
.likes-card .meta { flex: 1; min-width: 0; }
.likes-card b { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: 14px; }
.likes-card small { color: var(--muted); font-size: 12px; }
.likes-card .go svg { width: 20px; height: 20px; opacity: .8; }
.pl-art { width: 46px; height: 46px; flex: none; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.pl-art .art { width: 46px; height: 46px; display: block; border: 0; }
.empty.small { padding: 14px 4px; text-align: left; }

/* ---------- экран подписки ---------- */
.gate-list { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 8px; }
.gate-ch { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-strong);
  border-radius: var(--radius); background: var(--surface); text-align: left; }
.gate-ch .n { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1px solid #fff; display: flex;
  align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.gate-ch .nm { flex: 1; font-weight: 700; letter-spacing: .06em; }
.gate-ch .go { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.gate-ch.ok { opacity: .6; }
.gate-ch.ok .n { background: #fff; color: #000; box-shadow: var(--glow); }

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