/* ── LESSON AUDIO PLAYER ── */
.lesson-audio {
  --audio-sage: #6B7F5B;
  --audio-sage-dark: #5A6B4A;
  --audio-coral: #B5785E;
  --audio-cream: #F5F0E8;
  --audio-warm: #FBF5EC;
  --audio-dark: #2D2D2D;
  --audio-grey: #6B7280;

  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 460px;
  margin: 1.4rem auto 0;
  padding: 0.75rem 0.9rem 0.75rem 0.75rem;
  background: #FFFDF8;
  border: 1px solid rgba(107, 127, 91, 0.22);
  border-radius: 999px;
  box-shadow: 0 6px 22px rgba(45, 45, 45, 0.07), 0 1px 2px rgba(45,45,45,0.04);
  text-align: left;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.lesson-audio:hover {
  box-shadow: 0 10px 28px rgba(45, 45, 45, 0.09), 0 1px 2px rgba(45,45,45,0.04);
  border-color: rgba(107, 127, 91, 0.4);
}
.lesson-audio.is-unavailable {
  opacity: 0.6;
}
.lesson-audio.is-unavailable .audio-play {
  cursor: not-allowed;
  background: var(--audio-grey);
}

.audio-play {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--audio-sage);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  padding: 0;
}
.audio-play:hover {
  background: var(--audio-sage-dark);
  transform: scale(1.04);
}
.audio-play:active { transform: scale(0.97); }
.audio-play svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.audio-play .icon-pause { display: none; }
.lesson-audio.is-playing .audio-play .icon-play { display: none; }
.lesson-audio.is-playing .audio-play .icon-pause { display: block; }

.audio-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.audio-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
}
.audio-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--audio-sage-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.audio-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--audio-coral);
  border-radius: 50%;
  margin-right: 0.45rem;
  vertical-align: 2px;
}
.audio-time {
  flex-shrink: 0;
  font-size: 0.76rem;
  color: var(--audio-grey);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.audio-progress {
  position: relative;
  height: 4px;
  background: rgba(107, 127, 91, 0.18);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}
.audio-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--audio-sage) 0%, var(--audio-coral) 100%);
  border-radius: 2px;
  transition: width 0.12s linear;
}

@media (max-width: 520px) {
  .lesson-audio {
    gap: 0.7rem;
    padding: 0.6rem 0.8rem 0.6rem 0.6rem;
    max-width: 100%;
  }
  .audio-play { width: 40px; height: 40px; }
  .audio-play svg { width: 16px; height: 16px; }
  .audio-label { font-size: 0.72rem; letter-spacing: 1.2px; }
}
