/* ==========================================================================
   Тема в духе Grime: чёрный / белый / красный, Oswald, гранжевая текстура
   ========================================================================== */

:root {
  --black: #000;
  --white: #fff;
  --accent: #c81818;
  --muted: #a3a3a3;
  --line: rgba(255, 255, 255, .2);
  --font: "Oswald", "Arial Narrow", sans-serif;
  --header-h: 80px;
  --gutter: 16px;
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 26px;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Фиксированный «бетонный» фон под всеми прозрачными секциями */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    var(--noise),
    radial-gradient(ellipse at 20% 10%, #3a3a3a 0, transparent 55%),
    radial-gradient(ellipse at 85% 70%, #2c2c2c 0, transparent 50%),
    radial-gradient(ellipse at 50% 120%, #222 0, transparent 60%),
    #141414;
}

body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; }

a { color: var(--white); text-decoration: none; transition: color .3s; }
a:hover { color: var(--accent); }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: 2px; }

.wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Прелоадер ---------- */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--black);
  transition: opacity .6s, visibility .6s;
}
#page-loader.is-hidden { opacity: 0; visibility: hidden; }
.spinner {
  width: 46px;
  height: 46px;
  border: 4px solid #333;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Кнопки (hvr-shutter-out-horizontal) ---------- */
.button {
  position: relative;
  display: inline-block;
  padding: 10px 28px;
  border: 2px solid var(--white);
  background: var(--black);
  color: var(--white);
  font: 400 16px/26px var(--font);
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .3s, border-color .3s;
}
.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .3s ease-out;
}
.button:hover,
.button:focus-visible { color: var(--white); border-color: var(--accent); }
.button:hover::before,
.button:focus-visible::before { transform: scaleX(1); }

/* ---------- Шапка ---------- */
#header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background .4s, height .4s;
}
#header.is-small { background: var(--black); height: 64px; }

.header-inner {
  height: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.logo {
  justify-self: start;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
}

.main-nav ul {
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a,
.mobile-menu-inner > ul:first-child a {
  position: relative;
  font-size: 18px;
  font-weight: 800;
}
/* Перечёркивание красной линией при наведении */
.main-nav a::after,
.mobile-menu-inner > ul:first-child a::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -5%;
  width: 0;
  height: 4px;
  background: var(--accent);
  transform: translateY(-50%);
  transition: width .3s ease;
}
.main-nav a:hover,
.mobile-menu-inner a:hover { color: var(--white); }
.main-nav a:hover::after,
.mobile-menu-inner > ul:first-child a:hover::after { width: 110%; }

.socials {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.header-socials { justify-self: end; font-size: 15px; }

/* Бургер */
.burger {
  display: none;
  justify-self: end;
  position: relative;
  width: 30px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  z-index: 120;
}
.burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--white);
  transition: transform .3s, opacity .3s, top .3s;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 9px; }
.burger span:nth-child(3) { top: 18px; }
.nav-open .burger span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* Мобильное меню со «слотами» */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}
#mobile-menu .slots {
  position: absolute;
  inset: 0;
  display: flex;
}
#mobile-menu .slots i {
  flex: 1;
  background: var(--black);
  transform: translateY(-100%);
  transition: transform .5s cubic-bezier(.7, 0, .3, 1);
}
#mobile-menu .slots i:nth-child(2) { transition-delay: .05s; }
#mobile-menu .slots i:nth-child(3) { transition-delay: .1s; }
#mobile-menu .slots i:nth-child(4) { transition-delay: .15s; }
#mobile-menu .slots i:nth-child(5) { transition-delay: .2s; }
#mobile-menu .slots i:nth-child(6) { transition-delay: .25s; }
.mobile-menu-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  transition: opacity .3s;
}
.mobile-menu-inner > ul:first-child {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.mobile-menu-inner > ul:first-child li { margin: 10px 0; }
.mobile-menu-inner > ul:first-child a { font-size: 28px; line-height: 1.4; }
.mobile-menu-inner .socials { font-size: 20px; }

.nav-open #mobile-menu { pointer-events: auto; }
.nav-open #mobile-menu .slots i { transform: translateY(0); }
.nav-open .mobile-menu-inner { opacity: 1; transition-delay: .5s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: -10% 0 0;
  background-size: cover;
  background-position: center 30%;
  will-change: transform;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 60%, transparent 92%);
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    var(--noise),
    linear-gradient(to bottom, rgba(0, 0, 0, .55) 0, rgba(0, 0, 0, .1) 35%, rgba(0, 0, 0, .3) 70%, transparent 100%);
}
.hero-content {
  position: relative;
  padding: 0 var(--gutter) 12vh;
}
.hero-title {
  font-size: clamp(48px, 10vw, 170px);
  line-height: .9;
  letter-spacing: 4px;
  margin-right: -4px;
}
.grunge { filter: url(#grunge); }
.hero-sub {
  margin: 18px 0 28px;
  font-size: clamp(14px, 2vw, 20px);
  letter-spacing: 3px;
}
.scroll-down {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- Секции ---------- */
.section {
  position: relative;
  padding: 80px 0;
  scroll-margin-top: 20px;
}
.section-black { background: var(--black); }

/* Заголовок секции: линия сверху + текст между полосами */
.section-title {
  margin-bottom: 50px;
  text-align: center;
}
.title-line {
  width: 0;
  height: 5px;
  margin: 0 auto 22px;
  background: var(--white);
  transition: width 1s ease .2s;
}
.section-title.is-visible .title-line { width: 60px; }
.section-title h2,
.section-title .h2 {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: 2px;
}
.section-title h2::before,
.section-title h2::after,
.section-title .h2::before,
.section-title .h2::after {
  content: "";
  flex: 1;
  height: 5px;
  border-top: 5px solid var(--accent);
  background: var(--white);
  opacity: .9;
}

/* Сетки */
.grid { display: grid; gap: 30px; }
.two-per-row { grid-template-columns: repeat(2, 1fr); }

/* ---------- Релизы ---------- */
.release-cover {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #111;
}
.release-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}
.release:hover .release-cover img { transform: scale(1.05); }

.release-meta,
.media-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
}
.release-meta h3,
.media-meta h3 {
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: 0;
}
.release-year { color: var(--muted); }

/* ---------- Медиа ---------- */
.media-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #111 center / cover no-repeat;
  overflow: hidden;
}
.media-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  transition: background .3s;
}
.media-thumb:hover::before { background: rgba(0, 0, 0, .6); }
.play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 3px solid var(--white);
  border-radius: 50%;
  font-size: 22px;
  color: var(--white);
  transform: translate(-50%, -50%);
  transition: background .3s, border-color .3s, transform .3s;
}
.play .fa-play { margin-left: 4px; }
.media-thumb:hover .play {
  background: var(--accent);
  border-color: var(--accent);
  transform: translate(-50%, -50%) scale(1.1);
}
.media-link { flex-shrink: 0; color: var(--muted); }
.media-link i { margin-left: 6px; font-size: 13px; }

.empty {
  margin: 0;
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
}

/* ---------- Контакты ---------- */
.contacts-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contacts-list a {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 260px;
  padding: 34px 24px;
  border: 2px solid var(--line);
  transition: border-color .3s, color .3s;
}
.contacts-list a:hover { border-color: var(--accent); }
.contacts-list i { font-size: 40px; margin-bottom: 8px; }
.contacts-list span { font-size: 22px; font-weight: 800; letter-spacing: 2px; }
.contacts-list small { font-size: 16px; color: var(--muted); text-transform: none; }

/* ---------- Страница текстов ---------- */
.page-head { padding-top: calc(var(--header-h) + 60px); min-height: 80vh; }

.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 50px;
}
.filter {
  padding: 6px 20px;
  border: 2px solid var(--line);
  background: none;
  color: var(--white);
  font: 400 16px/26px var(--font);
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: border-color .3s;
}
.filter span { color: var(--muted); margin-left: 4px; }
.filter:hover { border-color: var(--white); }
.filter.is-active { border-color: var(--accent); background: var(--accent); }
.filter.is-active span { color: var(--white); }

.text-list { max-width: 760px; margin: 0 auto; }
.text-item {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.text-item:last-child { border-bottom: 1px solid var(--line); }
.text-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 24px;
}
.text-head h1,
.text-head h2 { font-size: 30px; line-height: 1.2; letter-spacing: 1px; }
.text-meta { color: var(--muted); }
.lyrics {
  white-space: pre-line;
  text-transform: none;
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: .3px;
}
.text-media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.text-item > .button { margin-top: 28px; }

.main-nav a[aria-current="page"]::after,
.mobile-menu-inner a[aria-current="page"]::after { width: 110%; }

.more { margin: 40px 0 0; text-align: center; }

/* Список текстов */
.text-index {
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.text-index li { border-top: 1px solid var(--line); }
.text-index li:last-child { border-bottom: 1px solid var(--line); }
.text-index a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding: 16px 0;
}
.text-index-title { font-size: 20px; font-weight: 800; letter-spacing: 1px; }
.text-index a:hover .text-meta { color: var(--white); }

/* Страница стиха */
.text-page { max-width: 792px; }
.text-page .text-item { border-top: 0; padding-top: 10px; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--muted); }
.back-link i { margin-right: 6px; font-size: 13px; }
.text-albums { margin: -12px 0 24px; color: var(--muted); }
.text-page .empty { text-align: left; }

/* ---------- Страница альбома ---------- */
.album-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 50px;
  align-items: start;
}
.album-cover {
  aspect-ratio: 1;
  background: #111;
}
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-kicker { color: var(--muted); letter-spacing: 2px; }
.album-title {
  margin: 6px 0 20px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
}
.album-description {
  margin-bottom: 28px;
  text-transform: none;
  font-size: 17px;
  line-height: 1.7;
}
.stream-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}
.stream-links .button { padding: 8px 18px; font-size: 15px; }
.stream-links i { margin-right: 6px; }

.tracklist {
  margin: 0;
  padding: 0;
  list-style: none;
}
.tracklist li { border-top: 1px solid var(--line); }
.tracklist li:last-child { border-bottom: 1px solid var(--line); }
.tracklist a {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
}
.track-no { color: var(--muted); }
.track-title { font-size: 18px; }
.track-text { color: var(--muted); font-size: 14px; }
.tracklist a:hover .track-text { color: var(--accent); }

/* ---------- Футер ---------- */
footer {
  background: var(--black);
  padding: 22px var(--gutter);
  text-align: center;
  font-size: 12px;
}
footer ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
footer li { padding: 0 12px; }
footer li:not(:last-child) { border-right: 1px solid var(--white); }

/* ---------- Лайтбокс ---------- */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 60px var(--gutter);
  background: rgba(0, 0, 0, .94);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
#lightbox.is-open { opacity: 1; visibility: visible; }
.lb-content { width: 100%; max-width: 1100px; }
.lb-content img {
  max-height: calc(100vh - 120px);
  margin: 0 auto;
}
.lb-content iframe,
.lb-content video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}
#lightbox button {
  position: absolute;
  border: 0;
  background: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  transition: color .3s;
}
#lightbox button:hover { color: var(--accent); }
.lb-close { top: 14px; right: 20px; font-size: 44px !important; line-height: 1; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-content video { max-height: calc(100vh - 120px); background: #000; }
#lightbox.is-single .lb-prev,
#lightbox.is-single .lb-next { display: none; }

/* ---------- Анимация появления ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-down { animation: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .header-socials { display: none; }
  .header-inner { grid-template-columns: auto 1fr; }
  .main-nav { justify-self: end; }
}

@media (max-width: 860px) {
  .album-layout { grid-template-columns: 1fr; gap: 30px; }
  .album-cover { max-width: 480px; }
  .main-nav { display: none; }
  .burger { display: block; }
  .header-inner { grid-template-columns: 1fr auto; padding: 0 var(--gutter); }
}

@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .two-per-row { grid-template-columns: 1fr; }
  .release-meta h3,
  .media-meta h3 { font-size: 22px; }
  .section-title h2,
  .section-title .h2 { gap: 14px; }
  .contacts-list a { min-width: 0; width: 100%; }
  .contacts-list li { flex: 1 1 100%; }
  .page-head { padding-top: calc(var(--header-h) + 30px); }
  .text-head h2 { font-size: 24px; }
  .lyrics { font-size: 17px; }
  .text-media { grid-template-columns: 1fr; }
  .text-head h1 { font-size: 24px; }
  .text-index-title { font-size: 18px; }
  .track-title { font-size: 16px; }
}
