body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  max-width: 90%;
  margin: 0 auto;
  padding: 10px;
  background-color: #000;
  color: #333;
}
/* @media (max-width: 600px) {
  .player-controls {
    flex-direction: column; /* Вертикальное расположение кнопок на узких экранах */
/* gap: 10px;
  }
} */

.player-panels-container {
  display: flex;
  gap: 30px; /* Расстояние между левой и правой панелью */
  align-items: flex-start; /* Чтобы элементы не растягивались по высоте */
}
.player-container {
  position: relative;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
  text-align: center;
  color: rgba(255, 255, 255);
  background-image: url("../assets/images/warning_bar_0000_us.jpg"); /* Замените на ваш URL */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.player-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Полупрозрачный черный слой */
  z-index: 0;
  border-radius: 15px;
}

.player-container > * {
  position: relative;
  z-index: 1;
}

h1 {
  margin: 0 0 15px 0;
  color: #ffffff;
  font-size: 28px;
  font-weight: 600;
}
.file-controls {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 1px;
}
.file-input-wrapper {
  position: relative;
  width: 180px;
}
.file-input-wrapper input[type="file"] {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.file-btn,
.add-btn {
  width: 150px;
  padding: 12px;
  background-color: #29c10e;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.control-btn-secondary {
  width: 40px;
  padding: 12px;
  background-color: #117ce7;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.file-btn:hover,
.add-btn:hover {
  background-color: #1fac1d;
  transform: scale(1.02);
}
.control-btn-secondary:hover {
  background-color: #064b90;
  transform: scale(1.02);
}
.timer-controls {
  display: flex;
  gap: 5px;
  margin: 5px 0;
  padding: 5px;
  background-color: rgba(38, 14, 224, 0.195);
  border-radius: 10px;
  flex-wrap: nowrap; /* Запрещаем перенос на новую строку */
  overflow-x: auto; /* Добавляем горизонтальную прокрутку при необходимости */
  min-width: 100%; /* Занимаем всю доступную ширину */
}

.timer-controls div {
  flex: 1 0 150px; /* Минимальная ширина 150px, можно растягиваться */
  min-width: 120px; /* Абсолютный минимум ширины */
}

.timer-controls label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap; /* Запрещаем перенос текста */
}

.timer-controls input {
  width: 80%;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(43, 160, 170, 0.5);
  color: white;
  min-width: 100px; /* Минимальная ширина поля ввода */
}

.playlist {
  margin: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.461);
  border-radius: 5px;
  max-height: 250px;
  overflow-y: auto;
  background-color: rgba(192, 188, 188, 0.5);
}

/* #playlist {
  min-height: 100px;
  border: 2px dashed rgba(249, 120, 120, 0.443);
  transition: all 0.3s;
}

#playlist.drag-over {
  border-color: #3498db;
  background-color: rgba(180, 208, 227, 0.36);
} */

.playlist-item {
  padding: 4px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
  color: rgb(255, 255, 255);
  user-select: none;
  -webkit-user-drag: element;
  cursor: grab;
}

.playlist-item:hover {
  background-color: rgba(92, 102, 245, 0.666);
}
.playlist-item.active {
  background-color: rgba(255, 255, 255, 0.692);
  font-weight: 500;
  color: #000;
}
.playlist-item.dragging {
  opacity: 0.5;
  background-color: rgba(52, 152, 219, 0.2);
  border: 1px dashed #3498db;
}

.playlist-item.placeholder {
  background-color: rgba(52, 152, 219, 0.1);
  border: 1px dashed #3498db;
  height: 0;
  padding: 0;
  border-width: 0 1px;
}

.progress-container {
  margin: 20px 0;
}
.progress-bar {
  height: 12px;
  background-color: rgba(255, 255, 255, 0.835);
  border-radius: 4px;
  margin-bottom: 8px;
  overflow: hidden;
}
.progress {
  height: 100%;
  background: linear-gradient(to right, #3498db, #2ecc71);
  width: 0%;
  border-radius: 4px;
  transition: width 0.1s;
}
.time-display {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgb(255, 251, 251);
}
.player-controls {
  display: flex;
  justify-content: center; /* Центрирование кнопок */
  align-items: center; /* Вертикальное выравнивание */
  gap: 15px; /* Расстояние между кнопками */
  margin: 5px 0;
  margin-top: 60px;
}
.control-btn {
  width: 60px;
  height: 60px;
  border-radius: 10%;
  border: none;
  background-color: #117ce7;
  color: rgb(251, 251, 255);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.708);
}
.control-btn:active {
  transform: scale(0.9); /* Эффект нажатия */
  background-color: rgba(69, 229, 250, 0.692);
}

.delete-btn, track-info{
  font-size: px;
  color: red;
  border-radius: 20%;
}

.player-left-panel {
  display: flex;
  flex-direction: column;
  align-items: center; /* Центрирование панели */
  gap: 15px; /* Расстояние между секциями панели */
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 10px; /* Расстояние между меткой и слайдером громкости */
  margin: 10px 0;
}

.secondary-controls {
  display: flex;
  justify-content: center; /* Центрирование кнопок */
  gap: 15px; /* Расстояние между кнопками */
}
/* Добавьте эти стили в ваш CSS */
.player-panels-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.player-left-panel {
  flex: 0 0 auto;
  min-width: 200px;
}

.player-right-panel {
  flex: 1;
}
@media (max-width: 768px) {
  .player-panels-container {
    flex-direction: column;
    /* Добавляем reverse чтобы поменять порядок панелей */
    flex-direction: column-reverse;
  }

  .player-left-panel {
    width: 100%;
  }

  .file-controls {
    flex-direction: column;
  }

  .timer-controls div {
    min-width: 100%;
  }
}

.speed-control {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 1px 0;
  justify-content: center;
}

#speedDisplay {
  min-width: 30px;
  text-align: center;
  font-size: 14px;
}

