@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;600;700&display=swap');

/* Reset and basic typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Unbounded', sans-serif;
  background: #0a0a0f;
  color: #f0f0f5;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Containers */
.container {
  width: 90%;
  max-width: 2000px;
  margin: 0 auto;
}

header {
  background: rgba(10, 10, 16, 0.9);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid #222;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

nav .logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: #e63946;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li + li {
  margin-left: 1.5rem;
}

nav ul a {
  position: relative;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav ul a:hover,
nav ul a.active {
  color: #e63946;
}

nav ul a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #e63946;
  transition: width 0.3s ease;
}

nav ul a:hover::after,
nav ul a.active::after {
  width: 100%;
}

/* Бургер‑меню */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.burger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #e63946;
  border-radius: 2px;
}

.nav-auth a {
  margin-left: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #f0f0f5;
  background: #e63946;
  padding: 6px 14px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.nav-auth a:hover {
  background: #b43038;
}

main {
  padding-top: 80px;
}

/* Hero section */
.hero {
  background: linear-gradient(180deg, #0a0a0f 0%, #1a1a24 100%);
  padding: 80px 0 60px;
  text-align: center;
  color: #e5e5ea;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.1rem;
  color: #8888a0;
}

/* Section titles */
section h2 {
  font-size: 2rem;
  margin: 40px 0 20px;
  text-align: center;
  color: #e63946;
}

/* Durka section */
.durka {
  padding: 10px 0;
  background-color: #111118;
  text-align: center; /* Центрирование текста в блоке */
}

.durka-content {
  display: flex;
  flex-direction: column; /* Изменяем на колонку для вертикального расположения */
  align-items: center; /* Центрируем элементы по оси X */
  justify-content: center; /* Центрируем элементы по оси Y */
}

.durka-image {
  width: 100%;
  max-width: 1200px; /* Максимальная ширина изображения */
  border-radius: 10px; /* Скругленные углы */
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Плавные переходы */
  margin-bottom: 20px; /* Отступ между картинкой и текстом */
}

.durka-image:hover {
  transform: scale(1.05); /* Увеличение изображения при наведении */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Тень для изображения */
}

.durka-text {
  flex: 1;
  max-width: 1200px; /* Максимальная ширина для текста */
  margin-top: 20px; /* Отступ сверху */
  font-size: 1.1rem;
  line-height: 1.8;
  color: #e5e5e5; /* Светлый цвет для контраста */
  text-align: justify;
  text-justify: inter-word; /* Расстояние между словами */
}

.durka-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #e63946; /* Красный цвет для выделения заголовка */
}

/* Artists grid on home */
.knights {
  padding: 10px 0;
}

.artists-grid {
  display: grid;
  /* Увеличиваем минимальный размер карточек на главной странице — карточки стали немного шире */
  grid-template-columns: repeat(auto-fit, minmax(236px, 1fr));
  gap: 20px;
  max-width: 3000px;
  margin: 0 auto;
}

.artist-card {
  background: #1a1a24;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.artist-card:nth-child(1) { animation-delay: 0.1s; }
.artist-card:nth-child(2) { animation-delay: 0.2s; }
.artist-card:nth-child(3) { animation-delay: 0.3s; }
.artist-card:nth-child(4) { animation-delay: 0.4s; }
.artist-card:nth-child(5) { animation-delay: 0.5s; }
.artist-card:nth-child(6) { animation-delay: 0.6s; }
.artist-card:nth-child(7) { animation-delay: 0.7s; }
.artist-card:nth-child(8) { animation-delay: 0.8s; }
.artist-card:nth-child(9) { animation-delay: 0.9s; }

.artist-image {
  width: 100%;
  /* Увеличиваем высоту изображения внутри карточки, чтобы карточка выглядела крупнее */
  height: 180px;
  margin-bottom: 10px;
  background: #2c2c3a;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #444;
}

/* Изображения внутри карточек должны заполнять контейнер и сохранять пропорции */
.artist-image img {
  width: 100%;
  height: 100%;
  object-fit: stretch;
  border-radius: 4px;
}

.artist-card h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: #f0f0f5;
}

.artist-card span {
  font-size: 0.8rem;
  color: #77778d;
}

/* Contact section */
.contact {
  padding: 6px 0;
  background: #111118;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  max-width: 2560px;
  margin: 0 auto;
}

.contact-info {
  flex: 1 1 300px;
  font-size: 0.95rem;
  color: #ccccdd;
  line-height: 1.8;
}

.map-container {
  flex: 1 1 400px;
  min-height: 250px;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
}

footer {
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
  background: #0a0a0f;
  border-top: 1px solid #222;
  color: #555;
}

/* Artists page */
.artists-list {
  padding: 40px 0;
  max-width: 1000px;
  margin: 0 auto;
}

.artist-entry {
  background: #1a1a24;
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.artist-entry:nth-child(1) { animation-delay: 0.1s; }
.artist-entry:nth-child(2) { animation-delay: 0.2s; }
.artist-entry:nth-child(3) { animation-delay: 0.3s; }
.artist-entry:nth-child(4) { animation-delay: 0.4s; }
.artist-entry:nth-child(5) { animation-delay: 0.5s; }
.artist-entry:nth-child(6) { animation-delay: 0.6s; }
.artist-entry:nth-child(7) { animation-delay: 0.7s; }
.artist-entry:nth-child(8) { animation-delay: 0.8s; }
.artist-entry:nth-child(9) { animation-delay: 0.9s; }

.artist-entry .entry-image {
  flex: 0 0 150px;
  height: 150px;
  background: #2c2c3a;
  border-radius: 4px;
  overflow: hidden;  /* Обрезаем лишнее, если изображение выходит за границы */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.artist-entry .entry-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* Сохраняет пропорции и заполняет контейнер */
  border-radius: 4px;
}

.artist-entry .entry-content {
  flex: 1 1 300px;
}

.artist-entry h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #e63946;
}

.artist-entry .genre {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: #302c36;
  color: #e63946;
  font-size: 0.75rem;
  margin-bottom: 6px;
}

.artist-entry .stats {
  font-size: 0.8rem;
  color: #77778d;
  margin-bottom: 6px;
}

.artist-entry p {
  font-size: 0.95rem;
  color: #ccccdd;
}

/* Reviews page */
.reviews-list {
  padding: 40px 0;
  max-width: 1000px;
  margin: 0 auto;
}

.review-card {
  display: flex;
  flex-wrap: wrap;
  background: #1a1a24;
  margin-bottom: 40px;
  padding: 20px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.review-card:nth-child(1) { animation-delay: 0.1s; }
.review-card:nth-child(2) { animation-delay: 0.2s; }
.review-card:nth-child(3) { animation-delay: 0.3s; }
.review-card:nth-child(4) { animation-delay: 0.4s; }
.review-card:nth-child(5) { animation-delay: 0.5s; }
.review-card:nth-child(6) { animation-delay: 0.6s; }

.review-card .cover {
  flex: 0 0 150px;
  height: 150px;
  background: #2c2c3a;
  border-radius: 4px;
  margin-right: 20px;
  margin-bottom: 10px;
}

.review-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.review-card .review-content {
  flex: 1 1 300px;
}

.review-card .album-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #f0f0f5;
}

.review-card .album-meta {
  font-size: 0.8rem;
  color: #77778d;
  margin-bottom: 10px;
}

.review-card .rating {
  color: #e63946;
  font-weight: 600;
  margin-bottom: 8px;
}

.review-card ul {
  list-style: disc;
  margin-left: 1.2rem;
  margin-bottom: 10px;
}

.review-card ul li {
  font-size: 0.9rem;
  color: #ccccdd;
  margin-bottom: 4px;
}

.review-card .verdict {
  font-size: 0.95rem;
  color: #ccccdd;
  line-height: 1.5;
}

/* Music page */
.player-section {
  padding: 40px 0;
  max-width: 1000px;
  margin: 0 auto;
}

.player-card {
  background: #1a1a24;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.player-card .track-cover {
  width: 400px;
  height: 400px;
  margin-bottom: 10px;
  background: #2c2c3a;
  border-radius: 4px;
}

.player-card #track-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.player-card h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
  color: #e63946;
}

.player-card p {
  font-size: 0.9rem;
  color: #77778d;
  margin-bottom: 10px;
}

/* Music page */
.player-section {
  padding: 40px 0;
  max-width: 1000px;
  margin: 0 auto;
}

.player-card {
  background: #1a1a24;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.track-cover {
  width: 400px;
  height: 400px;
  margin-bottom: 10px;
  background: #2c2c3a;
  border-radius: 4px;
}

.track-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
  color: #e63946;
}

#current-artist {
  font-size: 0.9rem;
  color: #77778d;
  margin-bottom: 10px;
}

/* Длительность трека */
.track-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

#progress {
  width: 280px;
}

#track-duration {
  color: #e63946;
  font-size: 1rem;
}

/* Контролы для плеера */
.controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.controls button {
  background: #e63946;
  border: none;
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.controls button:hover {
  background: #b43038;
}

.controls input[type="range"] {
  width: 200px;
}

/* Ползунок громкости */
.audio-controls {
  margin-top: 10px;
}

.audio-controls .volume-slider {
  width: 150px;
}

.playlist {
  background: #1a1a24;
  border-radius: 8px;
  padding: 20px;
}

.playlist ul {
  list-style: none;
}

.playlist li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #2c2c3a;
  cursor: pointer;
  color: #ccccdd;
  font-size: 0.95rem;
}

.playlist li:hover {
  color: #e63946;
}

.playlist li:last-child {
  border-bottom: none;
}

/* Modal styles */
#modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2000;
}

#modal-overlay.active {
  visibility: visible;
  opacity: 1;
}

.modal {
  background: #1a1a24;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.modal h3 {
  margin-bottom: 10px;
  color: #e63946;
}

.modal form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal input[type="text"],
.modal input[type="email"],
.modal input[type="password"] {
  padding: 10px;
  border: 1px solid #333;
  border-radius: 4px;
  background: #0f0f16;
  color: #e5e5ea;
}

.modal button {
  padding: 10px;
  background: #e63946;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.modal button:hover {
  background: #b43038;
}

.modal .switch-link {
  font-size: 0.8rem;
  color: #77778d;
  cursor: pointer;
}

.modal .captcha-placeholder {
  height: 60px;
  background: #2c2c3a;
  border: 1px dashed #444;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #555;
}

/* Стили для поля капчи в модальном окне входа. Состоит из вопроса и
   поля ввода. Размещаются вертикально, с небольшими отступами. */
.captcha-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.85rem;
  color: #ccccdd;
}

.captcha-field label {
  margin-left: 2px;
}

.captcha-field input {
  padding: 8px;
  border: 1px solid #333;
  border-radius: 4px;
  background: #0f0f16;
  color: #e5e5ea;
  width: 100%;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.durka-text p {
  animation: fadeInText 0.6s ease-out;
}

@media (max-width: 768px) {
  .durka-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .durka-image {
    max-width: 90%; /* Изменим размер изображения */
    margin-bottom: 20px;
  }

  .durka-text {
    font-size: 1rem; /* Меньший размер шрифта на мобильных устройствах */
    margin-left: 0;
  }
}

@media (max-width: 700px) {
  /* На мобильных устройствах скрываем обычное горизонтальное меню
     и отображаем бургер. Меню раскрывается по клику на бургер. */
  nav ul {
    position: absolute;
    top: 60px;
    right: 20px;
    background: #1a1a24;
    flex-direction: column;
    width: 200px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
  }
  nav ul.open {
    display: flex;
  }
  nav ul li + li {
    margin-left: 0;
    margin-top: 10px;
  }
  .burger {
    display: flex;
  }
  /* Уменьшаем отступы в карточках и перестраиваем колонки */
  .artist-card {
    padding: 15px;
  }
  .artists-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .artist-entry {
    flex-direction: column;
    align-items: center;
  }
  .artist-entry .entry-image,
  .review-card .cover {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .contact-grid {
    flex-direction: column;
  }
}

/* Стили для страницы авторизации */
.auth-section {
  padding: 80px 0;
  min-height: 100vh; /* Убедитесь, что секция занимает всю высоту экрана */
  display: flex;
  align-items: center; /* Центрируем по вертикали */
  justify-content: center; /* Центрируем по горизонтали */
}

.auth-container {
  background: #1a1a24;
  padding: 40px;
  border-radius: 8px;
  width: 100%;
  max-width: 500px; /* Увеличиваем максимальную ширину */
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Добавляем тень для формы */
}

.auth-form h3 {
  margin-bottom: 20px;
  color: #e63946;
  font-size: 1.6rem; /* Увеличиваем размер шрифта заголовка */
}

.auth-form form {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Увеличиваем отступы между элементами формы */
}

.auth-form input[type='text'],
.auth-form input[type='email'],
.auth-form input[type='password'] {
  padding: 15px;
  border: 1px solid #333;
  border-radius: 4px;
  background: #0f0f16;
  color: #e5e5ea;
  font-size: 1rem; /* Увеличиваем размер шрифта в инпутах */
}

.auth-form button {
  padding: 15px;
  background: #e63946;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1rem; /* Увеличиваем размер шрифта в кнопке */
}

.auth-form button:hover {
  background: #b43038;
}

.auth-form .switch-link {
  margin-top: 10px;
  font-size: 1rem; /* Увеличиваем размер шрифта для ссылки */
  color: #77778d;
  cursor: pointer;
}