/*
 * Voyons Patrimoine — lecteur YouTube click-to-load
 * Composant autonome : aucune dépendance aux anciens boutons .vp-play.
 */
.vp-single-player .vp-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #07111f;
}

.vp-single-player .vp-consent-player {
  position: absolute;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  background: #07111f;
}

.vp-single-player .vp-consent-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.vp-single-player .vp-consent-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(201,161,74,.16), transparent 35%),
    linear-gradient(145deg, #07111f, #102b49);
}

.vp-single-player .vp-consent-fallback img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  opacity: .92;
}

.vp-single-player .vp-player-launch {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  min-width: 86px;
  min-height: 86px;
  margin: 0;
  padding: 0;
  transform: translate(-50%, -50%);
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #E4C878;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 27%, #1e4d7e 0%, #163A63 34%, #0B1F36 72%, #07111f 100%);
  color: #E4C878;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  overflow: visible;
  box-shadow:
    0 0 0 5px rgba(7,17,31,.78),
    0 0 0 7px rgba(201,161,74,.86),
    0 16px 36px rgba(0,0,0,.48),
    0 0 30px rgba(228,200,120,.32);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

/* Deux traits diagonaux : signature graphique VP, sans surcharger la miniature. */
.vp-single-player .vp-player-launch::before,
.vp-single-player .vp-player-launch::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 62px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #C9A14A 24%, #E4C878 50%, #C9A14A 76%, transparent);
  box-shadow: 0 0 8px rgba(228,200,120,.58);
  pointer-events: none;
}

.vp-single-player .vp-player-launch::before {
  left: -51px;
  top: 19px;
  transform: rotate(-58deg);
}

.vp-single-player .vp-player-launch::after {
  right: -51px;
  bottom: 19px;
  transform: rotate(-58deg);
}

.vp-single-player .vp-player-launch svg {
  position: relative;
  z-index: 2;
  display: block;
  width: 31px;
  height: 31px;
  fill: currentColor;
  transform: translateX(3px);
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.38));
}

.vp-single-player .vp-player-launch:hover,
.vp-single-player .vp-player-launch:focus-visible {
  transform: translate(-50%, -50%) scale(1.06);
  filter: brightness(1.08);
  box-shadow:
    0 0 0 5px rgba(7,17,31,.82),
    0 0 0 8px rgba(228,200,120,.95),
    0 18px 40px rgba(0,0,0,.5),
    0 0 38px rgba(228,200,120,.46);
  outline: none;
}

.vp-single-player .vp-player-launch:focus-visible {
  outline: 2px solid #E4C878;
  outline-offset: 10px;
}

.vp-single-media-section .vp-player-note {
  margin: 7px auto 0;
  max-width: 930px;
  padding: 0 12px;
  color: #9B741F;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: .002em;
  text-align: center;
}

.vp-single-player .vp-video-frame--loaded {
  background: #000;
}

.vp-single-player .vp-video-frame--loaded iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 760px) {
  .vp-single-player .vp-player-launch {
    width: 68px;
    height: 68px;
    min-width: 68px;
    min-height: 68px;
    border-width: 1.5px;
    box-shadow:
      0 0 0 4px rgba(7,17,31,.78),
      0 0 0 6px rgba(201,161,74,.86),
      0 12px 28px rgba(0,0,0,.46),
      0 0 24px rgba(228,200,120,.30);
  }

  .vp-single-player .vp-player-launch svg {
    width: 25px;
    height: 25px;
    transform: translateX(2px);
  }

  .vp-single-player .vp-player-launch::before,
  .vp-single-player .vp-player-launch::after {
    width: 48px;
  }

  .vp-single-player .vp-player-launch::before {
    left: -39px;
    top: 15px;
  }

  .vp-single-player .vp-player-launch::after {
    right: -39px;
    bottom: 15px;
  }

  .vp-single-media-section .vp-player-note {
    margin-top: 6px;
    padding: 0 8px;
    font-size: 9.5px;
    line-height: 1.4;
  }
}
