.audio-player-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.ap-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ap-btn {
  background: var(--red);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  z-index: 2;
}

.ap-btn:hover {
  transform: scale(1.05);
  background: var(--red-hi);
}

.ap-icon-play {
  margin-left: 2px; /* Offset for visual centering of the triangle */
}

.ap-skip-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.ap-skip-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.ap-caption {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
  color: var(--white);
  height: 20px;
  overflow: hidden;
  margin-bottom: 2px;
  font-style: italic;
  font-weight: 400;
  opacity: 0.9;
}

.ap-cc-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ap-cc-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.ap-cc-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: 0 0 10px rgba(181, 51, 34, 0.3);
}

.ap-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 0; /* Allow title to truncate if needed */
}

.ap-title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--white);
  margin-bottom: 4px;
}

.ap-time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--s400);
}

.ap-progress-bg {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: 8px;
  position: relative;
  cursor: pointer;
}

/* Larger hit area for the progress bar without changing its visual height */
.ap-progress-bg::before {
  content: '';
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: 0;
  right: 0;
  z-index: 1;
}

.ap-progress-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: var(--red);
  width: 0%;
  border-radius: 2px;
  transition: width 0.1s linear;
  pointer-events: none; /* Let clicks pass through to BG */
}
