:root{color-scheme:light;--bg:#f8f8f5;--surface:#fff;--ink:#20231f;--muted:#646760;--line:#dddfd7;--soft:#f1f2ed;--accent:#de6024;--pale:#fff1e6;--pad:clamp(22px,3.6vw,62px);font:16px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif;color:var(--ink);background:var(--bg);-webkit-text-size-adjust:100%}
*,*::before,*::after{box-sizing:border-box}
body{margin:0}body:has(dialog[open]){overflow:hidden}button,select,input{font:inherit}button,select{cursor:pointer}button{color:inherit;border:0;background:none;padding:0;touch-action:manipulation}button:disabled{opacity:.42;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid #cb612d;outline-offset:3px}button:focus:not(:focus-visible){outline:none}[hidden]{display:none!important}
.ic{display:inline-block;vertical-align:middle;flex:none;width:20px;height:20px}i[data-ic]{display:inline-flex;font-style:normal;align-items:center;justify-content:center}.accent{color:var(--accent)}
.topbar{height:73px;background:#fff;border-bottom:1px solid var(--line)}.header-inner{height:100%;max-width:1610px;padding:0 var(--pad);margin:auto;display:flex;align-items:center;gap:clamp(24px,5vw,84px)}.brand{display:flex;align-items:center;gap:10px;font-size:27px;letter-spacing:-1.5px;font-weight:790;line-height:1}.brand img{height:36px;width:36px}.nav{display:flex;gap:8px;align-items:center}.nav button{display:flex;align-items:center;gap:8px;white-space:nowrap;color:#62645e;padding:10px 16px;border-radius:7px;font-size:14px;font-weight:580;transition:background .15s}.nav button .ic{width:18px;height:18px}.nav button.active{background:#fff0e5;color:#b44a1a}.nav button:hover:not(.active){background:#f4f4f1}.import-top{margin-left:auto}.dark-btn,.outline{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 15px;line-height:1.35;border-radius:7px;font-size:14px;font-weight:600;white-space:nowrap}.dark-btn{background:#252823;color:white;border:1px solid #252823}.dark-btn:hover:not(:disabled){background:#3c4037}.outline{background:#fff;border:1px solid #d4d6cf}.outline:hover:not(:disabled){border-color:#989e92;background:#fafaf7}
.page{max-width:1610px;margin:auto;padding:17px var(--pad) 30px}.crumb{display:flex;align-items:center;gap:9px;font-size:13px;line-height:20px;color:#6e7069}.crumb .ic{width:13px;height:13px;color:#969990}.crumb button:hover{text-decoration:underline}.crumb span{color:#52564e}.page h1{margin:10px 0 8px;font-size:clamp(38px,3.4vw,57px);letter-spacing:-.055em;font-weight:760;line-height:1.13;overflow-wrap:anywhere}.metadata{display:flex;align-items:center;gap:14px;color:#666a61;font-size:13px;line-height:23px;margin-bottom:23px}.metadata>span{display:inline-flex;align-items:center;gap:6px}.metadata .ic{width:16px;height:16px}.metadata b{width:3px;height:3px;border-radius:50%;background:#aeb2a7}
.workgrid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(330px,1fr);gap:22px;align-items:stretch}.learning-left{min-width:0;display:flex;flex-direction:column}.panel{border:1px solid var(--line);border-radius:13px;background:var(--surface)}.player{overflow:hidden;border-radius:13px;position:relative;width:100%;aspect-ratio:16/9;background:#1d261f;color:#fff;isolation:isolate}.player video{display:block;width:100%;height:100%;object-fit:contain;cursor:pointer}.player-shade{position:absolute;pointer-events:none;inset:18% 0 0;background:linear-gradient(0deg,rgba(5,10,6,.9) 0%,rgba(6,12,7,.68) 19%,rgba(8,13,9,.2) 51%,transparent 72%)}.video-label{position:absolute;top:17px;left:17px;color:#fff;padding:5px 10px;display:flex;align-items:center;gap:6px;font-size:12px;letter-spacing:.02em;background:#1b2826ae;border:1px solid #ffffff36;border-radius:5px;pointer-events:none}.video-label .ic{width:15px;height:15px}.video-sub{position:absolute;bottom:76px;left:25px;right:25px;pointer-events:none;text-shadow:0 1px 6px #0007}.video-sub [lang=en]{font-size:clamp(18px,1.65vw,29px);font-weight:650;letter-spacing:-.024em;line-height:1.29}.video-sub #overlay-zh{font-size:clamp(14px,1.11vw,19px);line-height:1.45;color:#f5f5ec;margin-top:4px}.transport{position:absolute;left:19px;right:19px;bottom:9px}.transport-row{display:flex;align-items:center;gap:5px;height:35px}.transport-row>button{min-width:33px;height:35px;display:grid;place-items:center;border-radius:5px}.transport-row>button:hover{background:#ffffff21}.transport-row .ic{width:21px;height:21px}.clock,.transcript-progress,.sentence-counter,.timestamp{font-variant-numeric:tabular-nums}.clock{margin-left:6px;font:500 12px/1.2 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#f5f5f1;letter-spacing:-.03em}.push{flex:1}.transport input[type=range]{--progress:0%;-webkit-appearance:none;appearance:none;display:block;width:100%;height:20px;margin:0;background:transparent;cursor:pointer;outline-offset:0}.transport input::-webkit-slider-runnable-track{height:3px;border-radius:8px;background:linear-gradient(to right,#ff8b46 0 var(--progress),#ffffff75 var(--progress) 100%)}.transport input::-moz-range-track{height:3px;border-radius:8px;background:linear-gradient(to right,#ff8b46 0 var(--progress),#ffffff75 var(--progress) 100%)}.transport input::-webkit-slider-thumb{-webkit-appearance:none;width:9px;height:9px;border-radius:50%;background:#ff8540;margin-top:-3px}.transport input::-moz-range-thumb{width:9px;height:9px;background:#ff8540;border:0;border-radius:50%}.player.full-fallback{position:fixed;inset:0;z-index:80;border-radius:0;aspect-ratio:auto;height:100dvh}.player:fullscreen{border-radius:0}.player:fullscreen .video-sub,.player.full-fallback .video-sub{bottom:12%;text-align:center}.player:fullscreen .video-sub [lang=en]{font-size:clamp(22px,3vw,48px)}
.practice{margin-top:16px;padding:18px 21px 17px}.practice-head,.section-heading,.practice-toolbar,.practice-controls,.transcript-head,.transcript-foot,.word-title,.modal-head{display:flex;align-items:center}.practice-head,.practice-toolbar,.transcript-head,.transcript-foot,.word-title,.modal-head{justify-content:space-between}.section-heading{gap:9px}.section-heading h2{font-size:18px;letter-spacing:-.04em;line-height:1.4;margin:0;font-weight:700}.section-heading .ic{width:21px;height:21px}.sentence-counter{font:500 12px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;color:#74786e}.sentence-counter strong{font-size:16px;color:var(--accent)}.sentence-counter span:first-of-type{padding:0 2px;color:#a6a89f}.practice-toolbar{margin:14px 0;padding-bottom:14px;border-bottom:1px solid var(--line)}
.practice-copy{block-size:8.5rem;overflow:auto;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#d7d9d1 transparent}.practice-copy p{margin:0}.sentence-en{font-size:clamp(19px,1.53vw,25px);font-weight:650;line-height:1.38;letter-spacing:-.027em;overflow-wrap:anywhere}.practice-copy #practice-zh{color:var(--muted);font-size:14px;line-height:1.6;margin-top:5px}.word{border-radius:3px;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.word:hover{background:#fbe9da}.word.chosen{background:#ffd9ba;box-shadow:inset 0 -2px 0 #df672c}.practice-controls{gap:7px}.practice-controls .ic{width:17px;height:17px}.icon-button{width:43px;padding:0}.control-divider{height:23px;width:1px;background:var(--line);margin:0 4px}.loop.active{background:var(--pale);color:#ae4518;border-color:#edae87}.quiet-icon{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:6px;color:#73786d}.quiet-icon:hover{background:var(--soft);color:#252823}.quiet-icon.saved{color:var(--accent)}.quiet-icon.saved .ic{fill:var(--pale)}.selection-hint{display:flex;align-items:center;gap:7px;color:#73776e;font-size:12px;margin:11px 3px 0}.selection-hint .ic{width:14px;height:14px}
.transcript{min-height:0;min-width:0;display:flex;flex-direction:column;align-self:stretch;overflow:hidden;margin-bottom:29px}.transcript-head{padding:16px 19px;border-bottom:1px solid var(--line);gap:8px;flex:none}.ccmark{font-size:11px;letter-spacing:-.02em;line-height:18px;border-radius:4px;padding:0 4px;font-weight:800;background:#ee6b2c;color:white}.mode-select{position:relative;display:inline-flex}.mode-select select{appearance:none;border:1px solid #d8dad3;background:white;color:#44473f;border-radius:6px;padding:6px 31px 6px 12px;font-size:13px;font-weight:550;height:33px}.mode-select i{pointer-events:none;position:absolute;right:9px;top:8px}.mode-select .ic{width:15px;height:15px}.transcript-list{overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d7d9d1 transparent;flex:1 1 0;min-height:0}.cue{position:relative;padding:17px 18px;display:grid;grid-template-columns:43px minmax(0,1fr);gap:9px;align-items:start;cursor:pointer}.cue:not(:last-child)::after{content:"";position:absolute;bottom:0;left:18px;right:18px;border-bottom:1px solid #eceee7}.cue.active{background:var(--pale)}.cue.active::before{content:"";position:absolute;left:0;top:13px;bottom:13px;width:3px;background:#ed6a2b;border-radius:0 4px 4px 0}.cue.active::after{border-color:transparent}.cue-time{display:flex;flex-direction:column;align-items:flex-start;gap:6px;color:#82867c;font:500 12px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;padding-top:1px}.cue.active .cue-time{color:#b84c18}.cue-time .ic{width:16px;height:16px}.cue:not(.active) .cue-time .ic{display:none}.cue-copy{min-width:0}.cue p{margin:0;overflow-wrap:anywhere}.cue .en{font-size:16px;line-height:1.38;letter-spacing:-.016em;font-weight:550}.cue .zh{margin-top:5px;color:#6e7267;font-size:13px;line-height:1.55}.cue.active .en{font-weight:650}.transcript-foot{padding:10px 17px;border-top:1px solid var(--line);background:#fff;flex:none;min-height:46px}.transcript-foot button{display:inline-flex;gap:7px;align-items:center;font-size:12px;color:#53584d}.transcript-foot .ic{width:15px;height:15px}.toggle{width:23px;height:14px;background:#adafa7;border-radius:20px;position:relative;margin-left:1px}.toggle::before{content:"";position:absolute;width:10px;height:10px;left:2px;top:2px;background:white;border-radius:50%;transition:transform .15s}.transcript-foot button[aria-pressed=true] .toggle{background:#e76b30}.transcript-foot button[aria-pressed=true] .toggle::before{transform:translateX(9px)}.transcript-progress{font-size:12px;color:#757a6f}
.word-sheet{position:fixed;inset:auto;z-index:55;margin:0;padding:13px 16px 16px;background:#fff;color:var(--ink);border:1px solid #d9dbd4;box-shadow:0 8px 32px #20231f20;border-radius:12px;width:260px;max-width:calc(100vw - 22px)}.word-sheet:not(.open){display:none}.word-title{min-height:23px}.select-label{color:#6a6d64;font-size:12px}.word-title button{width:28px;height:28px}.word-sheet>strong{display:block;line-height:1.35;overflow-wrap:anywhere;font-size:21px}.word-sheet>p{font-size:12px;margin:7px 0 12px;color:var(--muted)}.word-sheet>.dark-btn{width:100%}
dialog{width:min(440px,calc(100% - 30px));max-height:90dvh;overflow:auto;border:1px solid #dedfd8;border-radius:17px;padding:24px;color:var(--ink);box-shadow:0 14px 80px #2223}.modal-icon{display:grid;place-items:center;background:var(--pale);color:var(--accent);width:42px;height:42px;border-radius:10px}.modal-icon .ic{width:22px;height:22px}dialog::backdrop{background:#19201c70;backdrop-filter:blur(3px)}dialog h2{font-size:27px;letter-spacing:-.045em;margin:15px 0 6px}.dialog-intro{margin:0 0 18px;font-size:14px;color:var(--muted)}.drop,.subfile{position:relative;cursor:pointer;display:flex;border-radius:9px}.drop{width:100%;border:1.5px dashed #c4c8bb;background:#fafbf7;align-items:center;flex-direction:column;gap:5px;padding:20px}.drop.drag{border-color:var(--accent);background:var(--pale)}.drop>.ic{height:27px;width:27px;color:var(--accent);margin-bottom:3px}.drop strong{max-width:100%;overflow-wrap:anywhere;font-size:15px}.drop small,.subfile small{font-size:12px;color:var(--muted)}.drop input,.subfile input{opacity:0;position:absolute;inset:0;width:100%;height:100%;cursor:pointer}.drop:focus-within,.subfile:focus-within{outline:2px solid var(--accent)}.subfile{border:1px solid var(--line);gap:10px;align-items:center;margin:10px 0;padding:12px}.subfile span{display:flex;flex:1;flex-direction:column;min-width:0}.subfile strong{font-size:14px;font-weight:600;overflow-wrap:anywhere}.subfile>.ic:last-of-type{color:var(--muted);width:17px}#generate-info,#import-status{font-size:13px;color:#686c61}#generate-info{margin:13px 0}#import-status.error{color:#a83e24}#import-progress{display:block;width:100%;height:7px;accent-color:#df682b;margin:9px 0}.import-actions{display:grid;gap:6px;margin-top:17px}.import-actions button{min-height:44px}#notice{position:fixed;left:50%;bottom:26px;transform:translate(-50%,8px);z-index:100;background:#262a24;color:#fff;border-radius:8px;padding:9px 17px;font-size:13px;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s;max-width:calc(100vw - 28px);width:max-content}#notice.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:1610px){.page,.header-inner{max-width:1540px}}
@media(max-width:1050px) and (min-width:761px){.workgrid{grid-template-columns:minmax(0,1.45fr) minmax(290px,1fr);gap:15px}.header-inner{gap:28px}.practice{padding:16px}.cue{padding:14px 12px;grid-template-columns:37px 1fr;gap:6px}.transcript-head{padding:14px}.cue .en{font-size:15px}.play-sentence{padding:8px 10px}.control-divider{margin:0 1px}.practice-toolbar .quiet-icon{width:30px}.practice-controls{gap:5px}}
@media(max-width:760px){:root{--pad:16px}.header-inner{padding:0 17px;gap:10px}.import-top{min-height:40px;padding:7px 12px;font-size:13px}.import-top .ic{width:17px;height:17px}.nav{position:fixed;bottom:0;left:0;right:0;z-index:50;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(3,1fr);gap:0;padding:4px 6px max(4px,env(safe-area-inset-bottom))}.nav button{flex-direction:column;gap:2px;padding:6px 3px;font-size:11px;line-height:16px;border-radius:8px;font-weight:600;min-height:48px}.nav button .ic{width:20px;height:20px}.nav button.active{background:transparent;color:#c4521f}.page{padding:max(6px,env(safe-area-inset-top)) var(--pad) calc(83px + env(safe-area-inset-bottom))}.crumb{font-size:12px;gap:6px;line-height:18px}.page h1{font-size:clamp(30px,7.6vw,43px);margin:7px 0;letter-spacing:-.055em;line-height:1.12}.metadata{margin-bottom:13px;font-size:12px;gap:10px;line-height:19px}.metadata .ic{width:14px;height:14px}.workgrid{display:flex;flex-direction:column;gap:14px}.player{border-radius:11px;aspect-ratio:16/9}.video-label{font-size:10px;top:10px;left:10px;padding:3px 6px;gap:4px}.video-label .ic{width:12px;height:12px}.video-sub{bottom:54px;left:13px;right:13px}.video-sub [lang=en]{font-size:clamp(15px,3.9vw,21px);line-height:1.21}.video-sub #overlay-zh{font-size:12px;line-height:1.35;margin-top:3px}.transport{left:9px;right:9px;bottom:1px}.transport input[type=range]{height:16px}.transport-row{height:32px;gap:1px}.transport-row>button{height:32px;min-width:33px}.transport-row .ic{width:17px;height:17px}.clock{font-size:10px;margin-left:3px}.practice{margin-top:12px;border-radius:11px;padding:14px}.section-heading h2{font-size:16px}.section-heading{gap:7px}.section-heading .ic{width:18px;height:18px}.sentence-en{font-size:19px;line-height:1.35}.practice-toolbar{margin:10px 0 12px;padding-bottom:10px}.practice-copy{block-size:9.75rem}.practice-copy #practice-zh{font-size:13px}.practice-controls{gap:5px;flex:1}.practice-controls>.outline,.practice-controls>.dark-btn{min-height:44px}.practice-controls .icon-button{width:38px}.play-sentence{padding:6px 12px}.control-divider{margin:0 2px;height:19px}.loop{padding:6px 10px;font-size:13px}.practice-toolbar .quiet-icon{width:31px;min-height:44px}.selection-hint{font-size:11px;margin-top:7px}.transcript{min-height:auto;border-radius:11px;margin:0}.transcript-head{padding:12px 15px}.mode-select select{height:36px}.mode-select i{top:10px}.transcript-list{flex:none;max-height:54dvh;min-height:170px;scrollbar-width:thin}.cue{padding:15px 13px;grid-template-columns:39px minmax(0,1fr);gap:8px}.cue .en{font-size:16px}.cue .zh{font-size:13px}.cue-time{line-height:1.75;min-height:42px}.transcript-foot{padding:7px 13px}.transcript-foot button{min-height:32px}.word-sheet{position:fixed!important;top:auto!important;left:10px!important;right:10px!important;bottom:calc(62px + env(safe-area-inset-bottom))!important;width:auto;max-width:none;padding:9px 14px 12px}.word-sheet>strong{font-size:19px}.word-sheet>p{margin:3px 0 7px}.word-sheet>.dark-btn{min-height:44px}#notice{bottom:calc(72px + env(safe-area-inset-bottom))}dialog{padding:19px;max-height:87dvh}}
@media(max-width:390px){:root{--pad:12px}.practice{padding:13px 11px}.practice-controls{gap:4px}.practice-controls .icon-button{width:33px}.play-sentence{padding:7px 8px}.loop{padding:6px 7px}.practice-toolbar .quiet-icon{width:27px}.control-divider{margin:0 1px}}
@media(max-width:345px){.play-sentence span{display:none}.play-sentence{width:42px}}
@media(orientation:landscape) and (max-height:520px){.nav{position:static;display:flex;border:0;padding:0}.nav button{flex-direction:row;gap:6px}.nav button.active{background:var(--pale)}.header-inner{justify-content:space-between}.header-inner .import-top{margin:0}.word-sheet{max-height:88dvh;overflow:auto}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
#studio[data-language=en] .cue-copy .zh,#studio[data-language=en] #practice-zh,#studio[data-language=zh] .cue-copy .en,#studio[data-language=zh] #practice-en{display:none}
#studio[data-language=zh] .cue-copy .zh{margin:0;color:var(--ink);font-size:15px}#studio[data-language=zh] #practice-zh{color:var(--ink);font-weight:600;font-size:18px}
@media(max-width:760px){.word-sheet[data-dock=top]{top:max(8px,env(safe-area-inset-top))!important;bottom:auto!important}}
#cue-length{color:#787d72;font:500 12px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;margin-right:10px;border-right:1px solid var(--line);padding-right:10px}
#title {
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}
.metadata{flex-wrap:wrap;row-gap:4px;margin-top:5px}
#source-credit{color:inherit;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#afb2a8}
#source-credit:hover{color:var(--accent)}
@media(max-width:760px),(hover:none) and (pointer:coarse) and (orientation:landscape) and (max-height:600px){
  .topbar,.header-inner{height:auto}
  .topbar{border-bottom:0}
  .brand,[data-desktop-import]{display:none!important}
}
.player.embedded-captions{display:flex;flex-direction:column;aspect-ratio:auto;background:#1d211e}
.player.embedded-captions video{flex:none;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;background:#101310}
.player.embedded-captions .player-shade,.player.embedded-captions .video-sub,.player.embedded-captions #caption-btn{display:none}
.player.embedded-captions .transport{position:static;flex:none;padding:0 14px 4px}
.player.embedded-captions .transport input[type=range]{height:14px}
.player.embedded-captions .transport-row{height:32px}
.player.embedded-captions:is(:fullscreen,.full-fallback){height:100dvh;width:100%;background:#101310}
.player.embedded-captions:is(:fullscreen,.full-fallback) video{flex:1 1 0;min-height:0;height:0;aspect-ratio:auto}
.player.embedded-captions:is(:fullscreen,.full-fallback) .transport{background:#1d211e;padding-bottom:max(4px,env(safe-area-inset-bottom))}
@media(max-width:760px){.player.embedded-captions .transport{padding-inline:9px}}

.speed-control {
  flex: none;
  display: flex;
  align-items: stretch;
  height: 32px;
  background: #ffffff12;
  border-radius: 5px;
}
#speed {
  width: 44px;
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  border-radius: 5px 0 0 5px;
}
.speed-picker {
  display: grid;
  place-items: center;
  position: relative;
  width: 32px;
  border-left: 1px solid #ffffff29;
  border-radius: 0 5px 5px 0;
}
.speed-picker .ic { width: 15px; height: 15px; }
.speed-picker select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; }
.speed-picker:focus-within { outline: 2px solid #ffb082; outline-offset: -2px; }
@media (hover: hover) {
  #speed:hover, .speed-picker:hover { background: #ffffff20; }
}

.usage-note {
  display: block;
  margin: 0 0 3px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}
