/**
 * assets/css/pmac-reel.css
 *
 * Page Découvrir présentée comme un fil de réels : une photo par écran, la
 * colonne d'actions sur le bord droit, le panneau de commentaires qui remonte
 * du bas. Ce fichier se charge APRÈS pmac-home.css et ne concerne que la
 * page portant la classe .pmac-reel-page.
 */

body.pmac-reel-page {
  --reel-ink: #ffffff;
  --reel-bg: #041124;
  --reel-bg-soft: #0a2140;
  --reel-yellow: #ffb000;
  --reel-radius: 26px;
  background: var(--reel-bg);
  overflow: hidden;
}

/* La page occupe exactement la fenêtre : c'est ce qui rend l'accrochage du
   défilement possible. Le retrait du haut vient du header fixe (60px), ou de
   zéro quand la page est ouverte dans l'application. */
body.pmac-reel-page .pmac-reel-shell {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, #0b2545 0%, rgba(4, 17, 36, 0) 60%),
    var(--reel-bg);
}

.pmac-reel-layout {
  color: var(--reel-ink);
  display: flex;
  align-items: stretch;
  gap: 24px;
  height: 100%;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------------------------------------------------------------------
 * Colonne des vues
 * ------------------------------------------------------------------------ */

.pmac-reel-side {
  flex: 0 0 246px;
  align-self: center;
  padding: 10px 0;
}

.pmac-reel-side__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

body.pmac-reel-page .pmac-reel-side__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.pmac-reel-side__link span {
  flex: 1;
  min-width: 0;
}

.pmac-reel-side__link i {
  font-size: 15px;
}

.pmac-reel-side__chevron {
  font-size: 11px;
  opacity: 0.45;
}

body.pmac-reel-page .pmac-reel-side__link:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  transform: translateX(2px);
}

body.pmac-reel-page .pmac-reel-side__link.is-active {
  background: linear-gradient(135deg, rgba(255, 176, 0, 0.22), rgba(255, 176, 0, 0.08));
  border: 1px solid rgba(255, 176, 0, 0.35);
  color: #fff;
}

.pmac-reel-side__link.is-active > i:first-child {
  color: var(--reel-yellow);
}

/* ---------------------------------------------------------------------------
 * Zone centrale
 * ------------------------------------------------------------------------ */

.pmac-reel-main {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.pmac-reel-topbar {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 10px 4px;
}

.pmac-reel-back {
  display: none;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 15px;
}

.pmac-reel-topbar__title {
  font-size: 17px;
  font-weight: 700;
}

.pmac-reel-topbar__tabs {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.pmac-reel-topbar__tabs::-webkit-scrollbar {
  display: none;
}

body.pmac-reel-page .pmac-reel-topbar__tabs a {
  position: relative;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  padding-bottom: 6px;
}

body.pmac-reel-page .pmac-reel-topbar__tabs a.is-active {
  color: #fff;
}

.pmac-reel-topbar__tabs a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--reel-yellow);
}

.pmac-reel-topbar__tools {
  display: flex;
  gap: 8px;
}

.pmac-reel-tool {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

.pmac-reel-tool.is-active {
  background: var(--reel-yellow);
  color: #041124;
}

/* Panneau de recherche et de filtres */
.pmac-reel-filters {
  position: absolute;
  top: 56px;
  right: 4px;
  z-index: 40;
  width: min(360px, calc(100% - 8px));
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  color: var(--text-primary, #171a1f);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
}

.pmac-reel-filters[hidden] {
  display: none;
}

.pmac-reel-filters label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #626a73;
}

.pmac-reel-filters input,
.pmac-reel-filters select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e8ec;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: #171a1f;
  background: #fff;
}

.pmac-reel-filters__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pmac-reel-filters__actions button {
  flex: 1;
  padding: 11px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--reel-yellow);
  color: #041124;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

body.pmac-reel-page .pmac-reel-filters__actions a {
  font-size: 13px;
  font-weight: 600;
  color: #626a73;
  text-decoration: underline;
}

/* ---------------------------------------------------------------------------
 * Le fil lui-même
 * ------------------------------------------------------------------------ */

.pmac-reel-viewport {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.pmac-reel-viewport::-webkit-scrollbar {
  display: none;
}

.pmac-reel-slide {
  height: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0;
}

.pmac-reel-stage {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  height: 100%;
  max-height: 100%;
}

.pmac-reel-media {
  position: relative;
  height: 100%;
  aspect-ratio: 9 / 16;
  max-width: 100%;
  border-radius: var(--reel-radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.pmac-reel-media__blur {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  object-fit: cover;
  filter: blur(34px) saturate(1.3);
  opacity: 0.5;
  transform: scale(1.05);
}

.pmac-reel-media__surface {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.pmac-reel-media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Le lecteur du fond sonore.
   Il est pose sur la colonne, pas dans le fil : les photos defilent sous lui
   sans jamais l'emporter. La photo garde ainsi toute sa hauteur. */
.pmac-reel-player {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 3px;
  width: min(460px, calc(100% - 24px));
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

body.pmac-reel-page .pmac-reel-cmd {
  display: grid;
  place-items: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

body.pmac-reel-page .pmac-reel-cmd:hover {
  background: rgba(255, 255, 255, 0.18);
}

.pmac-reel-player.is-on .pmac-reel-cmd--son {
  background: var(--reel-yellow);
  color: #041124;
}

/* Le nom du morceau occupe la place qui reste et defile en continu. */
.pmac-reel-piste {
  flex: 1;
  min-width: 0;
  padding: 0 12px 0 8px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  text-align: left;
  cursor: default;
}

.pmac-reel-piste.is-actif {
  color: #fff;
  cursor: pointer;
}

/* La fenetre masque ce qui depasse ; la bande interieure porte deux copies
   identiques du nom, si bien qu'un deplacement de la moitie de la bande
   ramene exactement au point de depart : le defilement ne saute pas. */
.pmac-reel-piste__fenetre {
  display: block;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
}

.pmac-reel-piste__defile {
  display: flex;
  width: max-content;
  white-space: nowrap;
}

.pmac-reel-piste__defile > span {
  flex: 0 0 auto;
  padding-right: 56px;
}

/* Tant qu'aucun morceau ne joue, le nom reste immobile et la seconde copie
   n'a pas lieu d'etre. */
.pmac-reel-piste:not(.is-actif) .pmac-reel-piste__defile > span + span {
  display: none;
}

.pmac-reel-piste.is-actif .pmac-reel-piste__defile {
  animation: pmac-reel-defile 18s linear infinite;
}

@keyframes pmac-reel-defile {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .pmac-reel-piste.is-actif .pmac-reel-piste__defile {
    animation: none;
  }
}

.pmac-reel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.pmac-reel-nav--prev { left: 10px; }
.pmac-reel-nav--next { right: 10px; }

.pmac-reel-media:hover .pmac-reel-nav,
.pmac-reel-nav:focus-visible {
  opacity: 1;
}

.pmac-reel-nav:hover {
  background: rgba(0, 0, 0, 0.65);
}

.pmac-reel-shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(2, 10, 22, 0.94) 6%, rgba(2, 10, 22, 0.6) 42%, rgba(2, 10, 22, 0) 100%);
}

.pmac-reel-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 16px 16px 18px;
  display: grid;
  gap: 5px;
}

.pmac-reel-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pmac-reel-author__avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.pmac-reel-author__meta {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.pmac-reel-author__line {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.pmac-reel-author__name {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmac-reel-location {
  margin: 0;
  font-size: 11px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmac-reel-title {
  margin: 1px 0 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 500;
}

/* « ... Plus » se lit comme la suite du titre, pas comme un bouton.
   Le prefixe body.pmac-reel-page n'est pas decoratif : sans lui, la regle
   « .pmac-reel-title button { color: inherit } » posee plus haut l'emporte
   et le lien ressort en blanc. */
body.pmac-reel-page .pmac-reel-more {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--reel-yellow);
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.15;
  cursor: pointer;
  white-space: nowrap;
}

/* Les trois points annoncent la suite du texte ; une fois la fiche depliee,
   le bouton dit « Reduire » et ils n'ont plus de sens. */
body.pmac-reel-page .pmac-reel-more[aria-expanded="false"]::before {
  content: "... ";
}

body.pmac-reel-page .pmac-reel-more:hover {
  color: var(--reel-yellow);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pmac-reel-extra {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.pmac-reel-extra[hidden] {
  display: none;
}

.pmac-reel-title button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.pmac-reel-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.86);
}

.pmac-reel-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
}

.pmac-reel-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.pmac-reel-pill--category {
  color: #fff;
}

/* ---------------------------------------------------------------------------
 * Colonne d'actions
 * ------------------------------------------------------------------------ */

.pmac-reel-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-bottom: 8px;
}

.pmac-reel-rail__avatar {
  position: relative;
  margin-bottom: 6px;
}

.pmac-reel-rail__avatar img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.pmac-reel-rail__check {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: inline-flex;
  padding: 3px;
  border-radius: 50%;
  background: #041124;
}

.pmac-reel-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 64px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* pmac-home.css impose une taille et une couleur a tout glyphe Font Awesome
   du site ("body.pmac-feed-page i[class*=fa-]") et une couleur grise aux
   icones ".interaction i" : le selecteur ci-dessous vise le body pour peser
   autant, et vient apres dans la feuille pour l'emporter. */
body.pmac-reel-page .pmac-reel-action > i {
  display: grid;
  place-items: center;
  width: 46px;
  min-width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 17px;
  backdrop-filter: blur(6px);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

body.pmac-reel-page .pmac-reel-action:hover > i {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
}

.pmac-reel-action__label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  line-height: 1.2;
}

body.pmac-reel-page .pmac-reel-action.is-liked > i {
  background: #e94b3c;
  border-color: #e94b3c;
  color: #fff;
}

body.pmac-reel-page .pmac-reel-action.is-saved > i {
  background: var(--reel-yellow);
  border-color: var(--reel-yellow);
  color: #041124;
}

body.pmac-reel-page .pmac-reel-action.pmac-reel-action--map > i {
  background: var(--reel-yellow);
  border-color: var(--reel-yellow);
  color: #041124;
}

/* ---------------------------------------------------------------------------
 * Fin de fil, vide, indication de défilement
 * ------------------------------------------------------------------------ */

.pmac-reel-hint {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 8;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(4, 17, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
}

.pmac-reel-hint i {
  animation: pmac-reel-bounce 1.7s ease-in-out infinite;
}

/* L'invitation a balayer ne s'adresse qu'au tactile. */
@media (min-width: 901px) {
  .pmac-reel-hint {
    display: none;
  }
}

.pmac-reel-hint.is-hidden {
  opacity: 0;
}

@keyframes pmac-reel-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.pmac-reel-end,
.pmac-reel-empty {
  height: 100%;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 30px;
}

.pmac-reel-end[hidden] {
  display: none;
}

.pmac-reel-end i,
.pmac-reel-empty i {
  font-size: 38px;
  color: var(--reel-yellow);
}

.pmac-reel-end p,
.pmac-reel-empty p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.pmac-reel-empty h2 {
  margin: 0;
  font-size: 20px;
}

body.pmac-reel-page .pmac-reel-end a,
body.pmac-reel-page .pmac-reel-empty a {
  margin-top: 6px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--reel-yellow);
  color: #041124;
  font-weight: 700;
}

.pmac-reel-loading-slide {
  height: 100%;
  display: grid;
  place-items: center;
}

.pmac-reel-loading-slide span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--reel-yellow);
  animation: pmac-reel-spin 0.8s linear infinite;
}

@keyframes pmac-reel-spin {
  to { transform: rotate(360deg); }
}

/* ---------------------------------------------------------------------------
 * Panneau des commentaires
 * ------------------------------------------------------------------------ */

.pmac-reel-sheet {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.pmac-reel-sheet[hidden] {
  display: none;
}

.pmac-reel-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 10, 22, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pmac-reel-sheet.is-open .pmac-reel-sheet__backdrop {
  opacity: 1;
}

.pmac-reel-sheet__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: 86vh;
  max-height: 86dvh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: var(--text-primary, #171a1f);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pmac-reel-sheet.is-open .pmac-reel-sheet__panel {
  transform: translateY(0);
}

.pmac-reel-sheet__handle {
  display: block;
  width: 56px;
  height: 5px;
  margin: 10px auto 2px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d5dae0;
  cursor: pointer;
}

.pmac-reel-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 4px;
}

.pmac-reel-sheet__head h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
}

.pmac-reel-sheet__head span {
  font-size: 15px;
  color: #89919a;
  font-weight: 600;
}

.pmac-reel-sheet__close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #171a1f;
  font-size: 20px;
  cursor: pointer;
}

.pmac-reel-sheet__close:hover {
  background: #f1f3f6;
}

.pmac-reel-sheet__tabs {
  display: flex;
  gap: 6px;
  margin: 8px 16px 10px;
  padding: 5px;
  border-radius: 999px;
  background: #f1f3f6;
}

.pmac-reel-sheet__tabs button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #626a73;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.pmac-reel-sheet__tabs button.is-active {
  background: var(--navy, #03182f);
  color: #fff;
}

.pmac-reel-sheet__place {
  margin: 0 16px 10px;
}

.pmac-reel-sheet__place:empty {
  display: none;
}

.pmac-reel-place-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: #f7f9fb;
  border: 1px solid #e8ecf1;
}

.pmac-reel-place-card img {
  width: 78px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
}

.pmac-reel-place-card__body {
  flex: 1;
  min-width: 0;
}

.pmac-reel-place-card__body strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.25;
}

.pmac-reel-place-card__body span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: #626a73;
}

.pmac-reel-place-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--reel-yellow);
  color: #041124;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.pmac-reel-sheet__body {
  flex: 1;
  min-height: 120px;
  overflow-y: auto;
  padding: 4px 16px 12px;
}

.pmac-reel-sheet__loading {
  display: grid;
  place-items: center;
  padding: 40px 0;
}

.pmac-reel-sheet__loading span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid #e5e8ec;
  border-top-color: var(--navy, #03182f);
  animation: pmac-reel-spin 0.8s linear infinite;
}

.pmac-reel-sheet__empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 44px 20px;
  text-align: center;
  color: #626a73;
}

.pmac-reel-sheet__empty i {
  font-size: 30px;
  color: #b9c1ca;
}

.pmac-reel-sheet__empty p {
  margin: 0;
  font-weight: 700;
  color: #171a1f;
}

.pmac-reel-sheet__empty span {
  font-size: 13px;
}

/* Un commentaire */
.pmac-reel-comment {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f3f6;
}

.pmac-reel-comment:last-child {
  border-bottom: 0;
}

.pmac-reel-comment__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.pmac-reel-comment__body {
  flex: 1;
  min-width: 0;
}

.pmac-reel-comment__head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pmac-reel-comment__author {
  font-size: 14.5px;
  font-weight: 700;
}

.pmac-reel-comment__time {
  display: block;
  font-size: 12px;
  color: #89919a;
  margin-bottom: 3px;
}

.pmac-reel-comment__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #2b3138;
  overflow-wrap: anywhere;
}

.pmac-reel-comment__foot {
  margin-top: 6px;
}

.pmac-reel-comment__note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: #626a73;
}

.pmac-reel-comment__note i {
  color: var(--reel-yellow);
}

/* Infos du lieu */
.pmac-reel-infos {
  display: grid;
  gap: 16px;
  padding: 8px 0 4px;
}

.pmac-reel-infos__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #2b3138;
}

.pmac-reel-infos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 0;
}

.pmac-reel-infos__grid > div {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f7f9fb;
  border: 1px solid #e8ecf1;
}

.pmac-reel-infos__grid dt {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #89919a;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pmac-reel-infos__grid dd {
  margin: 5px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #171a1f;
  overflow-wrap: anywhere;
}

.pmac-reel-infos__levels,
.pmac-reel-infos__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pmac-reel-infos__levels span,
.pmac-reel-infos__tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  background: #f1f3f6;
  font-size: 12.5px;
  font-weight: 600;
  color: #2b3138;
}

.pmac-reel-infos__levels strong {
  color: #89919a;
  font-weight: 700;
}

.pmac-reel-infos__tags i {
  color: var(--green, #079447);
}

/* Le champ de saisie */
.pmac-reel-composer {
  border-top: 1px solid #edf0f3;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: #fff;
  border-radius: 0 0 26px 26px;
}

.pmac-reel-composer__notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px 16px;
  padding-bottom: 12px;
}

.pmac-reel-composer__notes[hidden] {
  display: none;
}

.pmac-reel-composer__note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pmac-reel-composer__note > span {
  font-size: 12.5px;
  font-weight: 600;
  color: #626a73;
}

.pmac-reel-stars {
  display: inline-flex;
  gap: 2px;
}

.pmac-reel-stars button {
  padding: 2px;
  border: 0;
  background: transparent;
  color: #d5dae0;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.12s ease;
}

.pmac-reel-stars button.is-on {
  color: var(--reel-yellow);
}

.pmac-reel-composer__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pmac-reel-composer__row img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.pmac-reel-composer__row input {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
  border: 0;
  border-radius: 999px;
  background: #f1f3f6;
  font-family: inherit;
  font-size: 14px;
  color: #171a1f;
}

.pmac-reel-composer__row input:focus {
  outline: 2px solid rgba(255, 176, 0, 0.5);
}

.pmac-reel-composer__fake {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
  border: 0;
  border-radius: 999px;
  background: #f1f3f6;
  font-family: inherit;
  font-size: 14px;
  color: #89919a;
  text-align: left;
  cursor: pointer;
}

.pmac-reel-composer__row > button:last-of-type {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: var(--reel-yellow);
  color: #041124;
  font-size: 17px;
  cursor: pointer;
}

.pmac-reel-composer__row > button:last-of-type:disabled {
  opacity: 0.55;
  cursor: default;
}

.pmac-reel-composer__error {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: #e94b3c;
  min-height: 1em;
}

.pmac-reel-composer__error:empty {
  min-height: 0;
  margin: 0;
}

.pmac-reel-composer--guest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pmac-reel-composer--guest p {
  margin: 0;
  font-size: 13.5px;
  color: #626a73;
}

body.pmac-reel-page .pmac-reel-composer--guest a {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--navy, #03182f);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
}

/* ---------------------------------------------------------------------------
 * Fiche du morceau en ecoute
 *
 * Trois mises en page pour un meme contenu : sur telephone la pochette et le
 * nom de l'artiste se serrent en haut, sur tablette la pochette prend une
 * colonne a elle seule, et sur grand ecran la fiche se lit en lignes a cote
 * d'une grande pochette.
 * ------------------------------------------------------------------------ */

.pmac-piste {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.pmac-piste[hidden] {
  display: none;
}

.pmac-piste__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 10, 22, 0.72);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.pmac-piste.is-open .pmac-piste__backdrop {
  opacity: 1;
}

.pmac-piste__panel {
  position: relative;
  width: min(460px, 100%);
  max-height: 90dvh;
  overflow-y: auto;
  padding: 18px;
  /* Quatre zones : la pochette, le titre, les renseignements et les contacts.
     Leur agencement est tout ce qui change d'une largeur d'ecran a l'autre.
     Sur telephone, les renseignements passent sous la pochette, pleine
     largeur : trois d'entre eux tiennent alors cote a cote. */
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "aside entete"
    "grille grille"
    "pied pied";
  align-items: start;
  gap: 14px 16px;
  border-radius: 24px;
  border: 1px solid rgba(96, 160, 255, 0.55);
  background:
    radial-gradient(120% 110% at 88% 4%, rgba(31, 110, 196, 0.62), rgba(7, 26, 53, 0) 62%),
    linear-gradient(158deg, #0d2a52 0%, #071a35 100%);
  color: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.26s ease;
  scrollbar-width: none;
}

.pmac-piste__panel::-webkit-scrollbar {
  display: none;
}

.pmac-piste.is-open .pmac-piste__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.pmac-piste__fermer {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.93);
  color: #0a1e3c;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}

.pmac-piste__fermer:hover {
  background: #fff;
  transform: scale(1.06);
}

body.pmac-reel-page .pmac-piste__fermer > i {
  width: auto;
  min-width: 0;
}

/* --- Pochette et artiste --- */

.pmac-piste__aside {
  grid-area: aside;
  width: 132px;
}

.pmac-piste__pochette {
  width: 132px;
  height: 132px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 22px rgba(255, 199, 92, 0.22);
}

.pmac-piste__pochette img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pmac-piste__pochette span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.35);
  font-size: 34px;
}

.pmac-piste__artiste {
  display: none;
}

.pmac-piste__artiste strong {
  display: block;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 800;
}

.pmac-piste__origine {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
}

body.pmac-reel-page .pmac-piste__origine > i {
  width: auto;
  min-width: 0;
  color: rgba(255, 255, 255, 0.55);
}

/* --- Titre et renseignements --- */

.pmac-piste__entete {
  grid-area: entete;
  display: flex;
  flex-direction: column;
  min-width: 0;
  /* Le bouton de fermeture occupe le coin : le titre s'arrete avant. */
  padding-right: 44px;
}

/* Sur telephone le nom de l'artiste passe au-dessus du titre, a cote de la
   pochette : c'est lui que l'on cherche en premier. */
.pmac-piste__entete .pmac-piste__artiste {
  display: block;
  margin-bottom: 10px;
}

.pmac-piste__surtitre {
  display: none;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

body.pmac-reel-page .pmac-piste__surtitre > i {
  width: auto;
  min-width: 0;
  color: var(--reel-yellow);
  font-size: 15px;
}

.pmac-piste__entete h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
}

.pmac-piste__resume {
  grid-area: grille;
  display: none;
}

.pmac-piste__grille {
  grid-area: grille;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

/* Les cases ne paraissent plus que sur grand ecran, ou elles se suivent sur
   une seule colonne : elles n'ont donc plus a s'etaler sur plusieurs. Sans
   cette remise a zero, « span 2 » recreerait une deuxieme colonne. */
.pmac-piste__case--large,
.pmac-piste__case--pleine {
  grid-column: auto;
}

.pmac-piste__case {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 11px 13px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
}

.pmac-piste__case-icone {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(96, 160, 255, 0.18);
  color: #8fc0ff;
  font-size: 14px;
}

body.pmac-reel-page .pmac-piste__case-icone > i {
  width: auto;
  min-width: 0;
}

.pmac-piste__case-texte {
  min-width: 0;
}

.pmac-piste__case-texte span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.pmac-piste__case-texte strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

/* --- Pied de fenetre : les contacts de l'artiste --- */

.pmac-piste__pied {
  grid-area: pied;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pmac-piste__pied-titre {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pmac-piste__pied-icone {
  display: none;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
}

body.pmac-reel-page .pmac-piste__pied-icone > i {
  width: auto;
  min-width: 0;
}

.pmac-piste__pied-titre h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.pmac-piste__pied-titre p {
  display: none;
  margin: 3px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

.pmac-piste__liens {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
  margin-top: 14px;
}

body.pmac-reel-page .pmac-piste__lien {
  display: grid;
  place-items: center;
  padding: 10px 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transition: transform 0.16s ease, background 0.16s ease;
}

body.pmac-reel-page .pmac-piste__lien:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

.pmac-piste__lien-pastille {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--lien-couleur, #2d6df6);
  color: #fff;
  font-size: 19px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

body.pmac-reel-page .pmac-piste__lien-pastille > i {
  width: auto;
  min-width: 0;
}

.pmac-piste__lien-nom {
  display: none;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.pmac-piste__vide {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}

/* --- Telephone : la fiche entiere, d'un seul coup d'oeil ---
 *
 * Rien ne doit defiler a l'interieur de la fenetre : chaque mesure est donc
 * calculee pour que les quatre zones tiennent dans la hauteur d'un ecran de
 * telephone. Ce qui ne peut pas etre reduit est supprime (l'intitule des
 * contacts) ou tronque (la presentation du morceau).
 * ------------------------------------------------------------------------ */

@media (max-width: 759px) {
  .pmac-piste {
    padding: 10px;
  }

  .pmac-piste__panel {
    width: 100%;
    max-height: calc(100dvh - 20px);
    /* Plus de defilement interne : la fiche se lit d'un bloc. */
    overflow: hidden;
    padding: 14px;
    border-radius: 20px;
    gap: 11px 12px;
  }

  /* Le bouton de fermeture se colle a l'angle et ne prend plus de hauteur. */
  .pmac-piste__fermer {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  .pmac-piste__aside,
  .pmac-piste__pochette {
    width: 96px;
  }

  .pmac-piste__pochette {
    height: 96px;
    border-radius: 14px;
  }

  .pmac-piste__entete {
    padding-right: 32px;
  }

  /* Le nom de l'artiste tient sur une ligne, quitte a se terminer par des
     points de suspension. Sa provenance aussi. */
  .pmac-piste__entete .pmac-piste__artiste {
    min-width: 0;
    margin-bottom: 7px;
  }

  .pmac-piste__artiste strong {
    font-size: 17px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pmac-piste__origine {
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 3px;
    font-size: 12px;
  }

  .pmac-piste__resume {
    padding: 8px 10px;
    font-size: 11px;
  }

  .pmac-piste__pied {
    margin-top: 0;
    padding-top: 11px;
  }

  /* « Retrouvez l'artiste » prend une place que les icones utilisent mieux :
     dix pastilles aux couleurs des plateformes se passent de legende. */
  .pmac-piste__pied-titre {
    display: none;
  }

  .pmac-piste__liens {
    margin-top: 0;
    gap: 8px;
    justify-items: center;
  }

  /* Les pastilles portent deja la couleur de leur plateforme : aucun cadre
     ne doit s'ajouter autour. */
  body.pmac-reel-page .pmac-piste__lien {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  body.pmac-reel-page .pmac-piste__lien:hover {
    background: transparent;
  }

  .pmac-piste__lien-pastille {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 20px;
  }
}

/* Ecran court (telephone couche, fenetre reduite) : la fiche ne peut plus
   tenir entiere, on lui rend le defilement plutot que de la tronquer. */
@media (max-width: 759px) and (max-height: 620px) {
  .pmac-piste__panel {
    overflow-y: auto;
  }
}

/* --- Tablette : la pochette et l'artiste prennent une colonne --- */

@media (min-width: 760px) {
  .pmac-piste__panel {
    width: min(760px, 100%);
    padding: 26px;
    /* La pochette tient la colonne de gauche sur deux rangs : le titre et
       les renseignements se rangent a sa droite. */
    grid-template-columns: 232px minmax(0, 1fr);
    grid-template-areas:
      "aside entete"
      "aside grille"
      "pied pied";
    gap: 16px 26px;
    border-radius: 28px;
  }

  .pmac-piste__aside {
    width: 232px;
    text-align: center;
  }

  .pmac-piste__pochette {
    width: 232px;
    height: 232px;
    border-radius: 20px;
  }

  .pmac-piste__artiste {
    display: block;
    margin-top: 16px;
  }

  .pmac-piste__entete .pmac-piste__artiste {
    display: none;
  }

  .pmac-piste__artiste strong {
    font-size: 25px;
  }

  .pmac-piste__origine {
    justify-content: center;
  }

  .pmac-piste__surtitre {
    display: inline-flex;
  }

  .pmac-piste__pied {
    margin-top: 8px;
    padding-top: 20px;
  }

  .pmac-piste__pied-icone {
    display: grid;
  }

  .pmac-piste__pied-titre p {
    display: block;
  }

  .pmac-piste__liens {
    gap: 14px;
    margin-top: 18px;
  }

  body.pmac-reel-page .pmac-piste__lien {
    gap: 8px;
    padding: 4px 0;
    border: 0;
    background: transparent;
  }

  body.pmac-reel-page .pmac-piste__lien:hover {
    background: transparent;
  }

  .pmac-piste__lien-pastille {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 24px;
  }

  .pmac-piste__lien-nom {
    display: block;
  }
}

/* --- Grand ecran : la fiche se lit en lignes, les contacts en pastilles --- */

@media (min-width: 1180px) {
  .pmac-piste__panel {
    width: min(1060px, 100%);
    padding: 30px 34px;
    grid-template-columns: 334px minmax(0, 1fr);
    gap: 18px 34px;
  }

  .pmac-piste__aside {
    width: 300px;
    padding-right: 34px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  /* Le trait de separation descend jusqu'au pied de la fiche. */
  .pmac-piste__aside {
    align-self: stretch;
  }

  .pmac-piste__pochette {
    width: 300px;
    height: 300px;
  }

  /* Un trait jaune sous le nom, comme partout ailleurs sur le site. */
  .pmac-piste__artiste::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 3px;
    background: var(--reel-yellow);
  }

  .pmac-piste__surtitre {
    display: none;
  }

  .pmac-piste__entete h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 4px;
    font-size: 44px;
  }

  /* Le titre porte la note de musique jaune a sa gauche. */
  .pmac-piste__entete h2::before {
    content: "\f001";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 27px;
    color: var(--reel-yellow);
  }

  .pmac-piste__grille {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .pmac-piste__case {
    padding: 12px 16px;
    border-radius: 12px;
  }

  .pmac-piste__case-icone {
    width: 22px;
    height: 22px;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
  }

  .pmac-piste__case-texte {
    display: flex;
    align-items: baseline;
    gap: 14px;
    width: 100%;
  }

  .pmac-piste__case-texte span {
    flex: 0 0 132px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
  }

  .pmac-piste__case-texte strong {
    margin-top: 0;
    font-size: 14.5px;
    font-weight: 600;
  }

  /* La presentation du morceau est trop longue pour tenir sur une ligne :
     elle passe sous son intitule, dans son propre cadre. */
  .pmac-piste__case--large {
    align-items: flex-start;
    padding: 4px 0 0;
    border: 0;
    background: transparent;
  }

  /* L'icone reste a hauteur de l'intitule ; le texte s'ecoule en dessous. */
  .pmac-piste__case--large .pmac-piste__case-icone {
    height: 20px;
  }

  .pmac-piste__case--large .pmac-piste__case-texte {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .pmac-piste__case--large .pmac-piste__case-texte span {
    flex: none;
  }

  .pmac-piste__case--large .pmac-piste__case-texte strong {
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    font-weight: 500;
  }

  .pmac-piste__pied-titre h3 {
    font-size: 19px;
  }

  .pmac-piste__liens {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
  }

  body.pmac-reel-page .pmac-piste__lien {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
  }

  body.pmac-reel-page .pmac-piste__lien:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.08);
  }

  .pmac-piste__lien-pastille {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }

  .pmac-piste__lien-nom {
    font-size: 13.5px;
    color: #fff;
  }
}

/* --- Telephone et tablette : le contenu en un seul cadre ---
 *
 * Les six cases, chacune avec son icone et sa valeur en gras, prenaient
 * presque toute la hauteur disponible. En dessous de 1180px elles laissent
 * donc la place a un paragraphe compact, sans icone et sans gras, ou les
 * renseignements se suivent separes par des tirets.
 * ------------------------------------------------------------------------ */

@media (max-width: 1179px) {
  .pmac-piste__grille {
    display: none;
  }

  .pmac-piste__resume {
    display: block;
    margin: 0;
    padding: 9px 11px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.055);
    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
  }

  /* Aucun gras : les intitules se distinguent par la couleur seule. */
  .pmac-piste__resume-cle {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
  }

  .pmac-piste__resume-tiret {
    color: rgba(255, 255, 255, 0.35);
  }

  /* Le titre passe au second plan derriere le nom de l'artiste : il se
     reconnait a sa note de musique plutot qu'a sa taille. */
  .pmac-piste__surtitre {
    display: none;
  }

  .pmac-piste__entete h2 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pmac-piste__entete h2::before {
    content: "\f001";
    flex: 0 0 auto;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    color: var(--reel-yellow);
  }
}

/* La tablette adopte la disposition du telephone : avec un paragraphe a la
   place des cases, la colonne de droite serait trop courte pour la hauteur
   de la pochette, et laisserait un grand vide sous le titre. */
@media (min-width: 760px) and (max-width: 1179px) {
  .pmac-piste__panel {
    width: min(660px, 100%);
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "aside entete"
      "grille grille"
      "pied pied";
  }

  .pmac-piste__aside,
  .pmac-piste__pochette {
    width: 150px;
  }

  .pmac-piste__pochette {
    height: 150px;
  }

  .pmac-piste__aside {
    text-align: left;
  }

  /* Le nom de l'artiste remonte a cote de la pochette, au-dessus du titre. */
  .pmac-piste__artiste {
    display: none;
  }

  .pmac-piste__entete .pmac-piste__artiste {
    display: block;
    margin-bottom: 8px;
  }

  .pmac-piste__origine {
    justify-content: flex-start;
  }
}

/* ---------------------------------------------------------------------------
 * Fenetre de partage
 * ------------------------------------------------------------------------ */

.pmac-reel-partage {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.pmac-reel-partage[hidden] {
  display: none;
}

.pmac-reel-partage__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 10, 22, 0.6);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.pmac-reel-partage.is-open .pmac-reel-partage__backdrop {
  opacity: 1;
}

.pmac-reel-partage__panel {
  position: relative;
  width: min(430px, 100%);
  padding: 18px 20px 20px;
  border-radius: 22px;
  background: #ffffff;
  color: var(--text-primary, #171a1f);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.24s ease;
}

.pmac-reel-partage.is-open .pmac-reel-partage__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.pmac-reel-partage__panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pmac-reel-partage__panel h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
}

.pmac-reel-partage__panel header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #171a1f;
  font-size: 18px;
  cursor: pointer;
}

.pmac-reel-partage__panel header button:hover {
  background: #f1f3f6;
}

.pmac-reel-partage__sujet {
  margin: 4px 0 16px;
  font-size: 13.5px;
  color: #626a73;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pmac-reel-partage__reseaux {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pmac-reel-reseau {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 14px 6px;
  border: 1px solid #e8ecf1;
  border-radius: 16px;
  background: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #2b3138;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.pmac-reel-reseau:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(18, 38, 63, 0.14);
}

body.pmac-reel-page .pmac-reel-reseau > i {
  display: grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 18px;
}

.pmac-reel-reseau--facebook > i { background: #1877f2; }
.pmac-reel-reseau--x > i { background: #000000; }
.pmac-reel-reseau--whatsapp > i { background: #25d366; }
.pmac-reel-reseau--telegram > i { background: #229ed9; }
.pmac-reel-reseau--tiktok > i { background: #010101; }
.pmac-reel-reseau--instagram > i {
  background: linear-gradient(45deg, #f9ce34, #ee2a7b 45%, #6228d7);
}

.pmac-reel-partage__lien {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: #f1f3f6;
}

.pmac-reel-partage__lien input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 12.5px;
  color: #626a73;
}

.pmac-reel-partage__lien input:focus {
  outline: none;
}

.pmac-reel-partage__lien button {
  flex: 0 0 auto;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--navy, #03182f);
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

body.pmac-reel-sheet-open {
  overflow: hidden;
}

/* ---------------------------------------------------------------------------
 * Tablette et téléphone
 * ------------------------------------------------------------------------ */

@media (max-width: 1100px) {
  .pmac-reel-side {
    flex-basis: 206px;
  }

  .pmac-reel-action__label {
    display: none;
  }
}

@media (max-width: 900px) {
  /* L'en-tete du site s'efface : sur un telephone chaque pixel de hauteur
     compte, et le bandeau du fil suffit a se reperer. */
  body.pmac-reel-page .pmac-feed-header {
    display: none;
  }

  body.pmac-reel-page .pmac-feed-shell {
    padding-top: 0;
  }

  .pmac-reel-back {
    display: inline-flex;
  }

  .pmac-reel-layout {
    padding: 0;
    gap: 0;
  }

  /* La colonne de gauche laisse la place au bandeau d'onglets du haut. */
  .pmac-reel-side {
    display: none;
  }

  .pmac-reel-topbar {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    padding: 10px 14px;
    background: linear-gradient(to bottom, rgba(2, 10, 22, 0.82), rgba(2, 10, 22, 0));
  }

  .pmac-reel-player {
    top: 54px;
  }

  .pmac-reel-filters {
    top: 60px;
    right: 12px;
  }

  .pmac-reel-slide {
    padding: 0;
  }

  .pmac-reel-stage {
    width: 100%;
    display: block;
    position: relative;
  }

  .pmac-reel-media {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
  }

  /* Sur téléphone la colonne d'actions se pose sur la photo. */
  /* Les actions descendent au plus pres du bas de l'ecran : plus haut,
     elles flottaient au milieu de la photo. */
  .pmac-reel-rail {
    position: absolute;
    right: 8px;
    bottom: 58px;
    z-index: 7;
    gap: 12px;
    padding: 0;
  }

  .pmac-reel-rail__avatar img {
    width: 46px;
    height: 46px;
  }

  .pmac-reel-action {
    width: 52px;
  }

  body.pmac-reel-page .pmac-reel-action > i {
    width: 42px;
    min-width: 42px;
    height: 42px;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.14);
  }

  .pmac-reel-info {
    padding: 14px 74px 44px 14px;
  }

  .pmac-reel-pill {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pmac-reel-title {
    font-size: 12px;
  }

  .pmac-reel-nav {
    display: none;
  }

  .pmac-reel-hint {
    display: flex;
    bottom: 10px;
  }

  .pmac-reel-sheet__panel {
    width: 100%;
    max-height: 88dvh;
  }
}

@media (max-width: 480px) {
  /* Le bandeau doit tenir en une ligne : titre, onglets et outils se
     resserrent plutot que de deborder. */
  .pmac-reel-topbar {
    gap: 9px;
    padding: 10px 10px;
  }

  .pmac-reel-topbar__tabs {
    gap: 12px;
  }

  .pmac-reel-topbar__tabs a {
    font-size: 13px;
  }

  .pmac-reel-tool {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .pmac-reel-back {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  /* Deux pastilles suffisent sur un ecran de telephone : au-dela elles
     passent a la ligne et recouvrent l'invitation a balayer. */
  .pmac-reel-pills .pmac-reel-pill:nth-child(n + 3) {
    display: none;
  }

  .pmac-reel-topbar__title {
    font-size: 15px;
  }

  .pmac-reel-player {
    top: 50px;
  }

  .pmac-reel-composer__notes {
    grid-template-columns: 1fr 1fr;
  }

  .pmac-reel-composer--guest {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}
