/* --- Минималистичный белый плеер для detskiepesenki.ru --- */
.dp-audio-player {
  --dp-white: #ffffff;
  --dp-blue: #0133ea;
  --dp-pink: #eb0ea0;
  --dp-green: #7dc825;
  --dp-gray: #f4f4f4;

  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px; /* Отступы уменьшены в 2 раза */
  background: var(--dp-white);
  border: 1px solid #eef0f5;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(1, 51, 234, 0.05); /* Совсем маленькая тень */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  max-width: 800px;
  width: 100%;
  margin: 0 auto 16px;
  box-sizing: border-box;
}

/* Жёсткая защита иконок Font Awesome */
.dp-audio-player .fa {
  display: inline-block !important;
  font-size: 18px !important;
  line-height: 1 !important;
  color: inherit !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 1. Заголовок */
.dp-header {
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--dp-gray);
}
.dp-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dp-blue);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dp-artist {
  font-size: 13px;
  color: #888888;
  margin-top: 2px;
}

/* 2. Прогресс */
.dp-progress-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dp-time-display {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--dp-blue);
  font-variant-numeric: tabular-nums;
}
.dp-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--dp-gray);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  transition: height 0.2s ease;
}
.dp-progress-bar:hover { height: 8px; }

.dp-progress-filled {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0%;
  background: var(--dp-blue);
  border-radius: 3px;
  pointer-events: none;
}
.dp-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  background: var(--dp-white);
  border: 2px solid var(--dp-blue);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s ease;
  pointer-events: none;
  z-index: 2;
}
.dp-progress-bar:hover .dp-progress-thumb,
.dp-audio-player.is-dragging .dp-progress-thumb {
  transform: translate(-50%, -50%) scale(1);
}

/* 3. Управление */
.dp-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.dp-nav-group, .dp-extra-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.dp-btn:active { transform: scale(0.92); }
.dp-btn:focus-visible { outline: 2px solid var(--dp-green); outline-offset: 2px; }

.dp-btn-play {
  width: 46px;
  height: 46px;
  background: var(--dp-blue) !important;
  color: var(--dp-white) !important;
  border-radius: 50%;
}
.dp-btn-play:hover { background: var(--dp-pink) !important; }
.dp-btn-play .fa { font-size: 20px !important; margin-left: 2px; }
.dp-audio-player.is-playing .dp-btn-play .fa { margin-left: 0; }

.dp-btn-nav {
  width: 38px;
  height: 38px;
  background: var(--dp-gray) !important;
  color: var(--dp-blue) !important;
  border-radius: 50%;
}
.dp-btn-nav:hover { background: #e0e4f0 !important; }
.dp-btn-nav .fa { font-size: 16px !important; }

.dp-btn-icon {
  width: 34px;
  height: 34px;
  background: transparent !important;
  color: var(--dp-blue) !important;
  border-radius: 50%;
}
.dp-btn-icon:hover { background: var(--dp-gray) !important; }
.dp-btn-icon .fa { font-size: 16px !important; }

.dp-volume-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dp-volume-slider {
  width: 60px;
  height: 5px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--dp-gray);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.dp-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: var(--dp-blue);
  border-radius: 50%;
  cursor: pointer;
}
.dp-volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--dp-blue);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.dp-btn-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  height: 32px;
  background: var(--dp-white) !important;
  color: var(--dp-blue) !important;
  border: 1px solid var(--dp-gray) !important;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
}
.dp-btn-pill:hover { 
  border-color: var(--dp-blue) !important; 
  background: #f0f4ff !important;
}
.dp-btn-pill .fa { font-size: 13px !important; }

.dp-btn-pill.is-active {
  background: var(--dp-blue) !important;
  color: var(--dp-white) !important;
  border-color: var(--dp-blue) !important;
}

/* Логика иконок */
.dp-btn-play .fa-pause { display: none !important; }
.dp-audio-player.is-playing .dp-btn-play .fa-play { display: none !important; }
.dp-audio-player.is-playing .dp-btn-play .fa-pause { display: inline-block !important; }

.dp-btn-icon .fa-volume-off { display: none !important; }
.dp-audio-player.is-muted .dp-btn-icon .fa-volume-up { display: none !important; }
.dp-audio-player.is-muted .dp-btn-icon .fa-volume-off { display: inline-block !important; }

/* Адаптив для мобильных */
@media (max-width: 600px) {
  .dp-controls-row { justify-content: center; }
  .dp-extra-group { flex-wrap: wrap; justify-content: center; }
  .dp-volume-slider { width: 50px; }
}