/* PLAYER2 — carte « En ce moment » */
.pl2 {
  --pl2-fg: var(--pl2-text, #15161a);
  --pl2-soft: var(--pl2-muted, #5f6472);
  --pl2-line: color-mix(in srgb, var(--pl2-fg) 14%, transparent);
  background: var(--pl2-bg, #fff); color: var(--pl2-fg);
  padding: var(--pl2-pad, 80px 0);
  font-family: var(--pl2-text-font, var(--fx-font-body));
}

.pl2-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  min-height: var(--pl2-min-h, 440px); overflow: hidden;
  background: var(--pl2-card-bg, #f4f4f6); border: 1px solid var(--pl2-border, #e3e4e8);
  border-radius: var(--pl2-radius, 20px); box-shadow: var(--pl2-shadow, none);
}
.pl2-media-right .pl2-media { order: 2; }

/* Visuel */
.pl2-media { position: relative; min-height: 100%; background: color-mix(in srgb, var(--pl2-accent, #ff5b2e) 14%, var(--pl2-card-bg, #f4f4f6)); }
.pl2-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pl2-media-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--pl2-accent, #ff5b2e); opacity: .7; }
.pl2-badge {
  position: absolute; left: 20px; top: 20px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px;
  background: var(--pl2-accent, #ff5b2e); color: #fff; border-radius: 4px;
  font-family: var(--pl2-label-font, var(--fx-font-accent)); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; line-height: 1;
}
.pl2-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pl2-blink 1.4s ease-in-out infinite; }
@keyframes pl2-blink { 50% { opacity: .3; } }

/* Contenu */
.pl2-body { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: clamp(28px, 5vw, 64px); min-width: 0; }
.pl2-kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--pl2-label-font, var(--fx-font-accent)); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--pl2-accent, #ff5b2e);
}
.pl2-kicker::after { content: ""; flex: 0 0 48px; height: 1px; background: currentColor; opacity: .6; }
.pl2 .pl2-title {
  font-family: var(--pl2-title-font, var(--fx-font-heading)); font-weight: var(--pl2-title-weight, 700);
  font-size: clamp(34px, 5.4vw, var(--pl2-title-size, 64px)); line-height: 1; letter-spacing: -.02em; overflow-wrap: anywhere;
}
.pl2-title a { color: inherit; text-decoration: none; }
.pl2-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.pl2-tagline { font-size: 17px; line-height: 1.5; color: var(--pl2-soft); max-width: 46ch; }
.pl2-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 15px; }
.pl2-facts li { display: inline-flex; align-items: center; gap: 9px; }
.pl2-facts .fx-icon { color: var(--pl2-accent, #ff5b2e); }
.pl2-facts time { font-variant-numeric: tabular-nums; }

/* Lecture */
.pl2-controls { display: flex; align-items: center; gap: 22px; margin-top: 8px; }
.pl2-play {
  position: relative; display: grid; place-items: center; flex: none;
  width: var(--pl2-play, 96px); height: var(--pl2-play, 96px); padding: 0; border: 0; border-radius: 50%;
  background: var(--pl2-btn-bg, #1f3bff); color: var(--pl2-btn-text, #fff); cursor: pointer;
  box-shadow: 0 14px 34px color-mix(in srgb, var(--pl2-btn-bg, #1f3bff) 35%, transparent);
  transition: transform .18s ease, filter .18s ease;
}
.pl2-play:hover:not(:disabled) { transform: scale(1.04); filter: brightness(1.06); }
.pl2-play:focus-visible { outline: 3px solid var(--pl2-fg); outline-offset: 4px; }
.pl2-play:disabled { cursor: not-allowed; background: var(--pl2-line); color: var(--pl2-soft); box-shadow: none; }
.pl2-play .i-play { transform: translateX(2px); }
.pl2-play .i-pause, .pl2.is-playing .pl2-play .i-play { display: none; }
.pl2.is-playing .pl2-play .i-pause { display: block; }
.pl2-ring { position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--pl2-btn-bg, #1f3bff); opacity: 0; pointer-events: none; }
.pl2.is-playing .pl2-ring { animation: pl2-ring 2s ease-out infinite; }
.pl2.is-loading .pl2-ring { opacity: 1; border-color: transparent; border-top-color: var(--pl2-accent, #ff5b2e); animation: pl2-spin .8s linear infinite; }
@keyframes pl2-ring { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes pl2-spin { to { transform: rotate(360deg); } }

.pl2-controls-text { display: grid; gap: 10px; min-width: 0; }
.pl2-listen-label { font-weight: 600; font-size: 16px; }
.pl2-demo {
  justify-self: start; padding: 6px 10px; border: 1px dashed var(--pl2-soft); border-radius: 6px;
  font-family: var(--pl2-label-font, var(--fx-font-accent)); font-size: 12.5px; color: var(--pl2-soft);
}
.pl2-status { font-size: 13.5px; color: var(--pl2-accent, #ff5b2e); font-weight: 600; }
.pl2-status:empty { display: none; }

/* Égaliseur */
.pl2.is-demo .pl2-eq { display: none; }
.pl2-eq { display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.pl2-eq i { display: block; width: 4px; height: 100%; border-radius: 2px; background: var(--pl2-accent, #ff5b2e); opacity: .35; transform: scaleY(.18); transform-origin: bottom; }
.pl2-eq i:nth-child(3n) { transform: scaleY(.3); }
.pl2-eq i:nth-child(4n+1) { transform: scaleY(.24); }
.pl2.is-playing .pl2-eq i { opacity: 1; animation: pl2-eq 1.1s ease-in-out infinite; }
.pl2.is-playing .pl2-eq i:nth-child(2n) { animation-duration: .85s; }
.pl2.is-playing .pl2-eq i:nth-child(3n) { animation-duration: 1.3s; animation-delay: -.4s; }
.pl2.is-playing .pl2-eq i:nth-child(4n) { animation-duration: .95s; animation-delay: -.7s; }
.pl2.is-playing .pl2-eq i:nth-child(5n) { animation-duration: 1.2s; animation-delay: -.2s; }
@keyframes pl2-eq { 0%, 100% { transform: scaleY(.2); } 50% { transform: scaleY(1); } }

/* Ensuite */
.pl2-next {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 10px; padding-top: 18px;
  border-top: 1px solid var(--pl2-line); font-size: 15px;
}
.pl2-next-label { font-family: var(--pl2-label-font, var(--fx-font-accent)); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--pl2-soft); }
.pl2-next-when { color: var(--pl2-soft); font-variant-numeric: tabular-nums; }
.pl2-next-title { font-weight: 600; color: inherit; }
a.pl2-next-title { text-decoration: none; }
a.pl2-next-title:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Disposition : visuel en fond */
.pl2-cover .pl2-card { grid-template-columns: minmax(0, 1fr); border: 0; }
.pl2-cover .pl2-media { position: absolute; inset: 0; }
.pl2-cover.pl2-has-media .pl2-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--pl2-overlay, rgba(0, 0, 0, .7)) 0%, var(--pl2-overlay, rgba(0, 0, 0, .7)) 45%, transparent 100%); }
.pl2-cover.pl2-has-media .pl2-body { --pl2-fg: #fff; --pl2-soft: rgba(255, 255, 255, .78); --pl2-line: rgba(255, 255, 255, .22); color: #fff; max-width: 760px; }
.pl2-cover .pl2-badge { left: auto; right: 20px; }

@media (max-width: 980px) {
  .pl2-card { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .pl2-media-right .pl2-media { order: 0; }
  .pl2-media { aspect-ratio: var(--pl2-ratio, 4 / 3); min-height: 0; max-height: 420px; width: 100%; }
  .pl2-cover .pl2-media { aspect-ratio: auto; max-height: none; }
  .pl2-cover .pl2-card { min-height: min(var(--pl2-min-h, 440px), 520px); }
  .pl2-cover.pl2-has-media .pl2-media::after { background: linear-gradient(0deg, var(--pl2-overlay, rgba(0, 0, 0, .7)) 30%, color-mix(in srgb, var(--pl2-overlay, rgba(0, 0, 0, .7)) 40%, transparent) 100%); }
  .pl2-cover .pl2-body { justify-content: flex-end; }
}
@media (max-width: 620px) {
  .pl2-body { padding: 26px 22px 28px; gap: 14px; }
  .pl2-tagline { font-size: 15.5px; }
  .pl2-controls { gap: 16px; }
  .pl2-play { width: min(var(--pl2-play, 96px), 76px); height: min(var(--pl2-play, 96px), 76px); }
  .pl2-eq i:nth-child(n+11) { display: none; }
}

.pl2-demo.is-flash { animation: pl2-flash .9s ease 2; }
@keyframes pl2-flash { 50% { border-color: var(--pl2-accent, #ff5b2e); color: var(--pl2-accent, #ff5b2e); } }
