/* ─── Radio sensibilisation — dock + page ─── */
:root {
  --rfp-radio-dock-h: 62px;
  --rfp-radio-accent: #00d4ff;
  --rfp-radio-glow: rgba(0, 212, 255, 0.35);
}

.rfp-radio-dock {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 4800;
  bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

@media (min-width: 992px) {
  .rfp-radio-dock {
    bottom: 0;
    max-width: 520px;
    left: auto;
    right: 20px;
    margin-bottom: 16px;
  }
}

.rfp-radio-dock--hidden {
  display: none !important;
}

.rfp-radio-dock__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 10px 8px;
  padding: 8px 12px 8px 10px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(8, 18, 32, 0.96) 0%, rgba(12, 28, 48, 0.98) 100%);
  border: 1px solid rgba(0, 212, 255, 0.25);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 0 24px var(--rfp-radio-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.rfp-radio-dock.is-playing .rfp-radio-dock__inner {
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 0 28px var(--rfp-radio-glow);
}

.rfp-radio-dock.is-loading .rfp-radio-player__status {
  color: var(--rfp-radio-accent);
}

.rfp-radio-dock.is-error .rfp-radio-player__status {
  color: #ff6b6b;
}

.rfp-radio-dock__open-mobile {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(145deg, #c62828, #8b0000);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  display: none;
}

@media (max-width: 991px) {
  .rfp-radio-dock__open-mobile {
    display: grid;
    place-items: center;
  }
  .rfp-radio-dock__expand {
    display: none;
  }
}

.rfp-radio-dock__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  border: 2px solid rgba(0, 212, 255, 0.5);
  animation: rfp-radio-pulse 2s ease-out infinite;
  pointer-events: none;
}

@keyframes rfp-radio-pulse {
  0% { transform: scale(0.92); opacity: 0.9; }
  100% { transform: scale(1.2); opacity: 0; }
}

.rfp-radio-dock__player-wrap {
  flex: 1;
  min-width: 0;
}

.rfp-radio-dock__expand {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--rfp-radio-accent);
  background: rgba(0, 212, 255, 0.1);
  text-decoration: none;
  transition: background 0.2s;
}

.rfp-radio-dock__expand:hover {
  background: rgba(0, 212, 255, 0.2);
}

body.rfp-has-radio-dock.rfp-public:not(.rfp-radio-page) {
  padding-bottom: calc(62px + var(--rfp-radio-dock-h) + 12px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 992px) {
  body.rfp-has-radio-dock.rfp-public:not(.rfp-radio-page) {
    padding-bottom: 0;
  }
}

/* Player block */
.rfp-radio-player {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.rfp-radio-player--full {
  flex-direction: column;
  text-align: center;
  gap: 20px;
  padding: 8px 0 4px;
}

.rfp-radio-player__visual {
  position: relative;
  flex-shrink: 0;
}

.rfp-radio-disc {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, #c62828, #00d4ff, #c62828);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.rfp-radio-player--full .rfp-radio-disc {
  width: 120px;
  height: 120px;
  font-size: 42px;
}

.rfp-radio-disc.is-playing {
  animation: rfp-radio-spin 8s linear infinite;
}

@keyframes rfp-radio-spin {
  to { transform: rotate(360deg); }
}

.rfp-radio-eq {
  position: absolute;
  right: -6px;
  bottom: -4px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  opacity: 0.35;
}

.rfp-radio-eq.is-active {
  opacity: 1;
}

.rfp-radio-eq span {
  width: 3px;
  height: 6px;
  background: var(--rfp-radio-accent);
  border-radius: 2px;
  animation: none;
}

.rfp-radio-eq.is-active span {
  animation: rfp-radio-eq 0.55s ease-in-out infinite alternate;
}

.rfp-radio-eq.is-active span:nth-child(1) { animation-delay: 0s; }
.rfp-radio-eq.is-active span:nth-child(2) { animation-delay: 0.1s; }
.rfp-radio-eq.is-active span:nth-child(3) { animation-delay: 0.05s; }
.rfp-radio-eq.is-active span:nth-child(4) { animation-delay: 0.15s; }
.rfp-radio-eq.is-active span:nth-child(5) { animation-delay: 0.08s; }

@keyframes rfp-radio-eq {
  from { height: 4px; }
  to { height: 14px; }
}

.rfp-radio-player__meta {
  flex: 1;
  min-width: 0;
}

.rfp-radio-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ff5252;
  margin-bottom: 2px;
}

.rfp-radio-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5252;
  animation: rfp-radio-live 1.2s ease-in-out infinite;
}

@keyframes rfp-radio-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.rfp-radio-player__title {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #f0f6fc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rfp-radio-player--full .rfp-radio-player__title {
  font-size: 26px;
  white-space: normal;
}

.rfp-radio-player__status {
  font-size: 11px;
  color: rgba(0, 212, 255, 0.85);
  margin: 0;
}

.rfp-radio-player__tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 420px;
  margin: 8px auto 0;
  line-height: 1.5;
}

.rfp-radio-player__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.rfp-radio-player--full .rfp-radio-player__controls {
  width: 100%;
  max-width: 320px;
  justify-content: center;
}

.rfp-radio-btn-play {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(145deg, #00d4ff, #0097b2);
  color: #041018;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}

.rfp-radio-player--full .rfp-radio-btn-play {
  width: 72px;
  height: 72px;
  font-size: 26px;
}

.rfp-radio-btn-play:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(0, 212, 255, 0.55);
}

.rfp-radio-btn-play:active {
  transform: scale(0.96);
}

.rfp-radio-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  min-width: 0;
}

.rfp-radio-volume--compact {
  width: 56px;
}

.rfp-radio-volume input[type='range'] {
  width: 100%;
  accent-color: var(--rfp-radio-accent);
  cursor: pointer;
}

.rfp-radio-player--full .rfp-radio-volume {
  flex: 1;
}

.rfp-radio-player--full .rfp-radio-volume input {
  flex: 1;
}

/* Page radio */
.rfp-radio-page-shell {
  min-height: calc(100vh - 120px);
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

body.rfp-radio-page .rfp-site-footer {
  display: none;
}

.rfp-radio-hero {
  text-align: center;
  padding: 28px 20px 20px;
  background: linear-gradient(180deg, rgba(198, 40, 40, 0.12) 0%, transparent 70%);
  border-bottom: 1px solid rgba(0, 212, 255, 0.12);
}

.rfp-radio-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rfp-radio-accent);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  margin-bottom: 14px;
}

.rfp-radio-hero .rfp-page-title {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  color: #0f172a;
}

.rfp-radio-page-card {
  max-width: 560px;
  margin: 24px auto;
  padding: 28px 24px;
  border-radius: 20px;
}

.rfp-radio-tips {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rfp-radio-tips li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #334155;
  line-height: 1.45;
}

.rfp-radio-tips i {
  color: #c62828;
  margin-top: 2px;
  width: 20px;
  text-align: center;
}

.rfp-radio-source {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 12px;
  color: #64748b;
  text-align: center;
}

.rfp-radio-source a {
  color: #0097b2;
  word-break: break-all;
}

/* Menu Radio : mobile / tablette uniquement (lecteur déjà visible sur desktop) */
@media (min-width: 992px) {
  .rfp-menu a.rfp-nav-radio,
  .rfp-drawer-links a.rfp-nav-radio {
    display: none !important;
  }
}

.rfp-nav-radio i {
  color: #c62828;
}

.rfp-bottom-nav a.rfp-nav-radio.active i {
  color: var(--rfp-radio-accent);
}
