html,body{width:100%;height:100%}input::-ms-clear{display:none}input::-ms-reveal{display:none}*,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:#0000;font-family:sans-serif;line-height:1.15}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{cursor:help;border-bottom:0;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}address{font-style:normal;line-height:inherit;margin-bottom:1em}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:1em}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{text-align:left;caption-side:bottom;padding-top:.75em;padding-bottom:.3em}input,button,select,optgroup,textarea{color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner{border-style:none;padding:0}[type=button]::-moz-focus-inner{border-style:none;padding:0}[type=reset]::-moz-focus-inner{border-style:none;padding:0}[type=submit]::-moz-focus-inner{border-style:none;padding:0}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{resize:vertical;overflow:auto}fieldset{border:0;min-width:0;margin:0;padding:0}legend{width:100%;max-width:100%;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal;margin-bottom:.5em;padding:0;display:block}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button{height:auto}[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--page:#fff;--panel:#fff;--line:#e2e2dc;--ink:#393a34;--muted:#5a5b53;--accent:#1c6b48;--highlight:#e8efea;--tint:#f3f3f0;--brand-ink:#a43b22;--brand-tint:#fbece6;--radius:8px;--header-height:56px;--page-gutter:clamp(16px, 4vw, 64px);--player-gutter:clamp(8px, 1.25vw, 16px);background:var(--page);color:var(--ink);font-synthesis:none;font-family:Inter,PingFang SC,system-ui,-apple-system,sans-serif}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--page:#121212;--panel:#1a1a1a;--line:#30302d;--ink:#dbd7ca;--muted:#aaa79b;--accent:#71b498;--highlight:#222e28;--tint:#222220;--brand-ink:#ff9678;--brand-tint:#32231f}body{color:var(--ink);margin:0}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}button{cursor:pointer}h1,h2,h3,p{margin-top:0}[hidden]{display:none!important}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.header-inner,.site-main{width:min(100% - 2 * var(--page-gutter), 1260px);margin-inline:auto}.header-inner{min-height:var(--header-height);border-bottom:1px solid var(--line);align-items:center;gap:20px;display:flex}.wordmark{color:var(--ink);white-space:nowrap;align-items:center;gap:8px;font-size:20px;font-weight:720;display:inline-flex}.wordmark .anticon{color:var(--brand-ink);font-size:25px}.header-inner nav,.header-actions{align-items:center;gap:8px;display:flex}.header-inner nav a,.login-link{color:var(--muted);white-space:nowrap;border-radius:6px;align-items:center;gap:5px;padding:6px 8px;font-size:14px;display:inline-flex}.header-inner nav a.active,.header-inner nav a:hover,.login-link:hover{background:var(--tint);color:var(--ink);text-decoration:none}.header-actions{white-space:nowrap;margin-left:auto}.header-actions .ant-tag{margin:0}.site-main{padding:clamp(18px,3vw,28px) 0 40px}.section-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px 16px;margin-bottom:14px;display:flex}.section-heading h1{overflow-wrap:anywhere;margin:0;font-size:25px;font-weight:680;line-height:1.25}.section-title{flex-wrap:wrap;align-items:baseline;gap:4px 10px;display:flex}.section-title>span{color:var(--muted);font-size:13px}.row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.spread{justify-content:space-between}.muted{color:var(--muted)}.section-alert{margin:0 0 12px}.empty-panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);text-align:center;place-content:center;min-height:132px;padding:16px;display:grid}.empty-panel .ant-empty{margin:0}.empty-panel .ant-empty-image{height:50px;margin-bottom:6px}.empty-panel .ant-empty-footer{margin-top:8px}.library-tools{flex-wrap:nowrap;min-width:0}.library-tools .ant-input-search{width:256px;min-width:0}.library-tools>.ant-btn{flex:none}.video-grid{grid-template-columns:repeat(auto-fill,minmax(min(230px,100%),1fr));gap:10px;display:grid}.video-card,.offline-row{border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);min-width:0}.video-card{flex-direction:column;justify-content:flex-start;display:flex}:is(.video-card:has(.video-link:hover),.offline-row:has(.video-link:hover)){border-color:var(--accent)}.video-link{min-width:0;min-height:48px;color:var(--ink);align-items:center;gap:8px;padding:8px 9px;font-size:15px;font-weight:600;display:flex}.video-icon{width:28px;height:28px;color:var(--brand-ink);background:var(--brand-tint);border-radius:5px;flex:none;place-items:center;display:grid}.video-title{overflow-wrap:anywhere;min-width:0}.card-meta{white-space:nowrap;font-size:12px}.video-card .card-meta{padding:0 9px 6px}.card-actions{border-top:1px solid var(--line);gap:5px;min-height:36px;margin-top:auto;padding:3px 8px;font-size:13px}.card-actions .ant-btn{padding-inline:5px}.card-progress{padding-inline:8px}.pagination{margin-top:16px}.offline-list{gap:8px;display:grid}.offline-row{grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:4px 8px;padding-right:8px;display:grid}.auth-main{min-height:100dvh;padding:max(16px, env(safe-area-inset-top)) var(--page-gutter) max(16px, env(safe-area-inset-bottom));align-items:center;display:grid}.auth-main>.empty-panel,.auth-shell{width:min(100%,400px);margin-inline:auto}.auth-shell{gap:12px;display:grid}.auth-header{justify-content:space-between;align-items:center;display:flex}.auth-header .wordmark .anticon{font-size:28px}.auth-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);min-width:0;padding:18px clamp(14px,4vw,20px)}.auth-card h1{margin-bottom:14px;font-size:23px;font-weight:680;line-height:1.25}.auth-form .ant-form-item{margin-bottom:11px}.auth-form .ant-form-item .ant-form-item-label{padding-bottom:3px}.auth-form .ant-alert{margin-bottom:10px}.auth-links{flex-wrap:wrap;align-items:center;gap:4px 14px;margin-top:10px;font-size:14px;display:flex}.auth-links a{padding-block:4px}.auth-offline{color:var(--muted);text-underline-offset:3px;justify-self:start;font-size:14px;text-decoration:underline}.puzzle-field{margin-bottom:10px}.puzzle-field .ant-alert{margin:0}.puzzle-heading{color:var(--muted);gap:2px 8px;margin-bottom:4px}.puzzle-heading .ant-btn{padding-inline:0}.puzzle{border-radius:6px;position:relative;overflow:hidden}.puzzle>img:first-child{width:100%;height:100%;position:absolute;inset:0}.puzzle .piece{pointer-events:none;position:absolute}.puzzle-field .ant-slider{margin-block:8px}.puzzle-loading{aspect-ratio:16/9;display:flex}.puzzle-loading>.ant-skeleton{width:100%}.puzzle-loading .ant-skeleton-node{width:100%;height:100%}.settings-body{max-height:calc(100dvh - 110px);overflow-y:auto}.settings-section{border-bottom:1px solid var(--line);gap:7px;margin-bottom:11px;padding-bottom:12px;display:grid}.settings-section:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}.settings-section h3{margin:0;font-size:15px;font-weight:650}.settings-section p{overflow-wrap:anywhere;margin:0}.settings-field{grid-template-columns:minmax(0,1fr) minmax(80px,48%);align-items:center;gap:8px;display:grid}.settings-field .ant-slider{margin:3px 6px}.settings-section .speed-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 3px;display:grid}.speed-options .ant-checkbox-wrapper{white-space:nowrap}.settings-section .ant-form-item{margin-bottom:8px}.saved-status{margin-left:8px}.player-main{width:min(100% - 2 * var(--player-gutter), 1600px);padding-block:var(--player-gutter)}.watch-page{height:max(360px, calc(100dvh - 2 * var(--player-gutter)));flex-direction:column;display:flex}.back-link,.watch-back{align-items:center;gap:6px;font-weight:550;display:inline-flex}.back-link{margin-bottom:10px}.watch-back{border:1px solid var(--line);border-radius:6px;flex:none;justify-content:center;width:30px;height:30px}.watch-footer{color:var(--muted);gap:4px 8px;margin-top:8px;font-size:12px}.watch-actions{gap:4px}.workspace{min-height:0;color:var(--ink);flex:1;grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr) clamp(260px,29vw,420px);gap:10px;display:grid}:is(.workspace.expanded,.workspace:fullscreen){z-index:60;padding:var(--player-gutter);background:var(--page);position:fixed;inset:0}.theater,.side-panel{border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);min-width:0;min-height:0;overflow:hidden}.theater{grid-template-rows:minmax(0,1fr) auto;display:grid}.screen{background:#080808;place-items:center;display:grid;position:relative}.screen video{object-fit:contain;width:100%;height:100%;position:absolute;inset:0}.screen-caption{color:#fff;text-align:center;white-space:pre-line;overflow-wrap:anywhere;pointer-events:none;background:#111b16cd;border-radius:5px;width:max-content;max-width:88%;padding:4px 8px;font-size:clamp(14px,2.2vw,25px);line-height:1.4;position:absolute;bottom:8%;left:50%;transform:translate(-50%)}.screen-play{color:#fff;z-index:1;background:#222b26bc;border:1px solid #ffffff6b;border-radius:50%;width:52px;height:52px;font-size:24px}.screen-error{z-index:2;width:min(90%,460px)}.transport{border-top:1px solid var(--line);grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:6px;padding:4px 8px;display:grid}.transport-timeline{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px;display:grid}.transport input[type=range]{min-width:0;accent-color:var(--accent);cursor:pointer;margin:0}.transport .seek{width:100%}.transport-buttons{align-items:center;gap:2px;display:flex}.transport button{min-width:30px;height:32px;color:var(--ink);background:0 0;border:0;border-radius:5px;place-items:center;padding:0;font-size:16px;display:grid}.transport button:hover,.transport button[aria-pressed=true]{color:var(--accent);background:var(--highlight)}.transport .play-toggle{font-size:20px}.speed-control select{width:64px;height:30px;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:5px;padding-inline:3px;font-size:13px}.transport .volume{width:clamp(44px,6vw,78px);margin-inline:2px 5px}.timecode{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;font-size:12px}.side-panel,.subtitle-panel,.chat-container{flex-direction:column;display:flex}.subtitle-panel,.chat-container{flex:1;min-height:0;overflow:auto}.side-panel .ant-tabs{flex:none;padding:0 10px}.side-panel .ant-tabs-nav{margin:0}.side-panel .ant-tabs-tab{padding-block:7px}.subtitle-panel>.ant-alert{margin:8px}.track-tools{padding:6px 8px}.track-tools .ant-select{flex:1;min-width:0}.subtitle-list,.chat-messages{overscroll-behavior:contain;scrollbar-width:thin;flex:1;min-height:0;overflow-y:auto}.subtitle-empty{flex:1;place-content:center;min-height:0;padding:10px;display:grid}.subtitle-empty .ant-empty{margin:0}.cue{border-bottom:1px solid var(--line);padding:6px 8px 4px}.cue[aria-current]{background:var(--highlight);box-shadow:inset 2px 0 var(--accent)}.cue-text{text-align:left;width:100%;color:var(--ink);background:0 0;border:0;align-items:flex-start;gap:7px;padding:0;display:flex}.cue-text time{color:var(--accent);min-width:37px;font:12px/1.8 ui-monospace,monospace}.cue-text span{white-space:pre-line;overflow-wrap:anywhere;min-width:0;line-height:1.4}.cue-actions{gap:2px;margin-left:44px}.cue-actions .ant-btn{padding-inline:4px}.cue-actions button:last-child{margin-left:auto}.subtitle-footer{color:var(--muted);border-top:1px solid var(--line);padding:4px 8px;font-size:12px}.chat-panel{flex-direction:column;flex:1;gap:6px;min-height:0;padding:6px 8px;display:flex}.chat-tools{justify-content:flex-end;display:flex}.chat-message{background:var(--highlight);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:6px;margin:4px 1px;padding:7px 8px}.chat-message.assistant{background:var(--tint)}.chat-message b{color:var(--accent);margin-bottom:3px;font-size:12px;display:block}.chat-message .ant-tag{text-overflow:ellipsis;max-width:100%;overflow:hidden}.chat-failed{color:var(--muted);margin-top:6px;font-size:13px}.composer{gap:4px;max-height:70%;display:grid;overflow:auto}.composer .ant-tag{white-space:normal;justify-self:start;max-width:100%}.composer-actions{gap:4px}.composer-actions .send{margin-left:auto}.source-stream{padding-bottom:8px}.source-stream pre{white-space:pre-wrap;overflow-wrap:anywhere}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (height<=650px){.auth-main{padding-block:max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-bottom))}.auth-shell{gap:10px}.auth-card{padding-block:14px}.auth-links a{padding-block:2px}}@media (pointer:coarse),(orientation:landscape) and (height<=520px){.transport .volume{display:none}}@media (width<=760px),(orientation:portrait) and (width<=920px){.watch-page{height:max(480px, calc(100dvh - 2 * var(--player-gutter)))}.workspace{grid-template-rows:minmax(0,min(51dvh,56.25vw + 64px)) minmax(0,1fr);grid-template-columns:minmax(0,1fr);gap:8px}}@media (width<=570px){:root{--header-height:50px;--page-gutter:12px}.header-inner,.header-inner nav{gap:4px}.header-inner nav a,.login-link{padding:5px 4px;font-size:13px}.header-inner nav .anticon,.login-link .anticon,.header-actions .ant-tag,.header-actions .sign-out .ant-btn-icon{display:none}.wordmark{gap:5px;font-size:17px}.wordmark .anticon{font-size:20px}.header-actions{gap:0}.library-tools{flex:100%}.library-tools .ant-input-search{flex:1;width:auto}.section-heading h1{font-size:22px}.offline-row{grid-template-columns:minmax(0,1fr) auto;padding-bottom:4px}.offline-row .video-link{grid-column:1/-1;min-height:38px}.offline-row .card-meta{margin-left:9px}.transport{row-gap:0}.transport-timeline{grid-area:1/1/auto/-1}.transport .play-toggle{grid-area:2/1}.transport-buttons{grid-area:2/3}.transport button{width:36px;height:36px}}@media (width<=380px){.header-inner,.header-inner nav{gap:2px}.header-inner nav a{padding-inline:3px}.settings-section .speed-options{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (orientation:landscape) and (height<=520px) and (width>=580px){.watch-page{height:max(265px, calc(100dvh - var(--header-height) - 2 * var(--player-gutter)))}.workspace{grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr) minmax(210px,35%);gap:8px}.timecode-duration{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}}
