/* PLAYER1 — barre d'écoute du direct */
.pl1 {
  --pl1-soft: color-mix(in srgb, var(--pl1-text, #fff) 62%, transparent);
  --pl1-line: color-mix(in srgb, var(--pl1-text, #fff) 14%, transparent);
  color: var(--pl1-text, #fff);
  font-family: var(--pl1-text-font, var(--fx-font-body));
}

.pl1-bar {
  background: var(--pl1-bg, #0e1330); color: var(--pl1-text, #fff);
  border-top: 1px solid var(--pl1-border, rgba(255, 255, 255, .12));
}
.pl1-mode-fixed .pl1-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; box-shadow: var(--pl1-shadow, none); }
.pl1-mode-floating .pl1-bar {
  position: fixed; z-index: 70; bottom: 16px; left: 50%; transform: translateX(-50%);
  width: min(100% - 32px, var(--fx-site-width, 1280px));
  border: 1px solid var(--pl1-border, rgba(255, 255, 255, .12)); border-radius: var(--pl1-radius, 16px);
  box-shadow: var(--pl1-shadow, none);
}
.pl1-mode-inline .pl1-bar { position: relative; }

.pl1-inner { display: flex; align-items: center; gap: 20px; min-height: var(--pl1-height, 76px); padding-block: 10px; }
.pl1-mode-floating .pl1-inner { padding-inline: 14px 22px; }

.pl1-spacer { height: var(--pl1-height, 76px); }
.pl1-mode-floating + .pl1-spacer { height: calc(var(--pl1-height, 76px) + 32px); }
/* Dans l'en-tête, la réserve d'espace n'a pas de sens : le script la déplace en fin de page. */
.fx-region-header .pl1-spacer { display: none; }

/* Marque */
.pl1-brand { display: inline-flex; align-items: center; flex: none; padding-right: 20px; border-right: 1px solid var(--pl1-line); color: inherit; text-decoration: none; align-self: stretch; }
.pl1-logo { height: var(--pl1-logo-h, 28px); width: auto; max-width: 150px; object-fit: contain; }
.pl1-name { font-family: var(--pl1-title-font, var(--fx-font-heading)); font-weight: var(--fx-heading-weight, 700); font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }

/* Lecture */
.pl1-play {
  position: relative; display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; padding: 0; border: 0; border-radius: var(--pl1-btn-radius, 999px);
  background: var(--pl1-btn-bg, #1f3bff); color: var(--pl1-btn-text, #fff); cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.pl1-play:hover:not(:disabled) { transform: scale(1.05); filter: brightness(1.08); }
.pl1-play:focus-visible { outline: 2px solid var(--pl1-text, #fff); outline-offset: 3px; }
.pl1-play:disabled { cursor: not-allowed; background: var(--pl1-line); color: var(--pl1-soft); }
.pl1-play .i-play { transform: translateX(1px); }
.pl1-play .i-pause, .pl1.is-playing .pl1-play .i-play { display: none; }
.pl1.is-playing .pl1-play .i-pause { display: block; }
.pl1-spinner {
  position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--pl1-accent, #ff5b2e);
  opacity: 0; pointer-events: none;
}
.pl1.is-loading .pl1-spinner { opacity: 1; animation: pl1-spin .8s linear infinite; }
@keyframes pl1-spin { to { transform: rotate(360deg); } }

/* Émission en cours */
.pl1-now { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.pl1-cover { flex: none; width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--pl1-line); }
.pl1-cover img { width: 100%; height: 100%; object-fit: cover; }
.pl1-info { min-width: 0; display: grid; gap: 3px; }
.pl1-kicker {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  font-family: var(--pl1-label-font, var(--fx-font-accent)); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pl1-accent, #ff5b2e); line-height: 1.2;
}
.pl1-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pl1.is-playing .pl1-dot { animation: pl1-pulse 1.6s ease-out infinite; }
@keyframes pl1-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pl1-accent, #ff5b2e) 70%, transparent); } 80%, 100% { box-shadow: 0 0 0 7px transparent; } }
.pl1-range { color: var(--pl1-soft); letter-spacing: .08em; white-space: nowrap; }
.pl1-range::before { content: "·"; margin-right: 8px; }
.pl1-demo-badge {
  padding: 3px 8px; border: 1px dashed currentColor; border-radius: 4px;
  letter-spacing: .06em; text-transform: none; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pl1-demo-badge + .pl1-range::before { display: none; }
.pl1-title {
  font-family: var(--pl1-title-font, var(--fx-font-heading)); font-weight: var(--fx-heading-weight, 700);
  font-size: var(--pl1-title-size, 17px); line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pl1-title a { color: inherit; text-decoration: none; }
.pl1-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pl1-hosts { font-size: 13px; color: var(--pl1-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Égaliseur */
.pl1.is-demo .pl1-eq { display: none; }
.pl1-eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; flex: none; margin-left: 4px; }
.pl1-eq i { display: block; width: 3px; height: 5px; border-radius: 2px; background: var(--pl1-accent, #ff5b2e); opacity: .45; transform-origin: bottom; }
.pl1.is-playing .pl1-eq i { opacity: 1; height: 22px; animation: pl1-eq 1s ease-in-out infinite; }
.pl1.is-playing .pl1-eq i:nth-child(2) { animation-duration: .8s; animation-delay: -.3s; }
.pl1.is-playing .pl1-eq i:nth-child(3) { animation-duration: 1.15s; animation-delay: -.5s; }
.pl1.is-playing .pl1-eq i:nth-child(4) { animation-duration: .9s; animation-delay: -.15s; }
.pl1.is-playing .pl1-eq i:nth-child(5) { animation-duration: 1.05s; animation-delay: -.7s; }
@keyframes pl1-eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

/* Messages */
.pl1-status { flex: none; font-size: 12.5px; padding: 5px 10px; border-radius: 6px; background: color-mix(in srgb, var(--pl1-accent, #ff5b2e) 18%, transparent); }
.pl1-status:empty { display: none; }

/* À suivre */
.pl1-next { display: grid; gap: 2px; flex: none; max-width: 240px; padding-left: 20px; border-left: 1px solid var(--pl1-line); font-size: 13px; line-height: 1.25; }
.pl1-next-label { font-family: var(--pl1-label-font, var(--fx-font-accent)); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--pl1-soft); }
.pl1-next-show { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl1-next-show time { font-variant-numeric: tabular-nums; color: var(--pl1-soft); margin-right: 4px; }

/* Volume */
.pl1-vol { display: flex; align-items: center; gap: 6px; flex: none; }
.pl1-mute { position: relative; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; opacity: .85; }
.pl1-mute:hover { opacity: 1; background: var(--pl1-line); }
.pl1-mute.is-muted::after { content: ""; position: absolute; width: 22px; height: 2px; background: currentColor; transform: rotate(-45deg); border-radius: 2px; }
.pl1-range-input {
  -webkit-appearance: none; appearance: none; width: 104px; height: 4px; border-radius: 4px; cursor: pointer; margin: 0;
  background: linear-gradient(to right, var(--pl1-text, #fff) var(--pl1-vol, 80%), var(--pl1-line) var(--pl1-vol, 80%));
}
.pl1-range-input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--pl1-text, #fff); border: 0; }
.pl1-range-input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--pl1-text, #fff); border: 0; }
.pl1-range-input:focus-visible { outline: 2px solid var(--pl1-accent, #ff5b2e); outline-offset: 4px; }

@media (max-width: 980px) {
  .pl1-brand, .pl1-next { display: none; }
  .pl1-inner { gap: 14px; }
  .pl1-range-input { width: 80px; }
}
@media (max-width: 620px) {
  .pl1-inner { min-height: min(var(--pl1-height, 76px), 68px); gap: 12px; }
  .pl1-mode-floating .pl1-bar { bottom: 10px; width: calc(100% - 20px); }
  .pl1-mode-floating .pl1-inner { padding-inline: 10px 14px; }
  .pl1-play { width: 46px; height: 46px; }
  .pl1-cover, .pl1-hosts, .pl1-range-input, .pl1-range { display: none; }
  .pl1-status { position: absolute; left: 12px; right: 12px; bottom: calc(100% + 8px); background: var(--pl1-bg, #0e1330); border: 1px solid var(--pl1-line); text-align: center; }
  .pl1-bar { position: relative; }
  .pl1-mode-fixed .pl1-bar, .pl1-mode-floating .pl1-bar { position: fixed; }
}
