.podcast-player-container {
  width: 100%;
  /* max-width: 48rem; */
  margin: 1.25rem 0;
  font-family: system-ui, -apple-system, sans-serif;
}

.podcast-player {
  background-color: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid #f5f5f5;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
}

.podcast-player:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.progress-section {
  margin-bottom: 1.5rem;
}

.range-slider-wrapper {
  position: relative;
  width: 100%;
  height: 8px;
  background-color: #f5f5f5;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.progress-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #171717;
  border-radius: 999px;
  pointer-events: none;
  width: 0%;
}

.podcast-player-container .progress-bar {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 2;
  padding: 0;
  border: 0;
  transform: none;
}

.podcast-player-container .progress-bar::-webkit-slider-runnable-track {
  height: 8px;
  background: transparent;
  border: 0;
}

.podcast-player-container .progress-bar::-moz-range-track {
  height: 8px;
  background: transparent;
  border: 0;
}

.podcast-player-container .progress-bar:focus {
  outline: none;
}

.podcast-player-container .progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 12px;
  width: 12px;
  margin-top: -2px;
  margin-left: -2px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #171717;
  transition: transform 0.1s;
  opacity: 0;
}

.podcast-player-container .range-slider-wrapper:hover .progress-bar::-webkit-slider-thumb {
  opacity: 1;
}

.podcast-player-container .progress-bar:active::-webkit-slider-thumb {
  transform: scale(1.2);
  opacity: 1;
}

.podcast-player-container .progress-bar::-moz-range-thumb {
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #171717;
  transition: transform 0.1s;
  opacity: 0;
}

.podcast-player-container .range-slider-wrapper:hover .progress-bar::-moz-range-thumb {
  opacity: 1;
}

.time-display {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: #a3a3a3;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.025em;
}

.controls-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.speed-btn {
  width: 3rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
  color: #737373;
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.speed-btn:hover {
  color: #171717;
  background-color: #f5f5f5;
}

.main-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .main-controls {
    gap: 1.5rem;
  }
}

.control-btn {
  background: transparent;
  border: none;
  color: #a3a3a3;
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.control-btn:hover {
  color: #171717;
  background-color: #f5f5f5;
}

.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skip-text-back,
.skip-text-forward {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  transform: translate(-50%, -35%);
}

.skip-text-back {
  margin-left: -1px;
}

.skip-text-forward {
  margin-left: 1px;
}

.play-pause-btn {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background-color: #171717;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  outline: none;
}

.play-pause-btn:hover {
  background-color: #262626;
  transform: scale(1.05);
  outline: none;
}

.play-pause-btn:active {
  transform: scale(0.95);
  outline: none;
}

button.play-pause-btn:before, button.control-btn:before{
  outline: none;
  border: 0;
}

.volume-container {
  display: flex;
  align-items: center;
  position: relative;
  height: 2.5rem;
}

.volume-container .control-btn {
  position: relative;
  z-index: 10;
}

.volume-slider-wrapper {
  width: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  opacity: 0;
  display: flex;
  align-items: center;
  height: 100%;
}

.volume-container:hover .volume-slider-wrapper {
  width: 6rem;
  opacity: 1;
}

.volume-slider-inner {
  width: 6rem;
  padding: 0 0.5rem;
  display: flex;
  align-items: center;
  height: 100%;
}

.podcast-player-container .volume-bar {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  position: relative;
  background: transparent;
  cursor: pointer;
}

.podcast-player-container .volume-bar:focus {
  outline: none;
}

.podcast-player-container .volume-bar::-webkit-slider-runnable-track {
  height: 6px;
  background-color: #e5e5e5;
  border-radius: 999px;
  border: 0;
}

.podcast-player-container .volume-bar::-moz-range-track {
  height: 6px;
  background-color: #e5e5e5;
  border-radius: 999px;
  border: 0;
}

.podcast-player-container .volume-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -3px;
  border-radius: 50%;
  border: 0;
  background-color: #171717;
}

.podcast-player-container .volume-bar::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background-color: #171717;
}

@media (max-width: 540px) {
  .podcast-player {
    padding: 1rem 1.25rem;
  }

  .play-pause-btn {
    width: 3rem;
    height: 3rem;
  }

  .controls-section {
    gap: 0.25rem;
  }
}

.podcast-player-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1rem 0;
  flex-wrap: nowrap;
}

.podcast-player-heading-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background-color: #171717;
  box-shadow: inset 0 0 0 1px #e5e5e5;
  flex: 0 0 1rem;
}

.podcast-player-heading-text {
    margin: 0;
      font-size: 0.8rem;
      font-weight: 600;
      display: inline-block;
      line-height: 1;
      white-space: nowrap;
      text-transform: uppercase;
      text-align: center;
      width: 100%;
      margin-bottom: 16px;
}

.podcast-player-attribution {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #a3a3a3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  line-height: 1.4;
}

.podcast-player-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #525252;
  font-weight: 500;
}

.podcast-player-brand-icon {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
  object-fit: contain;
  border-radius: 2px;
  opacity: 0.9;
}

.podcast-player-brand-name {
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .podcast-player-heading {
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .podcast-player-heading-text {
    /* font-size: clamp(1rem, 6vw, 1.5rem);
    letter-spacing: 0.06em; */
    white-space: normal;
  }
}
