/* Pochettes du lecteur indépendant de Radio Rempart. */
.rr-reel {
  --reel-cream: var(--rr-text, #f8f4e3);
  --reel-rose: var(--rr-pink, #ed668a);
  color: var(--reel-cream);
  width: 100%;
  max-width: 530px;
  margin-inline: auto;
}
.rr-reel__stage {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.56;
  touch-action: pan-y pinch-zoom;
}
.rr-reel__stage::before {
  content: "";
  position: absolute;
  inset: 15% 1% 0 17%;
  pointer-events: none;
  background: radial-gradient(ellipse at 70% 56%, rgba(237,102,138,.14), transparent 70%);
}
.rr-reel__card {
  position: absolute;
  top: 7%;
  left: 40%;
  display: block;
  width: 57%;
  aspect-ratio: 1;
  border: 1px solid rgba(248,244,227,.28);
  border-radius: clamp(10px, 2vw, 17px);
  background: #343331;
  box-shadow: 0 10px 19px #15151469;
  overflow: hidden;
  transform-origin: center;
  --depth: calc(var(--rr-index, 0) - var(--rr-position, 0));
  --near: clamp(0, var(--depth), 1);
  --far: clamp(0, calc(var(--depth) - 1), 1);
  --past: clamp(0, calc(var(--depth) - 2), 1);
  --next: clamp(0, calc(0 - var(--depth)), 1);
  z-index: calc(40 - var(--rr-index, 0));
  transform: translateX(calc(-42% * var(--near) - 41% * var(--far) - 10% * var(--past) + 12% * var(--next)))
    perspective(560px) rotateY(calc(17deg * var(--near) + 7deg * var(--far)))
    rotateZ(calc(-5deg * var(--near) - 4deg * var(--far)))
    scale(calc(1 - .16 * var(--near) - .21 * var(--far) - .08 * var(--past) + .025 * var(--next)));
  opacity: calc(1 - var(--past) - var(--next));
  filter: brightness(calc(1 - .22 * var(--near) - .18 * var(--far)));
  transition: transform .26s cubic-bezier(.2,.75,.25,1), opacity .22s ease, filter .22s ease;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-drag: none;
}
.rr-reel__card img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.rr-reel__card[data-slot="front"] { border-color: rgba(248,244,227,.43); }
.rr-reel__card[data-slot="older"], .rr-reel__card[data-slot="newer"] { pointer-events: none; }
.rr-reel__stage.is-dragging, .rr-reel__stage.is-dragging .rr-reel__card { cursor: grabbing; }
.rr-reel__stage.is-dragging .rr-reel__card { transition: none; }
.rr-reel__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: 5px 8px;
  color: var(--reel-cream);
  background: #252422f5;
  border: 1px solid #f8f4e34a;
  border-radius: 99px;
  font: 700 10px/1.15 ui-monospace, Consolas, monospace;
  letter-spacing: .035em;
}
.rr-reel__badge[data-live] { color: #fff7eb; background: #282123f5; border-color: #fb9bb288; }
.rr-reel__badge[data-live]::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff414f;
  animation: rr-live-pulse 1.6s ease-in-out infinite;
}
@keyframes rr-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .38; }
}
.rr-reel__card:not([data-slot="front"]) .rr-reel__badge { visibility: hidden; }
.rr-reel__nav {
  display: grid;
  grid-template-columns: minmax(0,1fr) 44px 44px;
  align-items: start;
  gap: 8px;
  min-height: 50px;
  margin: 10px 3% 0;
  border-top: 1px solid var(--rr-line, #f8f4e324);
  padding-top: 6px;
}
.rr-reel__info {
  min-width: 0;
  padding-top: 5px;
}
.rr-reel__label {
  margin: 0;
  color: var(--reel-cream);
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}
.rr-reel__label small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--rr-muted, #c0bbaf); }
.rr-reel__return {
  min-height: 32px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--reel-rose);
  font: inherit;
  font-size: 12px;
  text-align: start;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rr-artist-directory {
  display: block;
  width: fit-content;
  max-width: 100%;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .12em;
}
.rr-reel__arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #ed668a8c;
  background: transparent;
  color: var(--reel-cream);
}
.rr-reel__arrow svg { width: 17px; height: 17px; }
.rr-reel__arrow[aria-disabled="true"] { border-color: #f8f4e326; color: #b0aba2; cursor: default; }
@media (hover: hover) {
  .rr-artist-directory:hover { color: var(--rr-pink, #ed668a); }
  .rr-reel__return:hover { color: var(--reel-cream); }
  .rr-reel__arrow:not([aria-disabled="true"]):hover { border-color: var(--reel-rose); background: #ed668a1a; }
  .rr-reel__card[data-slot="front"]:hover { border-color: var(--reel-rose); }
}
.rr-reel :focus-visible { outline: 3px solid var(--reel-rose); outline-offset: 3px; }
@media (max-width: 780px) {
  .rr-reel__nav { min-height: 77px; }
  .rr-reel { overflow-anchor: none; }
}
.rr-compact .rr-reel__nav { min-height: 67px; margin-top: 4px; }
.rr-full .rr-artwork { position: relative; }
@media (prefers-reduced-motion: reduce) {
  .rr-reel__card { transition: none; }
  .rr-reel__badge[data-live]::before { animation: none; }
}
.rr-full .rr-artwork > a:only-child { display: block; width: 100%; height: 100%; }
