/* --- BM 3-Video Ra Mắt --- */
.bm-funnel-wrapper { --bm-primary: #e74c3c; --bm-dark: #111827; --bm-light: #f9fafb; font-family: 'Montserrat', system-ui, -apple-system, sans-serif; overflow-x: hidden; }
.bm-funnel-wrapper * { box-sizing: border-box; }
.bm-container { max-width: 1150px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 10; }

.bm-full-width-breakout { 
    width: 100vw !important; max-width: 100vw !important; position: relative !important; 
    left: 50% !important; right: 50% !important; transform: none !important; 
    margin-left: -50vw !important; margin-right: -50vw !important; box-sizing: border-box !important;
}

.bm-hero { padding: 80px 0; background: #111827; color: white; background-size: cover; background-position: center;}
.bm-hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(17,24,39,0.85), rgba(17,24,39,0.95)); z-index: 1; pointer-events: none !important; }
.bm-hero-inner-wrap { color: #ffffff; position: relative; z-index: 10; }

/* Tiêu đề */
.bm-header-block { text-align: center; margin-bottom: 50px; max-width: 1000px; margin-left: auto; margin-right: auto; }
.bm-pre-header { color: var(--bm-primary); font-weight: 800; font-size: 15px; letter-spacing: 3px; margin-bottom: 15px; text-transform: uppercase; }
.bm-main-title { font-size: 46px; font-weight: 900; line-height: 1.25; margin: 0 auto 20px; color: #ffffff; }

.bm-value-anchor { font-size: 18px; color: #d1d5db; font-weight: 600; display: inline-block; background: rgba(0,0,0,0.3); padding: 10px 25px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(5px); }
.bm-value-anchor .strike-through { text-decoration: line-through; color: #9ca3af; margin: 0 8px; }
.bm-value-anchor .free-text { color: var(--bm-primary); font-size: 22px; font-weight: 900; text-transform: uppercase; }

/* =========================================================
   7 STYLES CHO GIAO DIỆN OPT-IN
   ========================================================= */

.bm-optin-layout-style1 .bm-hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.bm-optin-layout-style2 .bm-hero-grid { display: flex; flex-direction: column; align-items: center; max-width: 700px; margin: 0 auto; text-align: center; }
.bm-optin-layout-style2 .bm-hero-right { width: 100%; margin-top: 30px; }
.bm-optin-layout-style3 .bm-hero-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: center; }
.bm-optin-layout-style3 .bm-hero-left { grid-column: 2; grid-row: 1; }
.bm-optin-layout-style3 .bm-hero-right { grid-column: 1; grid-row: 1; }
.bm-optin-layout-style4 .bm-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.bm-optin-layout-style4 .bm-form-card { background: rgba(255,255,255,0.1) !important; backdrop-filter: blur(15px); border: 1px solid rgba(255,255,255,0.2) !important; color: white !important; }
.bm-optin-layout-style4 .bm-form-head { border-bottom-color: rgba(255,255,255,0.1); }
.bm-optin-layout-style4 .bm-form-head h2, .bm-optin-layout-style4 .bm-form-head p, .bm-optin-layout-style4 .bm-input-wrap label { color: white !important; }
.bm-optin-layout-style4 .bm-input-wrap input { background: rgba(0,0,0,0.2); color: white; border-color: rgba(255,255,255,0.3); }
.bm-optin-layout-style4 .bm-input-wrap input::placeholder { color: #ccc; }
.bm-optin-layout-style5 .bm-hero-grid { display: block; max-width: 600px; margin: 0 auto; }
.bm-optin-layout-style5 .bm-header-block { margin-bottom: 20px; }
.bm-optin-layout-style6 .bm-hero { background: var(--bm-light) !important; color: var(--bm-dark); padding: 60px 0; }
.bm-optin-layout-style6 .bm-hero-overlay { display: none; }
.bm-optin-layout-style6 .bm-main-title { color: var(--bm-dark); }
.bm-optin-layout-style6 .bm-desc { color: #4b5563; }
.bm-optin-layout-style6 .bm-form-card { box-shadow: 0 40px 100px -20px rgba(0,0,0,0.15) !important; transform: translateY(-20px); }
.bm-optin-layout-style6 .bm-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.bm-optin-layout-style7 .bm-header-block { display: none; } 
.bm-optin-layout-style7 .bm-hero-grid { display: flex; align-items: center; background: rgba(255,255,255,0.05); border-radius: 20px; padding: 30px; border: 1px solid rgba(255,255,255,0.1); }
.bm-optin-layout-style7 .bm-hero-left { width: 60%; display: flex; align-items: center; gap: 30px; }
.bm-optin-layout-style7 .bm-cover-img { width: 250px; flex-shrink: 0; }
.bm-optin-layout-style7 .bm-hero-right { width: 40%; }
.bm-optin-layout-style7 .bm-form-card { box-shadow: none; border-radius: 12px; }

/* CSS Mới: Khu vực hiển thị thông số khóa học dưới mô tả */
.bm-hero-stats { 
    display: flex; flex-wrap: nowrap; gap: 12px; align-items: center; 
    margin-top: 25px; padding-top: 20px; 
    border-top: 1px dashed rgba(255,255,255,0.15); 
    overflow-x: auto; /* Cho phép trượt ngang nếu màn hình quá nhỏ thay vì rớt dòng */
    scrollbar-width: none; /* Ẩn thanh cuộn */
}
.bm-hero-stats::-webkit-scrollbar { display: none; }

.bm-stat-item { 
    display: flex; align-items: center; gap: 6px; 
    font-size: 13px; font-weight: 700; color: #f8fafc; 
    background: rgba(0,0,0,0.25); padding: 6px 14px; border-radius: 50px; 
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(5px); transition: 0.3s;
    white-space: nowrap; /* Bắt buộc không rớt chữ xuống dòng */
}
.bm-stat-item:hover { background: rgba(0,0,0,0.4); transform: translateY(-2px); }
.bm-stat-item i { font-size: 14px; drop-shadow: 0 2px 4px rgba(0,0,0,0.5); }

/* Căn giữa cho Style 2 và 7 Mobile */
.bm-optin-layout-style2 .bm-hero-stats { justify-content: center; border-top-style: solid; }

@media (max-width: 900px) {
    .bm-optin-layout-style1 .bm-hero-grid, .bm-optin-layout-style3 .bm-hero-grid, 
    .bm-optin-layout-style4 .bm-hero-grid, .bm-optin-layout-style6 .bm-hero-grid,
    .bm-optin-layout-style7 .bm-hero-grid { display: flex; flex-direction: column; }
    .bm-optin-layout-style3 .bm-hero-left { order: 1; }
    .bm-optin-layout-style3 .bm-hero-right { order: 2; }
    .bm-optin-layout-style7 .bm-hero-left { flex-direction: column; width: 100%; text-align: center; }
    .bm-optin-layout-style7 .bm-hero-right { width: 100%; margin-top: 20px; }
    
    .bm-hero-stats { justify-content: flex-start; gap: 8px; padding-bottom: 5px; } /* Căn trái trên Mobile để trượt dễ hơn */
    .bm-optin-layout-style2 .bm-hero-stats, .bm-optin-layout-style7 .bm-hero-stats { justify-content: center; }
    .bm-stat-item { font-size: 11px; padding: 5px 10px; }
}

/* =========================================================
   FORM ELEMETS
   ========================================================= */
.bm-hero-left { position: relative; }
.bm-cover-img { width: 100%; border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.6); transition: transform 0.5s ease; }
.bm-cover-img:hover { transform: translateY(-5px); }
.bm-desc { font-size: 18px; line-height: 1.7; color: #e5e7eb; margin-top: 25px; opacity: 0.95; }

.bm-hero-right { position: relative; z-index: 99999 !important; }
.bm-form-card { background: white; color: var(--bm-dark); border-radius: 20px; padding: 0; box-shadow: 0 30px 60px -15px rgba(0,0,0,0.6); position: relative; z-index: 99999 !important; pointer-events: auto !important; border: none !important; }
.bm-form-card::before, .bm-form-card::after { display: none !important; content: none !important; }

.bm-form-head { padding: 35px 30px 25px; text-align: center; border-bottom: 1px solid #f1f5f9; position: relative; z-index: 10; }
.bm-form-head h2 { margin: 0; font-size: 28px; font-weight: 900; color: #0f172a; }
.bm-form-head p { margin: 8px 0 0; color: #64748b; font-size: 15px; font-weight: 500;}
.bm-form-body { padding: 30px; position: relative; z-index: 99999 !important; }

.bm-live-viewers { background: #fef2f2; color: #b91c1c; padding: 12px; border-radius: 8px; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 20px; font-weight: 600; border: 1px dashed #fca5a5; }
.bm-dot { width: 8px; height: 8px; background: #ef4444; border-radius: 50%; animation: blink 1s infinite; }

/* COUNTDOWN */
.bm-countdown { background: #fffbeb; border: 1px dashed #fcd34d; padding: 15px; border-radius: 8px; text-align: center; margin-bottom: 25px; transition: 0.3s; }
.bm-countdown.urgent { border-color: #ef4444; background: #fef2f2; animation: urgent-shake 2s infinite; }
.bm-cd-title { font-size: 12px; font-weight: bold; color: #d97706; margin-bottom: 12px; }
.bm-countdown.urgent .bm-cd-title { color: #dc2626; }
.bm-cd-flex { display: flex; justify-content: center; gap: 8px; align-items: center; }
.bm-cd-flex .cd-box { display: flex; flex-direction: column; align-items: center; background: white; padding: 8px 10px; border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); border: 1px solid #fde68a; min-width: 55px; }
.bm-cd-flex .cd-colon { font-size: 20px; font-weight: bold; color: #d97706; margin-top: -15px; }
.bm-cd-flex span { font-size: 24px; font-weight: 900; color: var(--bm-dark); line-height: 1; }
.bm-cd-flex .sec span { color: #ef4444; }
.bm-cd-flex small { font-size: 11px; margin-top: 5px; color: #6b7280; font-weight: 700; text-transform: uppercase;}

@keyframes urgent-shake { 0%, 50%, 100% { transform: translateX(0); } 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }

.bm-input-wrap { margin-bottom: 18px; position: relative; z-index: 10; }
.bm-input-wrap label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; color: #334155; }
.bm-input-wrap input { width: 100%; padding: 16px 16px 16px 20px; border: 2px solid #e2e8f0; border-radius: 10px; background: #f8fafc; transition: all 0.3s ease; font-size: 16px; color: #0f172a; font-weight: 600; position: relative; z-index: 20; }
.bm-input-wrap input:focus { border-color: var(--bm-primary); background: white; outline: none; box-shadow: 0 0 0 4px rgba(231,76,60,0.15); }

/* SUBMIT BUTTON */
.bm-submit { 
    width: 100%; padding: 20px; background: linear-gradient(135deg, var(--bm-primary) 0%, #c0392b 100%); 
    color: white; font-weight: 900; font-size: 19px; border: none !important; border-radius: 12px; 
    cursor: pointer !important; position: relative; transition: all 0.3s ease; text-transform: uppercase; 
    display:flex; align-items:center; justify-content:center; gap: 10px; z-index: 999999 !important; pointer-events: auto !important; 
}
.bm-submit:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(231,76,60,0.4); }
.bm-submit * { pointer-events: none !important; }
.bm-pulse { animation: bm-cta-pulse 2s infinite; }

.bm-trust-badges { margin-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 5px; font-size: 11px; color: #64748b; font-weight: 600; flex-wrap: nowrap; position: relative; z-index: 10; width: 100%; white-space: nowrap; }
.bm-trust-badges span { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.bm-trust-badges i { color: #10b981; font-size: 15px; margin-right: 2px;}

@keyframes blink { 50% { opacity: 0.3; } }
@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes bm-cta-pulse { 0% { box-shadow: 0 0 0 0 rgba(231,76,60,0.6); } 70% { box-shadow: 0 0 0 15px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* FOMO POPUP */
.bm-fomo-box { position: fixed; bottom: 30px; left: -400px; background: white; padding: 15px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); display: flex; align-items: center; gap: 15px; width: 320px; transition: left 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 9999; border-left: 4px solid var(--bm-primary); }
.bm-fomo-box.show { left: 30px; }
.bm-fomo-box img { width: 45px; height: 45px; border-radius: 50%; }
.bm-fomo-box div { font-size: 13px; color: #4b5563; line-height: 1.4; }

/* EXIT INTENT POPUP */
.bm-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 2147483647; display: flex; justify-content: center; align-items: center; padding: 20px; backdrop-filter: blur(5px); }
.bm-modal-content { background: white; padding: 30px; border-radius: 15px; max-width: 500px; width: 100%; position: relative; text-align: center; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); border-top: 5px solid #d63638; animation: slideUp 0.3s ease; }
.bm-modal-close { position: absolute; top: 10px; right: 15px; font-size: 24px; color: #999; cursor: pointer; }
.bm-modal-close:hover { color: #333; }

/* =========================================================
   GIAO DIỆN VIDEO BÊN TRONG (KÈM BACKGROUND) - ĐÃ ÉP FULLWIDTH MỚI
   ========================================================= */
.bm-vid-bg-wrapper { 
    position: relative; min-height: 100vh; overflow: hidden; padding: 40px 0; 
    display: flex; flex-direction: column; align-items: center; width: 100vw !important; max-width: 100vw !important; 
    left: 50% !important; right: 50% !important; margin-left: -50vw !important; margin-right: -50vw !important; 
    transform: none !important; clear: both !important; box-sizing: border-box !important;
}

.bm-vid-bg-layer { position: absolute; inset: -20px; z-index: 1; background-size: cover; background-position: center; pointer-events: none; }
.bm-vid-bg-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); z-index: 2; pointer-events: none; }
.bm-vid-bg-wrapper .bm-video-series-container { position: relative; z-index: 10; width: 100%; margin: 0 auto; max-width: 1000px; padding: 0 20px; }
.bm-fb-comments-wrap { position: relative; z-index: 10; width: 100%; margin: 30px auto; max-width: 1000px; background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }

.bg-type-default { padding: 40px 0; min-height: auto; }

.bm-success-banner { background: #dcfce7; color: #166534; padding: 15px; font-weight: 700; border-radius: 8px; margin-bottom: 25px; border: 1px solid #bbf7d0; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }

.bm-launch-nav { display: flex; gap: 15px; margin-bottom: 25px; }
.bm-nav-item { flex: 1; cursor: pointer; position: relative; opacity: 0.7; transition: 0.3s; }
.bm-nav-item:hover { opacity: 1; transform: translateY(-3px); }
.bm-nav-item.bm-active { opacity: 1; transform: scale(1.02); }
.bm-nav-item.bm-locked { cursor: not-allowed; opacity: 0.5; }
.bm-nav-thumb { position: relative; border-radius: 8px; overflow: hidden; border: 2px solid transparent; aspect-ratio: 16/9; }
.bm-nav-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bm-active .bm-nav-thumb { border-color: var(--bm-primary); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.bm-nav-overlay { position: absolute; inset:0; background: rgba(0,0,0,0.4); color: white; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: background 0.3s; }
.bm-active .bm-nav-overlay { background: transparent; }
.bm-locked .bm-nav-overlay { background: rgba(0,0,0,0.8); }
.bm-nav-overlay i { font-size: 28px; drop-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.bm-active .bm-nav-overlay i { display: none; }
.bm-lock-msg { font-size: 11px; margin-top: 5px; background: #000; padding: 3px 6px; border-radius: 4px; font-weight: 700; color: #facc15; text-align: center; }
.bm-now-playing { position: absolute; top: 5px; left: 5px; background: var(--bm-primary); padding: 3px 8px; font-size: 10px; font-weight: 700; border-radius: 4px; text-transform: uppercase; color: white; box-shadow: 0 2px 4px rgba(0,0,0,0.3);}
.bm-nav-title { margin-top: 10px; font-size: 14px; font-weight: 700; text-align: center; color: var(--bm-dark); }
.bm-active .bm-nav-title { color: var(--bm-primary); }

.bg-type-image .bm-nav-title, .bg-type-color .bm-nav-title { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.bg-type-image .bm-active .bm-nav-title, .bg-type-color .bm-active .bm-nav-title { color: #facc15; }

.bm-player-container { border-radius: 12px 12px 0 0; overflow: hidden; background: #000; position: relative; box-shadow: 0 20px 40px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); border-bottom: none; }
.bm-video-inner { position: relative; padding-bottom: 56.25%; height: 0; }
.bm-embed-placeholder, .bm-embed-placeholder iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; pointer-events: none !important;}

.bm-speaker-overlay { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); background: #facc15; color: #000; padding: 8px 15px; border-radius: 20px; font-size: 13px; font-weight: 900; z-index: 25; pointer-events: none; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.bm-secure-mask { position: absolute; inset:0; z-index: 20; background: transparent; cursor: pointer; }
.bm-big-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.6); border: 3px solid white; color: white; width: 70px; height: 70px; border-radius: 50%; font-size: 24px; cursor: pointer; z-index: 25; transition: 0.2s; display:flex; align-items:center; justify-content:center; padding-left: 5px; backdrop-filter: blur(4px); }
.bm-big-play:hover { background: var(--bm-primary); border-color: var(--bm-primary); transform: translate(-50%, -50%) scale(1.1); }

/* Video Controls */
.bm-custom-controls { position: absolute; bottom: 0; left: 0; width: 100%; height: 45px; background: rgba(0,0,0,0.85); display: flex; align-items: center; padding: 0 15px; z-index: 30; opacity: 0; transition: 0.3s; }
.bm-video-inner:hover .bm-custom-controls { opacity: 1; }
.bm-ctrl-btn { background: none; border: none; color: white; font-size: 16px; cursor: pointer; width: 30px; transition: 0.2s; }
.bm-ctrl-btn:hover { color: var(--bm-primary); }

.bm-time-display { color: white; font-size: 13px; font-weight: 500; margin: 0 15px; font-family: monospace; white-space: nowrap; }

.bm-progress-wrap { flex-grow: 1; position: relative; height: 15px; display: flex; align-items: center; cursor: pointer; margin: 0 15px; }
.bm-progress-slider { position: absolute; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 5; margin: 0; padding: 0; }
.bm-progress-bar { width: 100%; height: 5px; background: rgba(255,255,255,0.3); border-radius: 3px; position: relative; pointer-events: none; transition: height 0.2s; }
.bm-progress-wrap:hover .bm-progress-bar { height: 7px; }
.bm-progress-filled { height: 100%; width: 0%; background: var(--bm-primary); border-radius: 3px; position: relative; }
.bm-progress-filled::after { content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%) scale(0); width: 12px; height: 12px; background: var(--bm-primary); border-radius: 50%; transition: transform 0.2s; box-shadow: 0 0 5px rgba(0,0,0,0.5);}
.bm-progress-wrap:hover .bm-progress-filled::after { transform: translateY(-50%) scale(1); }

.bm-volume-wrap { display: flex; align-items: center; position: relative; margin-right: 15px; }
.bm-volume-slider-wrap { width: 0; overflow: hidden; transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin 0.3s; position: relative; height: 15px; display: flex; align-items: center; }
.bm-volume-wrap:hover .bm-volume-slider-wrap { width: 60px; margin-left: 5px; }
.bm-volume-slider { position: absolute; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 5; margin:0; }
.bm-volume-bar { width: 100%; height: 4px; background: rgba(255,255,255,0.3); border-radius: 2px; pointer-events: none; }
.bm-volume-filled { height: 100%; background: white; border-radius: 2px; }

.bm-screen-title { padding: 20px; margin: 0; font-size: 20px; font-weight: 800; background: white; border: 1px solid #e5e7eb; border-top: none; border-radius: 0 0 12px 12px; text-align: center; color: var(--bm-dark); }

.bm-timed-area { margin-top: 15px; text-align: center; animation: slideUp 0.5s ease; padding: 20px; border-radius: 12px; border: 1px dashed #d1d5db; background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.bm-file-btn { display: inline-flex; align-items: center; padding: 16px 40px; color: white; font-weight: 800; font-size: 18px; border-radius: 50px; text-decoration: none !important; box-shadow: 0 10px 20px rgba(0,0,0,0.2); transition: 0.3s; text-transform: uppercase; }
.bm-file-btn:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.3); color: white; }
.bm-file-icon { margin-right: 12px; font-size: 24px; }

/* =========================================================
   HIỆU ỨNG ĐẶC BIỆT CHO NÚT BÁN HÀNG Ở VIDEO 4 (UPSELL)
   ========================================================= */
.bm-v4-upsell-btn {
    background: linear-gradient(45deg, #f59e0b, #ea580c, #dc2626) !important;
    animation: v4Pulse 2s infinite !important;
    border: 2px solid #fcd34d !important;
    transform: scale(1.05);
}
.bm-v4-upsell-btn:hover {
    transform: scale(1.1) translateY(-5px) !important;
    box-shadow: 0 20px 40px rgba(234, 88, 12, 0.5) !important;
}
@keyframes v4Pulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* =========================================================
   BINGE-WATCHING OVERLAY (TỰ ĐỘNG CHUYỂN BÀI MƯỢT MÀ)
   ========================================================= */
.bm-binge-overlay { position:absolute; inset:0; background:rgba(0,0,0,0.85); z-index:90; display:flex; flex-direction:column; align-items:center; justify-content:center; color:white; text-align:center; backdrop-filter: blur(5px); animation: fadeIn 0.3s ease; }
.bm-binge-circle { position:relative; width:80px; height:80px; margin: 15px 0; }
.bm-binge-circle svg { width:100%; height:100%; transform: rotate(-90deg); }
.bm-binge-circle circle { fill:none; stroke-width:4; stroke:rgba(255,255,255,0.2); }
.bm-binge-circle .bm-binge-progress { stroke: var(--bm-primary); stroke-dasharray:226; stroke-dashoffset:0; animation: bingeCountdown 5s linear forwards; }
.bm-binge-count { position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); font-size:28px; font-weight:900; }
@keyframes bingeCountdown { from { stroke-dashoffset:0; } to { stroke-dashoffset:226; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================================
   OVERLAY HOÀN THÀNH CHUỖI VIDEO
   ========================================================= */
.bm-completion-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 2147483647; 
    display: flex; align-items: center; justify-content: center; backdrop-filter: blur(10px);
    animation: slideUp 0.5s ease;
}
.bm-co-box {
    background: white; padding: 40px; border-radius: 20px; max-width: 500px; width: 90%; text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); border-top: 5px solid #f59e0b;
}
.bm-co-box h2 { color: #d63638; font-size: 32px; margin-top: 0; font-weight: 900; text-transform: uppercase; }
.bm-co-box p { font-size: 16px; color: #4b5563; line-height: 1.6; margin-bottom: 25px; }

/* Sticky Mode */
.bm-video-series-container.bm-sticky { z-index: 99999 !important; }
.bm-sticky .bm-player-container { position: fixed; bottom: 20px; right: 20px; width: 350px; z-index: 9999; box-shadow: 0 10px 40px rgba(0,0,0,0.5); border-radius: 12px; animation: slideUp 0.3s; border: none; }
.bm-sticky .bm-screen-title, .bm-sticky .bm-timed-area, .bm-sticky .bm-custom-controls { display: none !important; }
.bm-sticky .bm-secure-mask { display: block !important; }
.bm-sticky .bm-sticky-close { position: absolute; top: -10px; right: -10px; width: 28px; height: 28px; background: #dc2626; color: white; border-radius: 50%; text-align: center; line-height: 28px; cursor: pointer; z-index: 100; box-shadow: 0 2px 5px rgba(0,0,0,0.5); display:block; }
.bm-sticky-close { display: none; }

@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* =========================================================
   TÍCH HỢP CSS HỆ THỐNG BINHLUANVIET PRO (TRÀN VIỀN)
   ========================================================= */
.bm-blv-fullwidth-wrap {
    border-top: 1px solid rgba(0,0,0,0.05);
    z-index: 5 !important; /* Đảm bảo nằm dưới khối video khi cuộn xuống chế độ Sticky */
    margin-bottom: -40px !important; /* Triệt tiêu khoảng trống và phần vệt màu thừa ở mép dưới */
    padding-bottom: 80px !important; /* Bù không gian ở đáy để khối bình luận chạm sát hoàn hảo */
}
.bm-blv-fullwidth-wrap .blv-launch-wrapper {
    margin: 0 !important;
    box-shadow: none !important; 
    background: transparent !important; 
    border: none !important;
}

@media (max-width: 900px) {
    .bm-main-title { font-size: 32px; }
    .bm-launch-nav { overflow-x: auto; padding-bottom: 10px; }
    .bm-nav-item { min-width: 140px; }
    .bm-trust-badges { flex-wrap: wrap; }
    .bm-trust-badges span { justify-content: flex-start; flex: none; width: auto; }
}