/* MediaEngineer — Studio Black prototype
   Токены: bg #0D1110 · surface #14141A · line rgba(255,255,255,.09)
           text #F2F3F5 · muted #8B9099 · accent #E8354F                    */

:root {
  --bg: #0d1110;
  --surface: #14141a;
  --surface-2: #1a1a22;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f3f5;
  --muted: #8b9099;
  --accent: #e8354f;
  --accent-dim: rgba(232, 53, 79, 0.16);
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  --r: 14px;
  --pad: clamp(20px, 4vw, 56px);
  --p-space: 104px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scrollbar-color: #33333d #0d1110; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #0d1110; }
::-webkit-scrollbar-thumb { background: #33333d; border: 3px solid #0d1110; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #454552; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--p-space);
  transition: padding-bottom 0.25s ease;
}
body.player-open { --p-space: 148px; }

img { max-width: 100%; display: block; }
svg { max-width: 100%; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.muted { color: var(--muted); }

/* ── Header ─────────────────────────────────────────────────────────── */

.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(13, 17, 16, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.hdr-in { display: flex; align-items: center; gap: 20px; height: 68px; }

.logo { font-size: 19px; font-weight: 800; letter-spacing: 0.02em; white-space: nowrap; transition: color 0.18s ease; }
.logo em { font-style: normal; color: var(--accent); transition: color 0.18s ease; }

/* Наведение на логотип: реверс — «ME» становится белым, остальные буквы красными. */
.logo:hover,
.logo:focus-visible { color: var(--accent); }
.logo:hover em,
.logo:focus-visible em { color: var(--text); }

.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a {
  font-size: 14px;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.16s, border-color 0.16s;
}
.nav a:hover { color: var(--text); border-color: var(--accent); }
.nav a[aria-current="page"] { color: var(--text); border-color: var(--accent); }

.socials { display: flex; gap: 14px; align-items: center; }
.socials a { display: block; color: var(--muted); transition: 0.18s; }
.socials a:hover { color: var(--accent); transform: translateY(-1px); }
.socials a svg { width: 22px; height: 22px; display: block; }
.socials span { font-size: 10px; letter-spacing: 0.06em; }

.save-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.16s;
}
.save-btn:hover { border-color: var(--accent); color: var(--accent); }
.save-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.burger {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  padding: 11px;
}
.burger span { display: block; height: 1.5px; background: var(--text); margin: 3.5px 0; transition: transform 0.2s, opacity 0.2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.specbar { border-bottom: 1px solid var(--line); }
.specbar .wrap {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 11px;
  padding-bottom: 11px;
  color: var(--muted);
}
.specbar .dot { color: var(--accent); }
.specbar strong { color: var(--text); font-weight: 500; }

.mobnav { display: none; border-bottom: 1px solid var(--line); background: var(--bg); }
.mobnav.open { display: block; }
.mobnav a, .mobnav button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px var(--pad);
  border: none;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.mobnav button { color: var(--accent); font-weight: 600; }

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero { position: relative; overflow: hidden; }
.hero-glow {
  position: absolute;
  inset: -20% 12% auto 12%;
  height: 760px;
  background: var(--glow, radial-gradient(circle at 20% 38%, rgba(232, 53, 79, 0.35), transparent 62%));
  opacity: 0.55;
  pointer-events: none;
}
/* Страница релиза: обложка слева, текст справа. Без этого правила
   обложка растягивается на всю ширину контейнера. */
.rel-hero {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 64px);
  align-items: end;
  padding: clamp(24px, 4vw, 48px) 0 clamp(36px, 5vw, 64px);
}

.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(44px, 7vw, 92px) var(--pad) clamp(44px, 6vw, 76px);
}

.art {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line);
}
.art img { width: 100%; height: 100%; object-fit: cover; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }

h1 {
  font-size: clamp(38px, 6.4vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 20px 0 0;
  overflow-wrap: anywhere;
}

.hero-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 22px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 14px; }
.hero-meta span + span::before { content: "/"; color: var(--line-strong); }

.lead { color: var(--muted); font-size: clamp(15px, 1.4vw, 17px); max-width: 46ch; margin: 24px 0 0; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: 0.18s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #f54761; color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: none; font-family: inherit; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn svg { width: 15px; height: 15px; fill: currentColor; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.chip {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 11px;
}

/* ── Sections ───────────────────────────────────────────────────────── */

section { border-top: 1px solid var(--line); }
.sec-in { padding: clamp(44px, 6vw, 74px) var(--pad); }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
h2 { font-size: clamp(24px, 3.2vw, 38px); letter-spacing: -0.03em; font-weight: 700; margin: 0; }
.sec-head p { margin: 8px 0 0; color: var(--muted); max-width: 52ch; font-size: 15px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 15px;
  cursor: pointer;
  transition: 0.16s;
}
.filter:hover { color: var(--text); border-color: var(--line-strong); }
.filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}

@media (min-width: 1080px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card { position: relative; min-width: 0; }
.card-art {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card-art-link { position: absolute; inset: 0; display: block; }
.card:hover .card-art img { transform: scale(1.04); }

.card-veil { pointer-events: none;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(to top, rgba(13, 17, 16, 0.88), rgba(13, 17, 16, 0.12) 65%);
  opacity: 0;
  transition: opacity 0.25s;
}
.card:hover .card-veil, .card:focus-within .card-veil { opacity: 1; }
.card-play {
  pointer-events: auto;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  transform: translateY(8px);
  transition: transform 0.25s;
}
.card:hover .card-play, .card:focus-within .card-play { transform: translateY(0); }
.card-play svg { width: 18px; height: 18px; fill: currentColor; margin-left: 2px; }

.card-body { padding: 14px 2px 0; }
.card-title { font-size: 18px; font-weight: 650; letter-spacing: -0.015em; margin: 0; line-height: 1.25; }
.card-sub { margin: 6px 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.card-links { display: flex; gap: 14px; margin-top: 12px; opacity: 0; transition: opacity 0.25s; }
.card:hover .card-links, .card:focus-within .card-links { opacity: 1; }
.card-links a { font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line-strong); }
.card-links a:hover { color: var(--accent); border-color: var(--accent); }

/* ── Видео ──────────────────────────────────────────────────────────── */

.video-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 44px);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 36px);
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #101018;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.video-frame a { display: grid; place-items: center; gap: 14px; color: var(--text); }
.video-frame a:hover { color: var(--accent); }
.big-play { width: 72px; height: 72px; border-radius: 16px; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: 0.2s; }
.video-frame a:hover .big-play { border-color: var(--accent); background: var(--accent-dim); }
.video-frame svg { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }

.news-media { border-radius: 12px; border: 1px solid var(--line); aspect-ratio: 16 / 9; object-fit: contain; background: var(--surface-2); width: 100%; }

/* ── Плеер ──────────────────────────────────────────────────────────── */

.player {
  position: fixed;
  z-index: 70;
  background: rgba(18, 18, 24, 0.94);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line-strong);
}
.player.is-open {
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
  box-shadow: 0 -14px 40px -24px rgba(0, 0, 0, 0.9);
}
.player.is-mini {
  right: 18px;
  bottom: 18px;
  left: auto;
  border-radius: 14px;
  max-width: calc(100vw - 36px);
  box-shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.95);
}

.player-in { height: 84px; display: flex; align-items: center; gap: 20px; }
.is-mini .player-in { height: 62px; width: auto; max-width: none; padding: 0 12px 0 8px; gap: 12px; }

.p-now {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  flex: 0 1 260px;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  text-align: left;
  padding: 0;
  cursor: pointer;
}
.p-now img { width: 46px; height: 46px; border-radius: 8px; flex: none; object-fit: cover; }
.is-mini .p-now { flex: 0 1 auto; gap: 10px; }
.is-mini .p-now img { width: 44px; height: 44px; }
.p-now-t { min-width: 0; display: block; }
.p-now-title { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-now-sub { display: block; margin-top: 2px; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-demo { color: var(--accent); }
.p-chev { display: none; font-family: var(--mono); font-size: 12px; color: var(--muted); flex: none; }
.p-chev svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.is-mini .p-chev { display: flex; }

.p-mid { display: flex; align-items: center; gap: 15px; flex: 1 1 auto; min-width: 0; }
.is-mini .p-mid { flex: none; gap: 0; }
.is-mini .p-mid .prev, .is-mini .p-mid .next, .is-mini .p-mid .p-time, .is-mini .p-mid .wave { display: none; }

.p-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  transition: 0.16s;
}
.p-btn:hover { border-color: var(--accent); color: var(--accent); }
.p-btn svg { width: 13px; height: 13px; fill: currentColor; }
.p-btn.collapse svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.p-btn.play { background: var(--text); color: #0d1110; border-color: var(--text); width: 44px; height: 44px; border-radius: 14px; }
.p-btn.play:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.p-btn.play svg { width: 15px; height: 15px; }

.p-time { font-family: var(--mono); font-size: 11px; color: var(--muted); flex: none; min-width: 84px; letter-spacing: 0.04em; }

.wave { flex: 1 1 auto; height: 38px; display: flex; align-items: center; gap: 2px; border: none; background: none; padding: 0; cursor: pointer; min-width: 0; }
.wave i { flex: 1 1 0; min-width: 0; border-radius: 1px; background: var(--line-strong); transition: background 0.15s; }
.wave i.on { background: var(--accent); }
.wave:hover i { background: rgba(255, 255, 255, 0.28); }
.wave:hover i.on { background: #f54761; }

.p-right { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex: 0 0 auto; }
.is-mini .p-right { display: none; }
.p-vol { display: flex; align-items: center; gap: 9px; }
.p-vol svg { width: 15px; height: 15px; fill: var(--muted); flex: none; }
.p-vol input { width: 74px; accent-color: var(--accent); }

/* ── Статья ─────────────────────────────────────────────────────────── */

.article-head { padding: clamp(30px, 4vw, 56px) 0 clamp(22px, 3vw, 34px); max-width: 900px; }
.article-head h1 { font-size: clamp(28px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.03em; margin: 18px 0 0; }
.article-lead { font-size: clamp(16px, 1.7vw, 20px); color: var(--muted); margin: 22px 0 0; max-width: 68ch; }

.article-byline {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.article-byline b { color: var(--text); font-weight: 600; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 330px);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  margin-top: clamp(28px, 4vw, 44px);
}
.article-aside { position: sticky; top: 92px; }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.aside-card img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--surface-2);
  border-radius: 10px;
  margin-bottom: 16px;
  align-self: start;
}
  .aside-card .aside-list, .aside-card .aside-actions { grid-column: 1 / -1; }

/* ── Подвал ─────────────────────────────────────────────────────────── */

footer { border-top: 1px solid var(--line); }
.foot-in {
  padding: 44px var(--pad) 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}
.foot-in h3 {
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  font-weight: 500;
}
.foot-in a { display: block; font-size: 14px; padding: 5px 0; }
.foot-in a:hover { color: var(--accent); }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding: 18px var(--pad) 26px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .hero-in { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
  .p-vol { display: none; }
  .pp-hero { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .nav, .hdr .socials { display: none; }
  .hdr-in .save-btn { display: none; }
  .burger { display: block; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-glow { opacity: 0.4; height: 520px; }
  .art { max-width: 340px; }
  .article-head { max-width: none; }
  .rel-hero { grid-template-columns: 1fr; align-items: start; }
  .video-card { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .pp-hero { grid-template-columns: 1fr; }

  /* На телефоне плеер — полоса во всю ширину; пока слушатель не запустил
     трек, полосы нет вовсе, чтобы не закрывать контент. */
  .player.is-mini { display: none; }
  body.player-armed .player.is-mini {
    display: block;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  body.player-armed .is-mini .player-in { width: 100%; max-width: none; height: 60px; padding: 0 12px; gap: 10px; }
  body.player-armed .is-mini .p-now { flex: 1 1 auto; min-width: 0; gap: 10px; }
  body.player-armed .is-mini .p-now-t { display: block; }
  body.player-armed .is-mini .p-chev { display: none; }
  body.player-armed .is-mini .p-mid { flex: none; }
  body { --p-space: 48px; }
  body.player-armed { --p-space: 76px; }
  body.player-open { --p-space: 200px; }
}

@media (max-width: 620px) {
  :root { --pad: 24px; }
  body { --p-space: 48px; }
  body.player-armed { --p-space: 76px; }
  body.player-open { --p-space: 196px; }
  .art { max-width: min(100%, 320px); }
  h1 { font-size: clamp(32px, 10.5vw, 44px); }
  .grid { grid-template-columns: 1fr; gap: 26px; }
  .card-title { font-size: 19px; }
  .card-links { opacity: 1; }
  .filter { padding: 11px 16px; }
  .specbar .wrap { gap: 12px; font-size: 10.5px; }
  .actions .btn { flex: 1 1 100%; }
  .p-now-title { font-size: 13px; }
  .is-mini { left: 0; right: 0; bottom: 0; }
  .is-mini .player-in { width: 100%; padding: 0 10px; gap: 8px; height: 60px; }
  .is-mini .p-now { gap: 8px; }
  .is-mini .p-now img { width: 40px; height: 40px; }
  .is-mini .p-btn.play { width: 40px; height: 40px; border-radius: 12px; }
  .is-open .player-in { height: auto; flex-wrap: wrap; padding: 12px var(--pad); gap: 12px; }
  .is-open .p-now { flex: 1 1 auto; }
  .is-open .p-mid { flex: 1 1 100%; gap: 10px; order: 3; }
  .is-open .p-mid .prev, .is-open .p-mid .next { display: none; }
  .is-open .p-time { min-width: auto; }
  .is-open .p-time .dur { display: none; }
  .is-open .p-right { display: none; }
  .foot-in { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .foot-in > div:first-child { grid-column: 1 / -1; }
  .foot-in a { font-size: 13.5px; }
  .tracklist li { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; }  .pp-track { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .pp-track img { display: none; }
  .article-body p, .article-body li { font-size: 16.5px; }
}

/* ═══ WordPress ═══════════════════════════════════════════════════════ */

.screen-reader-text { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; word-wrap: normal !important; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: var(--pad); top: 10px; z-index: 100; background: var(--surface-2); color: var(--text); padding: 10px 16px; border-radius: 10px; }

body.admin-bar .hdr { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .hdr { top: 46px; } }

.nav a.current-menu-item,
.nav a.current_page_item,
.nav a.current-menu-ancestor,
.nav a.current-menu-parent,
.mobnav a.current-menu-item { color: var(--text); border-color: var(--accent); }

.archive-head { padding: clamp(34px, 5vw, 60px) var(--pad) 0; }
.archive-head h1 { font-size: clamp(30px, 4.6vw, 54px); margin: 0; }

.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-item { padding: 26px 0; border-bottom: 1px solid var(--line); max-width: 78ch; }
.news-item-title { font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -0.02em; margin: 8px 0 10px; }
.news-item p { margin: 0 0 12px; }
.news-date { display: block; }
.news-more { font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line-strong); }
.news-more:hover { color: var(--accent); border-color: var(--accent); }

.news-title { font-size: clamp(19px, 2.2vw, 24px); letter-spacing: -0.02em; margin: 14px 0 10px; }
.news-text { margin: 0 0 18px; }
.foot-col { min-width: 0; }

.foot-legal { display: flex; gap: 8px 18px; flex-wrap: wrap; }
.foot-legal a { color: var(--muted); border-bottom: 1px solid var(--line-strong); }
.foot-legal a:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 620px) {
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .foot-legal { flex-direction: column; gap: 8px; }
}

.track-play { display: inline-flex; align-items: center; gap: 9px; background: none; border: none; color: inherit; font: inherit; padding: 0; cursor: pointer; text-align: left; border-bottom: 1px solid transparent; }
.track-play:hover { color: var(--accent); border-color: var(--accent); }
.track-play svg { width: 12px; height: 12px; flex: 0 0 auto; fill: currentColor; }

.article-body img,
.article-body iframe,
.article-body video,
.article-body embed { max-width: 100%; height: auto; border-radius: 12px; }
.article-body h3 { font-size: clamp(18px, 2.2vw, 22px); margin: 30px 0 12px; }
.article-body blockquote { border-left: 2px solid var(--accent); padding-left: 20px; margin: 28px 0; font-size: 19px; line-height: 1.5; }
.article-body figcaption { color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 10px; }
.article-body > *:first-child { margin-top: 0; }

.grid.compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.pagination { margin-top: 34px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-start; }
.pagination a,
.pagination span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }

#me-audio { display: none; }

/* Страница-плеер: заголовок текущего релиза и блоки, которые вставляются шорткодами */
.pp-title { font-size: clamp(32px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; margin: 18px 0 0; overflow-wrap: anywhere; }
.pp-playlist { margin-top: 6px; }
.pp-section { margin-top: clamp(28px, 4vw, 52px); }
.pp-track-nofile { color: var(--muted); font-style: italic; }

/* Переход между страницами без перезагрузки: содержимое слегка гаснет,
   пока подгружается новый текст. Шапка, подвал и плеер не трогаются. */
body.me-loading main { opacity: 0.55; transition: opacity 0.15s ease; }

.post-audio { border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 12px; background: var(--surface); padding: 18px 20px; margin: 0 0 28px; }
.post-audio-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.post-audio .tracklist li { padding: 12px 4px; }
.platform-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.lyrics { margin: 34px 0 0; border-top: 1px solid var(--line); padding-top: 24px; }
.lyrics summary { display: flex; gap: 12px; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; margin-bottom: 16px; }
.lyrics summary::-webkit-details-marker { display: none; }
.lyrics summary::after { content: "▾"; color: var(--muted); font-size: 12px; }
.lyrics details[open] summary::after { content: "▴"; }
.lyrics-text { white-space: pre-line; font-size: 17px; line-height: 1.85; max-width: 60ch; margin: 0 0 20px; }
.lyrics-credit { font-size: 10.5px; }

.badge-sound {
  display: inline-block;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  background: var(--accent-dim);
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 10px;
  letter-spacing: 0.1em;
}
.news-item .badge-sound { margin-left: 10px; }

/* Обложка на странице релиза на телефоне: одна колонка, обложка с ограничением */
.rel-hero { grid-template-columns: 1fr; }
.rel-hero .art { max-width: min(100%, 320px); }

/* Заголовки внутри текста: старый контент приходит с <h1> внутри тела,
   без этого правила они рисуются кеглем заголовка страницы */
.article-body h1 { font-size: clamp(21px, 2.6vw, 28px); line-height: 1.3; margin: 34px 0 14px; letter-spacing: -0.02em; }
.article-body h4 { font-size: clamp(17px, 2vw, 20px); margin: 26px 0 10px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 22px; display: block; overflow-x: auto; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; font-size: 15px; }

/* ═══ Мобильные правила для блоков музыки ═══════════════════════════
   Идут в самом конце: базовые правила выше, поэтому медиазапрос должен
   быть после них, иначе он проигрывает по порядку объявления. */

@media (max-width: 620px) {
  .post-audio { padding: 14px; margin-bottom: 22px; }
  .post-audio .tracklist li { padding: 10px 2px; }
  .platform-links { gap: 8px; margin-top: 12px; }
  .platform-links .btn { flex: 1 1 100%; }

  .lyrics { margin-top: 26px; padding-top: 18px; }
  .lyrics summary { margin-bottom: 12px; }
  .lyrics-text { font-size: 16px; line-height: 1.75; max-width: none; }
  .lyrics-credit { font-size: 10px; }

  .badge-sound { font-size: 9.5px; padding: 3px 7px; }
  .pp-title { font-size: clamp(26px, 8.5vw, 38px); }
  .article-body figure { margin: 20px 0; }
  .article-body h2 { font-size: 21px; }
  .article-body h3 { font-size: 19px; }
  .article-body blockquote { font-size: 17px; padding-left: 16px; }
}

/* ── Лента новостей ─────────────────────────────────────────────────── */

.news-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}
.news-feed .video-card {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  padding: clamp(16px, 2vw, 22px);
}
.news-feed .news-media { aspect-ratio: 1 / 1; object-fit: cover; }

@media (max-width: 640px) {
  .news-feed { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1080px) {
  .news-feed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── Текст песни: приоткрыт, полностью — по кнопке ──────────────────── */

.lyrics-text.is-clamped {
  max-height: 10.5em;
  overflow: hidden;
  position: relative;
}
.lyrics-text.is-clamped::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4.5em;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.lyrics-toggle { margin-top: 14px; }

.hero-credits {
  margin: 10px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-credits a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}
.hero-credits a:hover { color: var(--accent); }

/* Персональные данные в документах: не выделяются и не копируются */
.me-pd {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  cursor: default;
}

/* Отметка 18+ */
.badge-adult {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  margin-left: 8px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.08em;
  vertical-align: middle;
}

/* ── Кнопки площадок с логотипами ───────────────────────────────────── */

.btn svg.me-pl-icon { width: 18px; height: 18px; flex: 0 0 auto; }

/* ── Новость на главной: картинка квадратом, без пустых полей ──────── */

#news .video-card { align-items: start; }
#news .news-media { aspect-ratio: 1 / 1; object-fit: cover; }


/* ── Восстановленные базовые правила из исходного дизайна ─────────── */
.aside-card h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.02em; }
.aside-list { margin: 18px 0 0; border-top: 1px solid var(--line); }
.aside-list > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.aside-list dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.aside-list dd { margin: 6px 0 0; font-size: 14.5px; font-weight: 600; }
.aside-actions { margin-top: 18px; display: grid; gap: 10px; }
.aside-actions .btn, .aside-actions .save-btn { width: 100%; }
.article-cover { margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.article-cover img { width: 100%; max-height: 420px; object-fit: cover; }
.article-cover figcaption { padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.article-body { max-width: 720px; }
.article-body p { font-size: 17px; line-height: 1.72; margin: 0 0 22px; }
.article-body a { color: var(--text); border-bottom: 1px solid var(--accent); }
.article-body a:hover { color: var(--accent); }
.article-body ul { padding-left: 20px; margin: 0 0 22px; }
.article-body li { font-size: 17px; line-height: 1.7; margin-bottom: 8px; }
.pullquote { border-left: 2px solid var(--accent);
  padding: 6px 0 6px 22px;
  margin: 34px 0;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.45;
  letter-spacing: -0.015em; }
.cta-block { background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 32px);
  margin: 34px 0; }
.cta-block h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.02em; }
.cta-block p { margin: 0 0 18px; color: var(--muted); font-size: 15px; max-width: 56ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
/* ── Страница-плеер ─────────────────────────────────────────────────── */ .player-page { min-height: 100vh; display: flex; flex-direction: column; }
.pp-wrap { flex: 1; }
.pp-head { display: flex; align-items: center; gap: 16px; }
.pp-back { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pp-back:hover { color: var(--accent); }
.pp-controls { display: flex; align-items: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.pp-wave { display: flex;
  align-items: center;
  gap: 2px;
  height: 56px;
  width: 100%;
  margin-top: 22px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer; }
.pp-wave i { flex: 1 1 0; min-width: 0; border-radius: 1px; background: var(--line-strong); }
.pp-wave i.on { background: var(--accent); }
.pp-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pp-list li { border-bottom: 1px solid var(--line); }
.pp-track { display: grid;
  grid-template-columns: 34px 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 12px 8px;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s; }
.pp-track:hover { background: var(--surface); }
.pp-track[aria-current="true"] { background: var(--surface); }
.pp-track[aria-current="true"] .pp-track-title { color: var(--accent); }
.pp-track-n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pp-track-t { min-width: 0; }
.pp-track-title { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-track-sub { display: block; margin-top: 3px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.pp-track-go { font-family: var(--mono); font-size: 11px; color: var(--muted); }
/* ── Трейклист релиза ───────────────────────────────────────────────── */ .tracklist { border-top: 1px solid var(--line); margin: 0; padding: 0; list-style: none; }
.tracklist li:hover { background: var(--surface); }
.track-n { font-family: var(--mono); color: var(--muted); font-size: 12px; }
.track-name { font-size: 15px; }
.track-dur { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tracklist li.demo .track-name { color: var(--muted); font-style: italic; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.spec { background: var(--bg); padding: 18px 20px; }
.spec dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 8px 0 0; font-size: 16px; font-weight: 600; }
.notice { display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 10px;
  background: var(--surface);
  padding: 14px 18px;
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 22px; }
.notice b { color: var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
/* ── Тост ───────────────────────────────────────────────────────────── */ .toast { position: fixed;
  left: 50%;
  bottom: calc(var(--p-space) + 16px);
  transform: translateX(-50%);
  z-index: 90;
  max-width: min(420px, calc(100vw - 32px));
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 14px;
  box-shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.95); }
/* ── Появление ──────────────────────────────────────────────────────── */ .rv { transition: opacity 0.5s ease, transform 0.5s ease; }
.js .rv { opacity: 0; transform: translateY(14px); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
.js .rv { opacity: 1; transform: none; transition: none; }
}
/* ── Адаптив ────────────────────────────────────────────────────────── */ @media (max-width: 1000px) { .article-layout { grid-template-columns: 1fr; gap: 34px; } }
@media (max-width: 620px) {
.pp-track { grid-template-columns: 26px minmax(0, 1fr) auto; }
}

/* ── Шапка страницы-плеера: базовые правила ─────────────────────────── */

.pp-hero {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 48px);
  align-items: center;
}
.pp-hero-art { min-width: 0; }
.pp-hero-art .art { max-width: 260px; }
.pp-hero-art .art img { display: block; width: 100%; height: auto; border-radius: 12px; }
.pp-hero-info { min-width: 0; }
.pp-title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 10px 0 12px;
}

/* ── Плеер на телефоне: компактная шапка ──────────────────────────────
   Обложка не занимает весь экран, кнопка «плей», время и волна видны
   сразу, без прокрутки. Правила стоят последними — перекрывают прежние. */
@media (max-width: 860px) {
  .pp-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }
  .pp-hero-art .art {
    max-width: min(54vw, 200px);
  }
  .pp-title {
    font-size: clamp(21px, 6.6vw, 30px);
    margin: 8px 0 8px;
  }
  .pp-hero-info .hero-meta {
    margin-top: 6px;
    font-size: 12px;
  }
  .pp-wave {
    height: 42px;
    margin-top: 14px;
  }
  .pp-controls {
    margin-top: 14px;
    gap: 10px;
  }
  .pp-controls .p-btn.play {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }
  .pp-controls .p-btn.play svg {
    width: 18px;
    height: 18px;
  }
  .pp-controls .p-btn.prev,
  .pp-controls .p-btn.next {
    width: 42px;
    height: 42px;
  }
  .pp-controls .p-time {
    font-size: 12px;
  }
  .pp-controls .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
  .pp-section {
    margin-top: 28px;
  }
  .pp-section .sec-head {
    gap: 14px;
  }
  .pp-section .sec-head .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Волна не должна раздвигать соседей ───────────────────────────────
   Полоски были с min-width и зазором 2px: 96–120 штук требовали
   минимум 286–358 px и на телефоне вылезали за край, наезжая на кнопки. */
@media (max-width: 860px) {
  .wave,
  .pp-wave {
    gap: 1px;
  }
  .pp-track {
    gap: 10px;
  }
  .pp-track-go {
    display: none;
  }
}

/* ── Мобильное меню поверх экрана ─────────────────────────────────────
   Раньше панель стояла в потоке сразу под шапкой: при прокрутке она
   открывалась вне видимой области, и казалось, что бургер не работает. */
@media (max-width: 860px) {
  .mobnav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(var(--p-space) + 12px);
    border-top: 1px solid var(--line);
  }
  .mobnav.open {
    display: block;
  }
  body.admin-bar .mobnav {
    top: 100px;
  }
  body.nav-open {
    overflow: hidden;
  }
}

@media screen and (max-width: 782px) {
  body.admin-bar .mobnav {
    top: 114px;
  }
}

/* На сенсорных экранах наведения нет: кнопка «плей» стояла невидимой
   посреди обложки и перехватывала нажатие. Там вся обложка ведёт на релиз. */
@media (hover: none) {
  .card-veil {
    display: none;
  }
}

/* ── Смартлинк: отдельная страница-визитка ─────────────────────────── */

body.sl-body { --p-space: 32px; }
body.sl-body > .hdr,
body.sl-body > .specbar,
body.sl-body > .mobnav,
body.sl-body > .player,
body.sl-body > footer { display: none; }
body.sl-body #content { padding: 0; }

.sl-page { position: relative; min-height: 100vh; padding: 26px 0 36px; }
.sl-glow {
  position: fixed;
  inset: -10% 10% auto;
  height: 620px;
  background: radial-gradient(circle at 50% 18%, rgba(232, 53, 79, 0.22), transparent 62%);
  pointer-events: none;
}
.sl-main { position: relative; width: 100%; max-width: 520px; margin: 0 auto; padding: 0 var(--pad); }

.sl-brand {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.18s ease;
}
.sl-brand em { font-style: normal; color: var(--accent); transition: color 0.18s ease; }
.sl-brand:hover { color: var(--accent); }
.sl-brand:hover em { color: var(--text); }

.sl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.sl-top .sl-brand { margin-bottom: 0; }

.sl-lang {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.sl-lang[hidden] { display: none; }
.sl-lang button {
  padding: 6px 11px;
  border: none;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.sl-lang button:hover { color: var(--text); }
.sl-lang button[aria-pressed="true"] { background: var(--accent); color: #fff; }

.sl-art {
  position: relative;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.sl-art img { width: 100%; height: 100%; object-fit: cover; }

.sl-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(13, 17, 16, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 10px;
}
.sl-badge.is-presale { border-color: rgba(232, 53, 79, 0.5); background: rgba(232, 53, 79, 0.16); color: #ffb3bd; }

.sl-play {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(13, 17, 16, 0.5), 0 18px 44px -14px rgba(0, 0, 0, 0.95);
  transition: transform 0.16s, background 0.16s;
}
.sl-play:hover { transform: scale(1.06); }
.sl-play:active { transform: scale(0.97); }
.sl-play svg { width: 22px; height: 22px; fill: currentColor; margin-left: 2px; }
.sl-play .sl-play-pause { display: none; margin-left: 0; }
.sl-play.is-playing .sl-play-icon { display: none; }
.sl-play.is-playing .sl-play-pause { display: block; }
.sl-play-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(#fff calc(var(--p, 0) * 1%), rgba(255, 255, 255, 0.22) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  pointer-events: none;
}
.sl-preview-tag {
  position: absolute;
  right: 16px;
  top: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(13, 17, 16, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  font-size: 9px;
  color: var(--text);
}

.sl-artist { margin: 26px 0 0; color: var(--muted); font-size: 11px; }
.sl-title {
  margin: 8px 0 0;
  font-size: clamp(28px, 7.2vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.sl-release { margin: 10px 0 0; color: var(--muted); font-size: 10.5px; letter-spacing: 0.07em; }

.sl-desc { margin: 18px 0 0; color: var(--muted); font-size: 15px; line-height: 1.62; }
.sl-desc.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sl-more {
  margin-top: 10px;
  padding: 0;
  background: none;
  border: none;
  color: var(--accent);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}

.sl-links { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.sl-link {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.16s, background 0.16s, transform 0.16s;
}
.sl-link:hover,
.sl-link:focus-visible {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}
.sl-ico { width: 40px; height: 40px; display: grid; place-items: center; }
.sl-ico svg { width: 26px; height: 26px; }
.sl-t { min-width: 0; display: block; }
.sl-t b { display: block; font-size: 15.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-t small {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.sl-go { color: var(--muted); font-size: 18px; transition: color 0.16s, transform 0.16s; }
.sl-link:hover .sl-go { color: var(--accent); transform: translateX(2px); }

.sl-secondary { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.sl-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 14px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.16s, color 0.16s;
}
.sl-ghost:hover { border-color: var(--accent); color: var(--accent); }
.sl-ghost svg { width: 16px; height: 16px; }
.sl-ghost[hidden] { display: none; }
.sl-secondary .sl-ghost { flex: 1 1 140px; }

.sl-dialog {
  width: min(360px, calc(100vw - 40px));
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
}
.sl-dialog::backdrop { background: rgba(6, 8, 8, 0.72); backdrop-filter: blur(6px); }
.sl-dialog h2 { margin: 0; font-size: 18px; }
.sl-dialog p { margin: 8px 0 0; font-size: 13.5px; }
.sl-qr-box {
  margin: 16px auto;
  width: 208px;
  height: 208px;
  padding: 10px;
  border-radius: 12px;
  background: #f2f3f5;
}
.sl-qr-box svg { display: block; width: 100%; height: 100%; }
.sl-qr-link { text-align: center; color: var(--muted); font-size: 10px; word-break: break-all; }
.sl-dialog .sl-ghost { width: 100%; margin-top: 16px; }

.sl-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.sl-foot a { color: var(--muted); border-bottom: 1px solid transparent; }
.sl-foot a:hover { color: var(--text); border-color: var(--accent); }

#toast { opacity: 0; pointer-events: none; transition: opacity 0.2s; }
#toast.is-on { opacity: 1; }

@media (max-width: 420px) {
  .sl-secondary { grid-template-columns: 1fr; }
  .sl-badge { font-size: 9px; left: 10px; bottom: 10px; }
}

/* ── Согласие на cookies ───────────────────────────────────────────────
   Плашка снизу, а не модальное окно поверх: сайт остаётся читаемым,
   пока посетитель не выбрал вариант. Закрыть без выбора нельзя. */
.me-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 14px var(--pad) calc(14px + env(safe-area-inset-bottom));
  background: rgba(20, 20, 26, 0.97);
  border-top: 1px solid var(--line-strong);
  backdrop-filter: blur(14px);
  box-shadow: 0 -20px 50px -30px rgba(0, 0, 0, 0.95);
}
.me-consent[hidden] { display: none; }
.me-consent-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 22px;
  max-width: 1080px;
  margin: 0 auto;
}
.me-consent-text { flex: 1 1 420px; min-width: 0; }
.me-consent-text strong { font-size: 14px; font-weight: 650; }
.me-consent-text p { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.me-consent-text a { border-bottom: 1px solid var(--accent); }
.me-consent-text a:hover { color: var(--accent); }
.me-consent-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.me-consent-actions .btn { padding: 11px 18px; }
.me-consent-actions [data-consent-yes].is-hint {
  animation: me-consent-hint 0.9s ease 2;
  box-shadow: 0 0 0 3px rgba(232, 53, 79, 0.35);
}
@keyframes me-consent-hint {
  50% { transform: scale(1.04); }
}
body.consent-wait .save-btn { opacity: 0.55; }

@media (max-width: 620px) {
  .me-consent-actions { width: 100%; }
  .me-consent-actions .btn { flex: 1 1 0; justify-content: center; }
}
