/* ===============================================
   PODCAST AUDIO PLAYER STYLES
   =============================================== */

/* 
 * IMPORTANT: All selectors in this file are prefixed with 
 * .podcast-player to ensure they don't interfere with 
 * parent theme video player styles
 */

/* Main container */
.podcast-player.custom-audio-player {
  max-width: 325px;
  width: 100%;
  background: white;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin: 20px auto 0;
}

/* Player header with title and episode badge */
.podcast-player .player-header {
  padding: 15px 15px 12px;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}

/* Episode badge styling */
.podcast-player .episode-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  display: inline-flex;
  align-items: center;
  background: rgba(0, 181, 226, 0.1);
  color: #00b5e2;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.8em;
  font-weight: 600;
  font-family: 'bliss-pro-medium', 'bliss-pro', sans-serif;
}

.podcast-player .episode-badge svg {
  width: 14px;
  height: 14px;
  margin-right: 4px;
  fill: #00b5e2;
}

/* Podcast title inside player */
.podcast-player .podcast-title {
  font-size: 0.9em;
  line-height: 1.4;
  color: #43455a;
  font-weight: 700;
  font-family: 'bliss-pro-bold', 'bliss-pro', sans-serif;
  margin-top: 30px;
  margin-right: 0;
}

/* Player controls */
.podcast-player .player-controls {
  display: flex;
  align-items: center;
  padding: 15px;
  gap: 12px;
}

/* Podcast Play button styling - ensuring no conflict with video player */
.podcast-player .play-button {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: #00b5e2;
  box-shadow: 0 2px 6px rgba(0, 181, 226, 0.2);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: static;
}

.podcast-player .play-button svg {
  width: 16px;
  height: 16px;
  fill: white;
  margin-left: 2px;
  position: static;
  transform: none;
  border: none;
}

.podcast-player .play-button .pause-icon {
  margin-left: 0;
}

.podcast-player .pause-icon rect {
  fill: white;
}

/* Progress and time display */
.podcast-player .progress-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.podcast-player .progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.podcast-player .time-display {
  font-size: 12px;
  color: #777;
  font-family: 'bliss-pro-medium', 'bliss-pro', sans-serif;
}

/* Volume button styling */
.podcast-player .volume-button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 181, 226, 0.1);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.podcast-player .volume-button svg {
  width: 14px;
  height: 14px;
  fill: #00b5e2;
}

.podcast-player .volume-button .volume-wave,
.podcast-player .volume-button .volume-wave-2 {
  stroke: #00b5e2;
  stroke-width: 1;
  fill: none;
}

.podcast-player .volume-button .volume-mute {
  display: none;
  stroke: #00b5e2;
  stroke-width: 1;
}

/* Volume slider that appears on hover */
.podcast-player .volume-slider {
  position: absolute;
  top: 50%;
  right: 35px;
  transform: translateY(-50%);
  background: white;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 5px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 10;
}

/* Show slider when hovering over either the button or the slider itself */
.podcast-player .volume-button:hover .volume-slider,
.podcast-player .volume-slider:hover {
  opacity: 1;
  visibility: visible;
}

.podcast-player .volume-range {
  -webkit-appearance: none;
  width: 60px;
  height: 4px;
  background: #eee;
  border-radius: 2px;
  outline: none;
  padding: 0;
  margin: 0;
}

.podcast-player .volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00b5e2;
  cursor: pointer;
}

.podcast-player .volume-range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00b5e2;
  cursor: pointer;
  border: none;
}

/* Progress bar */
.podcast-player .progress-bar {
  height: 4px;
  background: #eee;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.podcast-player .progress-fill {
  position: absolute;
  height: 100%;
  width: 0%;
  background: #00b5e2;
  border-radius: 2px;
}

/* Hide audio element */
.podcast-player audio {
  display: none;
}