/* Pervanal — shared styles for every page.
   Palette: black + burnt orange #bb3e03, crimson #ae2012, deep blue #023e8a. */

/* --- Font: Oswald (SIL OFL 1.1, see fonts/OFL.txt), self-hosted --------- */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url(fonts/oswald-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url(fonts/oswald-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url(fonts/oswald-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url(fonts/oswald-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #000;
  --fg: #f3eee8;
  --muted: #a49e97;
  --faint: #77716b;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.32);
  --panel: rgba(6, 4, 4, 0.66);
  --orange: #bb3e03;
  --red: #ae2012;
  --blue: #023e8a;
  --accent: #ee6a24;       /* the orange, lifted for small text on black */
  --blue-hi: #4a86e8;      /* the blue, lifted for focus rings and small text */
  --fire: linear-gradient(100deg, #ff8a3d 0%, #bb3e03 45%, #ae2012 100%);
  --header-h: 64px;
  --page: min(100% - 40px, 1200px);
  --font: 'Oswald', 'Arial Narrow', 'Roboto Condensed', sans-serif;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { flex: 1 0 auto; position: relative; z-index: 1; }
a { color: inherit; }
img, svg, iframe { max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 600; line-height: 1.1; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; }

/* Bilingual markup: both languages are in the HTML, CSS shows one */
html[lang="en"] .l-ru,
html:not([lang="en"]) .l-en { display: none !important; }

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 8px 14px;
  background: var(--fg);
  color: #000;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* --- Animated background (see backdrop.js) ----------------------------- */
.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  pointer-events: none;
  /* static fallback when there is no WebGL */
  background:
    radial-gradient(42% 55% at 4% 72%, rgba(174, 32, 18, 0.32), transparent 70%),
    radial-gradient(38% 42% at 24% 104%, rgba(187, 62, 3, 0.3), transparent 70%),
    radial-gradient(42% 55% at 97% 30%, rgba(2, 62, 138, 0.42), transparent 70%),
    #000;
}
.backdrop canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* Film grain */
.backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.6 -0.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.07;
}
/* Vignette */
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(120% 95% at 50% 42%, transparent 45%, rgba(0, 0, 0, 0.72) 100%);
}

/* --- Header and menu ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(100% - 32px, 1320px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo { flex: none; display: block; line-height: 0; border-radius: 4px; }
.logo img { display: block; width: auto; height: 28px; }

.nav { margin-left: auto; }
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-link { display: block; padding: 4px 1px; border-radius: 8px; }

/* The menu items are the hand-drawn SVGs, used as masks so CSS can colour them */
.nav-ico {
  display: block;
  height: 32px;
  aspect-ratio: 3 / 2;
  background: var(--fg);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition: transform 0.2s ease;
}
.nav-link:hover .nav-ico,
.nav-link:focus-visible .nav-ico { background: var(--fire); transform: translateY(-2px); }
.nav-link[aria-current] .nav-ico,
.nav-link.is-active .nav-ico { background: linear-gradient(100deg, #7fb0ff, var(--blue-hi)); }

.nav-ico--intro { -webkit-mask-image: url(../images/ru/intro.svg); mask-image: url(../images/ru/intro.svg); }
.nav-ico--music { -webkit-mask-image: url(../images/ru/music.svg); mask-image: url(../images/ru/music.svg); }
.nav-ico--video { -webkit-mask-image: url(../images/ru/video.svg); mask-image: url(../images/ru/video.svg); }
.nav-ico--photo { -webkit-mask-image: url(../images/ru/photo.svg); mask-image: url(../images/ru/photo.svg); }
.nav-ico--concerts { -webkit-mask-image: url(../images/ru/concerts.svg); mask-image: url(../images/ru/concerts.svg); }
.nav-ico--contacts { -webkit-mask-image: url(../images/ru/contacts.svg); mask-image: url(../images/ru/contacts.svg); }
.nav-ico--lyrics { -webkit-mask-image: url(../images/ru/lyrics.svg); mask-image: url(../images/ru/lyrics.svg); }
.nav-ico--files { -webkit-mask-image: url(../images/ru/files.svg); mask-image: url(../images/ru/files.svg); }
.nav-ico--reg { -webkit-mask-image: url(../images/ru/reg.svg); mask-image: url(../images/ru/reg.svg); }
.nav-ico--menu { -webkit-mask-image: url(../images/ru/menu.svg); mask-image: url(../images/ru/menu.svg); }
html[lang="en"] .nav-ico--intro { -webkit-mask-image: url(../images/en/intro.svg); mask-image: url(../images/en/intro.svg); }
html[lang="en"] .nav-ico--music { -webkit-mask-image: url(../images/en/music.svg); mask-image: url(../images/en/music.svg); }
html[lang="en"] .nav-ico--video { -webkit-mask-image: url(../images/en/video.svg); mask-image: url(../images/en/video.svg); }
html[lang="en"] .nav-ico--photo { -webkit-mask-image: url(../images/en/photo.svg); mask-image: url(../images/en/photo.svg); }
html[lang="en"] .nav-ico--concerts { -webkit-mask-image: url(../images/en/concerts.svg); mask-image: url(../images/en/concerts.svg); }
html[lang="en"] .nav-ico--contacts { -webkit-mask-image: url(../images/en/contacts.svg); mask-image: url(../images/en/contacts.svg); }
html[lang="en"] .nav-ico--lyrics { -webkit-mask-image: url(../images/en/lyrics.svg); mask-image: url(../images/en/lyrics.svg); }
html[lang="en"] .nav-ico--files { -webkit-mask-image: url(../images/en/files.svg); mask-image: url(../images/en/files.svg); }
html[lang="en"] .nav-ico--reg { -webkit-mask-image: url(../images/en/reg.svg); mask-image: url(../images/en/reg.svg); }

.lang {
  flex: none;
  display: flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang button {
  padding: 3px 10px 4px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lang button:hover { color: var(--fg); }
.lang button[aria-pressed="true"] { background: var(--fg); color: #000; }

/* The burger (also hand-drawn) only exists on narrow screens */
.nav-toggle {
  display: none;
  flex: none;
  padding: 4px 2px;
  border: 0;
  border-radius: 8px;
  background: none;
  cursor: pointer;
}
.nav-toggle .nav-ico { height: 34px; }
.nav-toggle[aria-expanded="true"] .nav-ico { background: var(--fire); }

@media (max-width: 1180px) {
  .nav-list { gap: 7px; }
  .nav-ico { height: 28px; }
}

@media (max-width: 1023px) {
  /* Without JavaScript the burger cannot work: show the items under the header */
  html:not(.js) .site-header { position: relative; height: auto; }
  html:not(.js) .lang { display: none; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding: 12px 0; }
  html:not(.js) .nav { position: static; order: 3; width: 100%; max-height: none; padding: 6px 0 0; background: none; border: 0; opacity: 1; visibility: visible; transform: none; }
  html:not(.js) .nav-ico { height: 34px; }
  .js .nav-toggle { display: block; }
  .lang { margin-left: auto; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 16px 26px;
    background: rgba(0, 0, 0, 0.94);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    gap: 10px 16px;
    max-width: 440px;
    margin: 0 auto;
  }
  .nav-link { padding: 6px 12px; }
  .nav-ico { height: 46px; }
}

/* --- Common building blocks -------------------------------------------- */
.page {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 7vw, 88px);
}

.section {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 84px) 0;
}

.section-title,
.page-title {
  margin: 0 0 28px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(32px, 5vw, 56px);
  color: #ff7d3a;
  background: linear-gradient(90deg, #ff8a3d, var(--orange) 25%, var(--red) 50%, var(--orange) 75%, #ff8a3d) 0 0 / 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fire-flow 12s linear infinite;
}
@keyframes fire-flow { to { background-position: -200% 0; } }

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

.label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.card {
  padding: clamp(18px, 3vw, 28px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
}

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

.btn {
  min-width: 64px;
  height: 36px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--fg);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:hover,
.btn:focus-visible { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-lyrics:hover,
.btn-lyrics:focus-visible { background: var(--blue); border-color: #2a62b8; }
.btn[aria-disabled="true"] { opacity: 0.35; pointer-events: none; }
.btn .arrow { font-size: 1.15em; letter-spacing: 0; }

.text-link { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: color 0.2s, border-color 0.2s; }
.text-link:hover { color: var(--accent); border-color: currentColor; }

/* --- Release list (home page) ------------------------------------------ */
.release-list { text-align: center; }
.release-group { display: flex; flex-direction: column; align-items: center; }
.release-group + .release-group { margin-top: clamp(16px, 2.4vw, 26px); }
.release-year {
  display: block;
  margin: 0 0 2px;
  padding-left: 0.32em;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.32em;
}
.release-link {
  display: inline-block;
  max-width: 100%;
  padding: 0 6px;
  color: var(--fg);
  font-size: clamp(28px, 5.4vw, 60px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s ease, transform 0.2s ease;
}
.release-link:hover,
.release-link:focus-visible {
  color: #ff7d3a;
  background: linear-gradient(90deg, #ff9a52, var(--orange) 30%, var(--red) 55%, var(--orange) 80%, #ff9a52) 0 0 / 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fire-flow 2.6s linear infinite;
}
.release-sep {
  width: min(320px, 60%);
  height: 1px;
  margin: 34px auto 26px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

/* --- Release page ------------------------------------------------------- */
.release-head { margin-bottom: clamp(24px, 4vw, 40px); }
.release-title {
  margin: 0;
  font-size: clamp(42px, 8.4vw, 108px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.release-layout {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.release-media { container-type: inline-size; }
.bc-player {
  display: block;
  width: 100%;
  height: 520px;
  height: calc(100cqw + 120px);
  border: 0;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
}
.release-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.tracklist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-strong);
}
.tracks { list-style: none; margin: 0; padding: 0; }
.track {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.track-n {
  color: var(--faint);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.track-title {
  font-size: clamp(17px, 1.9vw, 22px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.track-extra { color: var(--muted); font-size: 0.78em; font-weight: 400; text-transform: none; letter-spacing: 0.02em; }
.track-time { color: var(--faint); font-size: 14px; font-variant-numeric: tabular-nums; }
.track-actions { display: flex; justify-content: flex-end; gap: 6px; }

.download-all { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }

.listen { margin-top: clamp(44px, 6vw, 72px); }
.listen .label { margin-bottom: 14px; }
.services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.service {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 78px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.service:hover,
.service:focus-visible { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.06); transform: translateY(-2px); }
.service img { display: block; width: auto; max-width: 100%; height: auto; max-height: 50px; }
.service-text { font-size: 18px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }

.release-pager {
  margin-top: clamp(44px, 6vw, 72px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 16px;
}
.release-pager a { text-decoration: none; color: var(--fg); }
.release-pager .label { display: block; margin-bottom: 4px; }
.pager-title { display: block; font-size: clamp(16px, 2vw, 22px); font-weight: 500; text-transform: uppercase; line-height: 1.15; transition: color 0.2s; }
.release-pager a:hover .pager-title { color: var(--accent); }
.pager-next { text-align: right; }
.pager-all { align-self: center; }

/* --- Singles page ------------------------------------------------------- */
.singles { display: grid; gap: clamp(28px, 4vw, 44px); }
.single {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(20px, 3.5vw, 44px);
  align-items: start;
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.single:first-child { padding-top: 0; border-top: 0; }
.single-title {
  margin: 0 0 14px;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.single .services { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-top: 18px; }
.single .service { height: 58px; padding: 8px 12px; }
.single .service img { max-height: 38px; }

.single-media { container-type: inline-size; }

/* --- Lyrics and MP3 indexes --------------------------------------------- */
.page-lede { max-width: 720px; margin: -10px auto 32px; text-align: center; color: var(--muted); }
.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr));
  gap: 22px;
  align-items: start;
}
.index-album {
  padding: 18px 20px 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.index-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.index-title { margin: 0 0 6px; font-size: clamp(22px, 2.6vw, 28px); text-transform: uppercase; }
.index-title a { color: var(--fg); text-decoration: none; transition: color 0.2s; }
.index-title a:hover { color: var(--accent); }
.index-year { color: var(--faint); font-size: 0.62em; font-weight: 500; letter-spacing: 0.14em; vertical-align: middle; }
.index-folder { flex: none; }
.track--compact { grid-template-columns: 30px minmax(0, 1fr) auto; min-height: 52px; }
.track--compact:last-child { border-bottom: 0; }
.track--compact .track-title { font-size: 17px; }

/* --- Home page ---------------------------------------------------------- */
.hero {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(56px, 10vw, 120px) 0 clamp(40px, 6vw, 72px);
  text-align: center;
}
.hero-title { margin: 0; line-height: 0; }
.hero-title img {
  width: min(760px, 88%);
  height: auto;
  filter: drop-shadow(0 10px 50px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 46px rgba(187, 62, 3, 0.45)) drop-shadow(0 0 70px rgba(2, 62, 138, 0.4));
}
.hero-tagline {
  margin: clamp(14px, 2.4vw, 24px) 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}
.stream-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: clamp(36px, 6vw, 64px);
  padding: clamp(12px, 2vw, 18px);
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.stream-grid .service { height: clamp(78px, 9vw, 112px); }
.stream-grid .service img { max-height: 76%; }

.music-card .card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 14px;
  margin: 0 0 18px;
  text-align: center;
}
.music-card .card-head h3 { margin: 0; font-size: clamp(20px, 2.4vw, 26px); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.music-card .card-head .sep { color: var(--faint); }
.music-card .card-head a { color: var(--accent); text-decoration: none; font-size: clamp(20px, 2.4vw, 26px); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.music-card .card-head a:hover { color: var(--fg); }

.widgets { display: grid; gap: 12px; margin-top: 16px; }
.widget { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.widget summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}
.widget summary::-webkit-details-marker { display: none; }
.widget summary::after { content: "+"; color: var(--muted); font-size: 22px; line-height: 1; }
.widget[open] summary::after { content: "−"; }
.widget summary:hover { color: var(--accent); }
.widget-body { padding: 0 20px 20px; }
.widget iframe { display: block; width: 100%; border: 0; border-radius: 12px; }

.videos { display: grid; gap: 18px; }
.video {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #050303;
}
.video iframe { display: block; width: 100%; height: 100%; border: 0; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.gallery a { display: block; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); }
.gallery img { display: block; width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.4s ease; }
.gallery a:hover img { transform: scale(1.04); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.88); }
.lightbox-wrap { position: relative; }
.lightbox-img { display: block; max-width: min(94vw, 1400px); max-height: 90vh; border-radius: 12px; }
.lightbox-btn {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: var(--fg);
  font-size: 20px;
  cursor: pointer;
}
.lightbox-btn:hover { background: var(--orange); border-color: var(--orange); }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
.lightbox-close { top: 8px; right: 8px; transform: none; }

.two-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; align-items: start; }
.card h3 { margin: 0 0 14px; font-size: 20px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.gigs { list-style: none; margin: 0; padding: 0; font-variant-numeric: tabular-nums; }
.gigs li { display: grid; grid-template-columns: 104px 24px 1fr; padding: 5px 0; border-bottom: 1px solid var(--line); }
.gigs li:last-child { border-bottom: 0; }
.gigs .date { color: var(--muted); }
.gigs .dash { color: var(--faint); }
.gigs-empty { color: var(--faint); font-size: 28px; text-align: center; }

.contacts { max-width: 760px; margin: 0 auto; font-size: 19px; }
.contacts p { margin: 0 0 10px; }
.contacts p:last-child { margin-bottom: 0; }
.contacts strong { color: var(--muted); font-weight: 500; letter-spacing: 0.04em; }
.contacts a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: color 0.2s, border-color 0.2s; }
.contacts a:hover { color: var(--accent); border-color: currentColor; }

/* --- Files page --------------------------------------------------------- */
.files { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.files-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--fg);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.files-link:hover { border-color: var(--orange); color: var(--accent); }
.file-list { list-style: none; margin: 0; padding: 0; columns: 2 260px; column-gap: 28px; }
.file-list li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--line); }
.file-list a { color: var(--fg); text-decoration: none; transition: color 0.2s; }
.file-list a:hover { color: var(--accent); }

/* --- 404 ---------------------------------------------------------------- */
.not-found { display: grid; place-items: center; gap: 24px; padding: 40px 0 64px; text-align: center; }
.not-found img { width: min(520px, 80vw); height: auto; }

/* --- Lyrics dialog ------------------------------------------------------ */
.lyrics-dialog {
  width: min(760px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(8, 5, 5, 0.94);
  color: var(--fg);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}
.lyrics-dialog::backdrop { background: rgba(0, 0, 0, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lyrics-dialog[open] { display: flex; flex-direction: column; }
.lyrics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 16px 24px;
  border-bottom: 1px solid var(--line);
}
.lyrics-title { margin: 0; font-size: clamp(22px, 3.4vw, 34px); text-transform: uppercase; overflow-wrap: anywhere; }
.lyrics-close {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: none;
  color: var(--fg);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s, border-color 0.18s;
}
.lyrics-close:hover,
.lyrics-close:focus-visible { background: var(--orange); border-color: var(--orange); }
.lyrics-body {
  margin: 0;
  padding: 22px 24px 30px;
  overflow: auto;
  overscroll-behavior: contain;
  white-space: pre-wrap;
  font: inherit;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 300;
  line-height: 1.62;
}
.lyrics-note { display: none; margin: 0; padding: 12px 24px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.lyrics-dialog.is-translit .lyrics-note { display: block; }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 28px 16px 30px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.72);
  text-align: center;
}
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 0 0 12px; padding: 0; list-style: none; }
.socials a { color: var(--fg); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; transition: color 0.2s; }
.socials a:hover { color: var(--accent); }
.copyright { margin: 0; color: var(--muted); font-size: 14px; letter-spacing: 0.04em; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 860px) {
  .release-layout,
  .single { grid-template-columns: minmax(0, 1fr); }
  .release-media { max-width: 440px; width: 100%; justify-self: center; }
  .single-media { max-width: 360px; width: 100%; justify-self: center; }
  .stream-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root { --page: min(100% - 32px, 1200px); --header-h: 58px; }
  body { font-size: 17px; }
  .logo img { height: 22px; }
  .track { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; min-height: 56px; }
  .track-time { display: none; }
  .track-actions { gap: 5px; }
  .btn { min-width: 50px; height: 34px; padding: 0 9px; font-size: 11px; letter-spacing: 0.12em; }
  .release-pager { grid-template-columns: 1fr 1fr; }
  .pager-all { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .stream-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 18px; }
  .gigs li { grid-template-columns: 92px 20px 1fr; }
  .index-album { padding: 14px 14px 4px; }
  .track--compact { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .lyrics-dialog {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
}

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