﻿/* ===============================
   ОСНОВНЫЕ СТИЛИ СТРАНИЦЫ
================================ */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: black;
  background-repeat: no-repeat;
  background-position: right top;  /* фон прижат к правому краю */
  background-size: auto;           /* не растягивается */
  background-attachment: fixed;    /* фиксирован при скролле */
  color: #FFF;
  font-family: 'Roboto', sans-serif;
  text-align: left;
  margin: 0;
  padding: 0 20px;
  font-size: 20px;
  line-height: 1.6;
}

/* ===============================
   ОТДЕЛЬНЫЕ СТРАНИЦЫ С ФОНАМИ
================================ */
body.home   { background-image: url('./IMG/V11.jpg'); }
body.music  { background-image: url('./IMG/IT.jpg'); }
body.video  { background-image: url('./IMG/IT1.jpg'); }
body.about  { background-image: url('./IMG/OM_VB.jpg'); }
body.IT     { background-image: url('./IMG/IT1.jpg'); }
body.collob { background-image: url('./IMG/collob2.jpg'); }
body.photo  { background-image: url('./IMG/V3.jpg'); }
body.stats  { background-image: url('./IMG/V2.jpg'); }

/* ===============================
   ЗАГОЛОВКИ
================================ */
h1 {
  font-size: 2.5em;
  margin: 100px 0 30px;
}

/* ===============================
   КНОПКИ
================================ */
.btn {
  display: inline-block;
  background: green;
  margin-top: 20px;
  padding: 10px 20px;
  border: 1px solid white;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  transition: background 0.3s;
}
.btn:hover {
  background: darkgreen;
}

/* ===============================
   ХЕДЕР
================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #000;
  z-index: 1000;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}
#menu { width: 100%; }

/* ===============================
   КОНТЕНТ
================================ */
main {
  padding-top: 120px;
  padding-bottom: 60px;
  align-items: left;
  max-width: 1200px;
  margin: 0 50px;
}

/* ===============================
   ТРЕКИ
================================ */
.container {
  margin: 20px 0;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.track {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0px;
}

/* ===============================
   БЛОК С ОБЛОЖКОЙ / ВИДЕО
================================ */
.music-track {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
}
.music-track__img,
.music-track__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.music-track__video {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  z-index: 2;
}

/* ===============================
   АУДИО
================================ */
audio {
  width: 100%;
  max-width: 400px;
  margin-top: 10px;
}
.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 15px;
  background: #111;
  border-radius: 10px;
  margin-bottom: 20px;
  align-items: center;
  border: 1px solid #ddd;
}

.filter-panel label {
  font-weight: bold;
  margin-right: 5px;
}

.filter-panel select {
  max-width: 900px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #bbb;
  background: white;
  font-size: 14px;
  cursor: pointer;
}

.filter-reset {
  padding: 7px 16px;
  background: #ff4d4d;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.2s;
}

.filter-reset:hover {
  background: #d93636;
}
.filter-panel {
  position: sticky;
  top: 120px; /* высота верхнего меню! Подстрой под свой header */
  z-index: 1000;
}

.filter-panel-wrapper {
  position: sticky;
  top: 120px; /* высота верхнего меню (подстрой под себя) */
  z-index: 1000;
  background: #111; /* лёгкая прозрачность */
  backdrop-filter: blur(4px); /* красиво размывает фон */
  padding: 1px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* тень при прилипании */
}

/* Контейнер для центрирования и ограничения ширины */
.filter-panel {
  max-width: 900px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 15px;
  background: #111;
  border-radius: 10px;
  border: 1px solid #ddd;
  align-items: center;
}

/* ===============================
   РАЗДЕЛИТЕЛЬ
================================ */
hr {
  width: 100%;
  max-width: 400px;
  border: none;
  border-top: 1px solid #555;
  margin: 15px 0;
}

/* ===============================
   ФОТОГАЛЕРЕЯ
================================ */
.photo .photo-gallery img {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 8px;
  display: block;
  margin: 20px auto;
}

/* ===============================
   ИЗОБРАЖЕНИЕ ТОЛЬКО ДЛЯ МОБИЛЬНЫХ
================================ */
/* По умолчанию скрываем */
.mobile-only {
  display: none !important;
}

/* ===============================
   НАВИГАЦИЯ
================================ */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000;
  width: 90%;
  flex-wrap: wrap;
}
nav a img {
  display: block;
  max-height: 100px;
}
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 0;
  padding: 0;
}
nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
nav ul li a:hover {
  color: #1e90ff;
}

/* ===============================
   БУРГЕР-МЕНЮ
================================ */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 25px;
}
.burger span {
  height: 3px;
  background: #fff;
  margin-bottom: 5px;
  border-radius: 2px;
}

/* ===============================
   ФУТЕР
================================ */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #000;
  color: #fff;
  text-align: center;
  line-height: 25px;
  font-size: 16px;
  z-index: 1000;
  height: 25px;
}

/* ===============================
   АДАПТИВ (TABLET)
================================ */
@media (max-width: 1024px) {
  h1 { font-size: 2em; }
  .container {
    margin: 20px auto;
  }
  main { 
    margin: 0px 5px;
  }
  body {
    background-color: black;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: auto;
    background-attachment: fixed;
    color: #FFF;
    font-family: 'Roboto', sans-serif;
    text-align: left;
    margin: 0;
    padding: 0 20px;
    font-size: 20px;
    line-height: 1.6;
  }
}

/* ===============================
   АДАПТИВ (MOBILE)
================================ */
@media (max-width: 768px) {
  header { flex-wrap: wrap; }
  .burger { display: flex; }
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #000;
    padding: 10px 0;
  }
  nav ul.show { display: flex; }
  nav ul li { text-align: center; }
  h1 { margin-top: 140px; font-size: 1.8em; }

  /* Показываем изображение только на мобильных */
  .mobile-only {
    display: block !important;
  }
}

/* ===============================
   АДАПТИВ (SMALL MOBILE)
================================ */
@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 1.5em; }
  .music-track { max-width: 100%; }
  audio { max-width: 100%; }

  /* Показываем изображение только на маленьких экранах */
  .mobile-only {
    display: block !important;
  }
}
/* Плашка для мобильного фильтра */
.filter-toggle {
    display: none;  /* по умолчанию скрыто — будет показано на мобилках */
    position: sticky;
    top: 120px; /* подстрой под высоту меню */
    z-index: 1100;
    background: #222;
    padding: 1px 1px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    text-align: center;
    user-select: none;
}

/* Контейнер фильтров (из предыдущей версии) */
.filter-panel-wrapper {
    position: sticky;
    background: transparent;
    backdrop-filter: none;
    top: 120px; /* под плашку */
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Основная панель */
.filter-panel {
    max-width: 900px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
    background: #111;
    border-radius: 10px;
    border: 1px solid #ddd;
}

/* --- Адаптив под мобильные --- */
@media (max-width: 1920px) {

    .filter-toggle {
        display: block; /* показываем плашку */
    max-width: 930px;
	 border-bottom-right-radius: 16px;
	 border-bottom-left-radius: 16px;
    }

    /* Панель скрыта по умолчанию */
    .filter-panel-wrapper {
        display: none;
        top: 120px;
    }

    /* Активная панель (после клика) */
    .filter-panel-wrapper.active {
        display: block;
        animation: fadeIn 0.2s ease;
    }

    /* Делаем фильтры вертикальными */
    .filter-panel {
        flex-direction: column;
        gap: 10px;
    }
}
.filter-panel select {
    width: 290px;
    min-width: 290px;
    box-sizing: border-box;
    padding: 6px;
    font-size: 16px;
}


/* Анимация */
@keyframes fadeIn {
    from {opacity: 0;}
    to   {opacity: 1;}
}


.adult-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,0,0,0.7);
  color: #fff;
  font-weight: bold;
  font-size: 2em;
  padding: 5px 10px;
  border-radius: 8px;
  pointer-events: none;
  z-index: 2;
}
.music-track {
  position: relative; /* важно для корректного отображения бейджа */
}
