@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Source+Sans+Pro:wght@400;600;700&display=swap');

:root {
  --bg: #0a0a13;
  --bg-raised: #12121e;
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.65);
  --border: rgba(255, 255, 255, 0.12);
  --font-body: 'Source Sans Pro', sans-serif;
  --font-display: 'Playfair Display', serif;
  --section-pad: clamp(3rem, 6vw, 6rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0 0 1rem; }
h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); }
h2 { font-size: clamp(2rem, 4vw, 2.875rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2.25rem); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #000; border: 1px solid transparent; color: var(--text);
  padding: 0.75rem 1.75rem; font-family: var(--font-body); font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.85rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: transparent; border-color: var(--text); }

/* Перевикористовувана "медіа-картка": фото ч/б -> кольорове при наведенні,
   чорна "рамка"-підпис знизу. Використовується на головній і на сторінках
   каналів. */
.media-card img, .media-card iframe { width: 100%; object-fit: cover; display: block; border-radius: 4px 4px 0 0; }
.media-card img { filter: grayscale(100%); transition: filter 0.4s; }
.media-card:hover img { filter: none; }

.card-caption { display: block; background: #000; padding: 1.3rem 1.5rem 1.6rem; border-radius: 0 0 4px 4px; }
.card-caption h3 { font-size: 1.15rem; line-height: 1.35; margin: 0; }

.card-meta { color: var(--text-dim); font-size: 0.78rem; letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 0.5rem; display: flex; gap: 0.6rem; align-items: center; }
.card-description { color: var(--text-dim); font-size: 0.9rem; line-height: 1.5; margin: 0.6rem 0 0; }

/* Клік-плей YouTube-фасад (логіка в /assets/js/video-embed.js) */
.video-embed { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.play-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; background: rgba(0, 0, 0, 0.65); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; padding-left: 4px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.video-embed:hover .play-icon { background: #000; transform: translate(-50%, -50%) scale(1.08); }

/* ===== Header ===== */
.site-header { position: absolute; top: 15px; left: 0; width: 100%; z-index: 50; background: transparent; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 1.1rem; gap: 2rem; }
.logo img { height: 28px; width: auto; }
.main-nav { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.main-nav a { display: inline-block; line-height: 1; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--text-dim); transition: color 0.2s ease; }
.main-nav a:hover { color: var(--text); }

.nav-item.has-children { position: relative; line-height: 1; }
.nav-item.has-children > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-item.has-children > a::after { content: ''; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.dropdown {
  position: absolute; top: 100%; left: 0; width: 240px; margin-top: 14px; padding: 20px;
  display: flex; flex-direction: column; gap: 0.85rem; background: var(--bg-raised); border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); border-radius: 2px; opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.nav-item.has-children:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { color: var(--text); }
.dropdown a:hover { color: #50c3b3; }

@media (max-width: 720px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .main-nav { gap: 1.1rem 1.5rem; }
}

/* ===== Footer ===== */
.site-footer { background: #000; color: rgba(255, 255, 255, 0.75); font-size: 0.88rem; line-height: 1.7; }
.footer-columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; padding: 5rem 0; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: rgba(255, 255, 255, 0.75); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--text); }
.footer-text-link { display: block; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 1.75rem 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }

@media (max-width: 860px) { .footer-columns { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; padding: 3.5rem 0; } }
@media (max-width: 520px) { .footer-columns { grid-template-columns: 1fr; } }

/* ===== Homepage ===== */
section { padding: var(--section-pad) 0; }

.hero { position: relative; height: 855px; overflow: hidden; padding: 0; }
.hero-slide {
  position: absolute; inset: 0; background-repeat: no-repeat; background-position: 0 0; background-size: auto;
  opacity: 0; visibility: hidden; transition: opacity 1.5s ease, visibility 1.5s;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hero-inner { position: relative; z-index: 2; width: 100%; height: 100%; }
.hero-text { max-width: 653px; padding-top: 262px; align-self: flex-start; }
.hero-text h1 { margin-bottom: 0; }
.hero-text .btn { margin-top: 101px; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 30px; z-index: 3; display: flex; justify-content: center; gap: 0.6rem; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.6); background: transparent; padding: 0; cursor: pointer; transition: background 0.2s ease; }
.hero-dot.active { background: #fff; }

@media (max-width: 1199px) { .hero { height: 580px; } .hero-text { padding-top: 135px; } }
@media (max-width: 767px) { .hero { height: 480px; } .hero-text { padding-top: 100px; } .hero-text h1 { font-size: 40px; } }

.stats-parallax {
  position: relative; padding: 138px 0 145px; color: #fff; text-align: center;
  background-image: url('/assets/images/vinyl-parallax.webp'); background-size: cover; background-position: center; background-attachment: fixed;
}
.stats-parallax::before { content: ''; position: absolute; inset: 0; z-index: 0; background: rgba(0, 0, 0, 0.7); }
.stats-content { position: relative; z-index: 1; }
.stats-heading { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 5vw, 3.75rem); line-height: 1.1; color: #fff; margin: 0 0 2rem; }
.stats-intro { font-size: 1.15rem; color: rgba(255, 255, 255, 0.85); margin: 0 0 4.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.stat-num { display: block; font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); }
.stat-label { display: block; color: var(--text-dim); font-size: 1.05rem; font-weight: 600; margin-top: 0.6rem; }

.channel-row { position: relative; }
.channel-image { position: absolute; top: 0; width: 50%; height: 100%; background-size: cover; background-position: center; }
.align-left .channel-image { left: 0; }
.align-right .channel-image { right: 0; }
.channel-text { width: 50%; padding: 8.5rem 0 10rem 4.4rem; }
.align-left .channel-text { margin-left: 50%; }
.align-right .channel-text { margin-left: 0; padding: 8.5rem 4.4rem 10rem 0; }
.channel-text p { color: var(--text-dim); margin-bottom: 1.5rem; }
.link-arrow { font-weight: 600; letter-spacing: 0.03em; }

.labels {
  position: relative; padding: 75px 0 70px; background-color: var(--bg);
  background-image: url('/assets/images/cd-parallax.webp'); background-repeat: no-repeat; background-size: cover; background-position: 50% 50%; background-attachment: fixed;
}
.labels-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; }
.label-logo { max-height: 150px; max-width: 170px; width: auto; height: auto; }

.section-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.album-grid .section-heading, .video-grid .section-heading { flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; }
.album-grid .section-heading h2, .video-grid .section-heading h2 { font-size: clamp(2.1rem, 4.3vw, 3.1rem); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.album-card img { aspect-ratio: 1 / 1; }
.video-card img, .video-card iframe { aspect-ratio: 16 / 9; }

.testimonials { background: var(--bg-raised); padding: 9rem 0; }
.testimonials-inner { display: flex; align-items: center; justify-content: center; gap: 1.5rem; }
.testimonial-card { position: relative; flex: 1; max-width: 780px; background: #fff; border-radius: 6px; padding: 2.5rem 3rem 2.5rem 13rem; min-height: 19rem; }
.testimonial { display: none; }
.testimonial.active { display: block; }
.testimonial-photo { position: absolute; left: 2rem; top: 2rem; width: 9.5rem; aspect-ratio: 230 / 340; z-index: 2; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.testimonial-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.testimonial-band { position: absolute; left: -2.5rem; bottom: 1.75rem; width: 32rem; max-width: calc(100% + 2.5rem); height: 4.25rem; z-index: 1; background: #000; display: flex; align-items: center; }
.band-icon { flex: 0 0 4.5rem; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.6rem; line-height: 1; }
.band-who { flex: 1; padding-left: calc(9.5rem + 1.5rem); padding-right: 1.5rem; text-align: center; overflow: hidden; }
.band-who strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; color: #d9bf85; white-space: nowrap; }
.band-who span { display: block; font-size: 0.8rem; color: rgba(255, 255, 255, 0.75); margin-top: 0.2rem; white-space: nowrap; }
.testimonial-text { position: relative; z-index: 1; font-family: var(--font-display); font-style: italic; font-size: clamp(1.05rem, 1.9vw, 1.3rem); line-height: 1.5; color: #444; }
.quote-mark { color: #bbb; font-size: 1.5em; font-style: normal; line-height: 0; vertical-align: -0.15em; }
.quote-mark-open { margin-right: 0.15em; }
.quote-mark-close { margin-left: 0.15em; }
.testimonial-dots { position: absolute; right: 2rem; bottom: 3.6rem; display: flex; gap: 0.5rem; z-index: 1; }
.testimonial-dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid #ccc; background: transparent; padding: 0; cursor: pointer; transition: background 0.2s ease; }
.testimonial-dot.active { background: #000; border-color: #000; }
.testimonial-arrow { flex: none; background: none; border: 1px solid var(--border); color: var(--text); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; transition: border-color 0.2s ease; }
.testimonial-arrow:hover { border-color: var(--text); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .channel-row { display: flex; flex-direction: column; }
  .channel-image { position: relative; width: 100%; height: 260px; order: -1; }
  .channel-text, .align-left .channel-text, .align-right .channel-text { width: 100%; margin-left: 0; padding: 2rem 0; }
  .grid, .grid-2 { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .stats-parallax { padding: 4.5rem 0; background-attachment: scroll; }
  .labels { background-attachment: scroll; }
  .stats-intro { margin-bottom: 2.5rem; }
  .testimonials-inner { flex-direction: column; gap: 1rem; }
  .testimonial-card { padding: 0 0 3.5rem; max-width: 100%; overflow: hidden; }
  .testimonial-photo { position: static; width: 100%; height: 220px; margin-bottom: -0.5rem; }
  .testimonial-band { position: static; transform: none; width: 100%; max-width: 100%; height: auto; padding: 1rem 1.5rem; }
  .band-icon { flex: 0 0 auto; margin-right: 1rem; }
  .band-who { padding: 0; text-align: left; }
  .testimonial-text { padding: 1.5rem 1.5rem 0; }
  .testimonial-dots { position: static; justify-content: center; padding-top: 1.25rem; }
  .testimonial-arrow { display: none; }
}
@media (max-width: 560px) { .grid, .grid-2 { grid-template-columns: 1fr; } }

/* ===== Channel/video pages (video.php, category.php) ===== */
.page-header { padding: 6rem 0 2rem; }
.page-header h1 { padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.page-body { padding-bottom: var(--section-pad); }
.page-grid { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
.video-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.sidebar-block { margin-bottom: 2.5rem; }
.sidebar-block h4 { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding-bottom: 0.85rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.latest-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.latest-list a { display: grid; grid-template-columns: 56px 1fr; gap: 0.85rem; align-items: center; }
.latest-list img { width: 56px; height: 56px; object-fit: cover; border-radius: 3px; }
.latest-list span { font-size: 0.85rem; line-height: 1.35; color: var(--text-dim); transition: color 0.2s ease; }
.latest-list a:hover span { color: var(--text); }
.cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.cat-list a { font-size: 0.9rem; color: var(--text-dim); transition: color 0.2s ease; }
.cat-list li.active a, .cat-list a:hover { color: var(--text); }

.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.4rem; margin-top: 3rem; }
.pagination-num, .pagination-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.25rem; height: 2.25rem; padding: 0 0.5rem;
  border: 1px solid var(--border); color: var(--text-dim); font-size: 0.85rem;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.pagination-num:hover, .pagination-arrow:hover { border-color: var(--text); color: var(--text); }
.pagination-num.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.pagination-ellipsis { color: var(--text-dim); padding: 0 0.25rem; }

@media (max-width: 900px) { .page-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .video-list { grid-template-columns: 1fr; } }

/* ===== Сторінка окремого матеріалу (material.php) =====
   Виміряно на референсі (1400px viewport): фото і текст — 847.5px,
   ОДНАКОВА ширина в обох. Проблема "текст притиснутий" була не в ширині
   колонки, а в тому, що .material-description мав max-width:70ch, тоді як
   фото над ним — ні. Колонка лишається природної ширини (~800-830px тут,
   залежно від контейнера) — саме так, без штучного звуження. */
.material-page { padding-top: 6rem; }
.material-media { margin-bottom: 2rem; border-radius: 4px; overflow: hidden; }
.material-media img { width: 100%; display: block; }
.material-media.media-card .play-icon { width: 80px; height: 80px; font-size: 1.5rem; }

.material-meta { margin-bottom: 1rem; }
.material-description { color: var(--text); line-height: 1.7; margin-bottom: 2.5rem; }
.material-description p { margin: 0 0 1.2em; }
.material-description p:last-child { margin-bottom: 0; }
.material-description ul, .material-description ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.material-description li { margin-bottom: 0.4em; }
.material-description a { text-decoration: underline; }
.material-description blockquote { margin: 0 0 1.2em; padding-left: 1rem; border-left: 2px solid var(--border); color: var(--text-dim); font-style: italic; }
.material-description h3, .material-description h4 { margin: 1.5em 0 0.6em; }

.tracklist { list-style: none; margin: 0 0 2.5rem; padding: 0; counter-reset: none; }
.tracklist li {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0.9rem 0; border-bottom: 1px solid var(--border); flex-wrap: nowrap;
}
.tracklist li:first-child { border-top: 1px solid var(--border); }
.track-title {
  font-size: 0.95rem; flex: 1 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tracklist audio { height: 36px; max-width: 320px; flex: 0 0 260px; }

.material-pager { display: flex; justify-content: space-between; gap: 1rem; }

@media (max-width: 560px) {
  .tracklist li { flex-direction: column; align-items: flex-start; }
  .track-title {
    width: 100%; white-space: normal; overflow: visible; text-overflow: clip;
  }
  .tracklist audio { width: 100%; max-width: none; flex-basis: auto; }
}
