/* Medicine Way video player (vplayer.js v3) — over the page; study mode = the player alone on the whole screen */
html.mwv-open{overflow:hidden}
.mwv{position:fixed;inset:0;z-index:1000;background:radial-gradient(1000px 500px at 80% -10%,rgba(0,167,200,.14),transparent 60%),#06121f;display:flex;justify-content:center;padding:16px;font-family:inherit;color:#e8f1fb;overflow:auto}
.mwv[hidden]{display:none}
.mwv-in{width:min(1400px,100%);display:flex;flex-direction:column;gap:12px}
.mwv-top{display:flex;align-items:flex-start;gap:10px}
.mwv-h{min-width:0;flex:1}.mwv-t{display:block;font-size:19px;line-height:1.4;font-weight:900}.mwv-by{color:#9fc0de;font-size:13px}
.mwv-x,.mwv-fold{flex:none;height:42px;border-radius:14px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);color:#fff;font:inherit;font-size:14px;font-weight:800;cursor:pointer;padding:0 14px}
.mwv-x{width:42px;padding:0;font-size:18px}
.mwv-x:hover,.mwv-fold:hover{background:rgba(255,255,255,.14)}
.mwv-body{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:16px;align-items:start}
.mwv.folded .mwv-body,.mwv.single .mwv-body{grid-template-columns:minmax(0,1fr)}
.mwv.folded .mwv-side,.mwv.single .mwv-side{display:none}
.mwv.single .mwv-fold{display:none}
.mwv-stage{min-width:0;position:relative}
.mwv-frame{position:relative;width:100%;aspect-ratio:16/9;max-height:calc(100vh - 230px);background:#000;border-radius:16px;overflow:hidden;margin:0 auto;box-shadow:0 20px 50px rgba(0,0,0,.45)}
.mwv-frame iframe,.mwv-frame>div{position:absolute;inset:0;width:100%;height:100%;border:0}
.mwv-bar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-top:10px}
.mwv-g{display:flex;gap:4px;align-items:center;flex-wrap:wrap}
.mwv-bar button{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#fff;border-radius:11px;padding:7px 10px;font:inherit;font-size:14px;font-weight:800;cursor:pointer;min-width:38px}
.mwv-bar button:hover:not(:disabled){background:rgba(255,255,255,.16)}
.mwv-bar button:disabled{opacity:.35;cursor:default}
.mwv-rates{direction:ltr}.mwv-bar [data-a=prev],.mwv-bar [data-a=back],.mwv-bar [data-a=play],.mwv-bar [data-a=fwd],.mwv-bar [data-a=next]{direction:ltr}
.mwv-rates button{padding:6px 8px;min-width:0;font-size:13px}
.mwv-rates button.on{background:#00a7c8;border-color:#00a7c8}
.mwv-addn{background:linear-gradient(135deg,#7c3aed,#a855f7)!important;border:0!important}
.mwv-study{background:linear-gradient(135deg,#0b5cad,#00a7c8)!important;border:0!important}
.mwv-time{font-size:13px;color:#9fc0de;font-variant-numeric:tabular-nums;margin-inline-end:6px}
.mwv-msg{position:absolute;top:12px;left:50%;transform:translateX(-50%);background:rgba(0,0,0,.82);color:#fff;border-radius:14px;padding:8px 14px;font-size:14px;font-weight:700;max-width:90%;text-align:center;pointer-events:auto;z-index:3}
.mwv-msg a{color:#7fe6f6}
/* tabs under the player */
.mwv-tabs{display:flex;gap:6px;margin-top:14px;border-bottom:1px solid rgba(255,255,255,.1);overflow-x:auto}
.mwv-tabs button{border:0;background:none;color:#9fc0de;font:inherit;font-size:14.5px;font-weight:800;padding:10px 14px;border-bottom:3px solid transparent;cursor:pointer;white-space:nowrap}
.mwv-tabs button.on{color:#fff;border-bottom-color:#00a7c8}
.mwv-tabs em{font-style:normal;font-size:12px;background:rgba(255,255,255,.12);border-radius:99px;padding:1px 8px;margin-inline-start:4px}
.mwv-pane{padding:14px 2px 24px}
.mwv-noteform{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:10px}
.mwv-noteform textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:56px;border:0;background:transparent;color:#fff;font:inherit;font-size:15px;outline:none}
.mwv-noteform>div{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:6px}
.mwv-cols{display:flex;gap:6px}.mwv-cols button{width:20px;height:20px;border-radius:50%;background:var(--c);border:2px solid rgba(255,255,255,.3);cursor:pointer;padding:0}.mwv-cols button.on{border-color:#fff;box-shadow:0 0 0 2px #00a7c8}
.mwv-savebtn{border:0;border-radius:11px;padding:8px 14px;font:inherit;font-size:14px;font-weight:800;color:#fff;background:linear-gradient(135deg,#0b5cad,#00a7c8);cursor:pointer}
.mwv-notes{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:6px}
.mwv-notes li{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:8px 10px}
.mwv-notes li::before{content:"";flex:none;width:10px;height:10px;border-radius:50%;background:var(--c)}
.mwv-notes li span{flex:1;font-size:14.5px;line-height:1.6}
.mwv-at{flex:none;border:0;border-radius:9px;background:rgba(0,167,200,.2);color:#7fe6f6;font:inherit;font-size:13px;font-weight:800;padding:5px 9px;cursor:pointer}
.mwv-del{flex:none;border:0;background:none;color:#7f9cbb;cursor:pointer;font-size:14px;padding:4px 6px;border-radius:8px}.mwv-del:hover{color:#fca5a5;background:rgba(255,255,255,.06)}
.mwv-sync{display:block;margin-top:8px;color:#7f9cbb;font-size:12px}
.mwv-empty{color:#9fc0de;font-size:14px;margin:6px 2px;line-height:1.7;list-style:none}
.mwv-trq{width:100%;box-sizing:border-box;margin:0 0 10px;padding:9px 12px;border-radius:11px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);color:#fff;font:inherit}
.mwv-tr{display:grid;gap:2px;max-height:360px;overflow:auto}
.mwv-tr button{all:unset;cursor:pointer;display:flex;gap:10px;padding:6px 8px;border-radius:8px;font-size:14px;line-height:1.6}
.mwv-tr button:hover{background:rgba(255,255,255,.07)}.mwv-tr b{color:#7fe6f6;font-size:12.5px;min-width:44px}
.mwv-files{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:8px}
.mwv-files a{color:#e8f1fb;text-decoration:none;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);border-radius:11px;padding:10px 12px;font-size:14px;font-weight:700}
.mwv-files a:hover{border-color:#00a7c8}
/* the side list */
.mwv-side{position:sticky;top:0;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);border-radius:18px;padding:12px;display:flex;flex-direction:column;gap:10px;max-height:calc(100vh - 110px)}
.mwv-prog{display:flex;align-items:center;gap:12px;padding:10px;border-radius:14px;background:rgba(255,255,255,.05)}
.mwv-prog b{display:block;font-size:14.5px}.mwv-cnt{font-size:12.5px;color:#9fc0de}
.mwv-ring{--p:0;flex:none;position:relative;width:52px;height:52px;border-radius:50%;background:conic-gradient(#3fd39b calc(var(--p)*1%),rgba(255,255,255,.12) 0);display:grid;place-items:center}
.mwv-ring i{position:absolute;inset:5px;border-radius:50%;background:#0b1b2e}.mwv-ring b{position:relative;font-size:12.5px!important}
.mwv-q{width:100%;box-sizing:border-box;padding:9px 12px;border-radius:11px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);color:#fff;font:inherit;font-size:14px}
.mwv-list{overflow:auto;display:grid;gap:2px;padding-inline-end:2px}
.mwv-list h4{margin:10px 6px 4px;font-size:12.5px;color:#7fe6f6;font-weight:800;letter-spacing:.2px}
.mwv-list button{all:unset;box-sizing:border-box;position:relative;width:100%;display:flex;gap:10px;align-items:center;padding:9px 10px;border-radius:12px;cursor:pointer;font-size:13.5px;line-height:1.45;color:#d6e4f3}
.mwv-list button span{flex:1;direction:ltr;text-align:left}.mwv-list button span b{color:#7f9cbb;margin-inline-end:4px}
.mwv-list button small{color:#7f9cbb;font-size:12px;white-space:nowrap;direction:ltr}
.mwv-list button:hover{background:rgba(255,255,255,.07)}
.mwv-list button.on{background:linear-gradient(135deg,rgba(11,92,173,.6),rgba(0,167,200,.45));color:#fff;font-weight:800}
.mwv-st{flex:none;width:22px;height:22px;border-radius:50%;border:2px solid rgba(255,255,255,.28);display:grid;place-items:center;font-style:normal;font-size:12px}
.mwv-list button.done .mwv-st{background:#22c55e;border-color:#22c55e}.mwv-list button.done .mwv-st::before{content:'✓';color:#fff;font-weight:900}
.mwv-list button.part .mwv-st{border:0;background:conic-gradient(#facc15 calc(var(--p)*1%),rgba(255,255,255,.2) 0);-webkit-mask:radial-gradient(circle,transparent 6px,#000 7px);mask:radial-gradient(circle,transparent 6px,#000 7px)}
.mwv-list button.on .mwv-st{background:#fff;border-color:#fff}.mwv-list button.on .mwv-st::before{content:'▶';color:#0b5cad;font-size:10px}
.mwv-list button u{position:absolute;left:44px;right:10px;bottom:3px;height:3px;border-radius:9px;background:linear-gradient(90deg,#facc15 calc(var(--p)*1%),rgba(255,255,255,.12) 0);text-decoration:none}
/* study mode: the whole screen is the lesson */
.mwv.study{background:#000;padding:10px}
.mwv.study .mwv-x,.mwv.study .mwv-fold{display:none}
.mwv.study .mwv-frame{max-height:calc(100vh - 140px)}
/* a ✓ on the page's own video lists */
.plist button.done::before,.vthumb.done::after{content:'✓';color:#1e9e6a}
.vthumb.done::after{position:absolute;top:8px;right:8px;background:#fff;border-radius:999px;width:24px;height:24px;display:grid;place-items:center;font-weight:900}
@media (max-width:900px){
  .mwv{padding:8px}
  .mwv-body{grid-template-columns:1fr}
  .mwv:not(.folded) .mwv-side{position:static;max-height:60vh;order:2}
  .mwv-frame{border-radius:12px;max-height:none}
  .mwv-bar{justify-content:center}
  .mwv-fold span{display:none}
}

/* USER 2026-11-18: split view — the video and a chapter file side by side (stacked on phones) */
.mwv-doc{display:flex;flex-direction:column;min-width:0;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 20px 50px rgba(0,0,0,.45)}
.mwv-doc[hidden]{display:none}
.mwv-doch{display:flex;align-items:center;gap:6px;padding:8px 10px;background:#0b1b2e;color:#fff}
.mwv-doch b{flex:1;min-width:0;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mwv-doch button,.mwv-doch a{flex:none;width:34px;height:34px;display:grid;place-items:center;border-radius:10px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);color:#fff;text-decoration:none;cursor:pointer;font:inherit;font-size:15px}
.mwv-doc iframe{flex:1;width:100%;border:0;background:#f3f7fb;min-height:60vh}
.mwv.split .mwv-body{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.mwv.split .mwv-doc{order:2;position:sticky;top:0;height:calc(100vh - 110px)}
.mwv.split.swapped .mwv-doc{order:-1}
.mwv.split .mwv-side{display:none}
.mwv.split .mwv-frame{max-height:none}
.mwv-hint{grid-column:1/-1;color:#9fc0de;font-size:13.5px;margin:0 0 4px}
.mwv-files a{cursor:pointer}
@media (max-width:900px){.mwv.split .mwv-body{grid-template-columns:1fr}.mwv.split .mwv-doc{order:2;position:static;height:70vh}.mwv.split.swapped .mwv-doc{order:2}}
@media (max-width:900px){.mwv.split .mwv-tabs,.mwv.split .mwv-pane{display:none}.mwv.split .mwv-doc{height:62vh}}

/* USER 2026-11-18: split = exactly half the screen each, full height — the file on one half, the video (with its
   controls and tabs scrolling under it) on the other; study mode + a file = the same halves on the whole screen */
@media (min-width:901px){
  .mwv.split{padding:12px}
  .mwv.split .mwv-in{width:100%;max-width:none;height:100%}
  .mwv.split .mwv-body{flex:1;min-height:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:stretch;height:calc(100vh - 92px)}
  .mwv.split .mwv-stage{overflow:auto;height:100%;padding-inline-end:2px;scrollbar-width:thin}
  .mwv.split .mwv-frame{max-height:none;width:100%}
  .mwv.split .mwv-doc{position:static;height:100%}
  .mwv.split .mwv-doc iframe{min-height:0;height:100%}
  .mwv.split.study{padding:8px}
  .mwv.split.study .mwv-top{display:none}
  .mwv.split.study .mwv-body{height:calc(100vh - 16px)}
}
.mwv.split.study .mwv-tabs,.mwv.split.study .mwv-pane{display:none}
