/* Web Troyen — lecteur vidéo : uniquement les vidéos natives Gutenberg améliorées par player.js */
.wt-player-shell,
.wt-player-shell * { box-sizing: border-box; }
.wt-player-shell {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--wt-player-ratio, 16 / 9);
  overflow: hidden;
  border: 1px solid rgba(199,204,214,.27);
  border-radius: 22px;
  background: #0B1020;
  box-shadow: 0 20px 55px rgba(11,16,32,.18),0 0 0 5px rgba(109,40,217,.035);
}
.wt-player-shell > video {
  display:block;
  width:100%; height:100%;
  object-fit:contain;
  background:#0B1020;
}
.wt-player-start {
  appearance:none;
  -webkit-appearance:none;
  position:absolute;
  inset:0;
  z-index:2;
  display:grid;
  place-items:center;
  border:0;
  width:100%;height:100%;padding:0;
  background:radial-gradient(circle at 58% 42%,#142B6F 0%,#0B1020 75%);
  color:#F7F7FB;
  cursor:pointer;
  overflow:hidden;
}
.wt-player-start::after {
  content:"";
  position:absolute;
  inset:48% 0 0;
  background:linear-gradient(transparent,rgba(11,16,32,.30));
  pointer-events:none;
}
.wt-player-poster {
  position:absolute;
  inset:0;
  display:block;
  width:100%;height:100%;
  object-fit:cover;
  transition:transform .35s ease;
}
.wt-player-start:hover .wt-player-poster { transform:scale(1.025); }
.wt-player-play {
  position:relative;
  z-index:2;
  display:grid;
  place-items:center;
  width:72px;height:72px;
  border-radius:999px;
  border:1px solid rgba(247,247,251,.46);
  background:rgba(11,16,32,.78);
  box-shadow:0 0 34px rgba(109,40,217,.24);
  transition:background .2s ease,box-shadow .2s ease;
}
.wt-player-play::before {
  content:"";
  width:0;height:0;margin-left:5px;
  border-top:12px solid transparent;
  border-bottom:12px solid transparent;
  border-left:19px solid #F7F7FB;
}
.wt-player-start:hover .wt-player-play,
.wt-player-start:focus-visible .wt-player-play {
  background:rgba(109,40,217,.86);
  box-shadow:0 0 42px rgba(109,40,217,.42);
}
.wt-player-start:focus-visible { outline:3px solid #A78BFA;outline-offset:-5px; }
.wt-player-label {
  position:absolute;
  z-index:2;
  bottom:13px;left:16px;
  padding:6px 10px;
  border-radius:8px;
  color:#F7F7FB;
  background:rgba(11,16,32,.74);
  font-size:12px;letter-spacing:.02em;
}
figure.wp-block-video.wt-player-enhanced { max-width:100%; }
figure.wp-block-video.wt-player-enhanced > figcaption { margin-top:12px; }
@media(max-width:600px) {
  .wt-player-shell { border-radius:15px; }
  .wt-player-play {width:60px;height:60px;}
}
@media(prefers-reduced-motion:reduce){
  .wt-player-shell * {transition:none!important;animation:none!important;}
}

/* V1.1 — Vidéos portrait : limitent leur hauteur sur ordinateur, sans recadrage */
.wt-player-shell[data-wt-orientation="portrait"] {
  width: min(100%, 390px, var(--wt-portrait-cap, 40.5vh));
  margin-inline: auto;
}

/* Sur mobile, priorité à la largeur disponible pour le 9:16. */
@media (max-width: 600px) {
  .wt-player-shell[data-wt-orientation="portrait"] {
    width: min(100%, 390px);
  }
}
