/* ============================================================
   VITOLD / ночной архив — оформление
   ============================================================ */

:root {
  --ink: #070709;
  --ink-soft: #0b0b0f;
  --ink-raise: #101015;
  --bone: #e9e3d7;
  --bone-dim: #a29a8d;
  --bone-faint: #6d675e;
  --blood: #a2453f;
  --blood-bright: #c96b60;
  --patina: #78958d;
  --line: rgba(233, 227, 215, 0.08);
  --line-strong: rgba(233, 227, 215, 0.16);
  --glass: rgba(9, 9, 12, 0.74);
  --serif: "Cormorant Garamond", "Bodoni 72", Didot, "Iowan Old Style",
    "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Inter", "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue",
    Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-deep: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
  --player-h: 94px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: var(--player-h);
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

::selection {
  background: rgba(162, 69, 63, 0.55);
  color: #fff;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #08080a; }
::-webkit-scrollbar-thumb {
  background: #24242a;
  border: 2px solid #08080a;
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover { background: #34343c; }

a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; }

:focus-visible {
  outline: 1px solid var(--blood-bright);
  outline-offset: 3px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.i {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ------------------------------------------------------------
   Атмосфера
   ------------------------------------------------------------ */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.atmosphere__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.atmosphere__glow--blood {
  top: -24vh;
  right: -12vw;
  width: 74vw;
  height: 66vh;
  background: radial-gradient(circle, rgba(122, 42, 38, 0.42), transparent 68%);
  animation: breathe 22s ease-in-out infinite alternate;
}

.atmosphere__glow--patina {
  top: 26vh;
  left: -16vw;
  width: 58vw;
  height: 54vh;
  background: radial-gradient(circle, rgba(48, 78, 73, 0.3), transparent 70%);
  animation: breathe 28s ease-in-out infinite alternate-reverse;
}

.atmosphere__stars {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(233, 227, 215, 0.4), transparent 100%),
    radial-gradient(1px 1px at 28% 62%, rgba(233, 227, 215, 0.22), transparent 100%),
    radial-gradient(1.5px 1.5px at 46% 12%, rgba(233, 227, 215, 0.3), transparent 100%),
    radial-gradient(1px 1px at 64% 44%, rgba(233, 227, 215, 0.2), transparent 100%),
    radial-gradient(1px 1px at 78% 76%, rgba(233, 227, 215, 0.26), transparent 100%),
    radial-gradient(1.5px 1.5px at 88% 24%, rgba(233, 227, 215, 0.3), transparent 100%),
    radial-gradient(1px 1px at 8% 84%, rgba(233, 227, 215, 0.2), transparent 100%),
    radial-gradient(1px 1px at 38% 88%, rgba(233, 227, 215, 0.18), transparent 100%),
    radial-gradient(1px 1px at 56% 72%, rgba(233, 227, 215, 0.16), transparent 100%),
    radial-gradient(1px 1px at 94% 58%, rgba(233, 227, 215, 0.2), transparent 100%);
}

.grain {
  position: absolute;
  inset: -50%;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='0.55'/></svg>");
  animation: grain-shift 9s steps(6) infinite;
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(125% 95% at 50% 38%, transparent 42%, rgba(0, 0, 0, 0.62) 100%);
}

@keyframes breathe {
  from { transform: scale(1) translate3d(0, 0, 0); opacity: 0.75; }
  to { transform: scale(1.12) translate3d(-2vw, 2vh, 0); opacity: 1; }
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 1%); }
  100% { transform: translate(0, 0); }
}

/* ------------------------------------------------------------
   Верхняя панель
   ------------------------------------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  height: 74px;
  padding: 0 clamp(20px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(7, 7, 9, 0.94) 20%, rgba(7, 7, 9, 0.72));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex: none;
}

.brand__sigil {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: var(--bone-dim);
  stroke-width: 0.9;
  transition: transform 0.8s var(--ease), stroke 0.4s;
}

.brand:hover .brand__sigil {
  transform: rotate(90deg);
  stroke: var(--bone);
}

.brand__sigil .sigil-dot { fill: var(--blood); stroke: none; }

.brand__text { display: flex; flex-direction: column; gap: 3px; }

.brand__name {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bone);
  padding-left: 2px;
}

.brand__sub {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--bone-faint);
  padding-left: 3px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  margin-left: clamp(4px, 2vw, 24px);
}

.topnav__link {
  position: relative;
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone-faint);
  text-decoration: none;
  transition: color 0.3s;
}

.topnav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--blood);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.topnav__link:hover { color: var(--bone); }
.topnav__link:hover::after,
.topnav__link.is-active::after { transform: scaleX(1); }
.topnav__link.is-active { color: var(--bone); }

.topbar__tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: clamp(170px, 24vw, 290px);
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
  color: var(--bone-faint);
  cursor: text;
  transition: border-color 0.35s, background 0.35s, box-shadow 0.35s;
}

.search:focus-within {
  border-color: rgba(194, 99, 90, 0.5);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 0 0 4px rgba(162, 69, 63, 0.08);
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--bone);
  font-size: 12px;
  letter-spacing: 0.06em;
  outline: none;
}

.search input::placeholder { color: var(--bone-faint); }
.search input::-webkit-search-cancel-button { display: none; }

.search kbd {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--bone-faint);
  border: 1px solid var(--line);
  padding: 2px 5px;
  line-height: 1;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
  color: var(--bone-dim);
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.icon-btn:hover {
  color: var(--bone);
  border-color: rgba(194, 99, 90, 0.45);
  background: rgba(162, 69, 63, 0.08);
}

.icon-btn--bare {
  border-color: transparent;
  background: none;
  width: 32px;
  height: 32px;
}

.icon-btn.is-busy .i { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------
   Каркас
   ------------------------------------------------------------ */

.view {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(10px, 2vw, 22px) clamp(20px, 4vw, 56px) 40px;
  outline: none;
}

.view > * { animation: rise 0.65s var(--ease) both; }

@keyframes rise {
  from { transform: translateY(14px); }
  to { transform: none; }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--blood);
  flex: none;
}

.eyebrow--plain::before { display: none; }

.serif { font-family: var(--serif); font-weight: 400; }

.mono {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

.dot { color: var(--bone-faint); margin: 0 4px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------
   Кнопки
   ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--bone);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.35s;
}

.btn:hover {
  border-color: rgba(194, 99, 90, 0.6);
  background: rgba(162, 69, 63, 0.1);
  color: #fff;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--bone);
  border-color: var(--bone);
  color: #0a0a0c;
}

.btn--primary:hover {
  background: var(--blood);
  border-color: var(--blood);
  color: var(--bone);
}

.btn--ghost { border-color: transparent; color: var(--bone-dim); padding: 0 12px; }
.btn--ghost:hover { color: var(--bone); background: none; }

.btn .i { width: 16px; height: 16px; }

/* ------------------------------------------------------------
   Обложки
   ------------------------------------------------------------ */

.cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0a0a0d;
  border: 1px solid rgba(233, 227, 215, 0.075);
  isolation: isolate;
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.55);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.32));
}

.cover__art,
.cover__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.6s;
}

.cover__img { filter: saturate(0.82) contrast(1.04) brightness(0.94); }

.cover__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(233, 227, 215, 0.45);
  background: rgba(8, 8, 10, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--bone);
  cursor: pointer;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.4s, transform 0.5s var(--ease), border-color 0.3s, background 0.3s;
}

.cover__play .i { width: 20px; height: 20px; margin-left: 2px; }

.cover__play:hover {
  border-color: var(--bone);
  background: rgba(162, 69, 63, 0.55);
}

/* ------------------------------------------------------------
   Хиро
   ------------------------------------------------------------ */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 92px);
  padding: clamp(28px, 4vw, 52px) 0 clamp(52px, 7vw, 92px);
  border-bottom: 1px solid var(--line);
}

.hero__ghost {
  position: absolute;
  right: -3%;
  bottom: 2%;
  z-index: -1;
  font-family: var(--serif);
  font-size: clamp(150px, 22vw, 300px);
  line-height: 0.8;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(233, 227, 215, 0.04);
  pointer-events: none;
  user-select: none;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 5.6vw, 82px);
  line-height: 0.94;
  letter-spacing: -0.015em;
  margin: 26px 0 0;
  text-wrap: balance;
}

.hero__artist {
  margin-top: 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.hero__desc {
  max-width: 46ch;
  margin-top: 22px;
  color: var(--bone-dim);
  font-size: 14.5px;
  line-height: 1.7;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__art {
  position: relative;
  justify-self: end;
  width: min(100%, 520px);
}

.hero__plate { position: relative; }

.hero__plate::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid var(--line);
  pointer-events: none;
}

.hero__plate::after {
  content: "";
  position: absolute;
  left: -14px;
  top: -14px;
  width: 64px;
  height: 1px;
  background: var(--blood);
  box-shadow: 0 0 22px rgba(194, 99, 90, 0.7);
  pointer-events: none;
}

.hero__art .cover { box-shadow: var(--shadow-deep); }

.hero__stamp {
  position: absolute;
  right: -26px;
  top: 10px;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

.hero__catalog {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

/* ------------------------------------------------------------
   Секции и сетка альбомов
   ------------------------------------------------------------ */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(44px, 5vw, 68px) 0 0;
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(27px, 2.8vw, 38px);
  line-height: 1.05;
  margin-top: 14px;
}

.section-head__aside {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: clamp(26px, 2.8vw, 42px) clamp(18px, 2.2vw, 30px);
  margin-top: clamp(26px, 3vw, 38px);
}

.album-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
  cursor: pointer;
  outline-offset: 6px;
  animation: rise 0.7s var(--ease) both;
}

.album-card .cover { transition: box-shadow 0.6s, border-color 0.6s; }

.album-card:hover .cover,
.album-card:focus-visible .cover {
  box-shadow: 0 34px 70px -28px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(194, 99, 90, 0.28);
  border-color: rgba(233, 227, 215, 0.14);
}

.album-card:hover .cover__art,
.album-card:hover .cover__img { transform: scale(1.035); }

.album-card:hover .cover__play,
.album-card:focus-within .cover__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.album-card__artist {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone-faint);
  min-height: 1em;
}

.album-card__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.16;
  color: var(--bone);
  margin-top: 6px;
  text-wrap: balance;
  transition: color 0.3s;
}

.album-card:hover .album-card__title { color: #fff; }

.album-card__meta {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

/* ------------------------------------------------------------
   Записка архивариуса
   ------------------------------------------------------------ */

.manifesto {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: clamp(28px, 5vw, 72px);
  margin-top: clamp(56px, 7vw, 96px);
  padding: clamp(30px, 4vw, 50px) 0 clamp(14px, 2vw, 24px);
  border-top: 1px solid var(--line);
}

.manifesto__quote {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(26px, 3.1vw, 42px);
  line-height: 1.18;
  color: var(--bone-dim);
  text-wrap: balance;
}

.manifesto__sign {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

.manifesto__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  text-align: right;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

.manifesto__path {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--bone-dim);
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 10px;
}

@media (max-width: 900px) {
  .manifesto {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .manifesto__meta {
    align-items: flex-start;
    text-align: left;
  }
}

/* ------------------------------------------------------------
   Альбом
   ------------------------------------------------------------ */

.album-view { padding-top: clamp(16px, 2vw, 26px); }

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bone-faint);
  text-decoration: none;
  transition: color 0.3s;
}

.back:hover { color: var(--bone); }
.back .i { width: 14px; height: 14px; }

.album-view__head {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5.5vw, 84px);
  padding: clamp(22px, 3vw, 38px) 0 clamp(42px, 5vw, 62px);
  border-bottom: 1px solid var(--line);
}

.album-view__art { position: relative; width: 100%; }

.album-view__art::before {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid var(--line);
  pointer-events: none;
}

.album-view__art .cover { box-shadow: var(--shadow-deep); }

.album-view__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 4.6vw, 68px);
  line-height: 0.96;
  letter-spacing: -0.015em;
  margin-top: 20px;
  text-wrap: balance;
}

.album-view__artist {
  margin-top: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.album-view__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

.album-view__desc {
  max-width: 58ch;
  margin-top: 20px;
  color: var(--bone-dim);
  font-size: 14px;
  line-height: 1.7;
}

.album-view__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.album-view__catalog {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

/* ------------------------------------------------------------
   Треклист
   ------------------------------------------------------------ */

.tracklist {
  border-top: 1px solid var(--line);
  margin-top: clamp(18px, 2.2vw, 28px);
}

.track {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 34px 64px 26px;
  align-items: center;
  gap: 14px;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.25s;
}

.track:hover { background: rgba(255, 255, 255, 0.026); }

.track__num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--bone-faint);
  text-align: right;
  padding-right: 4px;
}

.track__main { min-width: 0; }

.track__title {
  display: block;
  font-size: 15px;
  color: var(--bone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s;
}

.track__sub {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

.track__lyrics {
  justify-self: center;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  background: none;
  color: var(--bone-faint);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.25s, color 0.25s, border-color 0.25s;
}

.track__lyrics .i { width: 14px; height: 14px; }

.track__lyrics:hover {
  opacity: 1;
  color: var(--bone);
  border-color: var(--line-strong);
}

.track__lyrics[disabled] { opacity: 0.16; cursor: default; }
.track__lyrics[disabled]:hover { color: var(--bone-faint); border-color: transparent; }

.track__dur {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--bone-faint);
  text-align: right;
}

.track__state { display: grid; place-items: center; width: 22px; }

.track__eq {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.track__eq span {
  display: block;
  width: 2px;
  background: var(--blood-bright);
  animation: eq 1.1s ease-in-out infinite alternate;
}

.track__eq span:nth-child(1) { height: 60%; animation-delay: -0.2s; }
.track__eq span:nth-child(2) { height: 100%; animation-delay: -0.6s; }
.track__eq span:nth-child(3) { height: 42%; animation-delay: -0.9s; }

@keyframes eq {
  from { transform: scaleY(0.3); }
  to { transform: scaleY(1); }
}

.track.is-current { background: rgba(162, 69, 63, 0.07); }
.track.is-current .track__num { color: var(--blood-bright); }
.track.is-current .track__title { color: #fff; }
.track.is-current .track__eq { display: flex; }
.track.is-current .track__lyrics { opacity: 1; color: var(--bone-dim); }

.track.is-current.is-paused .track__eq span { animation-play-state: paused; }

/* ------------------------------------------------------------
   Поиск
   ------------------------------------------------------------ */

.search-view { padding-top: clamp(20px, 3vw, 34px); }

.search-view__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 46px);
  margin-top: 16px;
  line-height: 1.08;
}

.search-view__query { color: var(--blood-bright); font-style: italic; }

.result-group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(36px, 4vw, 54px);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

.result-group::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ------------------------------------------------------------
   Загрузка / пустота / ошибка
   ------------------------------------------------------------ */

.boot {
  min-height: 58vh;
  display: grid;
  place-items: center;
  gap: 22px;
  text-align: center;
  align-content: center;
}

.boot__sigil svg {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: var(--bone-faint);
  stroke-width: 0.8;
  animation: spin 14s linear infinite;
}

.empty {
  min-height: 62vh;
  display: grid;
  place-items: center;
  padding: clamp(40px, 6vw, 90px) 0;
}

.empty__inner { max-width: 620px; text-align: center; }

.empty__inner .eyebrow { justify-content: center; }

.empty h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 7vw, 88px);
  line-height: 1;
  margin: 18px 0 20px;
}

.empty p { color: var(--bone-dim); }

.empty__path {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-top: 22px;
  padding: 11px 15px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--bone);
  overflow: auto;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}

.empty__path:hover {
  border-color: rgba(194, 99, 90, 0.45);
  background: rgba(162, 69, 63, 0.08);
}

.empty pre {
  margin: 26px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  text-align: left;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.85;
  color: var(--bone-dim);
  overflow-x: auto;
}

.empty pre b { color: var(--bone); font-weight: 500; }

.empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

/* ------------------------------------------------------------
   Подвал
   ------------------------------------------------------------ */

.colophon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 8px clamp(20px, 4vw, 56px) 42px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

.colophon__path {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 58vw;
}

.colophon__right { margin-left: auto; opacity: 0.65; }

/* ------------------------------------------------------------
   Проигрыватель
   ------------------------------------------------------------ */

.player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(300px, 1.5fr) minmax(180px, 0.8fr);
  align-items: center;
  gap: clamp(16px, 2.6vw, 40px);
  padding: 13px clamp(18px, 3vw, 44px);
  background: linear-gradient(180deg, rgba(10, 10, 13, 0.9), rgba(7, 7, 9, 0.98));
  border-top: 1px solid var(--line-strong);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, 0.9);
}

.player::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(162, 69, 63, 0.55) 22%, transparent 60%, rgba(120, 149, 141, 0.28));
}

.player__now {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.player__thumb {
  position: relative;
  width: 56px;
  height: 56px;
  flex: none;
  border: 1px solid var(--line);
  background: #0a0a0d;
  overflow: hidden;
}

.player__thumb svg { display: block; width: 100%; height: 100%; }
.player__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

.player__thumb-empty {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--bone-faint);
}

.player__meta { min-width: 0; }

.player__title {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.2;
  color: var(--bone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player__artist {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player__center {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.player__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ctrl {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: none;
  color: var(--bone-dim);
  cursor: pointer;
  transition: color 0.25s, background 0.25s, border-color 0.25s, transform 0.2s;
}

.ctrl:hover { color: var(--bone); background: rgba(255, 255, 255, 0.04); }
.ctrl:active { transform: scale(0.94); }
.ctrl .i { width: 16px; height: 16px; }

.ctrl--small { width: 30px; height: 30px; color: var(--bone-faint); }
.ctrl--small .i { width: 14px; height: 14px; }
.ctrl--small[aria-pressed="true"] { color: var(--blood-bright); }

.ctrl--play {
  width: 50px;
  height: 50px;
  border-color: rgba(233, 227, 215, 0.28);
  color: var(--bone);
  background: rgba(255, 255, 255, 0.02);
}

.ctrl--play:hover {
  border-color: var(--bone);
  background: var(--bone);
  color: #0a0a0c;
}

.ctrl--play .i { width: 19px; height: 19px; }

.player__seek {
  display: flex;
  align-items: center;
  gap: 12px;
}

.time {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--bone-faint);
  min-width: 36px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.seek {
  position: relative;
  flex: 1;
  height: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.seek__track {
  position: relative;
  width: 100%;
  height: 2px;
  background: rgba(233, 227, 215, 0.12);
  overflow: hidden;
}

.seek__buffered {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--buf, 0) * 100%);
  background: rgba(233, 227, 215, 0.16);
}

.seek__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--pos, 0) * 100%);
  background: linear-gradient(90deg, var(--blood), var(--bone));
}

.seek__thumb {
  position: absolute;
  left: calc(var(--pos, 0) * 100%);
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bone);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s;
  box-shadow: 0 0 12px rgba(233, 227, 215, 0.5);
  pointer-events: none;
}

.seek:hover .seek__thumb,
.seek:focus-visible .seek__thumb { transform: translate(-50%, -50%) scale(1); }

.player.is-seekable .seek__fill { background: linear-gradient(90deg, var(--blood-bright), var(--bone)); }

.player__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--bone-dim);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.pill .i { width: 14px; height: 14px; }
.pill:hover { color: var(--bone); border-color: var(--line-strong); }

.pill[aria-pressed="true"] {
  background: rgba(233, 227, 215, 0.1);
  border-color: rgba(233, 227, 215, 0.42);
  color: var(--bone);
}

.volume {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume__track {
  position: relative;
  width: 86px;
  height: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.volume__track::before {
  content: "";
  position: absolute;
  inset: 7px 0 auto;
  height: 2px;
  background: rgba(233, 227, 215, 0.12);
}

.volume__fill {
  position: absolute;
  left: 0;
  top: 7px;
  height: 2px;
  width: calc(var(--vol, 0.8) * 100%);
  background: var(--bone-dim);
}

.volume:hover .volume__fill { background: var(--bone); }

/* ------------------------------------------------------------
   Текст песни
   ------------------------------------------------------------ */

.lyrics-backdrop {
  position: fixed;
  inset: 0 0 var(--player-h) 0;
  z-index: 65;
  background: rgba(3, 3, 4, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.4s;
}

.lyrics-backdrop.is-visible { opacity: 1; }

.lyrics {
  position: fixed;
  top: 0;
  right: 0;
  bottom: var(--player-h);
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: min(470px, 100vw);
  background:
    radial-gradient(80% 40% at 100% 0%, rgba(122, 42, 38, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(13, 13, 17, 0.985), rgba(7, 7, 9, 0.995));
  border-left: 1px solid var(--line-strong);
  box-shadow: -50px 0 100px rgba(0, 0, 0, 0.65);
  transform: translateX(102%);
  transition: transform 0.5s var(--ease);
  visibility: hidden;
}

.lyrics.is-open {
  transform: none;
  visibility: visible;
}

.lyrics__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 30px 22px;
  border-bottom: 1px solid var(--line);
}

.lyrics__heading { min-width: 0; }

.lyrics__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.1;
  margin-top: 12px;
  text-wrap: balance;
}

.lyrics__meta {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

.lyrics__scroll {
  position: relative;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 0 45%;
  scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 46px, #000 calc(100% - 80px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 46px, #000 calc(100% - 80px), transparent 100%);
}

.lyrics__body {
  padding: 20px 34px 40px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lyric-line {
  display: block;
  width: 100%;
  padding: 8px 10px 8px 16px;
  border: 0;
  border-left: 1px solid transparent;
  background: none;
  text-align: left;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  color: rgba(233, 227, 215, 0.52);
  cursor: pointer;
  transition: color 0.35s, border-color 0.35s, transform 0.35s;
  white-space: pre-wrap;
}

.lyric-line:hover { color: var(--bone-dim); }

.lyric-line.is-active {
  color: var(--bone);
  border-left-color: var(--blood-bright);
  transform: translateX(4px);
}

.lyric-line.is-header {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone-faint);
  padding-top: 18px;
  padding-bottom: 2px;
  cursor: default;
}

.lyric-line.is-header:hover { color: var(--bone-faint); }

.lyrics__body.is-plain .lyric-line { cursor: default; }
.lyrics__body.is-plain .lyric-line:hover { color: rgba(233, 227, 215, 0.52); }
.lyrics__body.is-plain .lyric-line.is-active { color: var(--bone); }

.lyrics__empty {
  margin: 0 34px;
  padding: 26px;
  border: 1px dashed var(--line-strong);
  color: var(--bone-dim);
  font-size: 13px;
  line-height: 1.7;
}

.lyrics__empty code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bone);
}

.lyrics__foot {
  padding: 14px 30px 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

.lyrics__foot.is-hidden { display: none; }

/* ------------------------------------------------------------
   Тост
   ------------------------------------------------------------ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 118px;
  z-index: 90;
  max-width: min(90vw, 620px);
  padding: 13px 22px;
  border: 1px solid var(--line-strong);
  background: rgba(14, 14, 18, 0.96);
  color: var(--bone);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s var(--ease);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { border-color: rgba(194, 99, 90, 0.5); }

/* ------------------------------------------------------------
   Адаптив
   ------------------------------------------------------------ */

@media (max-width: 1120px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: 44px; }
  .hero__ghost { font-size: 220px; }
  .album-view__head { grid-template-columns: minmax(200px, 290px) minmax(0, 1fr); gap: 44px; }
  .player { grid-template-columns: minmax(180px, 1fr) minmax(280px, 1.5fr) auto; }
  .volume { display: none; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 30px;
  }
  .hero__art { justify-self: start; width: min(100%, 460px); }
  .hero__ghost { font-size: 170px; top: 2%; right: -4%; }
  .hero__stamp { display: none; }

  .album-view__head {
    grid-template-columns: 1fr;
    gap: 34px;
    align-items: start;
  }
  .album-view__art { width: min(100%, 340px); }

  .topnav { display: none; }

  .player {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "now right"
      "center center";
    row-gap: 8px;
    padding: 11px 16px 13px;
  }
  .player__now { grid-area: now; }
  .player__right { grid-area: right; }
  .player__center { grid-area: center; }
  .player__thumb { width: 44px; height: 44px; }
  .player__title { font-size: 15px; }
  .player__controls { gap: 4px; }
  .ctrl--play { width: 46px; height: 46px; }
  .ctrl--small { display: none; }
  .pill span { display: none; }
  .pill { padding: 0 11px; height: 34px; }

  .track { grid-template-columns: 32px minmax(0, 1fr) 30px 52px; gap: 10px; }
  .track__state { display: none; }
  .track__sub { display: none; }
  .colophon__path { max-width: 44vw; }
  :root { --player-h: 154px; }
}

@media (max-width: 620px) {
  .topbar { height: 64px; gap: 12px; }
  .brand__sub { display: none; }
  .brand__name { font-size: 18px; }
  .brand__sigil { width: 32px; height: 32px; }
  .search { width: 40px; padding: 0 10px; position: relative; }
  .search input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
  }
  .search kbd { display: none; }
  .search:focus-within {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 12px;
    width: auto;
    z-index: 5;
    background: #0b0b0f;
  }
  .search:focus-within input {
    position: static;
    opacity: 1;
    width: auto;
    height: auto;
    pointer-events: auto;
  }
  .search:focus-within .i { display: none; }
  .hero__title { font-size: clamp(38px, 12vw, 54px); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .album-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 16px; }
  .album-card__title { font-size: 17px; }
  .album-card__artist { font-size: 8px; }
  .cover__play { width: 46px; height: 46px; opacity: 1; transform: translate(-50%, -50%) scale(0.9); }
  .album-view__actions { flex-direction: column; align-items: stretch; }
  .album-view__actions .btn { width: 100%; }
  .track { padding: 12px 4px; }
  .colophon { flex-wrap: wrap; }
  .colophon__path { max-width: 100%; order: 3; flex-basis: 100%; }
  .lyrics__head { padding: 24px 20px 18px; }
  .lyrics__body { padding: 14px 18px 30px; }
  .lyric-line { font-size: 18px; padding-left: 12px; }
  .lyrics__empty { margin: 0 20px; }
  .lyrics__foot { padding: 12px 20px 16px; }
  .toast { bottom: 168px; }
}

@media (hover: none) {
  .cover__play { opacity: 1; transform: translate(-50%, -50%) scale(0.9); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .grain { display: none; }
}
