/* NILDM. Layout: сцена в одну колонку. Герой со спектром и новым релизом, галерея обложек, био, соцсети.
   Цвет подсветки страницы (--accent) берётся из обложки релиза, на который смотрит человек. */
:root {
  --ink: #07060b;
  --panel: #12101a;
  --panel-2: #1a1724;
  --line: #29243a;
  --text: #eeebf6;
  --muted: #9b95b2;
  --uv: #8f6bff;
  --ice: #6fe3ff;
  --accent: var(--uv);
  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100%;
  background: var(--ink); color: var(--text);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* мягкое свечение цвета текущего релиза */
.aura {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 40vmax at 80% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%),
    radial-gradient(50vmax 40vmax at 0% 70%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font: 500 12px/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in srgb, var(--ink) 74%, transparent); border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.logo { font: 800 18px/1 var(--f-display); letter-spacing: .08em; text-decoration: none; }
.logo b { color: var(--accent); font-weight: 800; transition: color .8s; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: var(--panel); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; font: 600 12px/1 var(--f-mono); }
.lang button { all: unset; cursor: pointer; padding: 6px 10px; border-radius: 999px; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--ink); }
.lang button:focus-visible { outline: 2px solid var(--ice); }
.burger { display: none; }
@media (max-width: 760px) {
  .nav { position: fixed; inset: 60px 0 auto 0; flex-direction: column; gap: 0; background: var(--ink); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px; margin: 0; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 4px; font-size: 18px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .lang { margin-left: auto; }
  .burger { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--text); cursor: pointer; }
}

/* ---------- герой ---------- */
.hero { position: relative; padding-block: clamp(36px, 8vw, 100px) clamp(28px, 5vw, 64px); isolation: isolate; }
.hero > canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
@media (min-width: 1200px) { .wordmark { font-size: 156px; } }
.wordmark { font: 900 clamp(60px, 16vw, 132px)/.84 var(--f-display); letter-spacing: -.04em; margin: 16px 0 0;
  background: linear-gradient(100deg, var(--text) 35%, var(--accent) 70%, var(--ice) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { max-width: 36ch; font-size: clamp(17px, 2vw, 21px); color: var(--muted); margin: 20px 0 0; text-wrap: balance; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .row { margin-top: 26px; }

.feature { all: unset; cursor: pointer; display: block; position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: end;
  box-shadow: 0 40px 120px -40px color-mix(in srgb, var(--accent) 70%, transparent); transition: transform .5s var(--ease); }
@media (max-width: 900px) { .feature { justify-self: start; max-width: 100%; } }
.feature:hover { transform: translateY(-4px) scale(1.01); }
.feature:focus-visible { outline: 2px solid var(--ice); outline-offset: 4px; }
.feature img { width: 100%; height: 100%; object-fit: cover; }
.feature .cap { position: absolute; inset: auto 0 0 0; padding: 60px 20px 18px; display: flex; align-items: end; justify-content: space-between; gap: 12px;
  background: linear-gradient(180deg, transparent, rgba(5, 4, 9, .92)); }
.feature .cap > div { min-width: 0; }
.feature .cap h2 { margin: 6px 0 0; font: 800 clamp(20px, 3vw, 30px)/1.1 var(--f-display); overflow-wrap: anywhere; }
.play-dot { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #0b0a10; transition: transform .3s var(--ease); }
.feature:hover .play-dot { transform: scale(1.08); }
.play-dot svg { width: 22px; height: 22px; margin-left: 3px; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); transition: transform .2s var(--ease), border-color .2s, background .2s; }
.btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #0b0a10; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- секции ---------- */
section { padding-block: clamp(44px, 7vw, 90px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.h2 { font: 800 clamp(30px, 5vw, 56px)/1 var(--f-display); margin: 8px 0 0; letter-spacing: -.02em; text-wrap: balance; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { all: unset; cursor: pointer; font: 600 13px/1 var(--f-mono); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); transition: color .2s, background .2s, border-color .2s; }
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { color: var(--ink); background: var(--text); border-color: var(--text); }
.chip:focus-visible { outline: 2px solid var(--ice); }
.chip small { opacity: .6; margin-left: 4px; font-size: 11px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: clamp(14px, 2vw, 26px); }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 10px; min-width: 0; animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
.card .cover { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--panel); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .cover, .card:focus-visible .cover { transform: translateY(-4px); box-shadow: 0 24px 60px -18px var(--glow); }
.card:hover .cover img { transform: scale(1.04); }
.card:focus-visible .cover { outline: 2px solid var(--ice); outline-offset: 4px; }
.card h3 { font: 700 16px/1.25 var(--f-body); margin: 0; overflow-wrap: anywhere; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 10px; font: 500 11px/1.2 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.badge { position: absolute; top: 10px; left: 10px; font: 600 10px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px;
  background: rgba(7, 6, 11, .72); color: var(--text); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.badge.r { left: auto; right: 10px; }
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
@media (max-width: 560px) { .card h3 { font-size: 14px; } }

/* ---------- о проекте ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.about p { font-size: clamp(18px, 2.1vw, 23px); line-height: 1.5; margin: 22px 0 0; max-width: 36ch; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { border-top: 1px solid var(--line); padding-top: 14px; }
.stat b { display: block; font: 800 clamp(28px, 4vw, 44px)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.stat span { font: 500 11px/1.3 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
footer { padding-block: 28px 40px; color: var(--muted); font: 500 12px/1.5 var(--f-mono); border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- карточка релиза ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 40; background: rgba(5, 4, 9, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .25s; }
.sheet-bg.on { opacity: 1; }
.sheet { position: fixed; z-index: 41; left: 50%; bottom: 0; width: min(760px, 100%); max-height: 94vh; overflow: auto; overscroll-behavior: contain;
  transform: translate(-50%, 100%); transition: transform .38s var(--ease);
  background: var(--panel); border: 1px solid var(--line); border-bottom: 0; border-radius: 24px 24px 0 0;
  padding: 18px 18px calc(24px + env(safe-area-inset-bottom, 0px)); }
.sheet.on { transform: translate(-50%, 0); }
.grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.sheet .head { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.sheet .head img { width: 100%; height: auto; align-self: start; border-radius: 14px; aspect-ratio: 1; object-fit: cover; box-shadow: 0 20px 50px -20px var(--accent); }
.sheet .head > div { min-width: 0; }
.sheet h3 { font: 800 clamp(22px, 4vw, 30px)/1.1 var(--f-display); margin: 6px 0; overflow-wrap: anywhere; }
.x { all: unset; cursor: pointer; align-self: start; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); color: var(--muted); }
.x:hover { color: var(--text); }
.x:focus-visible { outline: 2px solid var(--ice); }
@media (max-width: 520px) { .sheet .head { grid-template-columns: 88px minmax(0, 1fr) auto; gap: 12px; } }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.player { margin-top: 14px; border-radius: 16px; overflow: hidden; background: var(--ink); border: 1px solid var(--line); }
.player .ph { display: grid; gap: 12px; padding: 18px; }
.player .ph p { margin: 0; color: var(--muted); font-size: 14px; }
.player iframe { display: block; width: 100%; border: 0; }
.player iframe.sp { height: 152px; }
.player iframe.yt { aspect-ratio: 16 / 9; height: auto; }
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 8px; margin-top: 14px; }
.links .btn { min-height: 44px; font-size: 14px; }
.links .btn .go { margin-left: auto; opacity: .5; }
.share { margin-top: 14px; }
@media (min-width: 761px) {
  .sheet { bottom: auto; top: 50%; border-radius: 24px; border-bottom: 1px solid var(--line); transform: translate(-50%, -46%) scale(.97); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .25s; }
  .sheet.on { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
  .grab { display: none; }
}
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0;
  background: var(--text); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; transition: all .3s var(--ease); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.hidden-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- CMS: двуязычные тексты, новости, свои блоки, страницы ---------- */
html[lang="uk"] [data-l="en"], html[lang="en"] [data-l="ua"] { display: none !important; }
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(14px, 2vw, 24px); }
.news-card { display: flex; flex-direction: column; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s; min-width: 0; }
.news-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.nc-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel-2); }
.nc-img img { width: 100%; height: 100%; object-fit: cover; }
.nc-body { display: grid; gap: 8px; padding: 18px 20px 20px; }
.nc-body h3 { margin: 0; font: 800 clamp(18px, 2vw, 22px)/1.2 var(--f-display); overflow-wrap: anywhere; }
.nc-body p { margin: 0; color: var(--muted); font-size: 15px; }
.nc-more { font: 600 13px/1 var(--f-mono); color: var(--accent); margin-top: 4px; }
.blk .h2 { margin-bottom: 22px; }
.prose { max-width: 72ch; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.7; overflow-wrap: anywhere; }
.prose.wide { max-width: 960px; }
.prose > div > :first-child, .prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { font-family: var(--f-display); line-height: 1.2; margin: 1.6em 0 .5em; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); } .prose h3 { font-size: clamp(20px, 2.4vw, 24px); } .prose h4 { font-size: 18px; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1em; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose img { border-radius: 16px; margin: 1em 0; height: auto; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.embed { margin: 1.2em 0; border-radius: 16px; overflow: hidden; background: var(--ink); border: 1px solid var(--line); }
.embed iframe { display: block; width: 100%; border: 0; }
.embed.yt iframe { aspect-ratio: 16 / 9; height: auto; }
.embed.sp iframe { height: 352px; }
.page { padding-block: clamp(28px, 6vw, 72px) clamp(48px, 8vw, 100px); }
.page .back { display: inline-block; text-decoration: none; margin-bottom: 26px; }
.page .back:hover { color: var(--text); }
.page .date { margin-bottom: 10px; }
.h1 { font: 900 clamp(34px, 6vw, 72px)/1 var(--f-display); letter-spacing: -.02em; margin: 0 0 28px; text-wrap: balance; overflow-wrap: anywhere; }
.page-cover { width: 100%; max-width: 960px; border-radius: 20px; margin: 0 0 32px; height: auto; }
