/* ---------- Базовые настройки ---------- */
:root {
  --bg: #0a0a0a;
  --bg-2: #141413;
  --fg: #efece6;
  --muted: #8d8a83;
  --line: #2a2927;
  --red: #e3261c;
  --display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --pad: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  overflow-x: clip; /* наклонённые элементы не должны давать сдвиг вбок на телефоне */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 14px/1.6 var(--mono);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Плёночное зерно поверх всей страницы */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }

.label {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---------- Шапка ---------- */
.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--pad);
  color: #fff;
  mix-blend-mode: difference; /* читается и на тёмном, и на светлом */
}

.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
}

.top nav {
  display: flex;
  gap: clamp(14px, 3vw, 36px);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.top nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 88px var(--pad) clamp(24px, 4vw, 44px);
  overflow: hidden;
}

/* Птица с обложки ERD, перевёрнутая в белую */
.hero-bird {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -6%;
  height: min(118%, 1150px);
  width: auto;
  transform: translateY(-53%);
  filter: invert(1) grayscale(1) contrast(1.4);
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(closest-side, #000 50%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 50%, transparent 100%);
}

.kicker {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.wordmark {
  margin: auto 0 .1em -.045em; /* буквы без выносных элементов свисают ниже строки — компенсируем */
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(120px, 38vw, 560px);
  line-height: .7;
  letter-spacing: -.03em;
  color: var(--fg);
  mix-blend-mode: difference; /* там, где буквы заходят на птицу, они темнеют */
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: clamp(22px, 3vw, 36px);
}

.lede {
  max-width: 34ch;
  margin: 0;
  font-size: clamp(14px, 1.3vw, 17px);
}

.chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px 8px 8px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, .7);
  backdrop-filter: blur(6px);
  transition: border-color .2s;
}

.chip:hover { border-color: var(--fg); }
.chip img { width: 56px; height: 56px; }
.chip small { display: block; color: var(--red); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.chip b { display: block; font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 1.2; }
.chip-arrow { margin-left: 8px; font-size: 18px; }

/* ---------- Бегущая строка ---------- */
.ticker {
  overflow: hidden;
  margin: 18px 0;
  padding: 10px 0;
  background: var(--red);
  color: var(--bg);
  transform: rotate(-1.4deg) scale(1.03);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 28px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  animation: ticker 32s linear infinite;
}

.ticker i { font-style: normal; }

@keyframes ticker {
  to { transform: translateX(calc(-50% - 14px)); }
}

/* ---------- Новый релиз ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: end;
  padding: clamp(72px, 11vw, 160px) var(--pad);
}

.feature-cover {
  display: block;
  transform: rotate(-2deg);
  box-shadow: 14px 14px 0 var(--red);
  transition: transform .3s;
}

.feature-cover:hover { transform: rotate(0deg); }

.feature-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(52px, 8.5vw, 136px);
  line-height: .9;
  letter-spacing: -.01em;
}

.feature-meta {
  margin: 18px 0 30px;
  color: var(--muted);
}

.feature-meta span { color: var(--line); padding: 0 6px; }

.buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block;
  padding: 14px 24px;
  border: 1px solid var(--fg);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}

.btn:hover { background: var(--fg); color: var(--bg); }

.btn-main {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.btn-main:hover { background: #fff; border-color: #fff; color: var(--bg); }

/* ---------- Разделы ---------- */
.section { padding: 0 var(--pad) clamp(72px, 10vw, 140px); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: clamp(24px, 3vw, 40px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 1;
  text-transform: uppercase;
}

.count { color: var(--muted); }

/* ---------- Сетка релизов ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 36px) clamp(12px, 2.2vw, 28px);
}

.card { position: relative; }
.card-link { display: block; }

.card-img {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-2);
  overflow: hidden;
}

.card-img img { width: 100%; height: 100%; object-fit: cover; transition: filter .35s, transform .5s; }

.num {
  position: absolute;
  top: 8px; left: 8px;
  padding: 2px 7px;
  background: var(--bg);
  font-size: 11px;
}

.card h3 {
  margin: 14px 0 2px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(18px, 2.2vw, 30px);
  line-height: 1.15;
  text-transform: uppercase;
  transition: color .2s;
}

.card p { margin: 0; color: var(--muted); font-size: 12px; }
.card:hover h3 { color: var(--red); }

/* На компьютере обложки чёрно-белые, цвет появляется при наведении */
@media (hover: hover) {
  .card-img img { filter: grayscale(1) contrast(1.1); }
  .card:hover .card-img img,
  .card:focus-visible .card-img img { filter: none; transform: scale(1.03); }
}

/* ---------- Участие ---------- */
.also { margin-top: clamp(48px, 6vw, 80px); }

.also-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.also-row:last-child { border-bottom: 1px solid var(--line); }
.also-row img { width: 64px; height: 64px; }
.also-title { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2.4vw, 30px); text-transform: uppercase; transition: color .2s; }
.also-meta { color: var(--muted); font-size: 12px; text-align: right; }
.also-row:hover .also-title { color: var(--red); }

/* ---------- Площадки ---------- */
.platforms a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: clamp(12px, 1.6vw, 20px) 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 5.2vw, 76px);
  line-height: 1.05;
  text-transform: uppercase;
  transition: color .2s, padding-left .3s;
}

.platforms a:first-child { border-top: 1px solid var(--line); }
.platforms i { font-style: normal; font-weight: 500; font-size: .6em; transition: transform .3s; }
.platforms a:hover { color: var(--red); padding-left: 14px; }
.platforms a:hover i { transform: translate(4px, -4px); }

/* ---------- Контакт ---------- */
.contact { text-align: center; }

.contact-line {
  margin: 0 0 32px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 9vw, 140px);
  line-height: .95;
  text-transform: uppercase;
}

.contact-handle {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Подвал ---------- */
.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px var(--pad);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.foot a:hover { color: var(--fg); }

/* ---------- Кнопка play / pause ---------- */
.play-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
  transition: transform .15s, background .2s;
}

.play-btn:hover { transform: scale(1.08); }
.play-btn:active { transform: scale(.95); }
.play-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.play-btn svg { width: 22px; height: 22px; fill: currentColor; }
.play-btn .i-pause,
.play-btn.is-playing .i-play { display: none; }
.play-btn.is-playing .i-pause { display: block; }

.play-btn-lg { width: 62px; height: 62px; box-shadow: none; }
.play-btn-lg svg { width: 28px; height: 28px; }

/* Кнопка поверх обложки, в правом нижнем углу */
.card-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 10px;
  pointer-events: none;
}

.card-overlay .play-btn { pointer-events: auto; }

/* ---------- Большой плеер у нового сингла ---------- */
.bigplayer {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 560px;
  margin: 0 0 28px;
  padding: 14px 20px 14px 14px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.bp-body { flex: 1; min-width: 0; }

.bp-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}

/* Полоска перемотки: красная часть — сколько уже проиграно */
.bp-seek {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 4px;
  margin: 0;
  border-radius: 2px;
  background: linear-gradient(to right, var(--red) calc(var(--p, 0) * 100%), var(--line) 0);
  cursor: pointer;
}

.bp-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
.bp-seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }

/* ---------- Мини-плеер внизу экрана ---------- */
.mini {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px var(--pad);
  border-top: 1px solid var(--line);
  background: rgba(14, 14, 13, .94);
  backdrop-filter: blur(10px);
  animation: mini-in .25s ease-out;
}

@keyframes mini-in { from { transform: translateY(100%); } }

.mini-bar {
  position: absolute;
  left: 0; right: 0; top: -6px;
  height: 12px;
  cursor: pointer;
}

.mini-bar::before,
.mini-bar::after {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  height: 2px;
}

.mini-bar::before { right: 0; background: var(--line); }
.mini-bar::after { width: calc(var(--p, 0) * 100%); background: var(--red); }

.mini-cover { width: 44px; height: 44px; flex: none; }

.mini-info {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mini-title {
  display: block;
  overflow: hidden;
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-meta { display: block; color: var(--muted); font-size: 11px; }

.mini-where {
  flex: none;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s;
}

.mini-where:hover { border-color: var(--fg); }
.mini .play-btn { width: 42px; height: 42px; box-shadow: none; }

.mini-close {
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.mini-close:hover { color: var(--fg); }
.mini button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
body.has-mini { padding-bottom: 66px; }

/* ---------- Окно «Где слушать?» ---------- */
.picker {
  width: min(460px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--fg);
}

.picker[open] { animation: picker-in .22s ease-out; }
.picker::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(4px); }

@keyframes picker-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes sheet-in { from { transform: translateY(100%); } }

html:has(.picker[open]) { overflow: hidden; } /* страница под окном не прокручивается */

.picker-inner { padding: 20px; }

.picker-head {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.picker-cover { width: 88px; height: 88px; background: var(--bg); }
.picker-head .label { margin: 0 0 6px; }

.picker-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.05;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.picker-meta { margin: 6px 0 0; color: var(--muted); font-size: 12px; }

.picker-close {
  align-self: start;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  background: none;
  color: var(--fg);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s;
}

.picker-close:hover { border-color: var(--fg); }
.picker-close:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.picker-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 4px;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  text-transform: uppercase;
  transition: color .2s, padding-left .25s;
}

.picker-list a:last-child { border-bottom: 1px solid var(--line); }
.picker-list i { flex: none; width: 12px; height: 12px; }
.picker-list span { flex: 1; }
.picker-list b { font-weight: 500; font-size: 18px; color: var(--muted); transition: color .2s, transform .25s; }
.picker-list a:hover { color: var(--red); padding-left: 10px; }
.picker-list a:hover b { color: var(--red); transform: translate(3px, -3px); }

/* ---------- Телефоны ---------- */
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { grid-template-columns: 1fr; }
  .feature-cover { max-width: 460px; }
}

@media (max-width: 640px) {
  .top { position: absolute; }
  .feature-cover { max-width: 82%; box-shadow: 10px 10px 0 var(--red); }
  .hero-bird {
    right: auto;
    left: 50%;
    top: 42%;
    width: 150vw;
    height: auto;
    transform: translate(-50%, -50%);
  }
  .hero-foot { flex-direction: column; align-items: stretch; }
  .chip { align-self: flex-start; }
  .also-row { grid-template-columns: 52px minmax(0, 1fr); }
  .also-row img { width: 52px; height: 52px; }
  .also-meta { grid-column: 2; text-align: left; margin-top: -14px; }

  /* На телефоне окно выбора выезжает снизу */
  .picker {
    width: 100%;
    max-height: 85svh;
    margin: auto 0 0;
    border-width: 1px 0 0;
  }
  .picker[open] { animation: sheet-in .28s ease-out; }
  .picker-inner { padding: 18px 16px 24px; }
  .picker-head { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; }
  .picker-cover { width: 72px; height: 72px; }

  .mini-where { display: none; }
  .card-overlay { padding: 8px; }
  .card-overlay .play-btn { width: 40px; height: 40px; }
}

/* Для тех, у кого в системе отключена анимация */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track,
  .picker[open],
  .mini { animation: none; }
}
