/* Scoped to the player container to be safe */
.audio-player {
  display: flex;
  align-items: center;
  background-color: #112d5e;
  padding: 15px;
  border-radius: 8px;
  color: white;
  width: 100%; /* Changed from fixed 300px to responsive */
  max-width: 400px;
  gap: 15px;
  box-sizing: border-box;
  margin-bottom: 15px;
}

.audio-player .play-pause {
  background-color: #00c2bb;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  min-width: 50px; /* Prevent shrinking */
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #112d5e;
}

.audio-player .play-pause:hover {
  transform: scale(1.1);
  background-color: #00a8a3;
}

.audio-player .audio-info {
  flex: 1;
  min-width: 0;
}

.audio-player .audio-title {
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
  font-family: sans-serif;
}

.audio-player .progress-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.audio-player .progress-bar {
  background-color: #6c6c6c;
  height: 5px;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 5px;
  cursor: pointer;
  position: relative;
  width: 100%;
}

.audio-player .progress {
  height: 100%;
  width: 0;
  background-color: #00c2bb;
  transition: width 0.1s linear;
}

.audio-player .time {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-family: monospace;
}

/* Center the SVG inside the circular play/pause button */
.audio-player .play-pause .icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.audio-player .play-pause .icon-wrapper svg {
  display: block;
  width: 60%;
  height: 60%;
  pointer-events: none; /* let the button receive clicks */
}