/* audio-player.css — Lecteur audio bottom sheet */

.audio-player {
  position: relative;
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-accent-dim);
  flex-shrink: 0;
  z-index: 200;
  animation: player-appear 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes player-appear { from{transform:translateY(100%)} to{transform:translateY(0)} }

.audio-player__inner { padding: var(--space-3) var(--space-4) var(--space-2); display: flex; flex-direction: column; gap: var(--space-2); }

.audio-player__info { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }

.audio-player__poi-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.audio-player__time { font-size: var(--text-xs); color: var(--color-text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; }
.audio-player__time-separator { margin: 0 2px; opacity: .5; }

.audio-player__progress-wrapper { padding: var(--space-1) 0; }
.audio-player__progress {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-full);
  cursor: pointer;
  outline: none;
}
.audio-player__progress::-webkit-slider-runnable-track { height: 3px; border-radius: var(--radius-full); }
.audio-player__progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--color-accent);
  border-radius: 50%;
  margin-top: -5.5px;
  box-shadow: 0 0 8px var(--color-accent-dim);
  transition: transform var(--transition-fast);
}
.audio-player__progress:active::-webkit-slider-thumb { transform: scale(1.3); }
.audio-player__progress::-moz-range-track { height: 3px; background: var(--color-bg-elevated); border-radius: var(--radius-full); }
.audio-player__progress::-moz-range-thumb { width: 14px; height: 14px; background: var(--color-accent); border: none; border-radius: 50%; }

.audio-player__controls { display: flex; align-items: center; justify-content: center; gap: var(--space-4); }

.player-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}
.player-btn:active { transform: scale(0.92); opacity: .8; }
.player-btn--primary { width: 52px; height: 52px; background: var(--color-accent); color: var(--color-bg-primary); box-shadow: 0 2px 12px var(--color-accent-dim); }
.player-btn--secondary { width: 40px; height: 40px; color: var(--color-text-secondary); }
.player-btn--close { width: 36px; height: 36px; color: var(--color-text-muted); margin-left: var(--space-4); }

.audio-player__buffering { display: flex; align-items: center; gap: var(--space-2); justify-content: center; font-size: var(--text-xs); color: var(--color-text-muted); padding: var(--space-1) 0; }
