/* Self-contained library and homepage cards, scoped to this plugin. */
.mmv,.mmv-player{--v-bg:#f7f9f8;--v-surface:#fff;--v-ink:#16334b;--v-muted:#526473;--v-accent:#086f6b;--v-soft:#e8f3f0;--v-line:#dce5e4;--v-button:#086f6b;--v-on:#fff;font:15px/1.95 "Cairo",Tahoma,sans-serif;color:var(--v-ink);text-align:start;background:var(--v-bg)}
:root[data-mibmed-theme="dark"] :is(.mmv,.mmv-player){--v-bg:#101c2a;--v-surface:#1a2b3c;--v-ink:#edf3f7;--v-muted:#b3c4d2;--v-accent:#87ded0;--v-soft:#213d40;--v-line:#344858;--v-button:#87ded0;--v-on:#102d2c}
.mmv,.mmv *,.mmv-player,.mmv-player *{box-sizing:border-box}
.mmv :is(h1,h2,h3,p,ul),.mmv-player :is(h2,p){margin:0;padding:0;font-family:inherit;color:inherit;letter-spacing:normal}
.mmv a,.mmv-player a{color:var(--v-accent);text-decoration:none!important;box-shadow:none;background-image:none}
.mmv a::before,.mmv a::after{content:none}
.mmv :is(button,input,select,summary),.mmv-player button{font:inherit;text-transform:none;letter-spacing:normal;box-shadow:none}
.mmv :is(a,button,input,select,summary):focus-visible,.mmv-player :is(a,button,summary,video):focus-visible{outline:3px solid var(--v-accent);outline-offset:4px}
.mmv [hidden],.mmv-player [hidden]{display:none!important}
.mmv .mmv-icon,.mmv-player .mmv-icon{display:inline-block;vertical-align:middle;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.mmv .mmv-wrap{width:min(100%,1240px);padding:25px 32px 55px;margin-inline:auto}
.mmv .mmv-breadcrumb{display:flex;align-items:center;gap:12px;color:var(--v-muted);font-size:11px;margin-bottom:25px}
.mmv .mmv-breadcrumb a{color:var(--v-muted)}
.mmv .mmv-heading{display:flex;align-items:center;justify-content:space-between;gap:30px;padding-bottom:32px;border-bottom:1px solid var(--v-line);margin-bottom:30px}
.mmv .mmv-eyebrow{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;color:var(--v-accent)}
.mmv .mmv-eyebrow .mmv-icon{width:18px;height:18px}
.mmv h1{font-size:38px;line-height:1.7;font-weight:700;margin-top:6px}
.mmv .mmv-heading p:not(.mmv-eyebrow){font-size:13px;line-height:2;color:var(--v-muted);margin-top:5px}
.mmv .mmv-article-link{font-size:11px;color:var(--v-muted);text-align:end;min-width:155px}
.mmv .mmv-article-link span{display:flex;align-items:center;justify-content:end;gap:15px;color:var(--v-accent);font-size:13px;margin-top:5px;font-weight:700}
.mmv .mmv-browser{display:grid;grid-template-columns:240px minmax(0,1fr);gap:35px;align-items:start}
.mmv .mmv-sidebar{position:sticky;top:120px;margin:0;padding:0;border:1px solid var(--v-line);border-radius:19px;background:var(--v-surface);max-height:calc(100dvh - 145px);overflow:auto}
body.admin-bar .mmv .mmv-sidebar{top:152px;max-height:calc(100dvh - 177px)}
.mmv .mmv-sidebar>summary{display:none}
.mmv .mmv-sidebar-inner{padding:23px 20px}
.mmv .mmv-sidebar h2{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:700;margin-bottom:24px}
.mmv .mmv-sidebar h2 .mmv-icon{width:19px;color:var(--v-accent)}
.mmv .mmv-filter>label{display:block;color:var(--v-muted);font-size:11px;font-weight:600;margin:18px 0 7px}
.mmv .mmv-search{display:flex;align-items:center;gap:8px;border:1px solid var(--v-line);border-radius:10px;background:var(--v-bg);padding:0 10px}
.mmv .mmv-search .mmv-icon{width:17px;color:var(--v-muted)}
.mmv .mmv-search input{width:100%;min-width:0;min-height:44px;border:0;padding:8px 0;background:transparent;color:var(--v-ink);font-size:12px}
.mmv .mmv-search input::placeholder{color:var(--v-muted)}
.mmv .mmv-filter select{width:100%;max-width:none;min-height:44px;border:1px solid var(--v-line);border-radius:10px;background:var(--v-bg);color:var(--v-ink);padding:8px 10px;font-size:12px}
.mmv .mmv-filter .mmv-check{display:flex;align-items:center;gap:7px;font-size:11px;cursor:pointer;margin-block:22px}
.mmv .mmv-check .mmv-icon{width:15px;height:15px;color:var(--v-accent)}
.mmv .mmv-check input{appearance:auto;accent-color:var(--v-accent);width:16px;height:16px;margin:0}
.mmv .mmv-submit{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:10px 13px;min-height:45px;border:0;border-radius:10px;background:var(--v-button);color:var(--v-on);font-size:12px;font-weight:700;cursor:pointer}
.mmv .mmv-submit .mmv-icon{width:18px}
.mmv .mmv-sidebar-note{font-size:10px;color:var(--v-muted);line-height:2;margin-top:23px;border-top:1px solid var(--v-line);padding-top:16px}
.mmv .mmv-danger-link{display:inline-block;color:var(--v-muted);font-size:10px;padding-block:12px}
.mmv .mmv-results{scroll-margin-top:125px;min-width:0}
.mmv .mmv-results-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:17px}
.mmv .mmv-results-heading h2{font-size:20px;font-weight:600;line-height:1.8;outline:none}
.mmv .mmv-results-heading>span{color:var(--v-muted);font-size:11px;white-space:nowrap}
.mmv .mmv-topics{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:25px}
.mmv .mmv-topics a{display:inline-flex;align-items:center;min-height:37px;padding:7px 14px;border:1px solid var(--v-line);border-radius:24px;font-size:10px;color:var(--v-muted);background:var(--v-surface)}
.mmv .mmv-topics a[aria-current=true],.mmv .mmv-topics a:hover{background:var(--v-soft);border-color:var(--v-accent);color:var(--v-accent)}
.mmv .mmv-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.mmv .mmv-card{min-width:0;border:1px solid var(--v-line);border-radius:19px;background:var(--v-surface);overflow:hidden;transition:box-shadow .2s,transform .2s}
.mmv .mmv-play{display:block;position:relative;aspect-ratio:16/9;overflow:hidden;background:var(--v-soft);color:var(--v-accent)}
.mmv .mmv-play>img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s}
.mmv .mmv-placeholder{position:absolute;inset:0;display:grid;place-items:center;background:radial-gradient(ellipse at 20% 15%,var(--v-surface),transparent 75%),var(--v-soft)}
.mmv .mmv-placeholder>.mmv-icon{width:100px;height:100px;opacity:.15;transform:rotate(-12deg) translate(35px,-8px)}
.mmv .mmv-play-circle{position:absolute;inset:0;margin:auto;display:grid;place-items:center;width:55px;height:55px;border-radius:50%;color:#fff;background:#086f6bed;border:1px solid #ffffff8c;box-shadow:0 7px 30px #16334b24;transition:transform .25s}
.mmv .mmv-play-circle .mmv-icon{width:22px;height:22px;fill:currentColor;stroke:none}
.mmv .mmv-type{position:absolute;right:13px;top:13px;display:flex;gap:5px;align-items:center;background:#fffffff2;color:#16334b;border-radius:7px;padding:3px 8px;font-size:9px;font-weight:600}
.mmv .mmv-type .mmv-icon{width:13px;height:13px}
.mmv .mmv-duration{position:absolute;left:13px;bottom:13px;background:#16334be8;color:#fff;font-size:10px;line-height:1.8;border-radius:5px;padding:2px 7px;letter-spacing:.4px}
.mmv .mmv-card-body{padding:19px 21px 16px}
.mmv .mmv-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:9px;color:var(--v-muted);margin-bottom:8px}
.mmv .mmv-meta>span:first-child{color:var(--v-accent);font-weight:600}
.mmv .mmv-card h3{font-size:17px;font-weight:600;line-height:1.9;margin-top:4px}
.mmv .mmv-description{font-size:12px;color:var(--v-muted);line-height:1.95;margin-top:7px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mmv .mmv-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--v-line);padding-top:12px;margin-top:16px;font-size:9px;color:var(--v-muted)}
.mmv .mmv-card-bottom .mmv-watch{display:inline-flex;align-items:center;min-height:36px;color:var(--v-accent);font-weight:600}
.mmv .mmv-card-bottom .mmv-icon{width:13px;height:13px;margin-left:4px}
.mmv .mmv-active{display:flex;align-items:center;gap:15px;flex-wrap:wrap;font-size:11px;color:var(--v-muted);margin-bottom:20px}
.mmv .mmv-active a{text-decoration:underline!important}
.mmv .mmv-status{font-size:11px;color:var(--v-muted)}
.mmv .mmv-status:empty{display:none}.mmv .mmv-status:not(:empty){margin-bottom:15px}
.mmv .mmv-error{font-size:12px;border:1px solid #c37b40;background:var(--v-surface);border-radius:10px;padding:15px;margin-bottom:20px}
.mmv .mmv-error a{text-decoration:underline!important}
.mmv .mmv-pagination{margin-top:32px}.mmv .mmv-pagination ul{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;list-style:none}
.mmv .mmv-pagination :is(a,span){display:grid;place-items:center;min-width:43px;min-height:43px;padding:6px 12px;border:1px solid var(--v-line);border-radius:10px;background:var(--v-surface);font-size:12px}
.mmv .mmv-pagination .current{background:var(--v-button);color:var(--v-on);border-color:var(--v-button)}
.mmv .mmv-notice{font-size:10px;color:var(--v-muted);line-height:2;margin-top:27px;border-top:1px solid var(--v-line);padding-top:17px}
.mmv .mmv-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:70px 30px;border:1px dashed var(--v-line);border-radius:20px;background:var(--v-surface)}
.mmv .mmv-empty>.mmv-icon{width:50px;height:50px;color:var(--v-accent);margin-bottom:20px}.mmv .mmv-empty h3{font-size:22px;line-height:1.9}.mmv .mmv-empty p{font-size:13px;color:var(--v-muted);margin-top:10px}.mmv .mmv-empty a{font-size:13px;margin-top:18px}
.mmv-home{background:var(--v-soft)}.mmv-home .mmv-wrap,.mmv-cards .mmv-wrap{padding-block:70px}.mmv-home .mmv-grid,.mmv-cards .mmv-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.mmv .mmv-home-heading{display:flex;align-items:end;justify-content:space-between;gap:25px;margin-bottom:30px}.mmv .mmv-home-heading h2{font-size:clamp(28px,3vw,39px);line-height:1.8;font-weight:700;margin-top:12px}.mmv .mmv-home-heading em{font-style:normal;color:var(--v-accent)}.mmv .mmv-home-heading p:not(.mmv-eyebrow){font-size:13px;color:var(--v-muted);margin-top:5px}.mmv .mmv-home-heading>a{display:flex;align-items:center;gap:15px;font-size:13px;font-weight:600;white-space:nowrap}
.mmv-player{border:1px solid var(--v-line);border-radius:20px;width:min(900px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 40px);padding:0;overflow:auto;box-shadow:0 25px 80px #0005}
.mmv-player::backdrop{background:rgba(7,19,29,.78);backdrop-filter:blur(8px)}
.mmv-player-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 22px;background:var(--v-surface)}.mmv-player-heading h2{font-size:18px;line-height:1.8}.mmv-player .mmv-player-close{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;padding:0;border:1px solid var(--v-line);border-radius:50%;background:var(--v-bg);color:var(--v-ink);font-size:27px;cursor:pointer}
.mmv-player-screen{aspect-ratio:16/9;background:#000}.mmv-player-screen :is(iframe,video){display:block;width:100%;height:100%;max-height:60dvh;border:0;object-fit:contain}.mmv-player-body{padding:20px 25px}.mmv-player-body>p{font-size:13px;line-height:2;color:var(--v-muted)}.mmv-player-fallback{display:inline-block;font-size:12px;margin-block:12px}.mmv-player-transcript{border-top:1px solid var(--v-line);padding-top:15px;margin-top:8px}.mmv-player-transcript summary{font-size:13px;cursor:pointer}.mmv-player-transcript p{font-size:14px;line-height:2.2;white-space:pre-wrap;margin-top:15px}.mmv-player-body .mmv-player-notice{font-size:10px;margin-top:16px}.mmv-player-error{border:1px solid var(--v-line);padding:10px;border-radius:8px}
body.mmv-library-page #content>.ast-container{display:block;max-width:none;padding:0}body.mmv-library-page #content #primary{width:100%;margin:0;padding:0}body.mmv-library-page .site-content{background:transparent}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.mmv .mmv-play:hover>img{transform:scale(1.035)}.mmv .mmv-play:hover .mmv-play-circle{transform:scale(1.1)}.mmv .mmv-card:hover{box-shadow:0 10px 25px #16334b0b}}
@media(min-width:1101px) and (max-width:1439px){:root.mm-has-side-nav .mmv-home .mmv-wrap{padding-inline-start:112px}}
@media(max-width:1050px){.mmv .mmv-browser{grid-template-columns:215px minmax(0,1fr);gap:22px}.mmv .mmv-wrap{padding-inline:25px}.mmv .mmv-sidebar-inner{padding:20px 17px}.mmv .mmv-card-body{padding:16px}.mmv .mmv-card h3{font-size:15px}.mmv .mmv-grid{gap:18px}}
@media(max-width:860px){.mmv .mmv-browser{grid-template-columns:1fr;gap:24px}.mmv .mmv-sidebar{position:static;max-height:none}.mmv .mmv-sidebar>summary{display:flex;align-items:center;gap:10px;padding:14px 18px;min-height:52px;cursor:pointer;list-style:none;font-size:12px;font-weight:600;color:var(--v-ink)}.mmv summary::-webkit-details-marker{display:none}.mmv .mmv-sidebar>summary>span{margin-inline-start:auto;font-size:22px;color:var(--v-accent)}.mmv .mmv-sidebar[open]>summary>span{transform:rotate(45deg)}.mmv .mmv-sidebar h2{display:none}.mmv .mmv-sidebar-inner{padding-top:0}.mmv .mmv-sidebar-note,.mmv .mmv-danger-link{display:none}.mmv .mmv-heading{padding-bottom:23px;margin-bottom:22px}.mmv-home .mmv-grid,.mmv-cards .mmv-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mmv .mmv-home-heading{align-items:start;flex-direction:column;gap:17px}}
@media(max-width:540px){.mmv .mmv-wrap{padding:20px 20px 40px}.mmv .mmv-heading{align-items:start;flex-direction:column;gap:12px}.mmv h1{font-size:31px}.mmv .mmv-article-link{display:flex;align-items:center;gap:10px;text-align:start;font-size:10px}.mmv .mmv-article-link span{font-size:11px;margin:0;gap:9px}.mmv .mmv-breadcrumb{margin-bottom:20px;font-size:10px}.mmv .mmv-results-heading h2{font-size:17px}.mmv .mmv-topics{gap:6px;margin-bottom:20px}.mmv .mmv-topics a{font-size:9px;padding:6px 11px}.mmv .mmv-grid{grid-template-columns:1fr;gap:20px}.mmv .mmv-card-body{padding:19px 21px}.mmv .mmv-card h3{font-size:17px}.mmv .mmv-results{scroll-margin-top:110px}.mmv-home .mmv-wrap,.mmv-cards .mmv-wrap{padding-block:48px}.mmv .mmv-home-heading h2{font-size:29px}.mmv-player{width:calc(100% - 20px);border-radius:15px}.mmv-player-heading{padding:13px 16px;gap:10px}.mmv-player-heading h2{font-size:15px}.mmv-player-body{padding:16px 19px}}
@media(prefers-reduced-motion:reduce){.mmv *{transition:none!important;animation:none!important}}:root[data-mm-motion="off"] .mmv *{transition:none!important;animation:none!important}
@media(prefers-reduced-transparency:reduce){.mmv-player::backdrop{backdrop-filter:none;background:#07131df5}}
