/* ═══════════════════════════════════════════════════════════════
   Panneau vidéo flottant
   ═══════════════════════════════════════════════════════════════ */

.video-float {
  position: fixed;
  z-index: 9000;
  width: 480px;
  height: 320px;
  min-width: 280px;
  min-height: 200px;
  background: #0e0e10;
  border: 1px solid var(--bdr);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ─── Barre de titre (draggable) ─── */
.vf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg1) 100%);
  border-bottom: 1px solid var(--bdr);
  cursor: grab;
  flex-shrink: 0;
  user-select: none;
}
.vf-head:active { cursor: grabbing; }

.vf-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--tx);
  font-weight: 700;
}

.vf-close {
  background: var(--bg3);
  border: 1px solid var(--bdr);
  color: var(--tx3);
  cursor: pointer;
  font-size: 13px;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  line-height: 1;
  padding: 0;
}
.vf-close:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ─── Corps (vidéo) ─── */
.vf-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.vf-body video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ─── Poignée de redimensionnement ─── */
.vf-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 20px;
  height: 20px;
  cursor: nwse-resize;
}
.vf-resize::after {
  content: '';
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--tx3);
  border-bottom: 2px solid var(--tx3);
  opacity: .6;
}
.vf-resize:hover::after { opacity: 1; }

/* ─── Bordures redimensionnables ─── */
.vf-edge {
  position: absolute;
  z-index: 1;
}
.vf-edge-n { top: -3px; left: 10px; right: 10px; height: 6px; cursor: ns-resize; }
.vf-edge-s { bottom: -3px; left: 10px; right: 10px; height: 6px; cursor: ns-resize; }
.vf-edge-w { left: -3px; top: 10px; bottom: 10px; width: 6px; cursor: ew-resize; }
.vf-edge-e { right: -3px; top: 10px; bottom: 10px; width: 6px; cursor: ew-resize; }
.vf-edge-nw { top: -3px; left: -3px; width: 12px; height: 12px; cursor: nwse-resize; }
.vf-edge-ne { top: -3px; right: -3px; width: 12px; height: 12px; cursor: nesw-resize; }
.vf-edge-sw { bottom: -3px; left: -3px; width: 12px; height: 12px; cursor: nesw-resize; }
.vf-edge-se { bottom: -3px; right: -3px; width: 12px; height: 12px; cursor: nwse-resize; }
