/**
 * VideosPlayer : bloc vidéos (block--block-content-videos d'albin_michel).
 *
 * Même principe qu'avant (un lecteur, une liste qui le remplit au clic,
 * albin_michel/video-playlist.js) ; seule la mise en page change :
 * bandeau sombre pleine largeur, lecteur 16:9 sur deux tiers, liste sur
 * le tiers restant, à la même hauteur.
 */
.VideosPlayer.VideosPlayer-Custom {
  margin: 0;
  padding: clamp(64px, 8vw, 112px) 0;
  background: #111;
  color: var(--am-white);
}

/* En-tête : titre, lien « Voir toutes les vidéos » et flèches de la liste */
.VideosPlayer.VideosPlayer-Custom .VideosPlayer-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 24px;
  margin-bottom: 32px;
  padding: 0;
  border: 0;
}
.VideosPlayer.VideosPlayer-Custom .VideosPlayer-heading h2 {
  margin: 0 auto 0 0;
  color: var(--am-white);
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.05;
}
.VideosPlayer.VideosPlayer-Custom .VideosPlayer-heading h4 {
  flex-basis: 100%;
  order: 3;
  margin: 0;
  color: #c9c9c9;
  font-size: 17px;
}
.VideosPlayer.VideosPlayer-Custom .VideosPlayer-heading-link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid var(--am-white);
  border-radius: var(--am-radius);
  color: var(--am-white);
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
  transition: background-color 0.15s, color 0.15s;
}
.VideosPlayer.VideosPlayer-Custom .VideosPlayer-heading-link:hover {
  background: var(--am-white);
  color: #111;
}

/* Lecteur et liste */
.VideosPlayer.VideosPlayer-Custom .VideosPlayer-container {
  display: grid;
  gap: 24px;
}
.VideosPlayer.VideosPlayer-Custom .VideosPlayer-container .VideosPlayer-video,
.VideosPlayer.VideosPlayer-Custom .VideosPlayer-container .VideosPlayer-playlist {
  width: auto;
  min-width: 0;
  margin: 0;
}
.VideosPlayer.VideosPlayer-Custom .VideosPlayer-video {
  border-radius: var(--u-radius-card);
}
.VideosPlayer.VideosPlayer-Custom .VideosPlayer-video--wrapper {
  overflow: hidden;
  border-radius: var(--u-radius-card);
  background: #000;
  box-shadow: none;
}
.VideosPlayer.VideosPlayer-Custom .VideosPlayer-video iframe {
  border-radius: 0;
}
/* Consentement aux cookies vidéo pas encore donné */
.VideosPlayer.VideosPlayer-Custom .cookie-consent-warning {
  gap: 16px;
  padding: 24px;
  background: #1c1c1c;
  color: var(--am-white);
  opacity: 1;
  text-align: center;
}

.VideosPlayer.VideosPlayer-Custom .VideosPlayer-playlist {
  position: relative;
}
.VideosPlayer.VideosPlayer-Custom .VideosPlayer-playlist a,
.VideosPlayer.VideosPlayer-Custom .VideosPlayer-title {
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--u-radius-card);
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--u-font-base);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  transition: background-color 0.15s, color 0.15s;
}
.VideosPlayer.VideosPlayer-Custom .VideosPlayer-playlist a:visited {
  color: rgba(255, 255, 255, 0.82);
}
.VideosPlayer.VideosPlayer-Custom .VideosPlayer-playlist a svg,
.VideosPlayer.VideosPlayer-Custom .VideosPlayer-title svg {
  display: inline-block;
  flex-basis: 28px;
  margin: 0;
  fill: currentColor;
}
.VideosPlayer.VideosPlayer-Custom .VideosPlayer-playlist a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--am-white);
}
.VideosPlayer.VideosPlayer-Custom .VideosPlayer-playlist a.current {
  background: rgba(255, 255, 255, 0.12);
  color: var(--am-white);
}
.VideosPlayer.VideosPlayer-Custom .VideosPlayer-playlist a.current svg {
  fill: var(--am-red);
}
/* Flèches de la liste : sous la liste, en blanc */
.VideosPlayer.VideosPlayer-Custom .Carousel--videos {
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
}
.VideosPlayer.VideosPlayer-Custom .Carousel--videos .carousel-arrows {
  position: static;
  justify-content: flex-end;
}
.VideosPlayer.VideosPlayer-Custom .carousel-arrow-prev svg,
.VideosPlayer.VideosPlayer-Custom .carousel-arrow-next svg {
  fill: var(--am-white);
}

@media (min-width: 900px) {
  .VideosPlayer.VideosPlayer-Custom .VideosPlayer-container.VideosPlayer-container--with-playlist {
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    align-items: start;
    gap: clamp(24px, 3vw, 48px);
  }
  /* Liste à la hauteur du lecteur : ses 7 titres par page (Carousel.js,
     slidesPerColumn) se partagent cette hauteur, le dernier finit au ras
     de la vidéo ; les flèches passent dessous. */
  .VideosPlayer.VideosPlayer-Custom .VideosPlayer-container--with-playlist .VideosPlayer-playlist {
    align-self: stretch;
  }
  .VideosPlayer.VideosPlayer-Custom .VideosPlayer-container--with-playlist .Carousel--videos {
    position: relative;
    height: 100%;
  }
  .VideosPlayer.VideosPlayer-Custom .VideosPlayer-container--with-playlist .Carousel--videos .swiper-container {
    flex: 1 1 0;
    width: 100%;
    min-height: 0;
  }
  .VideosPlayer.VideosPlayer-Custom .VideosPlayer-container--with-playlist .Carousel--videos .carousel-arrows {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
  }
  .VideosPlayer.VideosPlayer-Custom .VideosPlayer-container--with-playlist .VideosPlayer-playlist--video {
    height: calc(100% / 7);
  }
  .VideosPlayer.VideosPlayer-Custom .VideosPlayer-container--with-playlist .VideosPlayer-playlist a {
    height: 100%;
    overflow: hidden;
    padding-block: 0;
    font-family: var(--u-font-title);
    font-size: clamp(17px, 1.35vw, 21px);
    font-weight: 400;
    line-height: 1.2;
  }
}
