/* --- VideoBMViet Pro V3.0.0 --- */
.vbv-launch-wrapper {
    width: 100%; max-width: 1000px; margin: 0 auto 50px auto;
    font-family: 'Montserrat', sans-serif; box-sizing: border-box;
}
.vbv-launch-wrapper * { box-sizing: border-box; }
.vbv-launch-main-title { text-align: center; color: #003366; font-size: 26px; font-weight: 800; margin-bottom: 25px; text-transform: uppercase; }

/* NAV BAR */
.vbv-launch-nav { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 25px; }
.vbv-nav-item { flex: 1; cursor: pointer; position: relative; opacity: 0.7; transition: all 0.3s; }
.vbv-nav-item:hover { opacity: 1; transform: translateY(-3px); }
.vbv-nav-item.vbv-active { opacity: 1; transform: scale(1.02); }
.vbv-nav-item.vbv-locked { cursor: not-allowed; opacity: 0.5; }
.vbv-nav-thumb { position: relative; border-radius: 6px; overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,0.1); border: 2px solid transparent; aspect-ratio: 16/9; }
.vbv-nav-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vbv-active .vbv-nav-thumb { border-color: var(--vbv-primary); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.vbv-nav-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: background 0.3s; }
.vbv-active .vbv-nav-overlay { background: rgba(0,0,0,0); }
.vbv-nav-item:hover .vbv-nav-overlay { background: rgba(0,0,0,0.1); }
.vbv-locked .vbv-nav-overlay { background: rgba(0,0,0,0.7); }
.vbv-nav-overlay i { font-size: 28px; drop-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.vbv-active .vbv-nav-overlay i { display: none; }
.vbv-lock-msg { font-size: 11px; margin-top: 5px; background: #000; padding: 3px 6px; border-radius: 3px; font-weight: 700; color: #f1c40f; text-align: center; }
.vbv-now-playing { position: absolute; top: 5px; left: 5px; background: var(--vbv-primary); padding: 3px 8px; font-size: 10px; font-weight: 700; border-radius: 3px; text-transform: uppercase; color: #fff; }
.vbv-nav-title { margin-top: 10px; font-size: 13px; font-weight: 700; text-align: center; color: #333; line-height: 1.3; }
.vbv-active .vbv-nav-title { color: var(--vbv-primary); }

/* PLAYER CONTAINER */
.vbv-player-container { border-radius: 8px 8px 0 0; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.15); border: 1px solid #eee; position: relative; }
.vbv-video-frame { position: relative; background: #000; width: 100%; }
.vbv-video-inner { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.vbv-audio-mode .vbv-video-inner { padding-bottom: 0; height: 120px; background: #222; } /* Audio height */

.vbv-embed-placeholder, .vbv-embed-placeholder iframe, .vbv-embed-placeholder video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Speaker Overlay (Blinking) */
.vbv-speaker-overlay {
    position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,0.6); color: #fff; padding: 8px 15px;
    border-radius: 20px; font-size: 13px; font-weight: 700; z-index: 25;
    display: flex; align-items: center; pointer-events: none;
}
.vbv-speaker-overlay i { color: #f1c40f; margin-right: 8px; }
.vbv-blink { animation: vbv-blink-anim 1.5s infinite; }
@keyframes vbv-blink-anim { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }

/* Secure Mask */
.vbv-secure-mask { position: absolute; top: 0; left: 0; width: 100%; height: calc(100% - 45px); z-index: 20; background: transparent; cursor: pointer; }

/* Custom Controls */
.vbv-custom-controls {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 45px;
    background: var(--vbv-ctrl-bg); display: flex; align-items: center;
    padding: 0 15px; box-sizing: border-box; z-index: 30; opacity: 0; transition: opacity 0.3s;
}
.vbv-video-inner:hover .vbv-custom-controls { opacity: 1; }
.vbv-ctrl-btn { background: none; border: none; color: var(--vbv-ctrl-icon); cursor: pointer; font-size: 16px; margin-right: 12px; padding: 0; width: 30px; text-align: center; }
.vbv-ctrl-btn:hover { color: var(--vbv-primary); }
.vbv-time-display { color: #fff; font-size: 12px; margin-right: 10px; min-width: 90px; text-align: center; font-variant-numeric: tabular-nums; }
.vbv-progress-bar { flex-grow: 1; height: 5px; background: rgba(255,255,255,0.3); border-radius: 3px; cursor: pointer; position: relative; margin: 0 15px; }
.vbv-progress-filled { height: 100%; width: 0%; background: var(--vbv-primary); border-radius: 3px; position: relative; }
.vbv-vol-slider-wrap { width: 0; overflow: hidden; transition: width 0.2s; display: flex; align-items: center; margin-right: 10px; }
.vbv-custom-controls:hover .vbv-vol-slider-wrap { width: 70px; }
.vbv-vol-slider { width: 100%; height: 4px; cursor: pointer; }

/* Settings Menu */
.vbv-settings-wrap { position: relative; margin-right: 5px; }
.vbv-settings-menu { position: absolute; bottom: 35px; right: -10px; background: rgba(0,0,0,0.9); padding: 5px 0; border-radius: 4px; display: none; min-width: 80px; }
.vbv-settings-wrap:hover .vbv-settings-menu { display: block; }
.vbv-speed-opt { color: #ccc; padding: 5px 15px; font-size: 12px; cursor: pointer; text-align: right; }
.vbv-speed-opt:hover, .vbv-speed-opt.active { color: #fff; background: rgba(255,255,255,0.1); }

/* Big Play */
.vbv-big-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6); border: 3px solid #fff; color: #fff;
    width: 70px; height: 70px; border-radius: 50%; font-size: 24px;
    cursor: pointer; z-index: 25; transition: all 0.2s; display: flex; align-items: center; justify-content: center; padding-left: 5px;
}
.vbv-big-play:hover { background: var(--vbv-primary); border-color: var(--vbv-primary); transform: translate(-50%, -50%) scale(1.1); }

/* End Screen Action */
.vbv-end-action-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 40; display: flex; justify-content: center; align-items: center;
}
.vbv-end-content { text-align: center; }
.vbv-end-btn {
    display: inline-block; padding: 12px 30px; background: var(--vbv-primary);
    color: #fff; font-weight: 700; text-decoration: none; border-radius: 5px;
    font-size: 16px; margin-bottom: 15px; text-transform: uppercase;
}
.vbv-replay-text { color: #ccc; cursor: pointer; font-size: 14px; }
.vbv-replay-text:hover { color: #fff; }

.vbv-screen-title { padding: 15px 20px; margin: 0; font-size: 18px; font-weight: 700; border-bottom: 1px solid #eee; border-radius: 0 0 8px 8px; }

/* 3. TIMED CONTENT AREA (Gap 5px, Radius) */
.vbv-timed-area { 
    margin-top: 5px; /* Gap 5px */
    padding: 20px; text-align: center; 
    border-radius: 8px; /* Match video frame radius */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    animation: vbv-fade-up 0.5s ease;
}
.vbv-file-btn {
    display: inline-flex; align-items: center; padding: 12px 30px; 
    font-weight: 700; font-size: 16px; border-radius: 50px; 
    transition: transform 0.2s; text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.vbv-file-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.2); }
.vbv-file-icon { margin-right: 10px; font-size: 20px; }
@keyframes vbv-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* 4. STICKY SCROLL */
.vbv-sticky-active .vbv-player-container {
    position: fixed; bottom: 20px; right: 20px; width: 320px; z-index: 9999;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3); border-radius: 8px;
    animation: vbv-slide-in 0.3s ease-out;
}
.vbv-sticky-active .vbv-screen-title, 
.vbv-sticky-active .vbv-timed-area { display: none; }
.vbv-sticky-active .vbv-custom-controls { display: none !important; } 
.vbv-sticky-active .vbv-secure-mask { height: 100%; } 
.vbv-sticky-active .vbv-sticky-close { display: block; }
.vbv-sticky-placeholder { display: none; width: 100%; }
.vbv-sticky-close {
    position: absolute; top: -12px; right: -12px; width: 24px; height: 24px;
    background: #333; color: #fff; border-radius: 50%; text-align: center;
    line-height: 24px; cursor: pointer; display: none; z-index: 100; font-size: 12px;
}
@keyframes vbv-slide-in { from { transform: translateY(100px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 768px) {
    .vbv-launch-nav { overflow-x: auto; padding-bottom: 10px; gap: 10px; }
    .vbv-nav-item { min-width: 140px; }
}