/* 1001 альбом — мини-приложение. Тёмная тема, тёплый янтарный акцент, движение на токенах ниже. */
:root {
  --bg: #0f1115;
  --surface: #181b22;
  --surface-2: #222630;
  --line: #2b303b;
  --text: #f3f1ec;
  --muted: #949baa;
  --accent: #f5b84a;
  --accent-ink: #2b1d02;
  --accent-soft: rgba(245, 184, 74, .14);
  --good: #8fd694;
  --radius: 18px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: .18s;
  --t: .32s;
  --t-slow: .6s;
  --tabs-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  /* В полноэкранном режиме Telegram сверху лежат часы и кнопки «Закрыть»/«…»: клиент сообщает их высоту */
  --safe-t: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
#app { max-width: 480px; margin: 0 auto; min-height: 100%; position: relative; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
img { display: block; }
[hidden] { display: none !important; }

/* ─── Кнопки ─────────────────────────────────────────────────────────────── */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 52px; padding: 0 18px; border-radius: 16px;
  font-weight: 650; font-size: 16px;
  transition: transform var(--t-fast) var(--ease-out), background var(--t-fast), opacity var(--t-fast);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-text { min-height: 44px; color: var(--muted); font-weight: 550; font-size: 14px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ─── Знакомство и тест ──────────────────────────────────────────────────── */
.ob { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding: calc(14px + var(--safe-t)) 20px calc(20px + var(--safe-b)); }
.ob-top { display: flex; align-items: center; gap: 12px; height: 40px; }
.ob-back { width: 36px; height: 36px; border-radius: 12px; background: var(--surface); font-size: 22px; line-height: 1; flex: none; }
.ob-progress { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.ob-progress i { display: block; height: 100%; border-radius: 4px; background: var(--accent); transition: width var(--t-slow) var(--ease-out); }
.ob-skip { color: var(--muted); font-size: 14px; flex: none; min-height: 36px; }
.step { flex: 1; display: flex; flex-direction: column; padding-top: 18px; animation: step-in var(--t) var(--ease-out) both; }
.step.back { animation-name: step-in-back; }
.ob-foot { display: grid; gap: 6px; padding-top: 16px; }

.guide { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.guide h1 { font-size: 27px; line-height: 1.15; letter-spacing: -.4px; margin-top: 34px; }
.guide p { color: var(--muted); font-size: 16px; margin: 12px auto 0; max-width: 320px; }
.art { position: relative; height: 210px; }

/* Слайд 1: веер обложек */
.fan img {
  position: absolute; left: 50%; top: 50%; width: 132px; height: 132px; margin: -66px 0 0 -66px;
  border-radius: 12px; object-fit: cover; background: var(--surface-2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55);
  transform: translateX(calc(var(--k) * 44px)) rotate(calc(var(--k) * 8deg)) translateY(calc(var(--k) * var(--k) * 5px));
  animation: fan-out .9s var(--ease-spring) both; animation-delay: calc(var(--i) * 70ms + 120ms);
}

/* Слайд 2 и загрузка: пластинка */
.vinyl {
  width: 168px; height: 168px; border-radius: 50%; margin: 0 auto;
  background:
    radial-gradient(circle, var(--bg) 0 3px, var(--accent) 3.5px 27px, #0a0b0d 27.5px 30px, transparent 30.5px),
    repeating-radial-gradient(circle, #17191e 0 2px, #0c0d10 2px 4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .05);
  animation: spin 5s linear infinite;
  position: relative;
}
.vinyl::after { /* блик, по которому видно вращение */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 40deg, rgba(255, 255, 255, .09) 60deg, transparent 80deg 200deg, rgba(255, 255, 255, .07) 240deg, transparent 260deg);
}
.art-rate { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.art-rate .vinyl { width: 132px; height: 132px; }
.demo-stars { display: flex; gap: 6px; font-size: 28px; color: var(--surface-2); }
.demo-stars b { animation: star-on 3.2s var(--ease-spring) infinite; animation-delay: calc(var(--i) * .22s + .5s); }

/* Слайд 3: пять слотов */
.slots { display: flex; align-items: center; justify-content: center; gap: 10px; }
.slots b {
  width: 52px; height: 68px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border: 1.5px dashed rgba(245, 184, 74, .5);
  animation: pop .7s var(--ease-spring) both; animation-delay: calc(var(--i) * 90ms + 150ms);
}
.slots b:nth-child(odd) { transform: translateY(-8px); }

/* Вопросы */
.q-title { font-size: 26px; line-height: 1.15; letter-spacing: -.4px; }
.q-hint { color: var(--muted); margin-top: 6px; }
.opts { display: grid; gap: 10px; margin-top: 22px; }
.opts.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opts.cols .opt { padding: 12px 10px; gap: 9px; }
.opts.cols .lb { font-size: 14.5px; }
.opt {
  display: flex; align-items: center; gap: 12px; text-align: left;
  min-height: 60px; padding: 12px 14px; border-radius: 16px;
  background: var(--surface); border: 1.5px solid transparent;
  transition: transform var(--t-fast) var(--ease-out), background var(--t-fast), border-color var(--t-fast);
  animation: rise .5s var(--ease-out) both; animation-delay: calc(var(--i) * 45ms + 60ms);
}
.opt:active { transform: scale(.97); }
.opt .em { font-size: 24px; width: 30px; text-align: center; flex: none; transition: transform var(--t) var(--ease-spring); }
.opt .lb { font-weight: 600; line-height: 1.2; }
.opt .nt { display: block; color: var(--muted); font-size: 13px; font-weight: 400; margin-top: 2px; }
.opt .ck {
  margin-left: auto; width: 22px; height: 22px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--line); display: grid; place-items: center;
  font-size: 13px; color: transparent; transition: all var(--t-fast) var(--ease-out);
}
.opt.on { background: var(--accent-soft); border-color: var(--accent); }
.opt.on .em { transform: scale(1.18) rotate(-6deg); }
.opt.on .ck { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: scale(1.1); }
.opts.full .opt.off { opacity: .45; }

/* Подбор и результат */
.loading { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; text-align: center; }
.loading .vinyl { animation-duration: 1.4s; }
.loading p { color: var(--muted); font-size: 16px; min-height: 24px; animation: rise .4s var(--ease-out) both; }
.picks { display: grid; gap: 10px; margin-top: 20px; }
.pick {
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px; border-radius: 16px; background: var(--surface);
  animation: deal .65s var(--ease-spring) both; animation-delay: calc(var(--i) * 110ms + 100ms);
}
.pick:active { background: var(--surface-2); }
.pick img { width: 62px; height: 62px; border-radius: 10px; object-fit: cover; background: var(--surface-2); flex: none; }
.pick .num { width: 22px; text-align: center; font-weight: 700; color: var(--accent); flex: none; }
.pick .tt { font-weight: 650; line-height: 1.25; }
.pick .st { color: var(--muted); font-size: 13px; margin-top: 2px; }
.cut { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.grow { min-width: 0; flex: 1; }

/* ─── Основной экран ─────────────────────────────────────────────────────── */
#view { padding: var(--safe-t) 18px calc(var(--tabs-h) + var(--safe-b) + 24px); min-height: 100vh; }
.view { animation: rise var(--t) var(--ease-out) both; }
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; justify-content: center; padding-bottom: var(--safe-b);
  background: rgba(15, 17, 21, .86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.tabs button {
  flex: 1; max-width: 120px; height: var(--tabs-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: 11px; font-weight: 550; transition: color var(--t-fast);
}
.tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t) var(--ease-spring); }
.tabs button.on { color: var(--accent); }
.tabs button.on svg { transform: translateY(-2px) scale(1.08); }

.kicker { font-size: 11px; letter-spacing: 1.4px; font-weight: 650; color: var(--muted); text-transform: uppercase; }
.h1 { font-size: 28px; line-height: 1.12; letter-spacing: -.5px; }
.h2 { font-size: 18px; letter-spacing: -.2px; margin: 30px 0 12px; }
.sub { color: var(--muted); margin-top: 4px; }
.page-head { padding-top: 22px; }

/* Сегодня */
.today { position: relative; padding-top: 22px; }
.backdrop {
  position: absolute; left: -18px; right: -18px; top: calc(-1 * var(--safe-t)); height: calc(420px + var(--safe-t)); z-index: -1;
  background-size: cover; background-position: center; filter: blur(46px) saturate(1.3); opacity: .42;
  -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent);
  animation: fade var(--t-slow) ease both;
}
/* Пластинка лежит в конверте за обложкой; у непрослушанного альбома (.out) она выезжает и крутится */
.hero { position: relative; width: 224px; height: 224px; margin: 22px auto 22px; transition: transform .9s var(--ease-out); }
.hero.out { transform: translateX(-22px); }
.hero .vinyl {
  position: absolute; top: 12px; left: 12px; width: 200px; height: 200px;
  transition: translate .9s var(--ease-out); animation: spin 7s linear infinite paused;
}
.hero.out .vinyl { translate: 64px 0; animation: vinyl-out .9s var(--ease-out) .25s backwards, spin 7s linear 1.15s infinite; }
.hero-cover {
  position: relative; width: 224px; height: 224px; border-radius: 14px; object-fit: cover; background: var(--surface-2);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .6); animation: cover-in .7s var(--ease-spring) both;
}
.title-block { text-align: center; }
.artist { color: var(--muted); font-size: 17px; margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.chip { padding: 5px 11px; border-radius: 99px; background: rgba(255, 255, 255, .07); font-size: 12.5px; color: #c9cedb; }
.chip.star { color: var(--accent); background: var(--accent-soft); font-weight: 650; }
.summary { color: #c4c8d2; margin-top: 20px; font-size: 15px; line-height: 1.55; }
.summary.clamp { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
.more { color: var(--accent); font-weight: 600; font-size: 14px; min-height: 40px; }
.links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.links .btn { min-height: 46px; font-size: 14.5px; }

/* Блок «прослушано / оценка / очередь» — общий для «Сегодня» и шторки */
.rate { margin-top: 20px; }
.pair { display: grid; gap: 8px; }
.pair2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.pair2 .btn { min-height: 44px; font-size: 14.5px; }
.note-input {
  width: 100%; margin-top: 10px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); resize: none;
  background: var(--bg); color: var(--text); font: inherit; line-height: 1.45; outline: none; text-align: left;
  animation: pop .3s var(--ease-out) both;
}
.note-input:focus { border-color: var(--accent); }
.my-note { display: block; width: 100%; margin-top: 10px; padding: 12px; border-radius: 14px; background: var(--bg); text-align: left; }
.my-note .q { display: block; color: #d7dae2; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.my-note .e { display: block; margin-top: 6px; font-size: 13px; color: var(--accent); font-weight: 600; }
.add-note { color: var(--accent); }
.my-note .e i { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 8px; }
.pub { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; text-align: left; cursor: pointer; }
.pub input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.pub span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.pub b { display: block; font-size: 14px; font-weight: 600; color: var(--text); }

/* Лента сообщества */
.live { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; margin-left: 6px; padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--good); background: rgba(143, 214, 148, .12); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); animation: pulse 1.6s ease-in-out infinite; }
/* Лента времени: линия идёт сверху вниз через аватарки и обложки */
.tl { position: relative; }
.tl::before { content: ""; position: absolute; left: 35px; top: 6px; bottom: 0; width: 2px; border-radius: 2px; background: linear-gradient(var(--line) 85%, transparent); }
.post { position: relative; margin-top: 26px; animation: rise .45s var(--ease-out) both; animation-delay: calc(var(--i) * 45ms); }
.post:first-child { margin-top: 6px; }
.post.fresh { animation: post-in .7s var(--ease-spring) both; }
.post header { display: flex; align-items: center; gap: 12px; padding-left: 18px; }
.post header b { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post header b i { font-style: normal; font-weight: 500; font-size: 12px; color: var(--accent); margin-left: 4px; }
.post .when { font-size: 12.5px; color: var(--muted); }
.post .row { margin-top: 12px; padding: 0; gap: 14px; align-items: center; animation: none; }
.post .row img { width: 72px; height: 72px; border-radius: 12px; box-shadow: 0 0 0 4px var(--bg), 0 10px 24px rgba(0, 0, 0, .45); }
.post .row .tt { white-space: normal; font-size: 16px; }
.verdict { margin-top: 5px; }
.verdict .mini-stars { font-size: 14px; }
.ava.sm { width: 36px; height: 36px; font-size: 15px; background: var(--surface-2); color: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.bubble { position: relative; margin-top: 12px; padding: 12px 14px; border-radius: 4px 16px 16px 16px; background: var(--surface); box-shadow: 0 0 0 4px var(--bg); }
.bubble .note { margin-top: 0; }
.lock { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.bubble.muted { color: var(--muted); font-size: 13.5px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.votes { display: flex; gap: 8px; margin-top: 10px; }
.vote {
  display: inline-flex; align-items: center; gap: 6px; min-width: 44px; height: 36px; padding: 0 12px; border-radius: 99px;
  background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 650; box-shadow: 0 0 0 4px var(--bg);
  transition: color var(--t-fast), background var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.vote svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vote span:empty { display: none; }
.vote:active { transform: scale(.9); }
.vote.up.on { color: var(--accent-ink); background: var(--accent); }
.vote.down.on { color: #fff; background: #b4545a; }
.vote.on svg { fill: currentColor; fill-opacity: .25; }
.vote[disabled] { opacity: .55; cursor: default; }
.vote.pop { animation: star-pop .45s var(--ease-spring); }
.note { display: block; width: 100%; margin-top: 10px; text-align: left; color: #d7dae2; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.note.clamp { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.more.sm { min-height: 32px; font-size: 13px; }
.rate-card { padding: 14px 14px 6px; border-radius: var(--radius); background: var(--surface); text-align: center; animation: pop .45s var(--ease-spring) both; }
.rate-card .lbl { font-size: 13px; color: var(--muted); }
.stars { display: flex; justify-content: center; gap: 4px; margin-top: 4px; }
.stars button { font-size: 36px; line-height: 1; width: 50px; height: 52px; color: #3a404d; transition: color var(--t-fast), transform var(--t-fast) var(--ease-out); }
.stars button.on { color: var(--accent); }
.stars button:active { transform: scale(.85); }
.stars button.pop { animation: star-pop .5s var(--ease-spring) both; animation-delay: calc(var(--i) * 55ms); }

.strip { display: flex; gap: 12px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 6px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip button { flex: none; width: 104px; text-align: left; animation: rise .5s var(--ease-out) both; animation-delay: calc(var(--i) * 60ms); }
.strip img { width: 104px; height: 104px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.strip .tt { font-size: 13px; font-weight: 600; margin-top: 7px; line-height: 1.25; }
.strip .st { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { text-align: center; color: var(--muted); padding: 34px 16px; border-radius: var(--radius); background: var(--surface); }
.empty b { display: block; font-size: 34px; margin-bottom: 8px; }

/* Коллекция */
.search {
  width: 100%; height: 46px; margin-top: 16px; padding: 0 14px; border-radius: 14px; border: 1.5px solid transparent;
  background: var(--surface); color: var(--text); font: inherit; outline: none; transition: border-color var(--t-fast);
  -webkit-appearance: none; appearance: none;
}
.search::placeholder { color: var(--muted); }
.search:focus { border-color: var(--accent); }
.seg { display: flex; gap: 4px; margin-top: 10px; padding: 4px; border-radius: 14px; background: var(--surface); }
.seg button { flex: 1; min-height: 36px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--muted); transition: background var(--t-fast), color var(--t-fast); }
.seg button.on { background: var(--surface-2); color: var(--text); }
.seg.wrap { display: grid; grid-template-columns: 1fr 1fr; }
.list { margin-top: 12px; }
.row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 8px 0;
  animation: rise .4s var(--ease-out) both; animation-delay: calc(var(--i) * 22ms);
}
.row:active { opacity: .6; }
.row img { width: 54px; height: 54px; border-radius: 9px; object-fit: cover; background: var(--surface-2); flex: none; }
.row .tt { font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .st { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { flex: none; font-size: 12.5px; font-weight: 650; padding: 4px 9px; border-radius: 99px; }
.badge.done { color: var(--accent); background: var(--accent-soft); }
.badge.got { color: var(--good); background: rgba(143, 214, 148, .12); }
.badge.next { color: #b9c0cf; background: rgba(255, 255, 255, .07); }
.skel { height: 54px; margin: 8px 0; border-radius: 9px; background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }

/* Профиль */
.me { display: flex; align-items: center; gap: 14px; padding-top: 24px; }
.ava { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 700; background: var(--accent); color: var(--accent-ink); flex: none; }
.progress-card { display: flex; align-items: center; gap: 18px; margin-top: 20px; padding: 18px; border-radius: var(--radius); background: var(--surface); }
.ring { position: relative; width: 112px; height: 112px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; stroke: var(--surface-2); }
.ring .bar { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1.1s var(--ease-out); }
.ring .in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .in b { font-size: 26px; line-height: 1; letter-spacing: -.5px; }
.ring .in span { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.tile { padding: 14px 10px; border-radius: 16px; background: var(--surface); text-align: center; animation: rise .5s var(--ease-out) both; animation-delay: calc(var(--i) * 70ms); }
.tile b { display: block; font-size: 22px; letter-spacing: -.3px; }
.tile span { font-size: 12px; color: var(--muted); }
.bars { display: grid; gap: 9px; padding: 16px; border-radius: var(--radius); background: var(--surface); }
.bar-row { display: grid; grid-template-columns: 92px 1fr 26px; align-items: center; gap: 10px; font-size: 13px; }
.bar-row .k { color: #c9cedb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .k.st { color: var(--accent); letter-spacing: 1px; }
.bar-row .v { color: var(--muted); text-align: right; }
.track { height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.track i { display: block; height: 100%; width: 0; border-radius: 8px; background: var(--accent); transition: width .9s var(--ease-out); }
/* Настройки рассылки */
.set { border-radius: var(--radius); background: var(--surface); padding: 4px 16px; }
.set > * + * { border-top: 1px solid rgba(255, 255, 255, .06); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; }
.set-row b { display: block; font-weight: 600; }
.set-row span, .set-label { font-size: 13px; color: var(--muted); }
.set-block { padding: 14px 0; }
.set-block .seg { margin-top: 8px; background: var(--bg); }
.set .dim { transition: opacity var(--t); }
.set.off .dim { opacity: .4; pointer-events: none; }
.switch { position: relative; width: 52px; height: 32px; border-radius: 32px; background: var(--surface-2); flex: none; transition: background var(--t); }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transition: transform var(--t) var(--ease-spring); }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(20px); }
.select { height: 40px; padding: 0 12px; border-radius: 12px; border: 0; background: var(--bg); color: var(--text); font: inherit; font-weight: 600; }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--line); }
.timeline .row { position: relative; }
.timeline .row::before { content: ""; position: absolute; left: -22px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.mini-stars { color: var(--accent); font-size: 12px; letter-spacing: 1px; }

/* ─── Шторка альбома ─────────────────────────────────────────────────────── */
.scrim { position: fixed; inset: 0; z-index: 10; background: rgba(0, 0, 0, .6); animation: fade var(--t) ease both; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 11; max-width: 480px; margin: 0 auto;
  max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  padding: 10px 18px calc(22px + var(--safe-b)); border-radius: 24px 24px 0 0; background: #14171d;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .5); animation: sheet-in .45s var(--ease-out) both;
}
.closing .scrim { animation: fade var(--t-fast) ease reverse both; }
.closing .sheet { animation: sheet-out .22s ease-in both; }
.grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 14px; }
.sheet-head { display: flex; gap: 14px; align-items: center; }
.sheet-head img { width: 108px; height: 108px; border-radius: 12px; object-fit: cover; background: var(--surface-2); flex: none; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.sheet-head h2 { font-size: 20px; line-height: 1.2; letter-spacing: -.3px; }
.sheet .chips { justify-content: flex-start; }
.x { position: sticky; top: 0; float: right; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 16px; z-index: 1; }

#toast {
  position: fixed; left: 50%; bottom: calc(var(--tabs-h) + var(--safe-b) + 16px); z-index: 20;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 11px 16px; border-radius: 14px; background: #2a2f3a; font-size: 14px; font-weight: 550; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transition: all var(--t) var(--ease-spring);
}
#toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ─── Движение ───────────────────────────────────────────────────────────── */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.82); } }
@keyframes step-in { from { opacity: 0; transform: translateX(28px); } }
@keyframes step-in-back { from { opacity: 0; transform: translateX(-28px); } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes fan-out { from { opacity: 0; transform: translateY(24px) scale(.8); } }
@keyframes deal { from { opacity: 0; transform: translateY(40px) rotate(4deg) scale(.94); } }
@keyframes cover-in { from { opacity: 0; transform: scale(.86) translateY(16px); } }
@keyframes vinyl-out { from { translate: 0 0; } }
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }
@keyframes post-in { from { opacity: 0; transform: translateY(-22px) scale(.94); } }
@keyframes star-pop { 50% { transform: scale(1.35) rotate(-8deg); } }
@keyframes star-on { 0%, 12% { color: var(--surface-2); transform: scale(1); } 20% { color: var(--accent); transform: scale(1.3); } 28%, 85% { color: var(--accent); transform: scale(1); } 100% { color: var(--surface-2); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .demo-stars { color: var(--accent); }
}
