/* ═══════════════════════════════════════════════════════
   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-x: hidden;
  min-height: 100vh;
  padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
}

body.menu-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; }


/* ───────────────────────────────────────
   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;
}

.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
─────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Зернистость */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

/* Свечение за орлом */
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
  padding: 40px 24px;
}

.hero-eagle {
  width: clamp(200px, 30vw, 380px);
  height: auto;
  filter: invert(1) brightness(0.85);
  user-select: none;
  animation: eagle-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes eagle-in {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  width: clamp(200px, 40vw, 420px);
  animation: fade-up 1s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-divider::before,
.hero-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.25), transparent);
}

.hero-divider-icon {
  font-size: 8px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.3);
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  line-height: 1;
  color: #fff;
  animation: fade-up 1s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(10px, 1.2vw, 13px);
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  animation: fade-up 1s 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Угловые декоры */
.corner {
  position: absolute;
  width: 40px;
  height: 40px;
  opacity: 0.2;
}
.corner--tl { top: 32px;    left: 32px;    border-top: 1px solid #fff;    border-left: 1px solid #fff; }
.corner--tr { top: 32px;    right: 32px;   border-top: 1px solid #fff;    border-right: 1px solid #fff; }
.corner--bl { bottom: 32px; left: 32px;    border-bottom: 1px solid #fff; border-left: 1px solid #fff; }
.corner--br { bottom: 32px; right: 32px;   border-bottom: 1px solid #fff; border-right: 1px solid #fff; }

@media (max-width: 480px) {
  .corner { width: 24px; height: 24px; }
  .hero-content { gap: 24px; }
}


/* ───────────────────────────────────────
   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;
}

.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 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;
}
.article-modal-close:hover        { background: #fff; color: #000; border-color: #fff; transform: rotate(90deg); }
.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; }
}

/* ───────────────────────────────────────
   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; }
}


/* ═══════════════════════════════════════════════════════
   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;
}

/* Hover — расширяем для удобства клика */
.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; }

/* Когда is-playing: показываем паузу, прячем play */
.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;
  }
}