/* ══════════════════════════════════════════════════════════════
   MAP REVIEW — janela flutuante de VOD/Live (YouTube)
   ══════════════════════════════════════════════════════════════ */
.vod-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,0,51,0.08); border: 1px solid rgba(255,0,51,0.35); color: #fda4af;
    border-radius: 6px; padding: 4px 11px 4px 8px; font: 600 12px 'Inter', sans-serif;
    cursor: pointer; transition: background .2s, border-color .2s, box-shadow .2s; margin-right: 4px;
}
.vod-btn:hover { background: rgba(255,0,51,0.16); border-color: rgba(255,0,51,0.6); }
.vod-btn.active { background: rgba(255,0,51,0.22); border-color: #ff0033; color: #fff; box-shadow: 0 0 12px rgba(255,0,51,.35); }

.vod-win {
    position: fixed; top: 60px; right: 76px; z-index: 900;
    width: 640px; height: 400px; min-width: 320px; min-height: 220px;
    display: none; flex-direction: column; overflow: hidden;
    background: var(--bg-panel, rgba(5,8,16,.97));
    border: 1px solid var(--border-bright, rgba(124,58,237,.45)); border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0,0,0,.45);
    contain: layout paint;          /* isola a janela: mexer nela não repinta o mapa */
    will-change: transform;
}
.vod-win.open { display: flex; }
.vod-win.min { height: auto !important; min-height: 0; }
.vod-win.min .vod-body, .vod-win.min .vod-grip { display: none; }

.vod-head {
    height: 34px; flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 0 6px 0 10px;
    cursor: move; user-select: none; touch-action: none;
    background: linear-gradient(90deg, rgba(255,0,51,.10), rgba(124,58,237,.10));
    border-bottom: 1px solid var(--border-normal, rgba(124,58,237,.22));
}
.vod-logo { display: flex; }
.vod-title { flex: 1; font: 700 10px 'Orbitron', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary, #94a3b8); }
.vod-hbtn {
    width: 26px; height: 24px; border: 1px solid transparent; border-radius: 6px; background: transparent;
    color: var(--text-secondary, #94a3b8); font-size: 13px; line-height: 1; cursor: pointer;
}
.vod-hbtn:hover { background: var(--cyan-dim, rgba(124,58,237,.12)); border-color: var(--cyan-border, rgba(124,58,237,.28)); color: var(--text-primary, #e2e8f0); }
.vod-x:hover { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.4); color: #ef4444; }

.vod-body { position: relative; flex: 1; min-height: 0; background: #000; }
.vod-frame { position: absolute; inset: 0; display: none; }
.vod-frame iframe { width: 100%; height: 100%; display: block; border: 0; }
.vod-form {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 18px;
    background: var(--bg-card, rgba(11,15,26,.92));
}
.vod-row { display: flex; gap: 6px; }
.vod-input {
    flex: 1; min-width: 0; padding: 9px 11px; border-radius: 8px; font: 13px 'Inter', sans-serif;
    background: var(--bg-input, rgba(5,8,16,.95)); color: var(--text-primary, #e2e8f0);
    border: 1px solid var(--border-normal, rgba(124,58,237,.22)); outline: none;
}
.vod-input:focus { border-color: var(--cyan, #7c3aed); box-shadow: 0 0 0 2px var(--cyan-dim, rgba(124,58,237,.12)); }
.vod-go { padding: 0 16px; border: 0; border-radius: 8px; background: #7c3aed; color: #fff; font: 700 12px 'Inter', sans-serif; cursor: pointer; }
.vod-go:hover { background: #6d28d9; }
.vod-err { min-height: 14px; font: 600 11px 'Inter', sans-serif; color: #f87171; }
.vod-hint { font: 11px 'Inter', sans-serif; color: var(--text-muted, #64748b); line-height: 1.5; }

/* enquanto arrasta/redimensiona, o vídeo não captura o mouse */
.vod-shield { position: absolute; inset: 0; display: none; }
.vod-win.dragging .vod-shield { display: block; }

.vod-grip {
    position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; cursor: nwse-resize; z-index: 3; touch-action: none;
    background: linear-gradient(135deg, transparent 50%, rgba(167,139,250,.55) 50%, rgba(167,139,250,.55) 58%, transparent 58%, transparent 70%, rgba(167,139,250,.55) 70%, rgba(167,139,250,.55) 78%, transparent 78%);
}
/* ── modo dividido: o mapa encolhe e o vídeo ocupa a direita ── */
.main-area.vod-split-on .canvas-container { margin-right: var(--vod-split-w, 40%); }
.vod-win.split { border-radius: 0; border: 0; border-left: 1px solid var(--border-bright, rgba(124,58,237,.45)); box-shadow: none; will-change: auto; }
.vod-win.split .vod-head { cursor: default; }
.vod-win.split .vod-grip { display: none; }
.vod-divider { display: none; position: absolute; left: -4px; top: 0; bottom: 0; width: 9px; cursor: ew-resize; z-index: 4; touch-action: none; }
.vod-win.split .vod-divider { display: block; }
.vod-win.split .vod-divider:hover, .vod-win.split.dragging .vod-divider { background: linear-gradient(90deg, transparent 3px, rgba(124,58,237,.7) 3px, rgba(124,58,237,.7) 6px, transparent 6px); }
.vod-split-btn.on, .vod-win.split .vod-split-btn { color: #a78bfa; background: rgba(124,58,237,.14); border-color: rgba(124,58,237,.35); }

@media (max-width: 768px) {
    .vod-split-btn { display: none; }
    .vod-win { left: 8px !important; right: 8px !important; width: auto !important; top: 52px; height: 240px; }
    .vod-btn span { display: none; }
}
