/* Skywayback — overlay de génération / résultat vidéo.
 * Partagé par la home (public/index.html) et les pages de partage /v/{slug}
 * (views/share.php) : le moteur video.js est le même, et il injecte lui-même le
 * markup sur les pages qui ne l'ont pas en dur.
 */
#video-overlay {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(0,0,0,.82); backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 18px; overflow-y: auto; /* carte scrollable si trop haute */
}
#video-overlay[hidden] { display: none; }
.vo-card {
  position: relative; width: 100%; max-width: 360px; margin: auto;
  background: #15161a; border-radius: 18px; padding: 18px;
  color: #fff; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
/* Bouton fermer FIXE en haut à droite de l'écran → toujours visible/atteignable */
#vo-close {
  position: fixed; top: 12px; right: 12px; z-index: 22;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.3);
  color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
#vo-close2 {
  display: block; width: 100%; margin-top: 12px; padding: 13px; border: 0; cursor: pointer;
  border-radius: 12px; background: #2a2c33; color: #fff; font-size: 15px; font-weight: 700;
}
#vo-status { margin: 6px 0 12px; font-size: 15px; font-weight: 600; }
#vo-progress { height: 6px; border-radius: 3px; background: rgba(255,255,255,.15); overflow: hidden; }
#vo-bar { height: 100%; width: 0; background: linear-gradient(90deg, #ff5a3c, #ff2d55); transition: width .25s; }
#vo-video { display: block; aspect-ratio: 9 / 16; max-height: 54vh; width: auto; max-width: 100%;
  margin: 12px auto 0; border-radius: 12px; background: #000; }
#vo-actions { display: flex; gap: 10px; margin-top: 14px; }
#vo-actions > * {
  flex: 1; padding: 13px; border-radius: 12px; border: 0; cursor: pointer;
  font-size: 15px; font-weight: 700; text-decoration: none; text-align: center;
}
#vo-share { background: #ff2d55; color: #fff; }
#vo-download { background: #2a2c33; color: #fff; }
#vo-link { display: flex; gap: 8px; margin-top: 12px; }
#vo-url {
  flex: 1; min-width: 0; padding: 12px; border-radius: 12px; border: 0;
  background: #0e0f12; color: #cfd3d8; font-size: 13px;
}
#vo-copy { padding: 12px 14px; border: 0; border-radius: 12px; background: #2a2c33; color: #fff; font-weight: 700; cursor: pointer; }
