/* Prisma Music — три авторских стиля оформления + живой переключатель и View Transitions.
   Стили:
     * cosmos (классика) — задаётся базовыми файлами;
     * paper  («Бумага») — тёплый хлопок, тушь, терракота и редакционная типографика;
     * tape   («Кассета») — тёплый графит, анодированная бронза, янтарный свет и Hi-Fi точность;
     * aurora («Тишина») — глубокий северный фьорд, матовый лёд и спокойный свет.
   В режиме /embed (Нейрополис) data-theme не ставится, а embed.css идёт после этого файла. */

/* ---------- локальные шрифты для новых стилей ---------- */
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(/fonts/cormorant-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(/fonts/cormorant-cyrillic-wght-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url(/fonts/manrope-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url(/fonts/manrope-cyrillic-wght-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/fonts/jetbrains-mono-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/fonts/jetbrains-mono-cyrillic-wght-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* ---------- плавный переход при смене стиля (чистый GPU, 60 FPS) ---------- */
.theme-veil {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  background: radial-gradient(circle at var(--vx, 50%) var(--vy, 50%), var(--va, #fff) 0%, var(--vc, #000) 38%, transparent 72%);
  opacity: 0;
  will-change: transform, opacity;
  animation: theme-veil .48s cubic-bezier(.22, 1, .36, 1) forwards;
}
@keyframes theme-veil {
  0% { opacity: .28; transform: scale(.82); }
  45% { opacity: .14; }
  100% { opacity: 0; transform: scale(1.18); }
}
body.theme-switching .glass,
body.theme-switching .btn,
body.theme-switching .chip {
  transition: background-color .28s var(--ease), color .22s var(--ease), border-color .25s var(--ease), box-shadow .28s var(--ease);
}

/* ---------- переключатель стилей: карточки с живым мини-предпросмотром ---------- */
.me { gap: 4px; }
.me .ibtn { width: 32px; height: 32px; }
.theme-btn { position: relative; }
.theme-btn::after {
  content: '';
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent, #8e9bff);
  box-shadow: 0 0 0 1.5px var(--void);
  pointer-events: none;
  transition: background .25s var(--ease);
}
@media (max-width: 1080px) {
  .me { gap: 4px; }
  .pl-empty { display: none; }
}
.prof-head-btns { display: flex; align-items: center; gap: 8px; flex: none; }
body.phone .prof-head-btns { justify-content: center; flex-wrap: wrap; }

.theme-pop { width: min(372px, calc(100vw - 24px)); max-width: none !important; padding: 10px !important; }
.theme-pop .menu-note { margin-bottom: 10px; }

.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.theme-grid.compact { gap: 8px; }

.theme-card {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 8px 8px 10px;
  border-radius: 18px;
  background: var(--fill-1);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: left;
  transition: transform .22s var(--spring), background .2s var(--ease), box-shadow .22s var(--ease);
}
.theme-card:hover { background: var(--fill-2); transform: translateY(-2px); }
.theme-card:active { transform: scale(.975); }
.theme-card.on {
  background: var(--fill-2);
  box-shadow: inset 0 0 0 1.5px var(--ink), 0 12px 28px -16px rgba(0, 0, 0, .55);
}

.theme-thumb {
  position: relative;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10);
}
.theme-grid.compact .theme-thumb { height: 64px; }

.theme-check {
  position: absolute;
  right: 7px;
  top: 7px;
  z-index: 3;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
  opacity: 0;
  transform: scale(.55);
  transition: opacity .2s var(--ease), transform .28s var(--spring);
}
.theme-check .ico { width: 13px; height: 13px; }
.theme-card.on .theme-check { opacity: 1; transform: none; }

.theme-meta { display: grid; gap: 3px; padding: 0 3px; min-width: 0; }
.theme-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.theme-name { font: 700 13.5px/1.2 var(--font-text); color: var(--ink); letter-spacing: -.01em; }
.theme-sub { color: var(--ink-3); font-size: 11.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.theme-dots { display: flex; align-items: center; gap: 3px; flex: none; }
.theme-dots i { width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(128, 128, 128, .35); }

/* Живые миниатюры сцен (GPU transform/opacity only) */
.th-art { position: absolute; inset: 0; overflow: hidden; }
.th-bar-mini {
  position: absolute; left: 9px; right: 9px; bottom: 7px; height: 10px;
  border-radius: 999px;
}

/* Миниатюра: Космос */
.th-art-cosmos { background: radial-gradient(90% 100% at 80% 18%, rgba(88, 102, 255, .28), transparent 65%), #05060b; }
.th-art-cosmos .th-nebula {
  position: absolute; inset: -20%;
  background: radial-gradient(45% 45% at 50% 42%, rgba(198, 137, 255, .25), transparent 70%);
  animation: th-float 7s ease-in-out infinite alternate;
}
.th-art-cosmos .th-star {
  position: absolute; width: 2.5px; height: 2.5px; border-radius: 50%; background: #fff;
  animation: th-twinkle 3.2s ease-in-out infinite;
}
.th-art-cosmos .s1 { left: 16%; top: 24%; animation-delay: 0s; }
.th-art-cosmos .s2 { left: 74%; top: 18%; width: 3px; height: 3px; animation-delay: -.9s; }
.th-art-cosmos .s3 { left: 34%; top: 54%; animation-delay: -1.7s; }
.th-art-cosmos .s4 { left: 82%; top: 52%; animation-delay: -2.4s; }
.th-art-cosmos .th-prism-mini {
  position: absolute; left: 50%; top: 40%; width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border: 1.4px solid rgba(255, 255, 255, .85);
  transform: rotate(45deg);
  box-shadow: 0 0 14px rgba(142, 155, 255, .65);
  animation: th-spin 9s linear infinite;
}
.th-art-cosmos .th-bar-mini { background: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32); }

/* Миниатюра: Бумага */
.th-art-paper { background: linear-gradient(145deg, #f8f5ed 0%, #f1ece1 60%, #e8dfd0 100%); }
.th-art-paper .th-sun {
  position: absolute; right: -12px; top: -18px; width: 72px; height: 72px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 253, 246, .95), rgba(242, 214, 184, .22) 60%, transparent 72%);
}
.th-art-paper .th-ring {
  position: absolute; left: 58%; top: 44%; border-radius: 50%;
  border: 1px solid rgba(24, 22, 20, .18);
  border-right-color: transparent;
  transform: translate(-50%, -50%);
}
.th-art-paper .r1 { width: 28px; height: 28px; animation: th-orbit 14s linear infinite; }
.th-art-paper .r2 { width: 48px; height: 48px; border-color: rgba(200, 75, 49, .36); border-left-color: transparent; animation: th-orbit 20s linear infinite reverse; }
.th-art-paper .r3 { width: 70px; height: 70px; border-color: rgba(24, 22, 20, .12); border-bottom-color: transparent; animation: th-orbit 26s linear infinite; }
.th-art-paper .th-dot-vermilion {
  position: absolute; left: 22%; top: 34%; width: 7px; height: 7px; border-radius: 50%;
  background: #c84b31;
  animation: th-breathe 4.4s ease-in-out infinite;
}
.th-art-paper .th-bar-mini { background: rgba(255, 253, 248, .86); box-shadow: inset 0 0 0 1px rgba(24, 22, 20, .12); }

/* Миниатюра: Кассета */
.th-art-tape { background: linear-gradient(180deg, #100d0b 0%, #19130f 65%, #0e0b09 100%); }
.th-art-tape .th-tube {
  position: absolute; left: 50%; bottom: -18px; width: 120px; height: 64px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(232, 155, 72, .36), rgba(196, 98, 48, .12) 55%, transparent);
  animation: th-breathe 4.8s ease-in-out infinite;
}
.th-art-tape .th-osc { position: absolute; inset: 0 0 12px 0; opacity: .9; }
.th-art-tape .th-osc svg { width: 135%; height: 100%; animation: th-slide 7s linear infinite; }
.th-art-tape .osc-a { stroke: #e89b48; stroke-width: 1.5; }
.th-art-tape .osc-b { stroke: rgba(242, 233, 220, .38); stroke-width: 1; }
.th-art-tape .th-vu {
  position: absolute; left: 11px; top: 10px; display: flex; align-items: flex-end; gap: 2.5px; height: 12px;
}
.th-art-tape .th-vu i {
  width: 2.5px; height: 100%; border-radius: 2px; background: #e89b48;
  transform-origin: 50% 100%; animation: eq 1.6s ease-in-out infinite;
}
.th-art-tape .th-vu i:nth-child(2) { animation-delay: -.5s; }
.th-art-tape .th-vu i:nth-child(3) { animation-delay: -1.1s; }
.th-art-tape .th-bar-mini { background: rgba(42, 34, 28, .85); box-shadow: inset 0 1px 0 rgba(245, 224, 195, .24); }

/* Миниатюра: Тишина */
.th-art-aurora { background: linear-gradient(160deg, #0a1215 0%, #0f1d22 55%, #091114 100%); }
.th-art-aurora .th-mist {
  position: absolute; border-radius: 50%; filter: blur(14px);
}
.th-art-aurora .m1 {
  left: -12%; top: -18%; width: 78%; height: 74%;
  background: radial-gradient(circle, rgba(126, 226, 200, .42), transparent 72%);
  animation: th-float 6.5s ease-in-out infinite alternate;
}
.th-art-aurora .m2 {
  right: -14%; top: 8%; width: 72%; height: 68%;
  background: radial-gradient(circle, rgba(124, 186, 226, .34), transparent 72%);
  animation: th-float 8s ease-in-out infinite alternate-reverse;
}
.th-art-aurora .th-caustic {
  position: absolute; left: 10%; right: 10%; bottom: 24px; height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(167, 243, 223, .75), rgba(142, 197, 232, .55), transparent);
  animation: th-breathe 4.2s ease-in-out infinite;
}
.th-art-aurora .th-bar-mini { background: rgba(180, 232, 235, .14); box-shadow: inset 0 1px 0 rgba(210, 245, 245, .32); }

@keyframes th-twinkle { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes th-spin { to { transform: rotate(405deg); } }
@keyframes th-orbit { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes th-breathe { 0%, 100% { opacity: .68; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes th-float { from { transform: translate(-4px, -3px); } to { transform: translate(6px, 4px); } }
@keyframes th-slide { from { transform: translateX(0); } to { transform: translateX(-22%); } }

/* ==========================================================================
   СТИЛЬ 1: «БУМАГА» (data-theme="paper")
   Тёплая хлопковая бумага, суми-тушь, терракотовый акцент и редакционная графика.
   ========================================================================== */
html[data-theme='paper'] { background: #f3efe6; color-scheme: light; }
html[data-theme='paper'],
body[data-theme='paper'] {
  --void: #f3efe6;
  --ink: rgba(24, 22, 20, .93);
  --ink-2: rgba(24, 22, 20, .62);
  --ink-3: rgba(24, 22, 20, .46);
  --ink-4: rgba(24, 22, 20, .28);
  --line: rgba(24, 22, 20, .095);
  --fill-1: rgba(24, 22, 20, .04);
  --fill-2: rgba(24, 22, 20, .075);
  --fill-3: rgba(24, 22, 20, .125);
  --accent: #c84b31;
  --danger: #c63b2d;
  --spectrum: linear-gradient(90deg, #df6245 0%, #c84b31 48%, #8f3120 100%);
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --r-xl: 26px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  color-scheme: light;
}

/* Выделение, фокус и тонкие полосы прокрутки */
body[data-theme='paper'] ::selection { background: rgba(200, 75, 49, .22); color: #181614; }
body[data-theme='paper'] :focus-visible { outline-color: #181614; }
html[data-theme='paper'] ::-webkit-scrollbar-thumb { background: rgba(24, 22, 20, .18); }
html[data-theme='paper'] ::-webkit-scrollbar-thumb:hover { background: rgba(24, 22, 20, .34); }
@supports not selector(::-webkit-scrollbar) {
  html[data-theme='paper'] * { scrollbar-color: rgba(24, 22, 20, .22) transparent; }
}

/* Редакционная типографика с антиквой Cormorant Garamond */
body[data-theme='paper'] .h1 { font: 700 clamp(34px, 4.1vw, 58px)/.98 var(--font-display); letter-spacing: -.015em; }
body[data-theme='paper'] .h2 { font: 700 24px/1.15 var(--font-display); letter-spacing: -.01em; }
body[data-theme='paper'].phone .h1 { font-size: 32px; }
body[data-theme='paper'].phone .h2 { font-size: 20px; }
body[data-theme='paper'] .brand-word { font: 700 15px/1.05 var(--font-display); letter-spacing: .04em; }
body[data-theme='paper'] .brand-mark { filter: none; color: #181614; }
body[data-theme='paper'] .splash-mark { filter: none; color: #181614; }
body[data-theme='paper'] .splash-word { font: 700 36px/1.05 var(--font-display); letter-spacing: .04em; color: #181614; }
body[data-theme='paper'] .wave-title {
  color: #181614;
  font: 700 clamp(54px, calc((100vw - var(--side-w) - 120px) / 7.8), 148px)/.88 var(--font-display);
  letter-spacing: -.02em;
  text-transform: none;
  -webkit-mask-image: linear-gradient(#000 38%, rgba(0, 0, 0, .20) 94%);
  mask-image: linear-gradient(#000 38%, rgba(0, 0, 0, .20) 94%);
}
body[data-theme='paper'].phone .wave-title { font-size: calc((100vw - 44px) / 5.7); }
body[data-theme='paper'] .wave-glow {
  background: radial-gradient(50% 100% at 50% 0%, rgba(200, 75, 49, .18), rgba(168, 122, 82, .08) 48%, transparent 74%);
}
body[data-theme='paper'] .ed-card-title { font: 700 clamp(23px, 2.2vw, 29px)/1.08 var(--font-display); letter-spacing: -.01em; }
body[data-theme='paper'] .st-title { font: 700 clamp(34px, 4.6vw, 66px)/1.02 var(--font-display); letter-spacing: -.015em; }
body[data-theme='paper'] .ob-title { font: 700 clamp(34px, 4.8vw, 64px)/1 var(--font-display); letter-spacing: -.015em; text-transform: none; }
body[data-theme='paper'] .prof-stat b { font: 700 30px/1 var(--font-display); }
body[data-theme='paper'] .empty b { font: 700 22px/1.2 var(--font-display); }
body[data-theme='paper'] .lib-tile b { font: 700 20px/1.15 var(--font-display); }
body[data-theme='paper'] .mix-name { font: 700 18px/1.1 var(--font-display); color: #181614; }

/* Матовая тёплая калька вместо тёмного стекла */
body[data-theme='paper'] .glass {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, .84) 0%, rgba(250, 246, 238, .74) 100%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(125%);
  backdrop-filter: blur(var(--glass-blur)) saturate(125%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .92),
    0 20px 50px -28px rgba(42, 32, 22, .22),
    0 2px 8px rgba(42, 32, 22, .06);
}
body[data-theme='paper'] .glass::before {
  background: linear-gradient(145deg, rgba(255, 255, 255, .95) 0%, rgba(24, 22, 20, .09) 28%, rgba(24, 22, 20, .07) 68%, rgba(24, 22, 20, .14) 100%);
}
body[data-theme='paper'] .glass::after {
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, -40%), rgba(255, 255, 255, .45), transparent 62%);
}
body[data-theme='paper'] .glass.thin {
  background: linear-gradient(180deg, rgba(255, 253, 249, .86), rgba(248, 243, 234, .78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 10px 26px -16px rgba(42, 32, 22, .22);
}
body[data-theme='paper'] .glass.deep {
  background: linear-gradient(180deg, rgba(252, 249, 243, .95), rgba(244, 239, 230, .94));
}
body[data-theme='paper'] #dock,
body[data-theme='paper'] #queue {
  background: linear-gradient(180deg, rgba(253, 250, 244, .88) 0%, rgba(247, 242, 232, .84) 100%);
}
body[data-theme='paper'].eco .glass:not(.flat),
body[data-theme='paper'].eco #dock,
body[data-theme='paper'].eco #queue,
body[data-theme='paper'].eco.phone #tabs,
body[data-theme='paper'].eco.phone #dock {
  background: #faf7f0;
}
body[data-theme='paper'] #top::before {
  background: linear-gradient(#f3efe6 0%, rgba(243, 239, 230, .86) 44%, rgba(243, 239, 230, 0) 100%);
}
body[data-theme='paper'] .scrim { background: rgba(28, 24, 20, .30); }
body[data-theme='paper'].eco .scrim { background: rgba(28, 24, 20, .46); }
body[data-theme='paper'] #toast {
  background: rgba(24, 22, 20, .92);
  color: #faf7f0;
  box-shadow: 0 16px 36px -14px rgba(24, 22, 20, .42);
}
body[data-theme='paper'] .tip,
body[data-theme='paper'] .seek-tip {
  background: #181614;
  color: #faf7f0;
  box-shadow: 0 10px 24px -10px rgba(24, 22, 20, .45);
}
body[data-theme='paper'] .tip kbd { color: rgba(250, 247, 240, .58); }

/* Кнопки, чипы, переключатели и поля */
body[data-theme='paper'] .btn {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 254, 250, .94), rgba(243, 238, 229, .86));
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(24, 22, 20, .11), 0 8px 20px -14px rgba(42, 32, 22, .25);
}
body[data-theme='paper'] .btn:hover {
  background: linear-gradient(180deg, #fff, rgba(246, 241, 232, .96));
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(24, 22, 20, .18), 0 10px 22px -12px rgba(42, 32, 22, .28);
}
body[data-theme='paper'] .btn.solid,
body[data-theme='paper'] .btn.on {
  color: #faf7f0;
  background: #181614;
  box-shadow: 0 0 0 1px #181614, 0 12px 28px -10px rgba(24, 22, 20, .38);
}
body[data-theme='paper'] .btn.solid:hover {
  color: #faf7f0;
  background: #2b2723;
  box-shadow: 0 0 0 1px #2b2723, 0 14px 32px -10px rgba(24, 22, 20, .48);
}
body[data-theme='paper'] .modal .btn.solid,
body[data-theme='paper'] .modal .btn.solid:hover { box-shadow: 0 0 0 1px #181614; }
body[data-theme='paper'] .btn.danger { color: var(--danger); }

body[data-theme='paper'] .chip {
  color: var(--ink-2);
  background: rgba(255, 253, 248, .78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(24, 22, 20, .10);
}
body[data-theme='paper'] .chip:hover { color: var(--ink); background: #fffdf9; }
body[data-theme='paper'] .chip.on {
  color: #faf7f0;
  background: #181614;
  box-shadow: 0 8px 20px -10px rgba(24, 22, 20, .4);
}
body[data-theme='paper'] .wave-ui .chip {
  background: rgba(252, 249, 243, .82);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(24, 22, 20, .11), 0 6px 18px -12px rgba(42, 32, 22, .2);
}
body[data-theme='paper'] .wave-ui .chip:hover { background: #fffdf9; }
body[data-theme='paper'] .wave-ui .chip.on { background: #181614; color: #faf7f0; }

body[data-theme='paper'] .field {
  background: rgba(24, 22, 20, .045);
  box-shadow: inset 0 0 0 1px rgba(24, 22, 20, .11), inset 0 1px 3px rgba(24, 22, 20, .06);
  color: var(--ink);
}
body[data-theme='paper'] .field:focus {
  background: rgba(255, 253, 249, .92);
  box-shadow: inset 0 0 0 1.5px #181614;
}
body[data-theme='paper'] .search:focus-within,
body[data-theme='paper'] .ls-link:focus-within {
  box-shadow: inset 0 0 0 1.5px rgba(24, 22, 20, .35), 0 14px 32px -18px rgba(42, 32, 22, .28);
}

body[data-theme='paper'] .switch { background: rgba(24, 22, 20, .16); box-shadow: inset 0 1px 2px rgba(24, 22, 20, .16); }
body[data-theme='paper'] .switch::after { background: #fffdf9; box-shadow: 0 2px 5px rgba(24, 22, 20, .24); }
body[data-theme='paper'] .switch.on { background: var(--accent); }
body[data-theme='paper'] .switch.on::after { background: #fffdf9; }
body[data-theme='paper'] .sk {
  background: linear-gradient(100deg, rgba(24, 22, 20, .05) 30%, rgba(24, 22, 20, .10) 50%, rgba(24, 22, 20, .05) 70%);
  background-size: 240% 100%;
}

/* Боковая панель, меню и профили */
body[data-theme='paper'] .nav-item.active {
  color: #181614;
  background: rgba(24, 22, 20, .07);
  box-shadow: inset 0 0 0 1px rgba(24, 22, 20, .07);
}
body[data-theme='paper'] .nav-item.active .ico { color: var(--accent); }
body[data-theme='paper'] .menu-item.on .ico { color: var(--accent); }
body[data-theme='paper'] .me-pic,
body[data-theme='paper'] .prof-pic,
body[data-theme='paper'] .acc-pic {
  background: linear-gradient(140deg, rgba(24, 22, 20, .12), rgba(24, 22, 20, .04));
  box-shadow: inset 0 0 0 1px rgba(24, 22, 20, .10), 0 16px 34px -22px rgba(42, 32, 22, .35);
}
body[data-theme='paper'] .fav-pics span { box-shadow: 0 0 0 2px #f3efe6; }
body[data-theme='paper'] .prof-add .prof-pl-art { border-color: rgba(24, 22, 20, .28); }
body[data-theme='paper'] kbd.k { box-shadow: inset 0 0 0 1px rgba(24, 22, 20, .12); }

/* Плеер (#dock) и перемотка */
body[data-theme='paper'] #dock .dk-glow::before { opacity: 0; }
body[data-theme='paper'].has-track #dock .dk-glow::before { opacity: .45; }
body[data-theme='paper'] .dk-art {
  box-shadow: 0 10px 22px -12px rgba(42, 32, 22, .32), inset 0 0 0 1px rgba(24, 22, 20, .10);
}
body[data-theme='paper'] .dk-play {
  color: #faf7f0;
  background: #181614;
  box-shadow: 0 8px 22px -8px rgba(24, 22, 20, .42);
}
body[data-theme='paper'] .dk-play.loading::after { border-top-color: var(--accent); }
body[data-theme='paper'] .dk-ctrl .ibtn.mode.on { color: var(--accent); }
body[data-theme='paper'] .dk-ctrl .ibtn.mode.on::after { background: var(--accent); }
body[data-theme='paper'] .dk-side .ibtn.on { color: #181614; background: var(--fill-3); }
body[data-theme='paper'] .seek-track { background: rgba(24, 22, 20, .13); }
body[data-theme='paper'] .seek-buf { background: rgba(24, 22, 20, .18); }
body[data-theme='paper'] .seek-fill { background: var(--accent); }
body[data-theme='paper'] .seek-knob { background: #181614; box-shadow: 0 0 0 2px #faf7f0, 0 2px 8px rgba(24, 22, 20, .35); }

/* Карточки, треки, лайки и эквалайзер */
body[data-theme='paper'] .card-art,
body[data-theme='paper'] .artist-pic,
body[data-theme='paper'] .hero-pic,
body[data-theme='paper'] .rc-art {
  box-shadow: inset 0 0 0 1px rgba(24, 22, 20, .09), 0 16px 32px -22px rgba(42, 32, 22, .32);
}
body[data-theme='paper'] .card-art::after,
body[data-theme='paper'] .artist-pic::after,
body[data-theme='paper'] .hero-pic::after {
  box-shadow: inset 0 0 0 1px rgba(24, 22, 20, .08);
}
body[data-theme='paper'] .card:hover .card-art {
  box-shadow: 0 22px 38px -20px rgba(42, 32, 22, .34), inset 0 0 0 1px rgba(24, 22, 20, .12);
}
body[data-theme='paper'] .card.playing .card-art {
  box-shadow: 0 0 0 2px var(--accent), 0 18px 34px -18px rgba(200, 75, 49, .38);
}
body[data-theme='paper'] .card.playing .card-title { color: var(--accent); }
body[data-theme='paper'] .card-play {
  color: #faf7f0;
  background: #181614;
  box-shadow: 0 10px 24px -8px rgba(24, 22, 20, .48);
}
body[data-theme='paper'] .mix {
  background:
    radial-gradient(125% 155% at 0% 0%, color-mix(in srgb, var(--c1) 42%, #faf6ee) 0%, transparent 64%),
    radial-gradient(115% 155% at 100% 100%, color-mix(in srgb, var(--c2) 38%, #f3ece0) 0%, transparent 62%),
    #efe8db;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 0 0 1px rgba(24, 22, 20, .08), 0 14px 28px -22px rgba(42, 32, 22, .26);
  filter: none;
}
body[data-theme='paper'] .mix::before {
  background: linear-gradient(195deg, transparent 28%, rgba(250, 246, 238, .42) 100%);
}
body[data-theme='paper'] .mix::after {
  background: linear-gradient(160deg, rgba(255, 255, 255, .42), transparent 36%, transparent 72%, rgba(24, 22, 20, .04));
}
body[data-theme='paper'] .mix:hover { transform: translateY(-3px); filter: saturate(1.06); }
body[data-theme='paper'] .mix-name { color: #181614; text-shadow: none; }
body[data-theme='paper'] .mix-play {
  color: #181614;
  background: rgba(255, 253, 248, .82);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(24, 22, 20, .10);
}
body[data-theme='paper'] .mix:hover .mix-play { background: #181614; color: #faf7f0; }
body[data-theme='paper'] .mix.playing { box-shadow: 0 0 0 2px var(--accent), 0 16px 32px -18px rgba(200, 75, 49, .32); }

body[data-theme='paper'] .row.playing,
body[data-theme='paper'] .chart-row.playing {
  background: linear-gradient(90deg, rgba(200, 75, 49, .10), rgba(200, 75, 49, .025));
  box-shadow: inset 0 0 0 1px rgba(200, 75, 49, .14);
}
body[data-theme='paper'] .row.playing .row-title,
body[data-theme='paper'] .chart-row.playing .row-title { color: #181614; }
body[data-theme='paper'] .row-n .ico { color: #181614; }
body[data-theme='paper'] .row-art { box-shadow: inset 0 0 0 1px rgba(24, 22, 20, .09); }
body[data-theme='paper'] .eq i { background: var(--accent); }
body[data-theme='paper'] .row-art .eq i { background: #fff; }
body[data-theme='paper'] .like.on { color: var(--accent); }
body[data-theme='paper'] .like.on .ico svg { fill: url(#spectrum-fill); filter: drop-shadow(0 2px 6px rgba(200, 75, 49, .30)); }
body[data-theme='paper'] .burst i { background: var(--accent); }
body[data-theme='paper'] .hero-pic.orb {
  background:
    radial-gradient(120% 130% at 8% 8%, color-mix(in srgb, var(--c1, #c84b31) 72%, #faf6ee) 0%, transparent 62%),
    radial-gradient(110% 130% at 96% 96%, color-mix(in srgb, var(--c2, #a63d28) 72%, #e8dfd0) 0%, transparent 60%),
    #d76449;
  color: #faf7f0;
  box-shadow: 0 26px 52px -24px rgba(168, 62, 40, .42), inset 0 1px 0 rgba(255, 255, 255, .45);
}
body[data-theme='paper'] .hero-actions .like.on { color: #faf7f0; background: var(--accent); box-shadow: 0 8px 22px -8px rgba(200, 75, 49, .5); }
body[data-theme='paper'] .hero-actions .like.on .ico svg { fill: #faf7f0; filter: none; }

/* Раздел «Для вас и Тренды» и «Новые релизы» */
body[data-theme='paper'] .ed-card:hover {
  box-shadow: inset 0 1px 0 #fff, 0 24px 48px -28px rgba(42, 32, 22, .30);
}
body[data-theme='paper'] .ed-card-glow { opacity: .16; }
body[data-theme='paper'] .ed-card:hover .ed-card-glow,
body[data-theme='paper'] .ed-card.playing .ed-card-glow { opacity: .24; }
body[data-theme='paper'] .ed-card-art,
body[data-theme='paper'] .ed-hero-pic {
  background: #e7e0d2;
  box-shadow: 0 22px 44px -22px rgba(42, 32, 22, .38), inset 0 0 0 1px rgba(24, 22, 20, .09);
}
body[data-theme='paper'] .ed-card-play {
  color: #faf7f0;
  background: #181614;
  box-shadow: 0 10px 24px -8px rgba(24, 22, 20, .48);
}
body[data-theme='paper'] .ed-hero-glow { opacity: .24; }
body[data-theme='paper'] .chart-rank.top-1 { color: #a16207; text-shadow: none; }
body[data-theme='paper'] .chart-rank.top-2 { color: #475569; }
body[data-theme='paper'] .chart-rank.top-3 { color: #9a3412; }
body[data-theme='paper'] .ed-save.saved {
  color: #166534;
  background: rgba(22, 101, 52, .10);
  box-shadow: inset 0 0 0 1px rgba(22, 101, 52, .26);
}

/* Полноэкранный плеер (#stage) и текст песни */
body[data-theme='paper'] #stage {
  background:
    radial-gradient(64% 68% at 34% 46%, rgba(var(--tint), .15), transparent 72%),
    rgba(243, 239, 230, .74);
}
body[data-theme='paper'] .st-art {
  box-shadow: 0 38px 86px -34px rgba(42, 32, 22, .42), 0 22px 54px -24px rgba(var(--tint), .36);
}
body[data-theme='paper'] .st-art::after {
  box-shadow: inset 0 0 0 1px rgba(24, 22, 20, .10);
}
body[data-theme='paper'] .st-words.on,
body[data-theme='paper'] .st-words.on:hover { color: #faf7f0; }
body[data-theme='paper'] .st-words.on::before { background: #181614; box-shadow: 0 6px 18px -6px rgba(24, 22, 20, .4); }
body[data-theme='paper'] .vc-orbit { box-shadow: inset 0 0 0 1px rgba(24, 22, 20, .14); }
body[data-theme='paper'] .vc-pic { box-shadow: 0 0 0 2px #f3efe6, 0 10px 22px -12px rgba(24, 22, 20, .35); }
body[data-theme='paper'] .vc-mini { box-shadow: 0 0 0 2px #f3efe6; }
body[data-theme='paper'] .vc-name { background: #181614; color: #faf7f0; box-shadow: 0 8px 18px -8px rgba(24, 22, 20, .4); }
body[data-theme='paper'] .ly-line {
  font: 700 clamp(26px, 2.7vw, 42px)/1.18 var(--font-display);
  letter-spacing: -.01em;
  color: rgba(24, 22, 20, .26);
}
body[data-theme='paper'] .ly-line:hover { color: rgba(24, 22, 20, .56); }
body[data-theme='paper'] .ly-line.past { color: rgba(24, 22, 20, .40); }
body[data-theme='paper'] .ly-line.on { color: #181614; text-shadow: 0 4px 28px rgba(200, 75, 49, .18); }
body[data-theme='paper'] .ly-gap i { background: rgba(24, 22, 20, .18); }
body[data-theme='paper'] .ly-gap.on i.lit { background: var(--accent); box-shadow: 0 0 12px rgba(200, 75, 49, .45); }
body[data-theme='paper'] .ly-back { background: rgba(252, 249, 243, .94); color: #181614; box-shadow: inset 0 0 0 1px rgba(24, 22, 20, .12), 0 12px 26px -12px rgba(42, 32, 22, .28); }

/* Узнать трек (listen.css) */
body[data-theme='paper'] .ls-hero-orb {
  color: #faf7f0;
  background: conic-gradient(from 200deg, #c84b31, #d88a4a, #4a3f38, #c84b31);
  box-shadow: 0 10px 26px -10px rgba(200, 75, 49, .45);
}
body[data-theme='paper'] .ls-orb { color: #181614; }
body[data-theme='paper'] .ls-orb::before {
  background: radial-gradient(circle at 34% 28%, #fff, rgba(246, 240, 230, .92) 64%);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(24, 22, 20, .12), 0 28px 60px -26px rgba(42, 32, 22, .26);
}
body[data-theme='paper'] .ls-rings i {
  background: conic-gradient(from 0deg, #c84b31, #d98b4e, #181614, #c84b31);
}
body[data-theme='paper'] .ls-meter { background: conic-gradient(#c84b31 calc(var(--k, 0) * 360deg), rgba(24, 22, 20, .12) 0); }
body[data-theme='paper'] .ls-step.on { color: #faf7f0; background: #181614; }

/* Яндекс Музыка, вход, онбординг, диагностика */
body[data-theme='paper'] .ym-card {
  background:
    radial-gradient(90% 120% at 6% 0%, rgba(255, 196, 61, .20), transparent 58%),
    radial-gradient(75% 110% at 98% 100%, rgba(200, 75, 49, .10), transparent 62%),
    rgba(255, 253, 249, .78);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(24, 22, 20, .09);
}
body[data-theme='paper'] .ym-stat { background: rgba(255, 253, 249, .86); box-shadow: inset 0 0 0 1px rgba(24, 22, 20, .08); }
body[data-theme='paper'] .ym-pl-ico { background: rgba(24, 22, 20, .06); box-shadow: inset 0 0 0 1px rgba(24, 22, 20, .07); }
body[data-theme='paper'] .ym-banner {
  background:
    radial-gradient(70% 140% at 8% 50%, rgba(255, 196, 61, .20), transparent 65%),
    rgba(255, 253, 249, .82) !important;
}
body[data-theme='paper'] .tg-code-box { background: rgba(24, 22, 20, .05); box-shadow: inset 0 0 0 1px rgba(24, 22, 20, .10); }
body[data-theme='paper'] .diag { background: rgba(24, 22, 20, .05); }
body[data-theme='paper'] .login-mark { filter: none; color: #181614; }
body[data-theme='paper'] .login-check { color: #faf7f0; background: rgba(24, 22, 20, .06); box-shadow: inset 0 0 0 1.5px rgba(24, 22, 20, .32); }
body[data-theme='paper'] .login-consent input:checked + .login-check { background: #181614; box-shadow: none; }
body[data-theme='paper'] .ob { background: radial-gradient(120% 90% at 50% 0%, rgba(243, 239, 230, .78), rgba(235, 228, 214, .92)); }
body[data-theme='paper'] .ar.on .ar-pic { box-shadow: 0 0 0 3px #f3efe6, 0 0 0 5px var(--accent), 0 12px 26px -10px rgba(200, 75, 49, .45); }
body[data-theme='paper'] .ar-check { background: var(--accent); color: #faf7f0; }

/* Телефон в стиле «Бумага» */
body[data-theme='paper'].phone #tabs,
body[data-theme='paper'].phone #dock {
  background: linear-gradient(180deg, rgba(254, 252, 247, .90) 0%, rgba(247, 242, 232, .88) 100%);
}
body[data-theme='paper'].phone .tab.active { color: var(--accent); }
body[data-theme='paper'].phone .tab.active .ico { filter: none; }
body[data-theme='paper'].phone .tab.active .tab-pic { box-shadow: 0 0 0 1.5px #f3efe6, 0 0 0 3px var(--accent); }
body[data-theme='paper'].phone #dock .dk-play { color: #181614; background: none; box-shadow: none; }
body[data-theme='paper'].phone #dock .dk-seek .seek-track { background: rgba(24, 22, 20, .12); }
body[data-theme='paper'].phone #stage {
  background:
    radial-gradient(110% 58% at 50% 26%, rgba(var(--tint), .20), transparent 72%),
    rgba(243, 239, 230, .88);
}
body[data-theme='paper'].phone.stage-open #dock { background: none; box-shadow: none; }
body[data-theme='paper'].phone.stage-open #dock .dk-play {
  color: #faf7f0; background: #181614;
  box-shadow: 0 12px 32px -10px rgba(24, 22, 20, .48);
}
body[data-theme='paper'].phone.stage-open #dock .dk-prev,
body[data-theme='paper'].phone.stage-open #dock .dk-next { color: #181614; }
body[data-theme='paper'].phone.stage-open #dock .dk-seek .seek-track { background: rgba(24, 22, 20, .16); }
body[data-theme='paper'].phone #queue,
body[data-theme='paper'].phone.stage-open #queue {
  background: linear-gradient(180deg, rgba(253, 250, 244, .98), rgba(244, 239, 230, .99));
}
body[data-theme='paper'].phone .menu {
  box-shadow: inset 0 0 0 1px rgba(24, 22, 20, .11), 0 -18px 46px -22px rgba(42, 32, 22, .32);
}
body[data-theme='paper'].phone .menu-guard,
body[data-theme='paper'].phone.queue-open #qscrim { background: rgba(28, 24, 20, .32); }
body[data-theme='paper'].touch .card:not(.playing):hover .card-art {
  box-shadow: inset 0 0 0 1px rgba(24, 22, 20, .09), 0 16px 32px -22px rgba(42, 32, 22, .32);
}
body[data-theme='paper'].touch .artist:hover .artist-pic {
  box-shadow: inset 0 0 0 1px rgba(24, 22, 20, .09), 0 16px 32px -22px rgba(42, 32, 22, .32);
}
body[data-theme='paper'] .theme-card.on { box-shadow: inset 0 0 0 1.5px #181614, 0 10px 24px -16px rgba(42, 32, 22, .25); }
body[data-theme='paper'] .theme-check { background: #181614; color: #faf7f0; }

/* ==========================================================================
   СТИЛЬ 2: «КАССЕТА» (data-theme="tape")
   Тёплый аналоговый графит, анодированная бронза, янтарный свет и Hi-Fi точность.
   ========================================================================== */
html[data-theme='tape'] { background: #110e0c; color-scheme: dark; }
html[data-theme='tape'],
body[data-theme='tape'] {
  --void: #110e0c;
  --ink: rgba(246, 238, 226, .95);
  --ink-2: rgba(235, 220, 200, .64);
  --ink-3: rgba(220, 200, 178, .44);
  --ink-4: rgba(220, 200, 178, .25);
  --line: rgba(245, 224, 195, .10);
  --fill-1: rgba(245, 224, 195, .048);
  --fill-2: rgba(245, 224, 195, .085);
  --fill-3: rgba(245, 224, 195, .14);
  --accent: #e89b48;
  --danger: #f07265;
  --spectrum: linear-gradient(90deg, #f6c77a 0%, #e89b48 52%, #c96234 100%);
  --font-display: 'Manrope', 'Onest', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-xl: 22px;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;
}

body[data-theme='tape'] ::selection { background: rgba(232, 155, 72, .32); }
body[data-theme='tape'] :focus-visible { outline-color: var(--accent); }

/* Аналоговая точность: моноширинные счётчики времени, позиций и цифр */
body[data-theme='tape'] .dk-seek,
body[data-theme='tape'] .row-dur,
body[data-theme='tape'] .row-n,
body[data-theme='tape'] .chart-rank,
body[data-theme='tape'] .tr-date,
body[data-theme='tape'] .ibtn.sleep .sleep-left,
body[data-theme='tape'] .ym-stat b,
body[data-theme='tape'] kbd.k {
  font-family: var(--font-mono);
  letter-spacing: -.02em;
}
body[data-theme='tape'] .brand-word { letter-spacing: .08em; }
body[data-theme='tape'] .brand-mark { filter: drop-shadow(0 0 8px rgba(232, 155, 72, .42)); color: #f6eee2; }
body[data-theme='tape'] .h1 { font-weight: 800; letter-spacing: -.03em; }
body[data-theme='tape'] .wave-title { font-weight: 800; letter-spacing: -.025em; color: #f6eee2; }

/* Анодированный тёплый графит с мягкой бронзовой фаской */
body[data-theme='tape'] .glass {
  background:
    linear-gradient(180deg, rgba(248, 226, 198, .085) 0%, rgba(248, 226, 198, .025) 36%, rgba(248, 226, 198, .045) 100%),
    rgba(24, 19, 16, .60);
  box-shadow:
    inset 0 1px 0 rgba(255, 232, 200, .22),
    inset 0 -16px 26px -22px rgba(232, 155, 72, .08),
    0 28px 64px -26px rgba(0, 0, 0, .92),
    0 2px 8px rgba(0, 0, 0, .4);
}
body[data-theme='tape'] .glass::before {
  background: linear-gradient(142deg, rgba(255, 230, 196, .42) 0%, rgba(255, 230, 196, .08) 26%, rgba(255, 230, 196, .03) 58%, rgba(232, 155, 72, .18) 100%);
}
body[data-theme='tape'] #dock,
body[data-theme='tape'] #queue {
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(248, 226, 198, .085) 0%, rgba(248, 226, 198, .025) 40%, rgba(248, 226, 198, .05) 100%),
    rgba(22, 18, 15, .74);
}
body[data-theme='tape'].eco .glass:not(.flat),
body[data-theme='tape'].eco #dock,
body[data-theme='tape'].eco #queue,
body[data-theme='tape'].eco.phone #tabs,
body[data-theme='tape'].eco.phone #dock {
  background: linear-gradient(180deg, rgba(35, 29, 24, .98), rgba(20, 16, 13, .99));
}
body[data-theme='tape'] #top::before {
  background: linear-gradient(#110e0c 0%, rgba(17, 14, 12, .82) 42%, rgba(17, 14, 12, 0) 100%);
}
body[data-theme='tape'] #toast { background: rgba(34, 27, 22, .86); }
body[data-theme='tape'] .tip,
body[data-theme='tape'] .seek-tip { background: rgba(28, 22, 18, .96); }

/* Янтарные Hi-Fi акценты — сдержанные и тактильные */
body[data-theme='tape'] .btn.solid,
body[data-theme='tape'] .btn.on,
body[data-theme='tape'] .chip.on {
  color: #110e0c;
  background: #f2e6d5;
  box-shadow: 0 0 0 1px rgba(246, 236, 220, .85), 0 10px 30px -10px rgba(232, 155, 72, .42);
}
body[data-theme='tape'] .wave-ui .chip {
  background: linear-gradient(180deg, rgba(44, 34, 27, .74), rgba(22, 17, 13, .78));
  box-shadow: inset 0 1px 0 rgba(255, 232, 200, .22), inset 0 0 0 1px rgba(245, 224, 195, .09);
}
body[data-theme='tape'] .wave-ui .chip:hover {
  background: linear-gradient(180deg, rgba(58, 45, 35, .82), rgba(30, 23, 18, .84));
}
body[data-theme='tape'] .wave-ui .chip.on { background: #f2e6d5; color: #110e0c; }
body[data-theme='tape'] .btn.solid:hover {
  background: #fbf3e6;
  box-shadow: 0 0 0 1px #fbf3e6, 0 12px 34px -8px rgba(232, 155, 72, .55);
}
body[data-theme='tape'] .dk-play,
body[data-theme='tape'].phone.stage-open #dock .dk-play {
  color: #110e0c;
  background: #f2e6d5;
  box-shadow: 0 0 0 1px rgba(246, 236, 220, .9), 0 8px 28px -8px rgba(232, 155, 72, .58);
}
body[data-theme='tape'] .dk-play.loading::after { border-top-color: var(--accent); }
body[data-theme='tape'] .dk-ctrl .ibtn.mode.on { color: var(--accent); }
body[data-theme='tape'] .dk-ctrl .ibtn.mode.on::after { background: var(--accent); }
body[data-theme='tape'] .seek-fill { background: linear-gradient(90deg, #d87834, #f4ba68); }
body[data-theme='tape'] .seek-knob { background: #f6eee2; box-shadow: 0 0 14px rgba(232, 155, 72, .9); }
body[data-theme='tape'] .switch.on { background: var(--accent); }
body[data-theme='tape'] .switch.on::after { background: #110e0c; }
body[data-theme='tape'] .nav-item.active {
  color: #f6eee2;
  background: linear-gradient(90deg, rgba(232, 155, 72, .16), rgba(245, 224, 195, .05));
  box-shadow: inset 2px 0 0 var(--accent), inset 0 1px 0 rgba(255, 232, 200, .14);
}
@media (max-width: 1080px) {
  body[data-theme='tape'] .nav-item.active {
    background: rgba(232, 155, 72, .16);
    box-shadow: inset 0 0 0 1px rgba(232, 155, 72, .42);
  }
}
body[data-theme='tape'] .nav-item.active .ico { color: var(--accent); }
body[data-theme='tape'] .eq i { background: var(--accent); }
body[data-theme='tape'] .row.playing,
body[data-theme='tape'] .chart-row.playing {
  background: linear-gradient(90deg, rgba(232, 155, 72, .12), rgba(232, 155, 72, .02));
  box-shadow: inset 0 1px 0 rgba(245, 224, 195, .10);
}
body[data-theme='tape'] .card.playing .card-art {
  box-shadow: 0 0 0 2px var(--accent), 0 16px 36px -14px rgba(232, 155, 72, .55);
}
body[data-theme='tape'] .card-play,
body[data-theme='tape'] .ed-card-play { background: #f2e6d5; color: #110e0c; }
body[data-theme='tape'] .like.on .ico svg { filter: drop-shadow(0 0 7px rgba(232, 155, 72, .55)); }
body[data-theme='tape'] .burst i { background: var(--accent); }
body[data-theme='tape'] .theme-card.on { box-shadow: inset 0 0 0 1.5px var(--accent), 0 12px 28px -16px rgba(232, 155, 72, .32); }
body[data-theme='tape'] .theme-check { background: var(--accent); color: #110e0c; }
body[data-theme='tape'].phone #tabs,
body[data-theme='tape'].phone #dock {
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(248, 226, 198, .08) 0%, rgba(248, 226, 198, .03) 100%), rgba(22, 18, 15, .78);
}
body[data-theme='tape'].phone .tab.active { color: var(--accent); }
body[data-theme='tape'].phone .tab.active .ico { filter: drop-shadow(0 0 7px rgba(232, 155, 72, .55)); }
body[data-theme='tape'].phone .tab.active .tab-pic { box-shadow: 0 0 0 1.5px #110e0c, 0 0 0 3px var(--accent); }
body[data-theme='tape'].phone #queue,
body[data-theme='tape'].phone.stage-open #queue {
  background: linear-gradient(180deg, rgba(36, 29, 24, .96), rgba(18, 14, 11, .98));
}

/* ==========================================================================
   СТИЛЬ 3: «ТИШИНА» (data-theme="aurora")
   Северный фьорд, матовое ледяное стекло, спокойный свет и мягкий селадон.
   ========================================================================== */
html[data-theme='aurora'] { background: #0c1417; color-scheme: dark; }
html[data-theme='aurora'],
body[data-theme='aurora'] {
  --void: #0c1417;
  --ink: rgba(237, 246, 247, .95);
  --ink-2: rgba(204, 226, 230, .66);
  --ink-3: rgba(176, 206, 212, .46);
  --ink-4: rgba(176, 206, 212, .26);
  --line: rgba(196, 232, 236, .10);
  --fill-1: rgba(196, 238, 238, .048);
  --fill-2: rgba(196, 238, 238, .085);
  --fill-3: rgba(196, 238, 238, .14);
  --accent: #7ee2c8;
  --accent-2: #8ec5e8;
  --danger: #ff8594;
  --spectrum: linear-gradient(90deg, #9ff3dc 0%, #7ee2c8 45%, #8ec5e8 100%);
  --font-display: 'Manrope', 'Onest', system-ui, sans-serif;
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
}

body[data-theme='aurora'] ::selection { background: rgba(126, 226, 200, .28); }
body[data-theme='aurora'] :focus-visible { outline-color: var(--accent); }

/* Спокойная скандинавская типографика */
body[data-theme='aurora'] .h1 { font-weight: 700; letter-spacing: -.025em; }
body[data-theme='aurora'] .h2 { font-weight: 700; letter-spacing: -.015em; }
body[data-theme='aurora'] .brand-mark { filter: drop-shadow(0 0 8px rgba(126, 226, 200, .42)); color: #edf6f7; }
body[data-theme='aurora'] .wave-title { font-weight: 700; letter-spacing: -.025em; text-transform: none; color: #edf6f7; }
body[data-theme='aurora'] .ed-card-title { font-weight: 700; }

/* Матовое ледяное стекло */
body[data-theme='aurora'] .glass {
  background:
    linear-gradient(180deg, rgba(206, 244, 244, .10) 0%, rgba(180, 232, 236, .035) 38%, rgba(180, 232, 236, .055) 100%),
    rgba(13, 24, 29, .50);
  box-shadow:
    inset 0 1px 0 rgba(215, 248, 248, .26),
    inset 0 -18px 28px -24px rgba(126, 226, 200, .10),
    0 28px 68px -28px rgba(2, 8, 12, .90),
    0 2px 10px rgba(2, 8, 12, .35);
}
body[data-theme='aurora'] .glass::before {
  background: linear-gradient(142deg, rgba(210, 248, 248, .48) 0%, rgba(210, 248, 248, .10) 24%, rgba(160, 220, 228, .04) 56%, rgba(126, 226, 200, .20) 100%);
}
body[data-theme='aurora'] #dock,
body[data-theme='aurora'] #queue {
  background:
    linear-gradient(180deg, rgba(206, 244, 244, .095) 0%, rgba(180, 232, 236, .03) 38%, rgba(180, 232, 236, .055) 100%),
    rgba(13, 25, 30, .66);
}
body[data-theme='aurora'].eco .glass:not(.flat),
body[data-theme='aurora'].eco #dock,
body[data-theme='aurora'].eco #queue,
body[data-theme='aurora'].eco.phone #tabs,
body[data-theme='aurora'].eco.phone #dock {
  background: linear-gradient(180deg, rgba(21, 37, 44, .98), rgba(12, 22, 26, .99));
}
body[data-theme='aurora'] #top::before {
  background: linear-gradient(#0c1417 0%, rgba(12, 20, 23, .82) 42%, rgba(12, 20, 23, 0) 100%);
}
body[data-theme='aurora'] #toast { background: rgba(18, 34, 40, .86); }
body[data-theme='aurora'] .tip,
body[data-theme='aurora'] .seek-tip { background: rgba(16, 30, 36, .96); }

/* Спокойные акценты морского льда */
body[data-theme='aurora'] .btn.solid,
body[data-theme='aurora'] .btn.on,
body[data-theme='aurora'] .chip.on {
  color: #091417;
  background: #e2f6f3;
  box-shadow: 0 0 0 1px rgba(226, 246, 243, .85), 0 10px 32px -10px rgba(126, 226, 200, .42);
}
body[data-theme='aurora'] .wave-ui .chip {
  background: linear-gradient(180deg, rgba(22, 42, 49, .72), rgba(11, 23, 28, .76));
  box-shadow: inset 0 1px 0 rgba(210, 248, 248, .22), inset 0 0 0 1px rgba(196, 238, 238, .09);
}
body[data-theme='aurora'] .wave-ui .chip:hover {
  background: linear-gradient(180deg, rgba(30, 56, 65, .80), rgba(16, 32, 38, .82));
}
body[data-theme='aurora'] .wave-ui .chip.on { background: #e2f6f3; color: #091417; }
body[data-theme='aurora'] .btn.solid:hover {
  background: #f0fbf9;
  box-shadow: 0 0 0 1px #f0fbf9, 0 12px 36px -8px rgba(126, 226, 200, .56);
}
body[data-theme='aurora'] .dk-play,
body[data-theme='aurora'].phone.stage-open #dock .dk-play {
  color: #091417;
  background: #e2f6f3;
  box-shadow: 0 0 0 1px rgba(226, 246, 243, .9), 0 8px 30px -8px rgba(126, 226, 200, .55);
}
body[data-theme='aurora'] .dk-play.loading::after { border-top-color: var(--accent); }
body[data-theme='aurora'] .dk-ctrl .ibtn.mode.on { color: var(--accent); }
body[data-theme='aurora'] .dk-ctrl .ibtn.mode.on::after { background: var(--accent); }
body[data-theme='aurora'] .seek-fill { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
body[data-theme='aurora'] .seek-knob { background: #edf7f7; box-shadow: 0 0 14px rgba(126, 226, 200, .9); }
body[data-theme='aurora'] .switch.on { background: var(--accent); }
body[data-theme='aurora'] .switch.on::after { background: #091417; }
body[data-theme='aurora'] .nav-item.active {
  color: #edf6f7;
  background: linear-gradient(180deg, rgba(126, 226, 200, .16), rgba(142, 197, 232, .06));
  box-shadow: inset 0 1px 0 rgba(210, 248, 244, .26), inset 0 0 0 1px rgba(126, 226, 200, .14);
}
body[data-theme='aurora'] .nav-item.active .ico { color: var(--accent); }
body[data-theme='aurora'] .eq i { background: var(--accent); }
body[data-theme='aurora'] .row.playing,
body[data-theme='aurora'] .chart-row.playing {
  background: linear-gradient(90deg, rgba(126, 226, 200, .11), rgba(142, 197, 232, .025));
  box-shadow: inset 0 1px 0 rgba(206, 244, 244, .12);
}
body[data-theme='aurora'] .card.playing .card-art {
  box-shadow: 0 0 0 2px var(--accent), 0 16px 38px -14px rgba(126, 226, 200, .48);
}
body[data-theme='aurora'] .card-play,
body[data-theme='aurora'] .ed-card-play { background: #e2f6f3; color: #091417; }
body[data-theme='aurora'] .like.on .ico svg { filter: drop-shadow(0 0 7px rgba(126, 226, 200, .58)); }
body[data-theme='aurora'] .burst i { background: var(--accent); }
body[data-theme='aurora'] .ly-line.on { text-shadow: 0 0 38px rgba(126, 226, 200, .45); }
body[data-theme='aurora'] .theme-card.on { box-shadow: inset 0 0 0 1.5px var(--accent), 0 12px 28px -16px rgba(126, 226, 200, .30); }
body[data-theme='aurora'] .theme-check { background: var(--accent); color: #091417; }
body[data-theme='aurora'].phone #tabs,
body[data-theme='aurora'].phone #dock {
  background: linear-gradient(180deg, rgba(206, 244, 244, .10) 0%, rgba(180, 232, 236, .035) 100%), rgba(13, 25, 30, .74);
}
body[data-theme='aurora'].phone .tab.active { color: var(--accent); }
body[data-theme='aurora'].phone .tab.active .ico { filter: drop-shadow(0 0 7px rgba(126, 226, 200, .55)); }
body[data-theme='aurora'].phone .tab.active .tab-pic { box-shadow: 0 0 0 1.5px #0c1417, 0 0 0 3px var(--accent); }
body[data-theme='aurora'].phone #queue,
body[data-theme='aurora'].phone.stage-open #queue {
  background: linear-gradient(180deg, rgba(22, 38, 45, .96), rgba(11, 20, 24, .98));
}

/* ---------- спокойное дыхание играющего плеера (выключено в eco и reduced-motion) ---------- */
body[data-theme='tape'].is-playing:not(.eco) .dk-play {
  animation: tape-filament 3.8s ease-in-out infinite;
}
body[data-theme='aurora'].is-playing:not(.eco) .dk-play {
  animation: aurora-halo 4.4s ease-in-out infinite;
}
@keyframes tape-filament {
  0%, 100% { box-shadow: 0 0 0 1px rgba(246, 236, 220, .88), 0 8px 26px -8px rgba(232, 155, 72, .50); }
  50% { box-shadow: 0 0 0 1px rgba(246, 236, 220, .95), 0 8px 34px -4px rgba(232, 155, 72, .78); }
}
@keyframes aurora-halo {
  0%, 100% { box-shadow: 0 0 0 1px rgba(226, 246, 243, .88), 0 8px 26px -8px rgba(126, 226, 200, .46); }
  50% { box-shadow: 0 0 0 1px rgba(226, 246, 243, .96), 0 8px 36px -4px rgba(126, 226, 200, .74); }
}

/* ---------- адаптив переключателя и сниженное движение ---------- */
@media (max-width: 420px) {
  .theme-grid { gap: 8px; }
  .theme-thumb { height: 64px; }
  .theme-card { padding: 7px 7px 9px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .th-art *, .th-art svg, .dk-play { animation: none !important; }
  .theme-veil { display: none !important; }
}
