/* Modern attached source dock — scoped to the BVP player. */
.bvp-player-wrap{--bvp-ink:#f8fafc;--bvp-muted:#a8b3c7;--bvp-panel:#111827;--bvp-line:rgba(255,255,255,.1);width:100%;max-width:1040px;margin:1.5rem auto;color:var(--bvp-ink);font-family:inherit;overflow:hidden;border-radius:18px;background:#0b1020;box-shadow:0 18px 55px rgba(2,6,23,.22)}
.bvp-player-stage{position:relative;width:100%;aspect-ratio:16/9;background:#030712;overflow:hidden;border-radius:0;isolation:isolate}.bvp-player-stage iframe,.bvp-player-stage video{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;background:#000}.bvp-player-loading{display:none;position:absolute;inset:0;pointer-events:none;align-items:center;justify-content:center;background:rgba(2,6,23,.22)}.bvp-player-wrap.is-switching .bvp-player-loading,.bvp-player-wrap.is-loading .bvp-player-loading{display:flex}.bvp-player-loading span{width:28px;height:28px;border:3px solid rgba(255,255,255,.3);border-top-color:#818cf8;border-radius:50%;animation:bvp-spin .8s linear infinite}@keyframes bvp-spin{to{transform:rotate(360deg)}}
.bvp-player-dock{display:flex;align-items:stretch;gap:18px;padding:16px 18px;background:linear-gradient(120deg,#111827,#151d32);border-top:1px solid rgba(255,255,255,.08)}.bvp-dock-info{display:flex;align-items:center;gap:10px;min-width:145px;padding-right:17px;border-right:1px solid var(--bvp-line)}.bvp-dock-info>div{display:flex;flex-direction:column;gap:4px;min-width:0}.bvp-dock-info strong{font-size:9px;letter-spacing:.14em;color:var(--bvp-muted);font-weight:800}.bvp-current-source{font-size:13px;font-weight:750;color:#fff;overflow-wrap:anywhere}.bvp-live-dot{width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:#34d399;box-shadow:0 0 0 4px rgba(52,211,153,.12)}.bvp-sourcebar{display:flex;align-items:stretch;gap:8px;flex:1;min-width:0;flex-wrap:wrap}.bvp-source-button{appearance:none;display:flex;align-items:center;gap:9px;min-height:44px;max-width:100%;padding:8px 12px;border:1px solid rgba(203,213,225,.17);border-radius:11px;background:rgba(255,255,255,.045);color:#dbe4f3;cursor:pointer;font:inherit;text-align:left;transition:background .18s ease,border-color .18s ease,transform .18s ease;box-shadow:none}.bvp-source-button:hover{background:rgba(129,140,248,.12);border-color:rgba(165,180,252,.55);color:#fff;transform:translateY(-1px)}.bvp-source-button.is-active{background:linear-gradient(135deg,#4338ca,#6366f1);border-color:#818cf8;color:#fff;box-shadow:0 5px 16px rgba(79,70,229,.25)}.bvp-server-indicator{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;flex:0 0 25px;border-radius:7px;background:rgba(255,255,255,.1);font-size:11px;font-weight:800}.bvp-source-button.is-active .bvp-server-indicator{background:rgba(255,255,255,.2)}.bvp-server-name{font-size:12px;font-weight:750;overflow-wrap:anywhere}.bvp-server-badge{font-size:9px;letter-spacing:.03em;text-transform:uppercase;font-weight:850;padding:3px 5px;border-radius:4px;background:rgba(255,255,255,.16)}.bvp-actions{display:flex;align-items:center;gap:10px;padding:0 18px 14px;background:#151d32}.bvp-download{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#4f46e5;color:#fff!important;text-decoration:none!important;border:1px solid rgba(255,255,255,.14);border-radius:9px;padding:10px 15px;font-weight:750;font-size:13px}.bvp-download:hover{filter:brightness(1.12)}.bvp-download-note{font-size:11px;color:var(--bvp-muted)}.bvp-player-help{margin:0;padding:0 18px 15px;background:#151d32;color:#91a0b8;font-size:11px;line-height:1.5}.bvp-notice,.bvp-empty{padding:1rem;border:1px solid #e5e7eb;border-radius:8px;background:#f9fafb;color:#374151}.bvp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:1.2rem}.bvp-card{display:block;text-decoration:none!important;color:inherit}.bvp-card-thumb{aspect-ratio:16/9;background:#171717;border-radius:9px;overflow:hidden;display:flex;align-items:center;justify-content:center}.bvp-card-thumb img{width:100%;height:100%;object-fit:cover}.bvp-thumb-placeholder{font-size:2rem;color:#fff}.bvp-card h3{font-size:1rem;line-height:1.4;margin:.65rem 0}.bvp-description{max-width:1000px;margin:1rem auto}
@media(max-width:700px){.bvp-player-wrap{border-radius:12px;margin:1rem auto}.bvp-player-dock{display:block;padding:13px}.bvp-dock-info{border-right:0;border-bottom:1px solid var(--bvp-line);padding:0 0 11px;margin-bottom:11px;min-width:0}.bvp-sourcebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.bvp-source-button{width:100%;min-width:0;padding:8px}.bvp-server-name{font-size:11px}.bvp-server-badge{display:none}.bvp-actions{padding:0 13px 12px}.bvp-player-help{padding:0 13px 13px}}@media(max-width:380px){.bvp-sourcebar{grid-template-columns:1fr}.bvp-source-button{min-height:40px}}
@media(prefers-reduced-motion:reduce){.bvp-player-wrap *{animation:none!important;transition:none!important}}
/* User-configurable player presentation */
.bvp-player-wrap{max-width:var(--bvp-max-width,1040px);background:var(--bvp-bg,#0b1020);color:var(--bvp-ink,#f8fafc)}
.bvp-player-stage{aspect-ratio:var(--bvp-ratio,16/9)}
.bvp-player-dock,.bvp-actions,.bvp-player-help{background:var(--bvp-panel,#151d32)}
.bvp-dock-info strong,.bvp-download-note,.bvp-player-help{color:var(--bvp-muted,#a8b3c7)}
.bvp-source-button.is-active,.bvp-download{background:var(--bvp-accent,#4f46e5);border-color:var(--bvp-accent,#4f46e5)}
.bvp-source-button{color:var(--bvp-ink,#f8fafc)}
.bvp-buttons-pill .bvp-source-button{border-radius:999px}
.bvp-buttons-square .bvp-source-button{border-radius:2px}
.bvp-buttons-outline .bvp-source-button{background:transparent;border:2px solid var(--bvp-accent,#4f46e5)}
.bvp-buttons-outline .bvp-source-button.is-active{background:var(--bvp-accent,#4f46e5)}
.bvp-layout-compact .bvp-player-dock{padding:9px 12px;gap:10px}
.bvp-layout-compact .bvp-dock-info{min-width:110px}
.bvp-layout-bordered{border:2px solid var(--bvp-accent,#4f46e5);border-radius:12px}
.bvp-orientation-vertical .bvp-player-dock{align-items:flex-start;flex-direction:column}
.bvp-orientation-vertical .bvp-dock-info{border-right:0;border-bottom:1px solid var(--bvp-line);padding:0 0 10px;width:100%}
.bvp-orientation-vertical .bvp-sourcebar{width:100%;display:flex;flex-direction:column}
.bvp-orientation-vertical .bvp-source-button{width:100%;max-width:none}
.bvp-player-wrap[style*="text-align:center"] .bvp-dock-info{justify-content:center}
.bvp-player-wrap[style*="text-align:center"] .bvp-sourcebar{justify-content:center}
.bvp-player-wrap[style*="text-align:right"] .bvp-sourcebar{justify-content:flex-end}
/* v0.6.3 extended player design tokens */
.bvp-player-wrap{border-radius:var(--bvp-radius,18px);box-shadow:var(--bvp-player-shadow,0 18px 55px rgba(2,6,23,.22))}.bvp-player-dock{gap:var(--bvp-button-gap,8px)}.bvp-sourcebar{gap:var(--bvp-button-gap,8px)}.bvp-source-button{border-radius:var(--bvp-button-radius,10px);font-size:var(--bvp-button-font,13px)}.bvp-buttons-compact .bvp-source-button{min-height:34px;padding:5px 8px}.bvp-buttons-large .bvp-source-button{min-height:52px;padding:12px 15px;font-size:calc(var(--bvp-button-font,13px) + 1px)}.bvp-buttons-rounded .bvp-source-button{border-radius:var(--bvp-button-radius,10px)}.bvp-shadow-none{box-shadow:none!important}.bvp-shadow-soft{box-shadow:0 7px 22px rgba(2,6,23,.12)!important}.bvp-shadow-strong{box-shadow:0 18px 55px rgba(2,6,23,.22)!important}.bvp-player-wrap .bvp-player-dock{border-top:1px solid rgba(255,255,255,.08)}.bvp-player-wrap .bvp-sourcebar{display:grid;grid-template-columns:repeat(var(--bvp-button-columns,3),minmax(0,1fr));align-content:start}.bvp-orientation-vertical .bvp-player-dock{display:flex}.bvp-orientation-vertical .bvp-sourcebar{grid-template-columns:1fr}.bvp-layout-bordered{border-radius:var(--bvp-radius,18px)}@media(max-width:700px){.bvp-player-wrap .bvp-sourcebar{grid-template-columns:repeat(2,minmax(0,1fr))}.bvp-orientation-vertical .bvp-sourcebar{grid-template-columns:1fr}}

/* v0.6.4 source-aware download dropdown */
.bvp-download-dropdown{position:relative;display:inline-block}.bvp-download-dropdown>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:10px}.bvp-download-dropdown>summary::-webkit-details-marker{display:none}.bvp-dropdown-caret{font-size:12px;opacity:.8}.bvp-download-options{position:absolute;z-index:30;left:0;top:calc(100% + 8px);min-width:230px;max-width:min(320px,85vw);padding:7px;border:1px solid rgba(148,163,184,.28);border-radius:12px;background:var(--bvp-panel,#121a2b);box-shadow:0 14px 38px rgba(0,0,0,.28)}.bvp-download-options a{display:flex;flex-direction:column;gap:3px;padding:10px 12px;border-radius:8px;color:var(--bvp-text,#f8fafc);text-decoration:none}.bvp-download-options a:hover,.bvp-download-options a:focus{background:rgba(99,102,241,.18);outline:none}.bvp-download-options a span{font-weight:700}.bvp-download-options a small{font-size:11px;color:var(--bvp-muted,#9aa9c2)}.bvp-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
/* v0.6.5: detached, independently styled download section */
.bvp-download-section{box-sizing:border-box;width:min(100%,var(--bvp-max-width,1040px));margin:14px auto 24px;padding:16px 18px;background:var(--bvp-download-bg,#111827);border:1px solid rgba(148,163,184,.22);border-radius:var(--bvp-download-radius,12px);color:var(--bvp-download-ink,#fff);box-shadow:0 8px 26px rgba(2,6,23,.08)}
.bvp-download-section .bvp-download{background:var(--bvp-download-accent,#6366f1);border-color:var(--bvp-download-accent,#6366f1);border-radius:var(--bvp-download-radius,12px);color:var(--bvp-download-ink,#fff)!important}
.bvp-download-section .bvp-download-buttons{display:flex;flex-wrap:wrap;gap:10px;justify-content:inherit}.bvp-download-section .bvp-download-dropdown{position:relative;display:inline-block;text-align:left}.bvp-download-section .bvp-download-options{background:var(--bvp-download-bg,#111827);text-align:left}.bvp-download-section-note{margin:10px 0 0;color:var(--bvp-download-ink,#fff);opacity:.68;font-size:12px}.bvp-player-wrap .bvp-player-help{padding-bottom:16px}

/* Direct MP4 download uses the same design tokens and button treatment as the normal player download controls. */
.bvp-direct-download-row{box-sizing:border-box;width:min(100%,var(--bvp-max-width,1120px));margin:12px auto 18px;padding:0 2px;display:flex;align-items:center;justify-content:var(--bvp-download-align,left);gap:12px;flex-wrap:wrap}
.bvp-player-wrap+.bvp-direct-download-row .bvp-direct-download-button{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;padding:10px 16px;background:var(--bvp-download-accent,var(--bvp-accent,#6366f1));border:1px solid var(--bvp-download-accent,var(--bvp-accent,#6366f1));border-radius:var(--bvp-download-radius,var(--bvp-button-radius,10px));color:var(--bvp-download-ink,#fff)!important;text-decoration:none!important;font:inherit;font-size:var(--bvp-button-font,13px);font-weight:750;line-height:1.2;box-shadow:0 5px 16px rgba(2,6,23,.16);transition:transform .18s ease,filter .18s ease,box-shadow .18s ease}
.bvp-player-wrap+.bvp-direct-download-row .bvp-direct-download-button:hover,.bvp-player-wrap+.bvp-direct-download-row .bvp-direct-download-button:focus-visible{filter:brightness(1.08);transform:translateY(-1px);box-shadow:0 8px 22px rgba(2,6,23,.22);outline-offset:3px}
.bvp-direct-download-button>span{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:6px;background:rgba(255,255,255,.17);font-size:16px;line-height:1}
.bvp-direct-download-note{color:var(--bvp-muted,#9aa9c2);font-size:12px}
.bvp-player-stage{border-radius:var(--bvp-radius,18px) var(--bvp-radius,18px) 0 0;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
.bvp-player-stage video{object-fit:contain}
@media(max-width:600px){.bvp-direct-download-row{padding:0 4px;gap:8px}.bvp-player-wrap+.bvp-direct-download-row .bvp-direct-download-button{width:100%;min-height:44px}.bvp-direct-download-note{width:100%}}

/* Loading state: keep browser-native controls hidden until media is ready. */
.bvp-player-stage .bvp-video{z-index:1}
.bvp-player-loading{z-index:3}
.bvp-player-wrap.is-loading .bvp-player-stage{background:linear-gradient(180deg,#202020 0%,#030712 48%,#030712 100%)}
.bvp-player-wrap.is-loading .bvp-player-loading{background:transparent}


/* v0.7.8: responsive media sizing and custom controls for direct MP4 sources. */
.bvp-player-stage{height:auto;aspect-ratio:var(--bvp-media-ratio,var(--bvp-ratio,16/9));min-height:0;max-height:82vh;}
.bvp-player-stage video.bvp-video{object-fit:contain;max-width:100%;max-height:82vh;background:#030712;}
.bvp-player-stage.is-vertical-video{width:min(100%,560px);max-height:82vh;aspect-ratio:var(--bvp-media-ratio,9/16);margin-inline:auto;}
.bvp-player-stage.is-wide-video{aspect-ratio:var(--bvp-media-ratio,16/9);}
.bvp-player-stage video.bvp-video::-webkit-media-controls{display:none!important}
.bvp-player-stage video.bvp-video::-webkit-media-controls-enclosure{display:none!important}
.bvp-custom-controls{position:absolute;z-index:5;left:0;right:0;bottom:0;display:grid;grid-template-columns:auto auto auto auto 1fr auto auto;align-items:center;gap:10px;min-height:58px;padding:12px 16px 17px;color:#fff;background:linear-gradient(180deg,transparent,rgba(0,0,0,.88));opacity:.94;box-sizing:border-box;font:500 12px/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;}
.bvp-custom-controls button{appearance:none;border:0!important;background:transparent!important;color:#fff!important;box-shadow:none!important;display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:30px;padding:3px!important;margin:0!important;font:inherit;font-size:16px;line-height:1;cursor:pointer;border-radius:5px;}
.bvp-custom-controls button:hover{background:rgba(255,255,255,.14)!important}
.bvp-custom-controls .bvp-play-icon{font-size:17px}.bvp-controls-spacer{min-width:0}
.bvp-custom-controls .bvp-control-seek{grid-column:1/-1;grid-row:2;width:100%;height:4px;margin:2px 0 0;accent-color:#fff;cursor:pointer;}
.bvp-time-current,.bvp-time-duration,.bvp-time-separator{font-variant-numeric:tabular-nums;white-space:nowrap}
.bvp-player-stage .bvp-player-loading{z-index:4;background:rgba(2,6,23,.16)}
.bvp-player-wrap.is-loading .bvp-custom-controls{opacity:0;pointer-events:none}
.bvp-player-wrap.is-loading .bvp-player-stage video.bvp-video{visibility:hidden}
.bvp-player-wrap:not(.is-loading) .bvp-custom-controls{opacity:1}
@media(max-width:600px){.bvp-player-stage{max-height:75vh}.bvp-player-stage.is-vertical-video{width:min(100%,420px);max-height:75vh}.bvp-player-stage video.bvp-video{max-height:75vh}.bvp-custom-controls{gap:6px;padding:9px 10px 14px;min-height:49px;font-size:11px}.bvp-custom-controls button{min-width:26px;height:28px}}

/* v0.8.1: viewport-friendly portrait player and YouTube-style theater/fullscreen controls. */
.bvp-player-stage video.bvp-video[controls],
.bvp-player-stage video.bvp-video::-webkit-media-controls,
.bvp-player-stage video.bvp-video::-webkit-media-controls-enclosure,
.bvp-player-stage video.bvp-video::-webkit-media-controls-panel,
.bvp-player-stage video.bvp-video::-moz-media-controls { display:none !important; }
.bvp-player-stage .bvp-custom-controls { transition:opacity .18s ease; }
.bvp-custom-controls .bvp-control-wide { font-size:21px; font-weight:700; }
.bvp-custom-controls .bvp-control-fullscreen { font-size:22px; }
.bvp-player-stage.is-vertical-video { width:auto; height:min(68svh,680px); height:min(68vh,680px); max-width:100%; max-height:calc(100vh - 190px); aspect-ratio:var(--bvp-media-ratio,9/16); margin-inline:auto; }
.bvp-player-stage.is-vertical-video video.bvp-video { width:100%; height:100%; max-height:100%; object-fit:contain; }
.bvp-player-wrap.bvp-theater-mode { width:calc(100% - 24px); max-width:none; margin-inline:auto; }
.bvp-player-wrap.bvp-theater-mode .bvp-player-stage:not(.is-vertical-video) { width:100%; max-height:calc(100vh - 170px); }
.bvp-player-wrap.bvp-theater-mode .bvp-player-stage.is-vertical-video { height:min(76vh,780px); max-height:calc(100vh - 170px); }
.bvp-player-wrap:fullscreen,.bvp-player-wrap.bvp-is-fullscreen { width:100vw!important; max-width:none!important; height:100vh!important; max-height:100vh!important; margin:0!important; border-radius:0!important; background:#000!important; display:flex; flex-direction:column; justify-content:center; }
.bvp-player-wrap:fullscreen .bvp-player-stage,.bvp-player-wrap.bvp-is-fullscreen .bvp-player-stage { width:100%!important; height:calc(100vh - 2px)!important; max-height:100vh!important; aspect-ratio:auto!important; margin:0 auto!important; flex:1 1 auto; }
.bvp-player-wrap:fullscreen .bvp-player-stage video,.bvp-player-wrap.bvp-is-fullscreen .bvp-player-stage video { object-fit:contain!important; width:100%!important; height:100%!important; max-height:100%!important; }
.bvp-player-wrap:fullscreen .bvp-player-dock,.bvp-player-wrap:fullscreen .bvp-player-help,.bvp-player-wrap.bvp-is-fullscreen .bvp-player-dock,.bvp-player-wrap.bvp-is-fullscreen .bvp-player-help { display:none!important; }
.bvp-player-wrap:fullscreen .bvp-custom-controls,.bvp-player-wrap.bvp-is-fullscreen .bvp-custom-controls { padding-bottom:max(14px,env(safe-area-inset-bottom)); }
@media(max-width:700px) {
 .bvp-player-stage.is-vertical-video { height:min(62svh,620px); height:min(62vh,620px); max-height:calc(100vh - 170px); }
 .bvp-player-wrap.bvp-theater-mode { width:100%; border-radius:0; }
 .bvp-player-wrap.bvp-theater-mode .bvp-player-stage:not(.is-vertical-video) { max-height:65vh; }
 .bvp-player-wrap.bvp-theater-mode .bvp-player-stage.is-vertical-video { height:min(70vh,700px); max-height:calc(100vh - 150px); }
 .bvp-custom-controls { grid-template-columns:auto auto auto auto minmax(0,1fr) auto auto auto; gap:5px; padding:8px 9px 14px; }
 .bvp-custom-controls button { min-width:28px; }
}

/* v0.8.2 player control polish: reliable fullscreen toggle, volume slider, settings and theater expansion. */
.bvp-custom-controls{grid-template-columns:auto auto auto auto minmax(12px,1fr) auto minmax(58px,90px) auto auto auto;gap:9px;background:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.72) 36%,rgba(0,0,0,.94) 100%);padding:20px 18px 17px;min-height:76px;}
.bvp-custom-controls .bvp-control-volume{width:76px;max-width:8vw;height:4px;accent-color:#fff;cursor:pointer;margin:0;}
.bvp-custom-controls .bvp-speed-menu{position:absolute;right:54px;bottom:65px;z-index:8;background:#101827;color:#fff;border:1px solid #3c465d;border-radius:8px;padding:8px 10px;font:500 12px system-ui;}
.bvp-custom-controls .bvp-speed-menu[hidden]{display:none!important}
.bvp-custom-controls .bvp-control-settings{font-size:20px}
.bvp-player-wrap.bvp-theater-mode{position:relative!important;z-index:20!important;width:calc(100vw - 40px)!important;max-width:calc(100vw - 40px)!important;margin-left:calc(50% - 50vw + 20px)!important;margin-right:0!important;}
.bvp-player-wrap.bvp-theater-mode .bvp-player-stage:not(.is-vertical-video){width:100%!important;max-height:calc(100vh - 100px)!important;}
.bvp-player-wrap.bvp-theater-mode .bvp-player-stage.is-vertical-video{height:min(82vh,900px)!important;max-height:calc(100vh - 100px)!important;}
.bvp-player-wrap:fullscreen,.bvp-player-wrap:-webkit-full-screen,.bvp-player-wrap.bvp-is-fullscreen{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border-radius:0!important;z-index:2147483647!important;display:flex!important;justify-content:center!important;align-items:stretch!important;background:#000!important;}
.bvp-player-wrap:fullscreen .bvp-player-stage,.bvp-player-wrap:-webkit-full-screen .bvp-player-stage,.bvp-player-wrap.bvp-is-fullscreen .bvp-player-stage{width:100%!important;height:100%!important;max-height:100%!important;aspect-ratio:auto!important;flex:1 1 auto!important;}
.bvp-player-wrap:fullscreen .bvp-player-stage video,.bvp-player-wrap:-webkit-full-screen .bvp-player-stage video,.bvp-player-wrap.bvp-is-fullscreen .bvp-player-stage video{width:100%!important;height:100%!important;max-height:100%!important;object-fit:contain!important;}
@media(max-width:700px){.bvp-custom-controls{grid-template-columns:auto auto auto minmax(0,1fr) auto auto auto;gap:4px;padding:16px 9px 14px;min-height:66px}.bvp-custom-controls .bvp-control-volume{width:44px;max-width:12vw}.bvp-player-wrap.bvp-theater-mode{width:100vw!important;max-width:100vw!important;margin-left:calc(50% - 50vw)!important;border-radius:0!important}.bvp-player-wrap.bvp-theater-mode .bvp-player-stage.is-vertical-video{height:min(84dvh,900px)!important;max-height:calc(100dvh - 30px)!important}}

/* Direct MP4 player design presets (v0.8.3) */
.bvp-player-wrap.bvp-direct-style-classic .bvp-player-stage{background:#000;border-radius:4px}
.bvp-player-wrap.bvp-direct-style-minimal .bvp-player-stage{border-radius:8px;box-shadow:none}
.bvp-player-wrap.bvp-direct-style-neon{--bvp-accent:#00e5ff}.bvp-player-wrap.bvp-direct-style-neon .bvp-player-stage{box-shadow:0 0 0 1px #00e5ff,0 0 26px #00e5ff33}
.bvp-player-wrap.bvp-direct-style-glass .bvp-player-stage{border:1px solid #ffffff30;box-shadow:0 18px 50px #0004}
.bvp-player-wrap.bvp-direct-style-youtube .bvp-player-stage{border-radius:12px}
.bvp-player-wrap.bvp-direct-style-compact .bvp-player-stage{border-radius:8px}
.bvp-player-wrap.bvp-direct-style-outline .bvp-player-stage{border:2px solid var(--bvp-accent);box-shadow:none}
.bvp-player-wrap.bvp-direct-style-gradient .bvp-player-stage{background:linear-gradient(135deg,#10142b,#24204c 55%,#080d1a)}
.bvp-player-wrap.bvp-direct-style-portrait .bvp-player-stage.is-vertical-video{width:min(100%,520px);margin-inline:auto;max-height:82vh}
.bvp-player-wrap.bvp-controls-style-floating .bvp-custom-controls{left:12px;right:12px;bottom:12px;border-radius:14px;background:#05070bd9;backdrop-filter:blur(12px);padding:12px 15px;min-height:60px}
.bvp-player-wrap.bvp-controls-style-minimal .bvp-custom-controls{background:linear-gradient(180deg,transparent,#000b);gap:7px;padding:12px}
.bvp-player-wrap.bvp-controls-style-solid .bvp-custom-controls{background:#080d1a;padding:12px 16px;min-height:60px}
.bvp-player-wrap.bvp-controls-style-glass .bvp-custom-controls{background:#111827b8;backdrop-filter:blur(16px);border-top:1px solid #ffffff2b}
.bvp-player-wrap.bvp-controls-style-neon .bvp-custom-controls{background:linear-gradient(180deg,transparent,#050b14f2);text-shadow:0 0 8px var(--bvp-accent)}
.bvp-player-wrap.bvp-controls-style-classic .bvp-custom-controls{background:#111;padding:10px 14px;min-height:52px}
.bvp-custom-controls .bvp-control-volume{width:84px;max-width:10vw;min-width:48px;height:4px;accent-color:var(--bvp-accent,#fff);cursor:pointer;margin:0}
.bvp-custom-controls .bvp-speed-menu{position:absolute;right:54px;bottom:64px;background:#111827;color:#fff;border:1px solid #ffffff30;border-radius:8px;padding:8px;z-index:8}
.bvp-custom-controls [hidden]{display:none!important}
.bvp-direct-download-button{transition:transform .18s ease,filter .18s ease}.bvp-direct-download-button:hover{filter:brightness(1.08);transform:translateY(-1px)}
.bvp-player-wrap.bvp-direct-style-neon .bvp-direct-download-button{box-shadow:0 0 0 1px var(--bvp-download-accent),0 0 18px color-mix(in srgb,var(--bvp-download-accent) 35%,transparent)}
.bvp-player-wrap.bvp-direct-style-outline .bvp-direct-download-button{background:transparent!important;color:var(--bvp-download-accent)!important;border:2px solid var(--bvp-download-accent)!important}
.bvp-player-wrap.bvp-direct-style-classic .bvp-direct-download-button{border-radius:4px!important}
.bvp-player-wrap.bvp-direct-style-glass .bvp-direct-download-button{backdrop-filter:blur(12px);border:1px solid #ffffff40!important}
.bvp-player-wrap.bvp-direct-style-youtube .bvp-direct-download-button{border-radius:7px!important}
.bvp-player-wrap.bvp-direct-style-compact .bvp-direct-download-button{padding:8px 12px!important;font-size:12px!important}
.bvp-player-wrap.bvp-direct-style-gradient .bvp-direct-download-button{background:linear-gradient(110deg,var(--bvp-download-accent),#4338ca)!important}
.bvp-player-wrap.bvp-direct-style-portrait .bvp-direct-download-row{max-width:520px;margin-inline:auto}
@media(max-width:600px){.bvp-custom-controls .bvp-control-volume{width:48px;min-width:38px;max-width:14vw}.bvp-player-wrap.bvp-controls-style-floating .bvp-custom-controls{left:6px;right:6px;bottom:6px;padding:8px;border-radius:10px}}
.bvp-direct-download-style-accent{background:var(--bvp-download-accent)!important;color:var(--bvp-download-ink)!important}
.bvp-direct-download-style-outline{background:transparent!important;color:var(--bvp-download-accent)!important;border:2px solid var(--bvp-download-accent)!important}
.bvp-direct-download-style-pill{border-radius:999px!important}
/* Additional independent direct-MP4 themes */
.bvp-player-wrap.bvp-direct-style-aurora .bvp-player-stage{background:radial-gradient(ellipse at 15% 15%,#174e58 0,transparent 42%),radial-gradient(ellipse at 85% 85%,#3b1c68 0,transparent 45%),#050912;box-shadow:0 0 0 1px #5eead455,0 20px 55px #312e8133}
.bvp-player-wrap.bvp-direct-style-monochrome{--bvp-accent:#e5e7eb}.bvp-player-wrap.bvp-direct-style-monochrome .bvp-player-stage{background:#080808;filter:saturate(.85)}
.bvp-player-wrap.bvp-direct-style-retro .bvp-player-stage{border:3px solid #d6b36a;border-radius:3px;box-shadow:7px 7px 0 #251d12}
.bvp-player-wrap.bvp-controls-style-gradient .bvp-custom-controls{background:linear-gradient(90deg,#080d1af2,#27234df0);border-top:1px solid #ffffff20}
.bvp-player-wrap.bvp-controls-style-rounded .bvp-custom-controls{left:12px;right:12px;bottom:12px;border-radius:999px;background:#080d1ae8;backdrop-filter:blur(12px);padding:10px 18px;min-height:58px}
.bvp-player-wrap.bvp-controls-style-bottom-gradient .bvp-custom-controls{background:linear-gradient(180deg,transparent 0%,#0008 25%,#000f 100%);padding:30px 16px 14px;min-height:72px}
.bvp-player-wrap.bvp-direct-download-style-accent .bvp-direct-download-button{background:var(--bvp-download-accent)!important;color:var(--bvp-download-ink)!important}
.bvp-player-wrap.bvp-direct-download-style-outline .bvp-direct-download-button{background:transparent!important;color:var(--bvp-download-accent)!important;border:2px solid var(--bvp-download-accent)!important}
.bvp-player-wrap.bvp-direct-download-style-pill .bvp-direct-download-button{border-radius:999px!important}
/* Keep volume slider a true level control; mute button remains an independent mute toggle. */
.bvp-custom-controls .bvp-control-volume{touch-action:pan-y;accent-color:var(--bvp-accent,#6366f1)}
@media(max-width:600px){.bvp-player-wrap.bvp-controls-style-rounded .bvp-custom-controls{left:5px;right:5px;bottom:5px;padding:8px 10px}.bvp-player-wrap.bvp-controls-style-bottom-gradient .bvp-custom-controls{padding:24px 8px 10px}}
.bvp-direct-download-row.bvp-direct-download-style-accent .bvp-direct-download-button{background:var(--bvp-download-accent)!important;color:var(--bvp-download-ink)!important}
.bvp-direct-download-row.bvp-direct-download-style-outline .bvp-direct-download-button{background:transparent!important;color:var(--bvp-download-accent)!important;border:2px solid var(--bvp-download-accent)!important}
.bvp-direct-download-row.bvp-direct-download-style-pill .bvp-direct-download-button{border-radius:999px!important}

/* v0.8.7: genuine control-layout presets, not color-only themes. */
.bvp-custom-controls{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;flex-wrap:wrap;gap:10px;box-sizing:border-box;transition:opacity .22s ease,transform .22s ease,background .22s ease;z-index:5}
.bvp-custom-controls button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:34px;height:34px;padding:0 8px;border:0;border-radius:8px;background:transparent;color:#fff;font:600 15px/1 system-ui;cursor:pointer;transition:background .18s ease,transform .18s ease,box-shadow .18s ease}
.bvp-custom-controls button:hover{background:#ffffff20;transform:translateY(-1px)}
.bvp-custom-controls button:focus-visible,.bvp-custom-controls input:focus-visible{outline:2px solid var(--bvp-accent,#7c9cff);outline-offset:2px}
.bvp-custom-controls .bvp-controls-spacer{flex:1 1 10px;min-width:4px}
.bvp-custom-controls .bvp-control-seek{order:20;flex:1 0 100%;width:100%;height:4px;margin:0;accent-color:var(--bvp-accent,#f33);cursor:pointer;transition:height .15s ease}
.bvp-custom-controls .bvp-control-seek:hover{height:7px}
.bvp-custom-controls .bvp-control-volume{flex:0 1 84px;min-width:45px;width:84px;max-width:12vw;height:4px}
.bvp-custom-controls .bvp-control-play{font-size:17px}
.bvp-custom-controls .bvp-time-current,.bvp-custom-controls .bvp-time-duration,.bvp-custom-controls .bvp-time-separator{font:500 12px/1.2 system-ui;color:#fff;white-space:nowrap}
.bvp-custom-controls .bvp-speed-menu{color:#fff;max-width:140px}
/* YouTube-inspired: timeline at top of a compact, grouped bottom bar. */
.bvp-player-wrap.bvp-controls-style-youtube .bvp-custom-controls{display:flex;gap:8px;padding:10px 14px 12px;background:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.45) 20%,rgba(0,0,0,.94) 100%)}
.bvp-player-wrap.bvp-controls-style-youtube .bvp-control-seek{order:0;position:absolute;top:5px;left:12px;width:calc(100% - 24px);flex:none;height:3px}
.bvp-player-wrap.bvp-controls-style-youtube .bvp-control-seek:hover{height:6px;top:3px}
.bvp-player-wrap.bvp-controls-style-youtube .bvp-control-play{background:#ffffff12;border-radius:50%;width:36px;height:36px}
/* Floating-pill is a distinct inset capsule, with a lift/fade animation. */
.bvp-player-wrap.bvp-controls-style-floating .bvp-custom-controls{left:14px;right:14px;bottom:14px;width:auto;border:1px solid #ffffff25;border-radius:18px;padding:13px 16px;background:rgba(10,13,20,.78);backdrop-filter:blur(18px) saturate(140%);box-shadow:0 8px 30px #0007;animation:bvp-controls-rise .32s cubic-bezier(.2,.75,.25,1) both}
.bvp-player-wrap.bvp-controls-style-floating .bvp-control-seek{order:20;flex-basis:100%;}
@keyframes bvp-controls-rise{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
/* Minimal: single thin timeline and small icon buttons. */
.bvp-player-wrap.bvp-controls-style-minimal .bvp-custom-controls{gap:5px;padding:18px 12px 8px;background:linear-gradient(180deg,transparent,#000b)}
.bvp-player-wrap.bvp-controls-style-minimal .bvp-custom-controls button{width:29px;height:29px;min-width:29px;font-size:13px}
.bvp-player-wrap.bvp-controls-style-minimal .bvp-control-volume{width:52px;min-width:35px}
.bvp-player-wrap.bvp-controls-style-minimal .bvp-control-seek{height:2px}
/* Solid and classic use a true full-width dock rather than a floating overlay. */
.bvp-player-wrap.bvp-controls-style-solid .bvp-custom-controls,.bvp-player-wrap.bvp-controls-style-classic .bvp-custom-controls{left:0;right:0;bottom:0;border-radius:0;box-shadow:none}
.bvp-player-wrap.bvp-controls-style-classic .bvp-custom-controls button{border:1px solid #ffffff22;border-radius:3px;height:30px;min-width:32px}
.bvp-player-wrap.bvp-controls-style-classic .bvp-control-seek{accent-color:#d1d5db;height:5px}
/* Glass: lifted blurred surface with subtle edge and shadow. */
.bvp-player-wrap.bvp-controls-style-glass .bvp-custom-controls{left:12px;right:12px;bottom:12px;width:auto;border:1px solid #ffffff35;border-radius:16px;box-shadow:0 12px 35px #0006;background:rgba(12,17,29,.58);backdrop-filter:blur(22px) saturate(150%);padding:12px 15px}
/* Neon: illuminated buttons and animated timeline glow. */
.bvp-player-wrap.bvp-controls-style-neon .bvp-custom-controls button:hover{box-shadow:0 0 0 1px var(--bvp-accent),0 0 14px color-mix(in srgb,var(--bvp-accent) 65%,transparent);color:var(--bvp-accent)}
.bvp-player-wrap.bvp-controls-style-neon .bvp-control-seek{filter:drop-shadow(0 0 4px var(--bvp-accent));accent-color:var(--bvp-accent)}
/* Gradient: horizontal color sweep and active button highlight. */
.bvp-player-wrap.bvp-controls-style-gradient .bvp-custom-controls{background:linear-gradient(105deg,#050914f2,#292052f0,#071a28f2);background-size:200% 100%;animation:bvp-gradient-flow 8s ease-in-out infinite;padding:12px 15px}
@keyframes bvp-gradient-flow{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
/* Rounded capsule: a single centered capsule with controls grouped tightly. */
.bvp-player-wrap.bvp-controls-style-rounded .bvp-custom-controls{left:50%;right:auto;bottom:12px;transform:translateX(-50%);width:max-content;max-width:calc(100% - 24px);flex-wrap:wrap;justify-content:center;border:1px solid #ffffff22;box-shadow:0 8px 28px #0007;padding:9px 14px;gap:6px}
.bvp-player-wrap.bvp-controls-style-rounded .bvp-control-seek{order:20;flex-basis:100%;}
/* Bottom-gradient: reveal controls with the gradient and use a larger seek target. */
.bvp-player-wrap.bvp-controls-style-bottom-gradient .bvp-custom-controls{padding:32px 16px 12px;gap:9px;background:linear-gradient(180deg,transparent 0%,#0006 30%,#000f 100%)}
.bvp-player-wrap.bvp-controls-style-bottom-gradient .bvp-control-seek{height:5px}
.bvp-player-stage:not(:hover):not(:focus-within) .bvp-controls-style-youtube .bvp-custom-controls{opacity:1}
.bvp-player-wrap.bvp-controls-style-floating .bvp-custom-controls button:active,.bvp-player-wrap.bvp-controls-style-rounded .bvp-custom-controls button:active{transform:scale(.94)}
@media(max-width:650px){
 .bvp-custom-controls{gap:4px;padding:8px 7px 10px}
 .bvp-custom-controls button{min-width:28px;height:30px;padding:0 5px;font-size:13px}
 .bvp-custom-controls .bvp-control-volume{width:42px;min-width:32px;max-width:14vw}
 .bvp-custom-controls .bvp-time-current,.bvp-custom-controls .bvp-time-duration,.bvp-custom-controls .bvp-time-separator{font-size:10px}
 .bvp-player-wrap.bvp-controls-style-floating .bvp-custom-controls,.bvp-player-wrap.bvp-controls-style-glass .bvp-custom-controls{left:6px;right:6px;bottom:6px;padding:8px;border-radius:12px}
 .bvp-player-wrap.bvp-controls-style-rounded .bvp-custom-controls{left:50%;right:auto;bottom:6px;width:calc(100% - 12px);max-width:calc(100% - 12px);padding:7px;gap:3px}
 .bvp-player-wrap.bvp-controls-style-gradient .bvp-custom-controls{animation:none}
}
@media(prefers-reduced-motion:reduce){.bvp-custom-controls,.bvp-custom-controls button,.bvp-custom-controls .bvp-control-seek{transition:none!important;animation:none!important}}
/* Direct MP4 interaction enhancements */
.bvp-player-wrap.bvp-controls-hidden .bvp-custom-controls{opacity:0!important;pointer-events:none!important;transition:opacity .22s ease}
.bvp-player-stage .bvp-custom-controls{transition:opacity .22s ease}
.bvp-context-menu{position:absolute;z-index:30;min-width:170px;max-width:240px;padding:6px;border:1px solid rgba(255,255,255,.18);border-radius:10px;background:rgba(12,17,27,.96);box-shadow:0 12px 36px rgba(0,0,0,.4);backdrop-filter:blur(14px);display:flex;flex-direction:column;gap:2px;color:#fff}
.bvp-context-menu[hidden]{display:none}
.bvp-context-menu button{border:0;background:transparent;color:inherit;text-align:left;padding:9px 12px;border-radius:6px;font:inherit;font-size:13px;cursor:pointer}
.bvp-context-menu button:hover,.bvp-context-menu button:focus{background:rgba(255,255,255,.14);outline:none}
.bvp-player-wrap.bvp-theater-mode{width:min(100%,1500px);max-width:none;margin-inline:auto}

/* v0.8.9 fix: direct-download button styles must never affect the player container. */
.bvp-player-wrap{border-radius:var(--bvp-radius,18px)!important;overflow:hidden!important;aspect-ratio:auto!important;clip-path:none!important;mask:none!important}
.bvp-player-wrap .bvp-player-stage{border-radius:0!important;clip-path:none!important;mask:none!important}
.bvp-direct-download-row.bvp-direct-download-style-pill .bvp-direct-download-button{border-radius:999px!important}
.bvp-direct-download-row.bvp-direct-download-style-pill{border-radius:0!important}

/* v0.10.4: touch-first mobile/tablet controls and seeking gestures. */
.bvp-player-stage{touch-action:pan-y; -webkit-tap-highlight-color:transparent}
.bvp-custom-controls button,.bvp-custom-controls input{touch-action:manipulation}
.bvp-custom-controls .bvp-control-back,.bvp-custom-controls .bvp-control-forward{min-width:42px;font-size:12px;font-weight:700;white-space:nowrap}
.bvp-custom-controls .bvp-control-seek{height:8px;min-height:8px;padding:5px 0;box-sizing:content-box}
@media(max-width:650px){
 .bvp-custom-controls{gap:3px;padding:9px 6px 12px}
 .bvp-custom-controls button{min-width:34px;height:38px;padding:0 5px;font-size:14px}
 .bvp-custom-controls .bvp-control-back,.bvp-custom-controls .bvp-control-forward{min-width:38px;font-size:11px}
 .bvp-custom-controls .bvp-control-volume{width:38px;min-width:28px;max-width:12vw}
 .bvp-custom-controls .bvp-control-seek{height:10px;min-height:10px}
}

/* v0.10.5 mobile interaction fixes */
.bvp-player-wrap.is-seeking .bvp-player-loading{display:flex;background:rgba(0,0,0,.24);z-index:8}
.bvp-player-wrap.is-seeking .bvp-player-loading span{width:38px;height:38px;border-width:4px}
.bvp-touch-seek-preview{position:absolute;z-index:9;left:50%;top:50%;transform:translate(-50%,-50%);padding:10px 14px;border-radius:8px;background:rgba(0,0,0,.78);color:#fff;font:600 15px/1.2 system-ui,sans-serif;pointer-events:none;white-space:nowrap}
.bvp-touch-seek-preview[hidden]{display:none!important}
.bvp-player-stage{touch-action:pan-y}
.bvp-custom-controls .bvp-volume-down,.bvp-custom-controls .bvp-volume-up{min-width:32px;min-height:36px;font-size:22px!important;touch-action:manipulation}
@media(max-width:700px){.bvp-custom-controls{grid-template-columns:repeat(8,minmax(24px,auto));gap:4px;padding:8px 8px 13px}.bvp-custom-controls .bvp-controls-spacer{display:none}.bvp-custom-controls .bvp-control-seek{grid-column:1/-1;grid-row:2;height:12px;min-height:12px;touch-action:pan-x}.bvp-custom-controls .bvp-control-volume{width:56px;max-width:12vw;height:18px}.bvp-custom-controls button{min-width:32px;min-height:36px;font-size:15px;padding:4px!important}.bvp-custom-controls .bvp-time-current,.bvp-custom-controls .bvp-time-duration{font-size:11px}.bvp-custom-controls .bvp-control-settings{display:none}.bvp-custom-controls .bvp-speed-menu{max-width:60px}}

/* v0.10.6: keep mobile control rows aligned; anchor audio and display controls to the right. */
@media (max-width:700px){
 .bvp-custom-controls{display:flex!important;flex-flow:row wrap;align-items:center;justify-content:flex-start;column-gap:3px;row-gap:4px;}
 .bvp-custom-controls .bvp-controls-spacer{display:none!important;}
 .bvp-custom-controls .bvp-control-mute{margin-left:auto!important;}
 .bvp-custom-controls .bvp-volume-down,.bvp-custom-controls .bvp-volume-up{flex:0 0 26px;min-width:26px!important;width:26px;padding:0!important;}
 .bvp-custom-controls .bvp-control-volume{flex:0 1 48px;width:48px;min-width:36px;max-width:16vw;}
 .bvp-custom-controls .bvp-control-wide,.bvp-custom-controls .bvp-control-fullscreen{flex:0 0 32px;min-width:32px!important;width:32px;padding:0!important;}
 .bvp-custom-controls .bvp-control-seek{order:100!important;flex:0 0 100%!important;grid-column:auto!important;grid-row:auto!important;width:100%!important;box-sizing:border-box;margin:0;}
}
