/* ═══════════════════════════════════════════════════════
   Radio Musique Libre — Podcast Player
   Player sobre et élaboré pour la page Podcasts
═══════════════════════════════════════════════════════ */

.rml-podcast-player,
.rml-podcast-player *,
.rml-podcast-player *::before,
.rml-podcast-player *::after { box-sizing: border-box; }

.rml-podcast-player {
  --rpod-grad:    linear-gradient(90deg, #ff0000, #ff8c00, #ffd400, #00c853, #00b8d4, #3d5afe, #9c27b0);
  --rpod-grad135: linear-gradient(135deg, #ff0000, #ff8c00, #ffd400, #00c853, #00b8d4, #3d5afe, #9c27b0);
  --rpod-bg:      #0d0d14;
  --rpod-card:    #13131f;
  --rpod-border:  rgba(255,255,255,.08);
  --rpod-text:    #ffffff;
  --rpod-muted:   rgba(255,255,255,.45);

  font-family: 'DM Sans', sans-serif;
  background: var(--rpod-card);
  border: 1px solid var(--rpod-border);
  border-radius: 16px;
  padding: 28px 24px;
  max-width: 520px;
  margin: 1.2rem auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.35);
}

/* Bande dégradée en haut */
.rml-podcast-player::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rpod-grad);
}

/* ── En-tête ── */
.rpod-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.rpod-emoji {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.rpod-meta {
  flex: 1;
  min-width: 0;
}

.rpod-titre {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--rpod-text);
  margin: 0 0 4px;
  line-height: 1.2;
}

.rpod-date {
  font-size: .75rem;
  font-weight: 500;
  background: var(--rpod-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Bouton play/pause ── */
.rpod-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.rpod-play-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--rpod-grad135);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .15s, box-shadow .3s;
  box-shadow: 0 4px 20px rgba(255,0,0,.3);
  animation: rpod-pulse 2.5s ease-in-out infinite;
}
.rpod-play-btn.paused { animation: none; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.rpod-play-btn:hover  { transform: scale(1.08); }
.rpod-play-btn:active { transform: scale(.92); }
.rpod-play-btn.loading { opacity: .6; pointer-events: none; }
.rpod-play-btn svg    { width: 22px; height: 22px; fill: #fff; display: block; }

@keyframes rpod-pulse {
  0%,100% { box-shadow: 0 0 0 0   rgba(255,0,0,.4), 0 4px 20px rgba(255,0,0,.3); }
  50%      { box-shadow: 0 0 0 10px rgba(255,0,0,.0), 0 4px 20px rgba(255,0,0,.3); }
}

/* ── Temps ── */
.rpod-time-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rpod-times {
  display: flex;
  justify-content: space-between;
  font-size: .72rem;
  color: var(--rpod-muted);
  font-variant-numeric: tabular-nums;
}

/* ── Barre de progression ── */
.rpod-progress-wrap {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,.1);
  cursor: pointer;
  overflow: hidden;
}

.rpod-progress-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  border-radius: 3px;
  background: var(--rpod-grad);
  width: 0%;
  transition: width .1s linear;
  pointer-events: none;
}

.rpod-progress-wrap:hover .rpod-progress-fill {
  filter: brightness(1.15);
}

/* ── État indisponible ── */
.rpod-unavailable {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.04);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 4px;
  color: var(--rpod-muted);
  font-size: .82rem;
  line-height: 1.4;
}

.rpod-unavailable-icon { font-size: 1.4rem; flex-shrink: 0; }

/* ── Loading spinner ── */
.rpod-spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rpod-spin .7s linear infinite;
}
@keyframes rpod-spin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 480px) {
  .rml-podcast-player { padding: 20px 16px; border-radius: 12px; }
  .rpod-play-btn { width: 44px; height: 44px; }
  .rpod-play-btn svg { width: 18px; height: 18px; }
}
