/* Container principal du bloc vidéo personnalisé */
/* Masquage robuste des contrôles natifs spécifiques moteurs (fallbacks) */
.cvbu-video video::-webkit-media-controls-panel { display: none !important; opacity: 1 !important; }
.cvbu-video video::-webkit-media-controls-start-playback-button { display: none !important; }
.cvbu-video video::-webkit-media-controls { display: none !important; }

/* Optionnel: empêcher le clic droit qui peut exposer "show controls" dans certains contextes */
.cvbu-video video {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Pour empêcher toute interaction directe avec la vidéo (on pilote via boutons custom) */
.cvbu-video video {
  pointer-events: none;
}

/* Rappel des styles précédents (bordure/arrondi, 100%) */
.cvbu-video {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  border: 2px solid #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);

  margin: 15px auto 10px;
}

.cvbu-video video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Barre de contrôles custom */
.cvbu-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px;
  background: rgba(255,255,255,0.9);
  border-top: 1px solid rgba(0,0,0,0.08);
}

/* Boutons */
.cvbu-btn {
  appearance: none;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  padding: 6px 10px;
  font: inherit;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease;
}

.cvbu-btn:hover {
  background: #f4f4f4;
}

.cvbu-btn:active {
  transform: scale(0.98);
}

/* Accessibilité focus */
.cvbu-btn:focus {
  outline: 2px solid #0a84ff;
  outline-offset: 2px;
}

/* Mode sombre léger (optionnel) */
@media (prefers-color-scheme: dark) {
  .cvbu-controls {
    background: rgba(20,20,20,0.9);
    border-top-color: rgba(255,255,255,0.1);
  }
  .cvbu-btn {
    background: #141414;
    color: #f1f1f1;
    border-color: #444;
  }
  .cvbu-btn:hover {
    background: #1a1a1a;
  }
}
