/* ═══════════════════════════════════════════════════════
   style.css — Coldheartssound
   Структура:
     1. Переменные & Reset
     2. Глобальные стили
     3. Header & Nav
     4. Hero
     5. Общие компоненты (section, container, grid, view-all)
     6. Альбомные карточки (Music)
     7. Карточки статей (Articles)
     8. Footer
     9. Музыкальный плеер (отдельный виджет)
════════════════════════════════════════════════════════ */


/* ───────────────────────────────────────
   1. ПЕРЕМЕННЫЕ & RESET
─────────────────────────────────────── */
:root {
  --header-height: 64px;

  /* Музыкальный плеер */
  --player-primary:   #6c89c6;
  --player-secondary: #999;
  --player-text:      #2a2a2a;
  --player-bg:        #f9f9f9;
  --player-hover:     #e0e0e0;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* ───────────────────────────────────────
   2. ГЛОБАЛЬНЫЕ СТИЛИ
─────────────────────────────────────── */
body {
  font-family: 'Jost', sans-serif;
  background: #000;
  color: #fff;
  /* БАГ-ФИХ: overflow: clip вместо hidden — на iOS Safari overflow:hidden
     на body отключает нативную оптимизацию скролла и вызывает рывки */
  overflow-x: clip;
  min-height: 100vh;
  padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ol, ul { list-style: none; padding-left: 0; }

/* БАГ-ФИХ: убираем синюю подсветку при тапе на всех кнопках глобально */
button {
  -webkit-tap-highlight-color: transparent;
}


/* ───────────────────────────────────────
   3. HEADER & NAV
─────────────────────────────────────── */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  padding: 0 5%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

/* Бургер */
.burger-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.burger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  position: absolute;
  left: 0;
  transform-origin: center;
  transition: all 0.3s ease;
}

.burger-menu span:nth-child(1) { top: 0; }
.burger-menu span:nth-child(2) { top: 9px; }
.burger-menu span:nth-child(3) { top: 18px; }

/* Анимация → крестик */
.burger-menu.active span:nth-child(1) { transform: rotate(45deg)  translate(5px, 5px);  }
.burger-menu.active span:nth-child(2) { opacity: 0; }
.burger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* Полноэкранное меню */
.fullscreen-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 999;
}

.fullscreen-nav.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.fullscreen-nav ul {
  text-align: center;
}

.fullscreen-nav li {
  margin: 30px 0;
}

.fullscreen-nav a {
  font-family: 'Jost', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  transition: color 0.3s;
}

.fullscreen-nav a:hover {
  color: pink;
}


/* ───────────────────────────────────────
   4. HERO
─────────────────────────────────────── */
.mz-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000000;
  color: #eaeaea;
  isolation: isolate;
}

.mz-hero__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.1;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 8;
  animation: mz-grain-shift 0.4s steps(2) infinite;
  /* БАГ-ФИХ: переводим анимацию на отдельный GPU слой, чтобы
     постоянные transform-изменения не блокировали скролл */
  will-change: transform;
}
@keyframes mz-grain-shift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-2%, 1%); }
}

.mz-hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, transparent 20%, rgba(0, 0, 0, 0.92) 100%);
  pointer-events: none;
  z-index: 3;
}

.mz-flash {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.mz-flash__white {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  animation: mz-strike-white 18s infinite;
}

.mz-flash__verse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88%;
  max-width: 640px;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: clamp(0.95rem, 2.4vw, 1.35rem);
  letter-spacing: 0.06em;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.5), 0 0 34px rgba(0, 0, 0, 0.95);
  opacity: 0;
  animation: mz-strike-verse 18s infinite;
}

@keyframes mz-strike-white {
  0%, 71.8% { opacity: 0; }
  72% { opacity: 0.9; }
  72.3% { opacity: 0.05; }
  72.6% { opacity: 0.75; }
  73% { opacity: 0.05; }
  73.3% { opacity: 0.4; }
  73.6%, 100% { opacity: 0; }
}
@keyframes mz-strike-verse {
  0%, 72.8% { opacity: 0; }
  74% { opacity: 1; }
  95% { opacity: 1; }
  96.5%, 100% { opacity: 0; }
}

.mz-hero__content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  max-width: 100%;
  animation: mz-content-hide 18s infinite;
}

@keyframes mz-content-hide {
  0%, 71.6% { opacity: 1; visibility: visible; }
  72.3% { opacity: 0; visibility: hidden; }
  95.7% { opacity: 0; visibility: hidden; }
  97%, 100% { opacity: 1; visibility: visible; }
}

.mz-hero__title {
  position: relative;
  font-family: 'UnifrakturMaguntia', serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 13vw, 9rem);
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0;
  color: #f2f0ec;
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.15),
    0 0 60px rgba(255, 255, 255, 0.1);
}

.mz-hero__title::before,
.mz-hero__title::after {
  content: 'meyzinger';
  position: absolute;
  inset: 0;
  opacity: 0.55;
  clip-path: inset(0 0 0 0);
}
.mz-hero__title::before {
  color: #d8d8d8;
  animation: mz-glitch-1 6s infinite linear;
  mix-blend-mode: screen;
}
.mz-hero__title::after {
  color: #9fd8ff;
  animation: mz-glitch-2 6s infinite linear;
  mix-blend-mode: screen;
}

@keyframes mz-glitch-1 {
  0%, 92%, 100% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  93% { opacity: 0.7; transform: translate(-3px, 1px); clip-path: inset(10% 0 60% 0); }
  95% { opacity: 0.5; transform: translate(2px, -1px); clip-path: inset(60% 0 5% 0); }
  97% { opacity: 0; transform: translate(0, 0); }
}
@keyframes mz-glitch-2 {
  0%, 90%, 100% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  91% { opacity: 0.6; transform: translate(3px, -1px); clip-path: inset(30% 0 40% 0); }
  94% { opacity: 0.45; transform: translate(-2px, 1px); clip-path: inset(70% 0 10% 0); }
  96% { opacity: 0; transform: translate(0, 0); }
}

.mz-hero__sub {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin: 28px 0 0;
}
.mz-hero__sub b {
  color: #d8d8d8;
  font-weight: 600;
}

@media (max-width: 640px) {
  .mz-hero__content { padding: 0 16px; }
  .mz-hero__title { font-size: clamp(2.2rem, 16vw, 4.5rem); }
  .mz-hero__sub { font-size: 10px; letter-spacing: 0.2em; margin-top: 20px; }
  .mz-flash__verse { width: 92%; font-size: clamp(0.85rem, 4.2vw, 1.05rem); letter-spacing: 0.03em; }
}

@media (max-width: 380px) {
  .mz-hero__sub { letter-spacing: 0.12em; }
}

/* ───────────────────────────────────────
   5. ОБЩИЕ КОМПОНЕНТЫ
   (используются в Music и Articles)
─────────────────────────────────────── */

/* Секция */
.section {
  width: 100%;
  padding: 64px 0 80px;
}

/* Контейнер */
.container {
  width: 88%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) { .container { width: 95%; } }
@media (max-width: 480px) { .container { width: 100%; padding: 0 20px; } }

/* Шапка секции */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 20px;
  margin-bottom: 36px;
  border-bottom: 1px solid #222;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
}

/* Кнопка View All (десктоп) */
.view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #666;
  white-space: nowrap;
  flex-shrink: 0;
  padding-bottom: 4px;
  transition: color 0.2s;
}
.view-all:hover         { color: #fff; }
.view-all svg           { transition: transform 0.2s; }
.view-all:hover svg     { transform: translateX(3px); }

/* Кнопка View All (мобайл) */
.view-all-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 32px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #666;
  transition: color 0.2s;
}
.view-all-mobile:hover         { color: #fff; }
.view-all-mobile svg           { transition: transform 0.2s; }
.view-all-mobile:hover svg     { transform: translateX(3px); }

/* Сетка: 3 колонки → 2 → 1 */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .grid               { grid-template-columns: repeat(2, 1fr); }
  .view-all           { display: none; }
  .view-all-mobile    { display: flex; }
}

@media (max-width: 480px) {
  .grid               { grid-template-columns: 1fr; gap: 15px; }
  .section            { padding: 48px 0 60px; }
  .section-title      { font-size: 28px; }
}


/* ───────────────────────────────────────
   6. АЛЬБОМНЫЕ КАРТОЧКИ (Music)
─────────────────────────────────────── */
.album-card {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #111;
  cursor: pointer;
  width: 100%;
  border: none;
  padding: 0;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

/* БАГ-ФИХ: убираем синий outline при тапе/клике мышью,
   оставляем только для клавиатурной навигации (:focus-visible) */
.album-card:focus {
  outline: none;
}
.album-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.album-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transform: scale(1.03);
  transition: filter 0.55s ease, transform 0.55s ease;
}

.album-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.09);
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.album-card:hover .overlay {
  opacity: 1;
}

.album-info h3 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 4px;
  color: #fff;
}

.album-info p {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #aaa;
}

@media (max-width: 480px) {
  .album-info h3 { font-size: 16px; }
  .overlay       { padding: 16px; opacity: 1; }
}


/* ───────────────────────────────────────
   7. КАРТОЧКИ СТАТЕЙ (Articles)
─────────────────────────────────────── */
.card {
  display: flex;
  flex-direction: column;
  background: #0c0c0c;
  border: 1px solid #1c1c1c;
  overflow: hidden;
  height: 100%;
  transition: border-color 0.3s;
}
.card:hover { border-color: #3a3a3a; }

/* Картинка */
.card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  flex-shrink: 0;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(100%);
  transform: scale(1.03);
  transition: filter 0.55s ease, transform 0.55s ease;
}

.card:hover .card-img-wrap img {
  filter: grayscale(0%);
  transform: scale(1.09);
}

.card-img-fade {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7));
  pointer-events: none;
}

.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  color: #000;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 8px;
  line-height: 1;
}

/* Тело карточки */
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 24px;
  border-top: 1px solid #1c1c1c;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 12px;
}

.card-meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #444;
  flex-shrink: 0;
}

.card-title {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 10px;
}

.card-excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.65;
  color: #666;
  flex: 1;
  margin-bottom: 22px;
}

/* Кнопка Read Article */
.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  border: 1px solid #fff;
  color: #fff;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.card-btn:hover           { background: #fff; color: #000; }
.card-btn:focus-visible   { outline: 2px solid #fff; outline-offset: 3px; }
.card-btn:focus           { outline: none; }
.card-btn svg             { flex-shrink: 0; transition: transform 0.2s; }
.card-btn:hover svg       { transform: translateX(3px); }

@media (max-width: 480px) {
  .card-body { padding: 16px 18px 20px; }
}

/* ───────────────────────────────────────
   7A. МОДАЛЬНОЕ ОКНО СТАТЬИ (Article Modal)
─────────────────────────────────────── */
.article-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 40px 20px;
}

.article-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.article-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
}

.article-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 86vh;
  overflow-y: auto;
  background: #0c0c0c;
  border: 1px solid #1c1c1c;
  transform: translateY(24px) scale(0.98);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.article-modal.active .article-modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Скроллбар в стиле сайта */
.article-modal-panel::-webkit-scrollbar { width: 6px; }
.article-modal-panel::-webkit-scrollbar-track { background: #0c0c0c; }
.article-modal-panel::-webkit-scrollbar-thumb { background: #2a2a2a; }

.article-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  /* БАГ-ФИХ: убираем синюю подсветку при тапе на iOS */
  -webkit-tap-highlight-color: transparent;
}
.article-modal-close:hover        { background: #fff; color: #000; border-color: #fff; transform: rotate(90deg); }
/* БАГ-ФИХ: убираем outline при focus (тап/клик), оставляем только для клавиатуры */
.article-modal-close:focus        { outline: none; }
.article-modal-close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.article-modal-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.article-modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.article-modal-body {
  padding: 28px 32px 40px;
  border-top: 1px solid #1c1c1c;
}

.article-modal-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 12px 0 22px;
}

.article-modal-content {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: #999;
}

.article-modal-content p { margin-bottom: 18px; }
.article-modal-content p:last-child { margin-bottom: 0; }

@media (max-width: 480px) {
  .article-modal          { padding: 0; }
  .article-modal-panel    { max-height: 100vh; height: 100%; border: none; }
  .article-modal-body     { padding: 24px 20px 32px; }
}


/* ───────────────────────────────────────
   7B. МОДАЛЬНОЕ ОКНО «COMING SOON» (Album Modal)
─────────────────────────────────────── */

/* Панель — чуть уже, без скролла */
.album-coming-panel {
  max-width: 480px;
  overflow: hidden; /* контент не скроллится — он компактный */
}

/* Обложка альбома — квадратная */
.album-coming-cover-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  width: 100%;
  flex-shrink: 0;
}

.album-coming-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(40%);
  transform: scale(1.04);
  transition: filter 0.6s ease, transform 0.6s ease;
}

.article-modal.active .album-coming-cover-wrap img {
  filter: grayscale(0%);
  transform: scale(1);
}

/* Градиент поверх обложки */
.album-coming-cover-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(12, 12, 12, 0.72) 100%
  );
  pointer-events: none;
}

/* Тег Coming Soon — поверх обложки */
.album-coming-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #fff;
  color: #000;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 5px 10px;
  line-height: 1;
  z-index: 2;
}

/* Тело модалки */
.album-coming-body {
  padding: 26px 32px 36px;
  border-top: 1px solid #1c1c1c;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Заголовок (название альбома) */
.album-coming-title {
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 8px;
  color: #fff;
}

/* Имя артиста */
.album-coming-artist {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 0;
}

/* Разделитель */
.album-coming-divider {
  width: 40px;
  height: 1px;
  background: #222;
  margin: 24px auto;
  flex-shrink: 0;
}

/* Блок сообщения */
.album-coming-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 360px;
}

/* Иконка песочных часов */
.album-coming-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #222;
  color: #555;
  flex-shrink: 0;
  transition: border-color 0.3s, color 0.3s;
}

.article-modal.active .album-coming-icon {
  border-color: #333;
  color: #777;
}

/* Основной текст */
.album-coming-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.8;
  color: #777;
  margin: 0;
}

/* Подпись внизу */
.album-coming-sub {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #333;
  margin: 4px 0 0;
}

/* ── Адаптивность Album Coming Modal ── */
@media (max-width: 540px) {
  .album-coming-panel {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  /* На мобайле — полноэкранный режим, как у article-modal */
  .album-coming-panel {
    max-height: 100vh;
    height: 100%;
    border: none;
    overflow-y: auto;
    border-radius: 0;
  }

  .album-coming-body {
    padding: 22px 20px 40px;
  }

  .album-coming-title {
    font-size: clamp(22px, 7vw, 30px);
  }

  .album-coming-message {
    max-width: 100%;
  }
}


/* ───────────────────────────────────────
   8. FOOTER
─────────────────────────────────────── */
.site-footer {
  background: #000;
  color: #e0e0e0;
  font-family: 'Jost', sans-serif;
}

.footer-top-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
}

.footer-inner {
  width: 88%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid #1c1c1c;
}

.footer-brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand-quote {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.35);
  font-style: italic;
  max-width: 280px;
}

.footer-brand-quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}

.footer-col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.footer-nav a:hover { color: #fff; }

.social-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.social-link:hover { color: #fff; }

.social-link:hover .social-icon-wrap {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
}

.social-icon-wrap {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.social-icon-wrap svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.copyright {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.08em;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.1em;
  transition: color 0.2s;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* Footer — планшет (≤768px) */
@media (max-width: 768px) {
  .footer-inner {
    width: 100%;
    padding: 44px 24px 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 28px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    padding-bottom: 8px;
    border-bottom: 1px solid #1c1c1c;
  }
  .footer-brand-quote { max-width: 100%; }
}

/* Footer — мобайл (≤480px) */
@media (max-width: 480px) {
  .footer-inner {
    padding: 36px 20px 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
  }

  .footer-brand {
    grid-column: auto;
    padding-bottom: 28px;
    margin-bottom: 28px;
  }

  .footer-brand-quote {
    margin: 0 auto;
  }

  /* Navigate → горизонтально */
  .footer-grid > div:nth-child(2) {
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid #1c1c1c;
  }

  .footer-col-title {
    text-align: center;
    margin-bottom: 16px;
  }

  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
  }

  .footer-nav a { font-size: 14px; }

  /* Follow → только иконки в ряд */
  .footer-grid > div:nth-child(3) {
    padding-bottom: 8px;
  }

  .social-links {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
  }

  .social-link-label { display: none; }

  .social-icon-wrap {
    width: 42px;
    height: 42px;
  }

  .social-icon-wrap svg {
    width: 18px;
    height: 18px;
  }

  /* Нижняя строка → по центру */
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding-top: 24px;
  }

  .footer-bottom-links { gap: 20px; }
}


/* ───────────────────────────────────────
   7C. CONTACTS MODAL
─────────────────────────────────────── */

/* Панель — компактная, как у album-coming */
.contacts-panel {
  max-width: 440px;
  overflow: hidden;
}

/* Внутренняя обёртка */
.contacts-modal-inner {
  display: flex;
  flex-direction: column;
}

/* Шапка */
.contacts-modal-header {
  padding: 40px 36px 0;
  text-align: center;
}

.contacts-modal-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 10px;
}

.contacts-modal-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 26px;
}

.contacts-divider {
  width: 36px;
  height: 1px;
  background: #222;
  margin: 0 auto 0;
}

/* Список контактов */
.contacts-list {
  border-top: 1px solid #1c1c1c;
  margin-top: 28px;
}

/* Строка контакта */
.contacts-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 28px;
  border-bottom: 1px solid #111;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.contacts-item:hover {
  background: rgba(255,255,255,0.035);
  color: #fff;
}

/* Иконка в круге */
.contacts-item-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255,255,255,0.45);
  transition: border-color 0.2s, color 0.2s;
}

.contacts-item:hover .contacts-item-icon {
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}

.contacts-item-icon svg {
  width: 16px;
  height: 16px;
}

/* Текст */
.contacts-item-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.contacts-item-platform {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
}

.contacts-item-handle {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Стрелка-диагональ */
.contacts-item-arrow {
  flex-shrink: 0;
  opacity: 0.18;
  transition: opacity 0.2s, transform 0.2s;
  color: currentColor;
  display: flex;
  align-items: center;
}

.contacts-item:hover .contacts-item-arrow {
  opacity: 0.7;
  transform: translate(2px, -2px);
}

/* Подпись внизу */
.contacts-modal-sig {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
}

.contacts-modal-brand {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.12);
}

.contacts-modal-copy {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: rgba(255,255,255,0.1);
  letter-spacing: 0.08em;
}

/* ── Адаптивность contacts modal ── */
@media (max-width: 540px) {
  .contacts-panel { max-width: 100%; }
}

@media (max-width: 480px) {
  .contacts-panel {
    max-height: 100vh;
    height: 100%;
    border: none;
    overflow-y: auto;
  }

  .contacts-modal-header { padding: 32px 24px 0; }

  .contacts-item { padding: 16px 20px; gap: 14px; }

  .contacts-item-icon { width: 38px; height: 38px; }

  .contacts-item-handle { font-size: 13px; }

  .contacts-modal-sig { padding: 18px 20px; }
}


/* ═══════════════════════════════════════════════════════
   music.css — страница Music
   Подключается вместе с style.css
   Структура:
     1. Обёртка страницы
     2. Шапка альбома
     3. Список треков
     4. Строка трека
     5. Прогресс-бар
     6. Кнопки управления
     7. Активные состояния
     8. Адаптивность
════════════════════════════════════════════════════════ */


/* ───────────────────────────────────────
   1. ОБЁРТКА СТРАНИЦЫ
─────────────────────────────────────── */
.player-page {
  width: 100%;
  min-height: 100vh;
  padding: 60px 0 80px;
  background: #000;
}

.player-container {
  width: 88%;
  max-width: 860px;
  margin: 0 auto;
}

@media (max-width: 768px) { .player-container { width: 95%; } }
@media (max-width: 480px) { .player-container { width: 100%; padding: 0 20px; } }


/* ───────────────────────────────────────
   2. ШАПКА АЛЬБОМА
─────────────────────────────────────── */
.player-album-header {
  display: flex;
  align-items: flex-end;
  gap: 32px;
  padding-bottom: 40px;
  margin-bottom: 0;
  border-bottom: 1px solid #1c1c1c;
}

.player-album-cover {
  width: clamp(100px, 18vw, 160px);
  height: clamp(100px, 18vw, 160px);
  object-fit: cover;
  flex-shrink: 0;
  filter: grayscale(30%);
}

.player-album-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 10px;
}

.player-album-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
  margin-bottom: 6px;
}

.player-album-artist {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}

.player-album-meta {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.2);
}


/* ───────────────────────────────────────
   3. СПИСОК ТРЕКОВ
─────────────────────────────────────── */
.tracks-list {
  display: flex;
  flex-direction: column;
}


/* ───────────────────────────────────────
   4. СТРОКА ТРЕКА
─────────────────────────────────────── */
.track {
  display: grid;
  grid-template-columns: 28px 44px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #111;
  transition: background 0.2s;
  cursor: default;
}

.track:hover {
  background: rgba(255,255,255,0.02);
}

/* Номер трека */
.track-num {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.05em;
  text-align: right;
  user-select: none;
}

/* Обложка трека */
.track-cover {
  width: 44px;
  height: 44px;
  object-fit: cover;
  flex-shrink: 0;
  filter: grayscale(60%);
  transition: filter 0.3s;
}

.track:hover .track-cover {
  filter: grayscale(0%);
}

/* Название и артист */
.track-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.track-title {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

.track-artist {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Правая часть: прогресс + кнопки */
.track-right {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}


/* ───────────────────────────────────────
   5. ПРОГРЕСС-БАР
─────────────────────────────────────── */
.track-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 200px;
  flex-shrink: 0;
}

.track-progress-bar {
  position: relative;
  height: 3px;
  background: #222;
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
}

.track-progress-bar::before {
  content: '';
  position: absolute;
  inset: -6px 0;
}

.track-buffered {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  background: #333;
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s;
}

.track-progress {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  background: #fff;
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.track-progress-hover {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  width: 0%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.track-progress-bar:hover .track-progress-hover {
  opacity: 1;
}

/* Время */
.track-time {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.05em;
  user-select: none;
}


/* ───────────────────────────────────────
   6. КНОПКИ УПРАВЛЕНИЯ
─────────────────────────────────────── */
.track-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.play-btn,
.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
  background: transparent;
  text-decoration: none;
}

/* Play */
.play-btn {
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
}

.play-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

.play-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.icon-pause          { display: none; }
.play-btn.is-playing .icon-play  { display: none; }
.play-btn.is-playing .icon-pause { display: block; }

/* Download */
.download-btn {
  color: rgba(255,255,255,0.25);
}

.download-btn:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
}

.download-btn svg {
  width: 18px;
  height: 18px;
}


/* ───────────────────────────────────────
   7. АКТИВНОЕ СОСТОЯНИЕ ТРЕКА
─────────────────────────────────────── */
.track.is-active .track-num   { color: #fff; }
.track.is-active .track-title { color: #fff; }
.track.is-active .track-artist { color: rgba(255,255,255,0.6); }

.track.is-active .play-btn {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.track.is-active .play-btn:hover {
  background: rgba(255,255,255,0.9);
}

.track.is-active .track-progress {
  background: #fff;
}


/* ───────────────────────────────────────
   8. АДАПТИВНОСТЬ
─────────────────────────────────────── */
@media (max-width: 720px) {
  .track {
    grid-template-columns: 24px 40px 1fr;
    grid-template-rows: auto auto;
    gap: 12px 12px;
    padding: 14px 0;
  }

  .track-right {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 12px;
  }

  .track-progress-wrap {
    flex: 1;
    width: auto;
  }

  .track-controls {
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .player-page {
    padding: 32px 0 60px;
  }

  .player-album-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 28px;
  }

  .track {
    grid-template-columns: 20px 36px 1fr;
    gap: 10px 10px;
  }

  .track-cover {
    width: 36px;
    height: 36px;
  }

  .play-btn,
  .download-btn {
    width: 32px;
    height: 32px;
  }

  .play-btn svg,
  .download-btn svg {
    width: 16px;
    height: 16px;
  }
}