/* === ОБЩИЕ СТИЛИ === */
* {
  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%) scale(0.56, 0.56) translateY(1cm);
  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;
}

/* === ФОТОГРАФИИ НА ФОНЕ (для index.html) === */
.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;
}

/* === НАВИГАЦИЯ (ОБЩАЯ) === */
.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;
}

.social-icons a {
  color: #ccc;
  font-size: 1.4rem;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #ff0000;
}

.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;
}

.mobile-menu-overlay .mobile-social a {
  font-size: 1.6rem;
  font-family: inherit;
}

/* === ТАБЛИЦА СОСТАВА === */
.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);
}

/* ============================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
   ============================================ */
@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%, -50%) scale(0.476, 0.476) translateY(1cm);
  }

  /* --- Tagline --- */
  .tagline {
    font-size: 1rem;
    margin: 1.5rem auto;
    letter-spacing: 1px;
  }

  /* --- Фото на фоне (index.html) --- */
  .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;
  }
}

/* Совсем маленькие экраны */
@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;
  }
}

/* === ДЕСКТОП: меню в одну строку и ниже по высоте === */
@media (min-width: 769px) {
  .navbar {
    flex-wrap: nowrap;              /* запрет переноса во 2 строку */
    align-items: center;            /* вертикальное выравнивание */
    padding: 0.25rem 2rem;          /* ниже высота (было 0.5rem 2rem) */
  }

  .nav-links {
    width: auto;                    /* убираем 100% */
    margin-top: 0;                  /* убираем сдвиг вниз */
    flex: 1;                        /* занимает свободное место */
    justify-content: center;        /* пункты по центру */
  }

  .social-icons {
    margin-left: 0;                 /* т.к. nav-links теперь flex:1 */
  }

  .nav-brand,
  .nav-links a,
  .social-icons a {
    line-height: 1;
  }
}