

/* Основной контейнер плеера */
.audio-player {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}




/* Кнопки управления */
.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.control-btn {
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.control-btn:hover {
  transform: scale(1.1);
}

.control-btn:active {
  transform: scale(0.95);
}

.play-btn {
  min-width: 3.8rem;
  min-height: 3.8rem;
  border-radius: 50%;
  background: #262675;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 1.5rem;
}

.play-btn svg {
  min-width: 1.2rem;
}

.audio-popup__audio {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4rem 0 7.5rem;
}

.audio-popup__cntrs {
    display: flex;
    align-items: center;
    margin-right: 1rem;
    line-height: 1;
}

.control-btn img {
  min-width: 1.5rem;
  min-height: 1.5rem;   
}

.hidden {
  display: none !important;
}

/* Прогресс воспроизведения */
.progress-container {
  display: flex;
  align-items: center;
}

.progress-bar {
  position: relative;
  width: 37rem;
  height: .5rem;
  background: #E1F1FA;
  margin: 0 1rem;
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: #262675;
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
  border-radius: 53px;
}

.seek-slider {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: .5rem;
  -webkit-appearance: none;
  appearance: none;
  background: #E1F1FA;
  outline: none;
  cursor: pointer;
  margin: 0;
  border-radius: 53px;

}

.seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: #262675;
  cursor: pointer;
  transition: all 0.2s ease;
}

.seek-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.seek-slider::-moz-range-thumb {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: #262675;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.seek-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

.current-time, .total-duration {
    font-size: 1.4rem;
    color: #8794B4;
    line-height: 1;
}

/* Регулятор громкости */
.volume-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 0 10px;
}

.volume-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #667eea;
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.volume-btn:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: scale(1.1);
}

.volume-btn svg {
  width: 24px;
  height: 24px;
}

.volume-slider {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

/* Дополнительные кнопки */
.additional-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.additional-controls .control-btn {
  width: 40px;
  height: 40px;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  box-shadow: none;
}

.additional-controls .control-btn:hover {
  background: rgba(102, 126, 234, 0.2);
}

.additional-controls .control-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.additional-controls .control-btn svg {
  width: 20px;
  height: 20px;
}

/* Плейлист */
.playlist-container {
  margin-top: 30px;
  border-top: 2px solid #f0f0f0;
  padding-top: 20px;
}

.playlist-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.playlist {
  list-style: none;
  max-height: 250px;
  overflow-y: auto;
}

.playlist-item {
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.playlist-item:hover {
  background: rgba(102, 126, 234, 0.1);
}

.playlist-item.active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  border-left: 4px solid #667eea;
}

.playlist-item-number {
  font-size: 14px;
  font-weight: 600;
  color: #999;
  min-width: 25px;
}

.playlist-item.active .playlist-item-number {
  color: #667eea;
}

.playlist-item-info {
  flex: 1;
  overflow: hidden;
}

.playlist-item-title {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-item-artist {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-item-duration {
  font-size: 12px;
  color: #999;
  margin-left: auto;
}

/* Скроллбар для плейлиста */
.playlist::-webkit-scrollbar {
  width: 6px;
}

.playlist::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 3px;
}

.playlist::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 3px;
}

.playlist::-webkit-scrollbar-thumb:hover {
  background: #764ba2;
}



.audio-to-hide {
   display: none !important;   
}


@media (max-width: 1023px) {
    .progress-bar {
    width: 20rem;
}

.audio-popup__audio {
    padding: 0 1.5rem;
}

.audio-popup__bottom-title {
    font-size: 1.2rem;
}
}


@media (max-width: 767px) {
.audio-popup__about {
  width: calc(100% - 3rem);
  padding: 3rem 1.5rem 1.5rem 1.5rem;
}

.audio-popup__title {
  font-size: 2rem;
}

.audio-popup__text {
   font-size: 1.4rem;
}

.current-time, .total-duration {
  display: none;
}
.audio-popup__audio {
   flex-wrap: wrap;
   padding-bottom: 1rem;
   padding-top: 1rem;
}
.audio-popup__player {
         min-width: calc(100% + 3rem);
        order: 1;
        margin-left: -1.5rem;
        transform: translateY(-1.2rem);
                margin-bottom: -.5rem;
}
    .progress-bar {
        width: 100%;
        margin: 0;
    }
    .audio-popup__bottom-title {
      order: 2;
      margin-left: 0;
        margin-right: 0;
        max-width: 50%;
    }

    .audio-popup__bottom-blue {
      order: 4;
              width: initial;
        height: initial;
        background: none;
        color: #8794B4;
        text-transform: initial;
        text-decoration: underline;
        margin-right: 20%;
    }

    .audio-popup__cntrs {
       order: 3;
       margin-left: 2rem;
       margin-right: 0;
    }

    .play-btn {
      width: 2.9rem;
      height: 2.9rem;
    }

  .control-btn img {
    min-width: 1.1rem;
    min-height: 1.1rem;
}

.next-btn, .prev-btn {
   padding: 0;
}


}