.mp-root{--player-accent:var(--accent,#f16643);color:#fff;position:relative}.mp-root [hidden]{display:none!important}.mp-frame{position:relative;background:#000;border-radius:10px;overflow:hidden;isolation:isolate;aspect-ratio:16/9;container-type:inline-size}.player-panel .mp-media{width:100%;height:100%;max-height:none;aspect-ratio:auto;border-radius:0;object-fit:contain;display:block;margin:0}.mp-top{position:absolute;inset:0 0 auto;padding:20px 22px 45px;background:linear-gradient(#000a,transparent);pointer-events:none;transition:opacity .2s}.mp-title{font-size:clamp(.85rem,1.5vw,1.15rem);font-weight:600;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 4px #000}.mp-osd{position:absolute;bottom:0;left:0;right:0;padding:55px 18px 12px;background:linear-gradient(transparent,#000b 55%,#000d);transition:opacity .2s;pointer-events:none}.mp-progress,.mp-buttons{pointer-events:auto;display:flex;align-items:center;gap:12px}.mp-progress{margin-bottom:8px;font-size:.8rem;font-variant-numeric:tabular-nums}.mp-progress>span{min-width:45px;text-align:center}.mp-seek{position:relative;flex:1;min-width:0}.mp-buffer{position:absolute;left:0;top:calc(50% - 2px);height:4px;background:#ffffff80;border-radius:4px;pointer-events:none}.mp-root input[type=range]{accent-color:var(--player-accent);cursor:pointer;vertical-align:middle}.mp-seek input{position:relative;display:block;width:100%;margin:0;min-height:28px;background:transparent}.mp-buttons{justify-content:space-between;gap:8px}.mp-transport,.mp-tools{display:flex;align-items:center;gap:4px}.mp-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border:0;background:transparent;color:#fff;border-radius:50%;width:44px;height:44px;cursor:pointer}.mp-icon:hover{background:#ffffff22}.mp-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.mp-icon svg text{font:8px Arial,sans-serif;fill:currentColor;stroke:none;text-anchor:middle}.mp-icon[data-action=play]{width:50px;height:50px;background:#ffffff16}.mp-icon[data-action=play] svg{width:28px;height:28px}.mp-tools input{width:78px;min-height:32px}.mp-icon:focus-visible,.mp-root select:focus-visible,.mp-root input:focus-visible,.mp-root button:focus-visible,.mp-frame:focus-visible{outline:2px solid var(--player-accent);outline-offset:2px}.mp-idle .mp-top,.mp-idle .mp-osd{opacity:0;pointer-events:none}.mp-idle .mp-osd *{pointer-events:none}.mp-idle .mp-frame{cursor:none}.mp-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:12px;pointer-events:none;background:#0003;font-size:.85rem}.mp-spinner{width:28px;height:28px;border:3px solid #ffffff35;border-top-color:var(--player-accent);border-radius:50%;animation:mp-spin .8s linear infinite}@keyframes mp-spin{to{transform:rotate(360deg)}}.mp-feedback{position:absolute;top:40%;left:50%;transform:translateX(-50%);border-radius:40px;padding:14px 20px;background:#0009;font-size:1.2rem;font-weight:600;opacity:0;pointer-events:none;transition:opacity .15s}.mp-feedback.visible{opacity:1}.mp-status-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px}.mp-status{color:var(--muted,#bbb);font-size:.85rem}.mp-status.error{color:#ffa28b}.mp-settings{display:grid;grid-template-columns:1fr 1.35fr .8fr;gap:12px;align-items:start;margin-top:4px}.mp-section{min-width:0;background:#201e24;border:1px solid #35313b;border-radius:10px;padding:16px}.mp-section h4{font-size:.9rem;margin:0 0 14px;color:#fff;font-weight:600}.mp-setting{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.8rem;margin:12px 0;color:#ccc;flex-wrap:wrap}.mp-root select,.mp-search input{color:#eee;background:#161616;border:1px solid #48434f;border-radius:6px;padding:9px;min-height:42px;max-width:100%;font-size:.8rem}.mp-setting select{max-width:100%;min-width:0}.stepper{display:inline-flex;gap:4px;align-items:center}.stepper button{width:32px;height:36px;border-radius:5px;border:1px solid #444;background:#302c36;color:#fff;cursor:pointer}.stepper button:disabled{opacity:.4;cursor:default}.stepper output{width:64px;text-align:center;color:#fff;font-variant-numeric:tabular-nums}.mp-note{font-size:.75rem;color:#a6a2ad;line-height:1.5;margin:10px 0}.mp-file{display:inline-flex;font-size:.8rem;margin:6px 4px 0 0;cursor:pointer;min-height:42px}.mp-root .button{font-size:.8rem}.mp-sub-search{margin-top:14px;font-size:.8rem}.mp-sub-search summary{cursor:pointer;padding:10px 0;color:#ddd}.mp-search{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.mp-search input{flex:1;min-width:120px;width:100%}.mp-results{font-size:.75rem;color:#bbb;max-height:220px;overflow:auto}.subtitle-result{display:block;width:100%;text-align:left;background:#28252d;border:1px solid #4a4350;color:#eee;border-radius:6px;padding:10px;margin:5px 0;cursor:pointer;line-height:1.45;overflow-wrap:anywhere}.subtitle-result small{display:block;color:#aaa;margin-top:4px}.subtitle-result:disabled{opacity:.5}.mp-music .mp-frame{aspect-ratio:auto;min-height:170px;background:linear-gradient(130deg,#26212e,#111)}.mp-music .mp-media{display:none}.mp-music .mp-top{padding-bottom:25px}.mp-music .mp-settings{grid-template-columns:1fr 1fr}.mp-music .mp-osd{padding-top:25px}
.mp-captions{position:absolute;left:6%;right:6%;bottom:clamp(16px,4%,45px);white-space:pre-line;text-align:center;pointer-events:none;z-index:2;line-height:1.15;color:#fff;font-family:Arial,Helvetica,sans-serif;font-weight:700;font-size:calc(clamp(16px,2.45cqw,42px)*var(--caption-size,1.12));-webkit-text-stroke:2px #080808;paint-order:stroke fill;text-shadow:1px 2px 2px #000;transition:bottom .18s}.mp-root:not(.mp-idle) .mp-captions{bottom:clamp(105px,17%,150px)}.mp-captions.subtitle-crunchy{font-style:italic}.mp-captions.subtitle-classic{font-family:Georgia,serif;font-style:normal;-webkit-text-stroke:1.5px #000}.mp-captions.subtitle-outline{-webkit-text-stroke:3px #000;font-style:normal}.mp-captions.subtitle-yellow{color:#ffe76a}.mp-captions.subtitle-shadow{-webkit-text-stroke:0;text-shadow:0 2px 3px #000,0 3px 8px #000}.mp-frame video::cue{background:transparent;color:transparent}

.mp-frame{aspect-ratio:16/9;border-radius:12px;overflow:hidden;isolation:auto}.mp-icon{width:48px;height:48px}.mp-tools .mp-icon{width:48px}.mp-icon[aria-expanded=true]{background:#ed684330;color:#ffb9a3}.mp-root select,.mp-search input{background:#252329;border-color:#504b55;font-size:.85rem;min-height:48px}.mp-root input[type=range]{min-height:44px}.mp-settings{display:none;position:absolute;right:12px;bottom:116px;width:min(420px,calc(100% - 24px));max-height:calc(100% - 140px);overflow:auto;background:#201e23f7;border:1px solid #51464b;border-radius:15px;margin:0;z-index:12;box-shadow:0 18px 50px #0008;overscroll-behavior:contain;backdrop-filter:blur(14px)}.mp-root.panel-open .mp-settings{display:block}.mp-settings .mp-section{display:none;border:0;background:none;border-radius:0;padding:20px}.mp-root[data-open-panel=audio] .mp-section[data-section=audio],.mp-root[data-open-panel=subtitles] .mp-section[data-section=subtitles],.mp-root[data-open-panel=settings] .mp-section[data-section=settings],.mp-root[data-open-panel=volume] .mp-section[data-section=volume]{display:block}.mp-section h4{padding-right:36px;margin:0 0 14px;font-size:1rem}.mp-panel-close{position:absolute;right:6px;top:6px;z-index:2;width:48px;height:48px;border:0;border-radius:50%;background:#ffffff0c;color:#fff;font-size:25px}.mp-setting{font-size:.85rem;min-height:44px;gap:12px;margin:10px 0}.mp-setting select{max-width:72%}.mp-volume-range{width:100%;margin:0}.mp-section[data-section=volume] .mp-setting{margin:4px 0}.mp-section[data-section=volume]{padding:16px}.mp-search select{width:100%}.mp-advanced{margin-top:16px;border-top:1px solid #ffffff18;padding-top:5px}.mp-advanced summary{cursor:pointer;font-size:.82rem;min-height:48px;display:flex;align-items:center;color:#ffb9a3}.mp-note{color:#c2bbc8}.stepper{gap:4px}.stepper button{width:44px;height:48px;font-size:1rem}.stepper output{width:70px}.mp-scrim{display:none}.mp-status-row{min-height:42px}.mp-next-countdown{display:flex;justify-content:space-between;gap:15px;align-items:center;background:#282329;border:1px solid #514149;border-radius:12px;padding:14px;font-size:.85rem}.mp-root:fullscreen,.mp-root.mp-expanded{width:100%;height:100%;background:#000;display:flex;flex-direction:column;position:relative}.mp-root:fullscreen .mp-frame,.mp-root.mp-expanded .mp-frame{border-radius:0;aspect-ratio:auto;flex:1;min-height:0;width:100%}.mp-root:fullscreen .mp-status-row,.mp-root.mp-expanded .mp-status-row{display:none}.mp-root:fullscreen .mp-settings,.mp-root.mp-expanded .mp-settings{max-height:calc(100% - 145px)}.mp-root:fullscreen .mp-osd,.mp-root.mp-expanded .mp-osd{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right));padding-bottom:max(12px,env(safe-area-inset-bottom))}.mp-root.mp-expanded{position:fixed;inset:0;z-index:20}.mp-root:fullscreen .mp-next-countdown{position:absolute;right:20px;bottom:120px}.mp-root.panel-open .mp-osd{opacity:1}.mp-setting input[type=checkbox]{width:24px;height:24px;accent-color:var(--accent)}
@media(max-width:650px){.mp-frame{aspect-ratio:16/9;min-height:210px;height:auto}.mp-title{font-size:.8rem}.mp-top{padding:12px 12px 35px}.mp-osd{padding:30px 5px 5px}.mp-progress{gap:4px;font-size:.65rem;margin-bottom:0}.mp-progress>span{min-width:39px}.mp-buttons{flex-wrap:wrap;gap:0}.mp-transport,.mp-tools{justify-content:center;gap:0}.mp-transport{width:100%}.mp-tools{width:100%}.mp-tools [data-action=pip]{display:none}.mp-icon,.mp-icon[data-action=play],.mp-tools .mp-icon{width:48px;height:48px}.mp-icon svg{width:21px;height:21px}.mp-settings,.mp-root:fullscreen .mp-settings,.mp-root.mp-expanded .mp-settings{position:fixed;left:0;right:0;bottom:0;width:100%;max-height:70dvh;border-radius:20px 20px 0 0;z-index:32;padding-bottom:env(safe-area-inset-bottom);background:#201e23}.mp-root.panel-open .mp-scrim{display:block;position:fixed;inset:0;width:100%;height:100%;z-index:31;border:0;background:#0008;cursor:default}.mp-setting select{max-width:75%}.mp-section{padding:20px!important}.mp-captions{font-size:calc(clamp(15px,3.3cqw,24px)*var(--caption-size,1.12));-webkit-text-stroke:1.6px #080808;bottom:7%}.mp-root:not(.mp-idle) .mp-captions{bottom:140px}.mp-section h4{margin-bottom:18px}.mp-root:fullscreen .mp-frame,.mp-root.mp-expanded .mp-frame{min-height:0}.mp-next-countdown{font-size:.8rem;flex-wrap:wrap}.mp-note{font-size:.8rem}}
@media(max-height:500px) and (orientation:landscape){.mp-buttons{flex-wrap:nowrap}.mp-transport,.mp-tools{width:auto}.mp-root:not(.mp-idle) .mp-captions{bottom:110px}.mp-settings{max-height:85dvh!important}.mp-root .mp-frame{min-height:0}}
@media(prefers-reduced-motion:reduce){.mp-top,.mp-osd,.mp-captions,.mp-feedback{transition:none}.mp-spinner{animation-duration:1.8s}}

.mp-transition-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#08080a;pointer-events:none;z-index:1}.mp-captions{z-index:3}.mp-loading{z-index:4}.mp-top,.mp-osd{z-index:5}.mp-rollback{font-size:.75rem;min-height:44px}.mp-status-row{flex-wrap:wrap;gap:10px}.mp-loading{background:#0003;border-radius:12px;padding:12px 18px;backdrop-filter:blur(3px)}
