/* === ОБЩИЕ СТИЛИ === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  background: #000;
  color: #f0f0f0;
  line-height: 1.6;
  overflow-x: hidden;
}
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
  position: relative;
  z-index: 2;
}

/* === ВИДЕО-ФОН === */
.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: -3;
}
.video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -2;
}

/* === ДЫШАЩИЕ НАДПИСИ ПО БОКАМ (ДЕСКТОП) === */
.side-text {
  position: fixed;
  top: 50%;
  font-family: 'Caveat', cursive;
  font-size: 1.9rem;
  font-weight: 700;
  -webkit-text-stroke: 1px #ff0000;
  text-stroke: 1px #ff0000;
  color: #ff0000;
  z-index: 5;
  pointer-events: none;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: nowrap;
  transform: translateY(-50%);
}
.side-text-left {
  left: 80px;
  animation: musicTextAnim 40s ease-in-out infinite;
}
.side-text-right {
  right: 80px;
  animation: meaningTextAnim 40s ease-in-out infinite;
}

@keyframes musicTextAnim {
  0%    { opacity: 0; left: 80px; }
  12.5% { opacity: 1; left: 80px; }
  25%   { opacity: 0; left: 80px; }
  37.5% { opacity: 1; left: 64px; }
  50%   { opacity: 0; left: 64px; }
  62.5% { opacity: 1; left: 64px; }
  75%   { opacity: 0; left: 64px; }
  87.5% { opacity: 1; left: 80px; }
  100%  { opacity: 0; left: 80px; }
}

@keyframes meaningTextAnim {
  0%    { opacity: 0; right: 80px; }
  12.5% { opacity: 0; right: 80px; }
  25%   { opacity: 1; right: 80px; }
  37.5% { opacity: 0; right: 80px; }
  50%   { opacity: 1; right: 64px; }
  62.5% { opacity: 0; right: 64px; }
  75%   { opacity: 1; right: 64px; }
  87.5% { opacity: 0; right: 64px; }
  100%  { opacity: 0; right: 80px; }
}

/* === ФОТОГРАФИИ НА ФОНЕ (десктоп по бокам) === */
.photo-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}
.photo-item {
  position: fixed;
  opacity: 0;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  object-fit: cover;
  z-index: 0;
  width: 120px;
  height: 156px;
}

/* === НАВИГАЦИЯ === */
.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0.5rem 2rem;
  background: #1a1a1a;
  border-bottom: 2px solid #ff0000;
  position: relative;
  z-index: 10;
}
.nav-brand {
  font-family: 'Caveat', cursive;
  font-size: 3.6rem;
  color: #ff0000;
  text-transform: lowercase;
  font-weight: 600;
  line-height: 1;
}
.social-icons {
  display: flex;
  gap: 1.2rem;
  margin-left: auto;
  align-items: center;
}
.social-icons a {
  color: #ccc;
  font-size: 1.4rem;
  transition: color 0.3s;
}
.social-icons a:hover {
  color: #ff0000;
}

/* === КНОПКА ЗВУКА В НАВИГАЦИИ === */
.sound-toggle {
  background: none;
  border: none;
  color: #ccc;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
  transition: color 0.3s, opacity 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sound-toggle:hover {
  color: #ff0000;
}
.sound-toggle.muted {
  color: #666;
  opacity: 0.7;
}
.sound-toggle.muted:hover {
  color: #ff0000;
  opacity: 1;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}
.nav-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s;
  white-space: nowrap;
}
.nav-links a:hover {
  color: #ff0000;
}

/* === ТЕКСТ "МУЗЫКА СО СМЫСЛОМ" === */
.tagline {
  display: block;
  text-align: center;
  margin: 2rem auto;
  font-size: 1.4rem;
  color: #ccc;
  font-weight: 300;
  letter-spacing: 2px;
}

/* === БУРГЕР-КНОПКА === */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 20;
}
.burger-btn span {
  display: block;
  width: 26px;
  height: 3px;
  background: #ff0000;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.burger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.burger-btn.active span:nth-child(2) {
  opacity: 0;
}
.burger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* === МОБИЛЬНОЕ ОВЕРЛЕЙ-МЕНЮ === */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 15;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu-overlay.active {
  display: flex;
  opacity: 1;
}
.mobile-menu-overlay a {
  color: #ccc;
  text-decoration: none;
  font-size: 1.4rem;
  font-family: 'Caveat', cursive;
  transition: color 0.3s;
  padding: 0.5rem 1rem;
}
.mobile-menu-overlay a:hover,
.mobile-menu-overlay a:active {
  color: #ff0000;
}
.mobile-menu-overlay .mobile-social {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  align-items: center;
}
.mobile-menu-overlay .mobile-social a {
  font-size: 1.6rem;
  font-family: inherit;
}

.mobile-menu-overlay .sound-toggle {
  font-size: 1.6rem;
  padding: 8px;
}

/* === ТАБЛИЦА СОСТАВА === */
.band-table-container {
  overflow-x: auto;
  margin-top: 1rem;
  -webkit-overflow-scrolling: touch;
}
.band-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 800px;
}
.band-table th,
.band-table td {
  padding: 0.6rem 0.8rem;
  border: 1px solid #444;
  text-align: left;
  vertical-align: top;
}
.band-table th {
  background: #222;
  color: #ff0000;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}
.col-photo,
.band-table td:first-child {
  width: 120px;
  text-align: center;
  vertical-align: middle;
  padding: 0.5rem;
}
.member-photo {
  display: block;
  width: 100px;
  height: 130px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  margin: 0 auto;
  background: #222;
  transition: transform 0.2s ease;
}
.member-photo:hover {
  transform: scale(1.03);
}

/* ============================================
МОБИЛЬНАЯ АДАПТАЦИЯ (≤768px)
============================================ */
@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 0.8rem;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }
  .nav-brand {
    font-size: 2.2rem;
  }
  .nav-links,
  .social-icons {
    display: none !important;
  }
  .burger-btn {
    display: flex;
  }
  .video-bg video {
    transform: translate(-50%, calc(-50% - 15%)) scale(0.476, 0.476);
  }
  .tagline {
    font-size: 1rem;
    margin: 1.5rem auto;
    letter-spacing: 1px;
  }
  .photo-item {
    width: 70px !important;
    height: 91px !important;
  }
  .container {
    padding: 0.5rem;
  }
  .band-table {
    font-size: 0.85rem;
    min-width: 600px;
  }
  .band-table th,
  .band-table td {
    padding: 0.4rem 0.6rem;
  }
  .col-photo,
  .band-table td:first-child {
    width: 90px;
  }
  .member-photo {
    width: 70px;
    height: 91px;
  }
  .side-text {
    display: none;
  }
}

/* Маленькие мобильные (≤480px) */
@media (max-width: 480px) {
  .nav-brand {
    font-size: 1.8rem;
  }
  .video-bg video {
    transform: translate(-50%, -50%) scale(1) translateY(0);
  }
  .tagline {
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin: 1rem auto;
  }
  .photo-item {
    width: 55px !important;
    height: 72px !important;
  }
  .band-table {
    font-size: 0.75rem;
    min-width: 520px;
  }
  .col-photo,
  .band-table td:first-child {
    width: 75px;
  }
  .member-photo {
    width: 55px;
    height: 72px;
  }
  .band-table th,
  .band-table td {
    padding: 0.3rem 0.5rem;
  }
}

/* === Планшет 768×1024 (портрет): видео опущено на 50% вниз === */
@media (min-width: 700px) and (max-width: 768px) and (min-height: 950px) {
  .video-bg video {
    transform: translate(-50%, calc(-50% + 50%)) scale(0.476, 0.476);
  }
}

/* === 480×853: видео уменьшено на 51% и смещено вниз на 10% === */
@media (min-width: 470px) and (max-width: 480px) {
  .video-bg video {
    transform: translate(-50%, calc(-50% + 10%)) scale(0.49);
  }
}

/* === 390×844 (iPhone 12/13/14): видео уменьшено на 60% и смещено вниз на 10% === */
@media (min-width: 376px) and (max-width: 390px) {
  .video-bg video {
    transform: translate(-50%, calc(-50% + 10%)) scale(0.4);
  }
}

/* === 391-420px (iPhone 11/XR, крупные Android): видео уменьшено на 65% и смещено вниз на 10% === */
@media (min-width: 391px) and (max-width: 420px) {
  .video-bg video {
    transform: translate(-50%, calc(-50% + 10%)) scale(0.35);
  }
}

/* Очень маленькие мобильные (≤375px) — видео уменьшено и смещено вниз на 5% */
@media (max-width: 375px) {
  .video-bg video {
    transform: translate(-50%, calc(-50% + 5%)) scale(0.43);
  }
}

/* Специфично для 360×740 и меньше: видео уменьшено еще на 10% и сдвинуто вниз еще на 5% */
@media (max-width: 360px) {
  .video-bg video {
    transform: translate(-50%, calc(-50% + 10%)) scale(0.387);
  }
}

/* === ДЕСКТОП: меню в одну строку (≥769px) === */
@media (min-width: 769px) {
  .navbar {
    flex-wrap: nowrap;
    align-items: center;
    padding: 0.25rem 2rem;
  }
  .nav-links {
    width: auto;
    margin-top: 0;
    flex: 1;
    justify-content: center;
  }
  .social-icons {
    margin-left: 0;
  }
  .nav-brand,
  .nav-links a,
  .social-icons a {
    line-height: 1;
  }
}

/* Для остальных десктопов (769-1299px) */
@media (min-width: 769px) and (max-width: 1299px) {
  .video-bg video {
    transform: translate(-50%, -50%) scale(0.9);
  }
}

/* Для больших десктопов (1401px+) — базовое правило */
@media (min-width: 1401px) {
  .video-bg video {
    transform: translate(-50%, -50%) scale(0.9);
  }
}

/* === 769-870px: видео уменьшено, надписи увеличены на 30% === */
@media (min-width: 769px) and (max-width: 870px) {
  .video-bg video {
    transform: translate(-50%, -50%) scale(0.77);
  }
  .side-text {
    font-size: 2.47rem;
  }
}

/* === 800×1280 (планшеты портрет): видео уменьшено на 5% === */
@media (min-width: 790px) and (max-width: 810px) {
  .video-bg video {
    transform: translate(-50%, -50%) scale(0.73);
  }
}

/* === 1000-1050px: видео уменьшено, надписи увеличены === */
@media (min-width: 1000px) and (max-width: 1050px) {
  .video-bg video {
    transform: translate(-50%, -50%) scale(0.77);
  }
  .side-text {
    font-size: 2.96rem;
  }
}

/* === 1260-1400px: надписи увеличены на 50% === */
@media (min-width: 1260px) and (max-width: 1400px) {
  .side-text {
    font-size: 2.85rem;
  }
}

/* === 1280×720: видео уменьшено, смещено вниз на 3%, шрифт уменьшен на 50% === */
@media (min-width: 1260px) and (max-width: 1300px) {
  .video-bg video {
    transform: translate(-50%, calc(-50% + 3%)) scale(0.42);
  }
  .side-text {
    font-size: 1.43rem;
  }
}

/* === 1300-1400px (включая 1366×768): видео уменьшено на 5%, шрифт уменьшен на 20% === */
@media (min-width: 1300px) and (max-width: 1400px) {
  .video-bg video {
    transform: translate(-50%, calc(-50% + 2%)) scale(0.40);
  }
  .side-text {
    font-size: 1.14rem;
  }
}

/* === 1401-1879px: базовое правило (не включает 1920px) === */
@media (min-width: 1401px) and (max-width: 1879px) {
  .video-bg video {
    transform: translate(-50%, -50%) scale(0.69);
  }
  .side-text {
    font-size: 2.85rem;
  }
}

/* === 1440×900 (MacBook Air, старые мониторы): видео уменьшено ещё на 3%, смещено вниз на 3%, шрифт уменьшен на 50% === */
@media (min-width: 1420px) and (max-width: 1460px) {
  .video-bg video {
    transform: translate(-50%, calc(-50% + 3%)) scale(0.57);
  }
  .side-text {
    font-size: 1.43rem;
  }
}

/* === 1536×864 (ноутбуки с масштабированием 125%): видео опущено вниз на 3% === */
@media (min-width: 1500px) and (max-width: 1600px) {
  .video-bg video {
    transform: translate(-50%, calc(-50% + 3%)) scale(0.50);
  }
  .side-text {
    font-size: 2.05rem;
  }
}

/* === 1800-1920px (1920×1080): видео уменьшено еще на 10% и смещено вниз на 2% === */
@media (min-width: 1800px) and (max-width: 1920px) {
  .video-bg video {
    transform: translate(-50%, calc(-50% + 2%)) scale(0.56) !important;
  }
  .side-text {
    font-size: 2.0rem !important;
  }
}

/* === 1921-2560px (QHD, MacBook Pro): видео уменьшено на 15%, надписи уменьшены на 40% === */
@media (min-width: 1921px) and (max-width: 2560px) {
  .video-bg video {
    transform: translate(-50%, -50%) scale(0.85);
  }
  .side-text {
    font-size: 1.92rem; /* Было 3.2rem, стало 1.92rem (3.2 × 0.6 = 1.92) */
  }
}

/* ================================================================
ПЛАНШЕТНЫЕ И ДЕСКТОПНЫЕ ЛЕНТЫ ФОТО (ВЕРХ + НИЗ)
Показываются на ВСЕХ экранах ≥769px
================================================================ */
.tablet-photo-strip {
  display: none;
  position: fixed;
  left: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 8;
  background: #000000;
}
.tablet-strip-top {
  top: 56px;
  height: 168px;
}
.tablet-strip-bottom {
  bottom: 0;
  height: 148px;
}

/* === ПОКАЗЫВАЕМ ЛЕНТЫ НА ВСЕХ ЭКРАНАХ ≥769px === */
@media (min-width: 769px) {
  .tablet-photo-strip {
    display: block !important;
  }
}

/* Трек */
.tablet-photo-track {
  display: flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  height: 100%;
  padding: 5px 0;
  will-change: transform;
  opacity: 0; 
  transition: opacity 0.5s ease;
}

.tablet-photo-track.loaded {
  opacity: 1;
}

/* Фото в ленте */
.tablet-photo-track img {
  flex: 0 0 auto;
  width: 96px; 
  height: 125px;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.85);
  display: block !important;
  background-color: #1a1a1a;
}

/* Анимации — ЗАМЕДЛЕННЫЕ В 2 РАЗА */
.tablet-strip-top .tablet-photo-track {
  animation: tabletScrollLeft 96s linear infinite;
}
.tablet-strip-bottom .tablet-photo-track {
  animation: tabletScrollRight 104s linear infinite;
}
@keyframes tabletScrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes tabletScrollRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* ================================================================
МОБИЛЬНЫЕ ЛЕНТЫ ФОТО (≤768px)
================================================================ */
.mobile-photo-strip {
  display: none;
  position: fixed;
  left: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 8;
  background: #000000;
}

/* === ПОКАЗЫВАЕМ ЛЕНТЫ НА МОБИЛЬНЫХ === */
@media (max-width: 768px) {
  .mobile-photo-strip {
    display: block !important;
  }
}

.mobile-strip-top {
  top: 56px;
  height: 85px;
}

.mobile-strip-bottom {
  bottom: 0;
  height: 85px;
}

.mobile-photo-track {
  display: flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  height: 100%;
  padding: 4px 0;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.mobile-photo-track.loaded {
  opacity: 1;
}

.mobile-photo-track img {
  flex: 0 0 auto;
  width: 55px;
  height: 72px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.85);
  display: block !important;
  background-color: #1a1a1a;
}

@keyframes mobileScrollRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* ================================================================
МОБИЛЬНЫЕ ДЫШАЩИЕ НАДПИСИ (≤768px) — стиль как у "неважно"
================================================================ */
.mobile-side-text {
  display: none;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Caveat', cursive;
  font-size: 2.2rem;
  font-weight: 400;
  color: #ff0000;
  z-index: 6;
  pointer-events: none;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
  white-space: nowrap;
  animation: mobileTextBreath 4s ease-in-out infinite;
}

@media (max-width: 768px) {
  .mobile-side-text {
    display: block;
  }
}

.mobile-text-music {
  top: 145px;
}

.mobile-text-meaning {
  top: 185px;
}

@keyframes mobileTextBreath {
  0%, 100% { 
    opacity: 0.6; 
    transform: translateX(-50%) scale(1); 
  }
  50% { 
    opacity: 1; 
    transform: translateX(-50%) scale(1.05); 
  }
}

/* === АДАПТАЦИЯ РАЗМЕРОВ ЛЕНТ ПОД РАЗНЫЕ ЭКРАНЫ === */

/* Планшеты портрет (769-870px) */
@media (min-width: 769px) and (max-width: 870px) and (orientation: portrait) {
  .tablet-photo-strip { height: 155px; }
  .tablet-strip-top { height: 155px; }
  .tablet-strip-bottom { height: 138px; }
  .tablet-photo-track img { width: 82px; height: 107px; }
}

/* Планшеты портрет (1000-1050px) */
@media (min-width: 1000px) and (max-width: 1050px) and (orientation: portrait) {
  .tablet-photo-strip { height: 165px; }
  .tablet-strip-top { height: 165px; }
  .tablet-strip-bottom { height: 145px; }
  .tablet-photo-track img { width: 95px; height: 124px; }
}

/* Планшеты ландшафт (1000-1400px) */
@media (min-width: 1000px) and (max-width: 1400px) and (orientation: landscape) {
  .tablet-photo-strip { height: 145px; }
  .tablet-strip-top { height: 145px; }
  .tablet-strip-bottom { height: 128px; }
  .tablet-photo-track img { width: 100px; height: 130px; }
}

/* Большие планшеты/маленькие десктопы (1260-1400px) */
@media (min-width: 1260px) and (max-width: 1400px) {
  .tablet-photo-strip { height: 152px; }
  .tablet-strip-top { height: 152px; }
  .tablet-strip-bottom { height: 135px; }
  .tablet-photo-track img { width: 105px; height: 137px; }
}

/* Десктопы (1401-1879px) */
@media (min-width: 1401px) and (max-width: 1879px) {
  .tablet-photo-strip { height: 175px; }
  .tablet-strip-top { height: 175px; }
  .tablet-strip-bottom { height: 155px; }
  .tablet-photo-track img { width: 115px; height: 150px; }
}

/* Десктопы (1800-1920px) — 1920×1080 */
@media (min-width: 1800px) and (max-width: 1920px) {
  .tablet-photo-strip { height: 175px; }
  .tablet-strip-top { height: 175px; }
  .tablet-strip-bottom { height: 155px; }
  .tablet-photo-track img { width: 115px; height: 150px; }
}

/* Большие десктопы (1921-2560px) — QHD, MacBook Pro */
@media (min-width: 1921px) and (max-width: 2560px) {
  .tablet-photo-strip { height: 220px; }
  .tablet-strip-top { height: 220px; }
  .tablet-strip-bottom { height: 195px; }
  .tablet-photo-track img { width: 140px; height: 182px; }
}

/* Очень большие десктопы (2561px+) */
@media (min-width: 2561px) {
  .tablet-photo-strip { height: 240px; }
  .tablet-strip-top { height: 240px; }
  .tablet-strip-bottom { height: 210px; }
  .tablet-photo-track img { width: 150px; height: 195px; }
}