:root{color-scheme:light;--bg:#f2f2f2;--panel:#fff;--text:#202020;--muted:#8d8d8d;--border:#e5e5e5;--orange:#f87908;--warm:#fff5c1;--word:#ed7414;--word-bg:#fff0e1;--phrase:#27a54d;--phrase-bg:#eaf5db;--shadow:0 1px 3px #00000014;font-family:Arial,"Microsoft YaHei",sans-serif;font-size:16px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}body.dark{color-scheme:dark;--bg:#171819;--panel:#222425;--text:#ebebeb;--muted:#a0a1a3;--border:#333537;--warm:#423a1c;--word-bg:#3b2e22;--phrase-bg:#253322;--shadow:0 1px 3px #0004}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer}button{background:none;border:0}button:disabled{opacity:.35;cursor:default}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--orange);outline-offset:4px}header{height:100px;padding:24px;display:flex;align-items:center;justify-content:space-between;gap:20px}svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.brand{display:flex;align-items:center;gap:10px;font-size:23px;font-weight:700;letter-spacing:-.7px;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:auto;height:44px;background:transparent;border-radius:0;color:inherit;overflow:visible}.brand-mark img{display:block;height:44px;width:auto;object-fit:contain}.header-center{display:flex;align-items:center;justify-content:center;gap:14px;min-width:0;font-weight:600}.header-title{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:560px;font-size:16px}.header-actions{display:flex;align-items:center;gap:14px}.icon-button{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:50%;color:var(--muted)}.icon-button:hover{background:var(--border);color:var(--text)}.avatar{display:grid;place-items:center;width:48px;height:48px;border:4px solid var(--panel);border-radius:50%;background:#262626;color:white;font-weight:600}.level{font-weight:400;background:#dcf3ed;border:1px solid #bee8dc;color:#27ad92;padding:5px 10px;border-radius:20px;font-size:13px;white-space:nowrap}.duration-label{font-size:14px;font-weight:400;color:var(--muted)}.study{max-width:1536px;margin:27px auto 0;padding:0 24px;display:grid;grid-template-columns:1.28fr 1fr;gap:24px}.study.wide{max-width:none}.video-shell{position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:32px;background:#171717}.video-shell video{width:100%;height:100%;object-fit:contain;display:block}.video-controls{position:absolute;bottom:0;left:0;right:0;padding:34px 20px 14px;background:linear-gradient(transparent,#000b);color:#fff}.video-controls input[type=range]{accent-color:#fff;cursor:pointer}.seek{width:100%;height:3px;display:block;margin:0 0 17px}.control-row{display:flex;align-items:center;gap:16px}.control-row button{padding:0;display:grid;place-items:center}.time-label{margin-left:auto;font-size:14px;font-variant-numeric:tabular-nums}.volume{width:65px;height:3px;opacity:0;transition:.2s}.control-row:hover .volume,.volume:focus{opacity:1}.tools{display:flex;align-items:center;gap:8px;margin:20px 0}.tools .spacer{flex:1}.pill{min-height:43px;display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid var(--border);border-radius:28px;padding:0 17px;font-size:14px;color:#737373}.dark .pill{color:#b9b9b9}.pill:hover,.pill.selected{background:var(--panel);box-shadow:var(--shadow)}.pill.selected{color:var(--orange);border-color:#f8c28f}.pill.round{width:43px;padding:0}.description{padding:23px;border-radius:25px;background:var(--panel);font-size:16px;line-height:1.8}.description-top{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-bottom:10px}.tag{background:var(--bg);border-radius:5px;padding:2px 7px}.subtitle-side{min-width:0}.subtitle-toolbar{display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:20px;height:42px}.segmented{display:inline-flex;padding:4px;border-radius:30px;background:#e9e9e9;box-shadow:inset 0 1px 5px #00000007}.dark .segmented{background:#26282a}.segmented button{border-radius:24px;padding:7px 16px;color:var(--muted);font-size:16px;white-space:nowrap}.segmented button.active{background:var(--panel);color:var(--text);box-shadow:0 2px 4px #0002}.subtitle-list{height:calc(100vh - 221px);overflow:auto;scrollbar-width:thin;scrollbar-color:var(--border) transparent;padding:0 9px 20px 0;scroll-behavior:smooth}.subtitle-row{padding:20px;border:1.5px solid transparent;border-radius:27px;cursor:pointer;transition:background .15s;margin-bottom:8px}.subtitle-row:hover{background:var(--panel)}.subtitle-row.active{background:var(--warm);box-shadow:var(--shadow)}.subtitle-meta{display:flex;justify-content:space-between;margin-bottom:12px;font:12px/1.4 monospace;color:#a4a4a4}.active .subtitle-meta{color:#c98848}.sentence{font-size:18px;line-height:1.6;margin:0;font-weight:500}.translation{margin:7px 0 0;font-size:15px;line-height:1.65;color:#858585;font-family:"Microsoft YaHei",sans-serif}.vocab{padding:2px 3px;border-radius:5px;display:inline;background:var(--word-bg);color:var(--word);text-decoration:underline;text-decoration-color:#ffc489;text-decoration-thickness:3px;text-underline-offset:4px;cursor:pointer}.vocab.phrase{color:var(--phrase);background:var(--phrase-bg);text-decoration-color:#a5e987}.vocab:hover{filter:brightness(.88)}.cloze .vocab:not(.revealed){color:transparent;text-decoration-color:var(--muted);background:var(--border);user-select:none}.blurred .sentence,.blurred .translation{filter:blur(5px);transition:filter .15s}.blurred .subtitle-row:hover .sentence,.blurred .subtitle-row:hover .translation{filter:none}.theme-switch{position:fixed;bottom:25px;left:25px;display:flex;flex-direction:column;gap:4px;background:var(--panel);padding:5px;border-radius:28px;z-index:12}.theme-switch button{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;color:var(--muted)}.theme-switch button.active{background:var(--bg);color:var(--text)}dialog{padding:28px;border:1px solid var(--border);border-radius:24px;max-width:min(520px,calc(100vw - 32px));width:440px;background:var(--panel);color:var(--text);box-shadow:0 22px 90px #0003}dialog::backdrop{background:#0004;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}h2,h3,p{margin-top:0}.dialog-head h2{margin:0;font-size:23px}.setting{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:18px 0;border-bottom:1px solid var(--border)}.setting:last-child{border:0}.setting p{color:var(--muted);line-height:1.6;font-size:14px;margin:6px 0 0}.setting input{appearance:none;width:43px;height:25px;border-radius:25px;background:#ccc;position:relative;cursor:pointer;flex-shrink:0}.setting input:before{content:'';position:absolute;left:3px;top:3px;width:19px;height:19px;background:white;border-radius:50%;transition:transform .15s}.setting input:checked{background:var(--orange)}.setting input:checked:before{transform:translateX(18px)}#toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);padding:13px 24px;background:var(--text);color:var(--bg);border-radius:24px;z-index:100;opacity:0;pointer-events:none;transition:.2s}#toast.visible{opacity:1}.muted{color:var(--muted)}.empty{padding:80px 20px;text-align:center;color:var(--muted)}.empty h2{font-size:20px;color:var(--text)}.error-message{padding:20px;background:var(--panel);border-radius:20px;line-height:1.7}.primary{background:var(--orange);color:white;border:0;border-radius:24px;padding:11px 23px}.nav{display:flex;align-items:center;gap:30px;font-size:15px}.nav a{padding:10px 0;color:var(--muted)}.nav a.active{color:var(--text);font-weight:600}.catalogue{max-width:1300px;margin:32px auto 0;padding:0 30px}.catalogue h1{font-size:27px;margin:0 0 25px}.searchbox{position:relative;margin-bottom:20px}.searchbox input{width:100%;background:var(--panel);border:1px solid var(--border);color:var(--text);border-radius:16px;padding:15px 48px;font-size:15px}.searchbox svg{position:absolute;left:17px;top:16px;color:var(--muted)}.filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:26px}.filters button{border-radius:22px;padding:10px 18px;font-size:14px;color:var(--muted);border:1px solid transparent}.filters button.active{background:var(--text);color:var(--bg)}.filters select{margin-left:auto;border:1px solid var(--border);background:transparent;color:var(--muted);border-radius:24px;padding:9px 15px;font-size:14px}.video-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 24px}.video-card{min-width:0}.card-image{position:relative;aspect-ratio:16/9;border-radius:22px;overflow:hidden;background:var(--border)}.card-image img{width:100%;height:100%;object-fit:cover;transition:transform .2s}.video-card:hover img{transform:scale(1.025)}.card-image .level{position:absolute;left:12px;top:12px}.card-time{position:absolute;right:12px;bottom:12px;color:white;background:#0009;font-size:12px;padding:4px 7px;border-radius:6px}.card-fav{position:absolute;right:10px;top:10px;width:33px;height:33px;display:grid;place-items:center;border-radius:50%;background:#0006;color:white}.card-fav.saved{color:#fb9141}.video-card h3{font-size:16px;line-height:1.5;margin:13px 2px 9px;font-weight:600}.card-meta{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px}.card-meta time{margin-left:auto}.pagination{display:flex;justify-content:center;gap:14px;margin:35px 0}.pagination button,.pagination select{padding:9px 14px;border-radius:24px;border:1px solid var(--border);background:transparent;color:var(--muted);font-size:14px}.footer{text-align:center;color:var(--muted);font-size:12px;margin:35px 0 22px}.word-current{background:#ffd77e;border-radius:3px;color:#222}.video-error{position:absolute;inset:0;display:grid;place-content:center;text-align:center;background:#202020e8;color:white;padding:30px}.video-error button{margin:15px auto 0}.library{display:grid;grid-template-columns:290px 1fr;height:calc(100vh - 120px);gap:24px;padding:20px 30px}.library-sidebar{overflow:auto;padding:18px;background:var(--panel);border-radius:22px;scrollbar-width:thin}.library-sidebar h2{font-size:19px;margin-bottom:8px}.library-sidebar .searchbox{margin:20px 0}.library-sidebar .searchbox input{padding:12px;font-size:14px;background:var(--bg)}.lesson-option{width:100%;text-align:left;font-size:14px;line-height:1.6;padding:12px;border-radius:13px;margin-bottom:4px;display:flex;gap:8px}.lesson-option.active{background:var(--warm)}.lesson-option span{display:block;font-size:12px;color:var(--muted);white-space:nowrap;margin-left:auto}.library-content{overflow:auto;padding:16px 8px;scrollbar-width:thin}.library-title{display:flex;align-items:center;gap:12px;margin-bottom:24px}.library-title h1{font-size:23px;margin:0;flex:1}.word-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.word-card{padding:22px;border:1px solid var(--border);border-radius:22px;background:var(--panel);font-size:14px;line-height:1.65}.word-card h3{margin:0;font-size:22px}.word-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.word-card .phonetic{color:var(--muted);margin:9px 0}.word-card .meaning{margin:14px 0 7px}.word-card .example{margin:7px 0 0}.word-card .example-zh{color:var(--muted);font-size:13px}.word-card .source-link{display:inline-block;margin-top:12px;color:var(--orange);font-size:12px}.badge{display:inline-block;font-size:12px;padding:3px 8px;background:var(--bg);border-radius:7px;margin-right:5px}.vocab-detail{font-size:16px;line-height:1.7}.vocab-detail .phonetic{color:var(--muted);display:flex;align-items:center;gap:10px}.vocab-detail .definition{margin:15px 0}.vocab-detail .example{padding:17px;border-radius:15px;background:var(--bg);margin-top:10px}.speed-list{display:flex;flex-direction:column;gap:5px}.speed-list button{padding:11px;border-radius:12px}.speed-list button:hover,.speed-list button.active{background:var(--warm)}
@media(min-width:1600px){.study{margin-top:44px}.subtitle-list{height:calc(100vh - 239px)}}@media(max-width:1100px){header{padding:18px;height:85px}.brand{font-size:20px}.header-title{max-width:300px}.nav{gap:15px}.study{padding:0 18px;gap:18px;grid-template-columns:1.15fr 1fr}.sentence{font-size:16px}.subtitle-row{padding:16px}.tools{gap:5px}.pill{padding:0 12px}.word-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.library{grid-template-columns:245px 1fr;padding:15px}.catalogue{padding:0 24px}.video-grid{gap:24px 17px}.header-center .duration-label{display:none}}
@media(max-width:760px){header{height:auto;min-height:76px;flex-wrap:wrap;padding:16px;gap:12px}.brand{font-size:20px}.brand-mark{width:auto;height:36px;border-radius:0}.brand-mark img{height:36px;width:auto}.header-center{order:3;width:100%;justify-content:flex-start;padding-top:5px}.header-title{max-width:none;font-size:14px}.header-actions{gap:5px}.avatar{width:38px;height:38px}.nav{order:3;width:100%;justify-content:space-between;gap:9px;font-size:14px}.study{display:flex;flex-direction:column;margin:10px 0 0;padding:0 14px;gap:16px}.video-shell{border-radius:22px}.tools{margin:13px 0}.pill{min-height:38px;font-size:12px;padding:0 11px;gap:5px}.pill.round{width:38px}.description{display:none}.subtitle-toolbar{margin:0 0 10px}.subtitle-list{height:55vh;padding-right:0}.subtitle-row{padding:17px;margin-bottom:5px}.sentence{font-size:17px}.translation{font-size:14px}.theme-switch{left:14px;bottom:15px;transform:scale(.88);transform-origin:bottom left}.catalogue{margin:20px 0 0;padding:0 16px}.catalogue h1{font-size:24px}.video-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}.card-image{border-radius:15px}.video-card h3{font-size:14px;margin-top:10px}.card-meta{flex-wrap:wrap}.card-meta time{margin-left:0}.card-image .level{font-size:11px;padding:3px 7px;left:8px;top:8px}.card-fav{right:6px;top:6px;width:29px;height:29px}.filters{gap:3px}.filters button{font-size:13px;padding:8px 11px}.filters select{margin-top:8px}.library{display:flex;flex-direction:column;height:auto;padding:14px;gap:14px}.library-sidebar{max-height:230px;padding:15px}.library-sidebar .searchbox{margin:10px 0}.library-content{overflow:visible}.library-title h1{font-size:19px}.word-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.word-card{padding:16px}.word-card h3{font-size:19px}.subtitle-side{padding-bottom:45px}.footer{padding-bottom:35px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.auth-form{display:grid;gap:14px;min-width:min(360px,78vw)}
.auth-form label{display:grid;gap:6px;font-size:14px;color:var(--muted)}
.auth-form input{width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);font:inherit}
.auth-form .error{min-height:18px;margin:0;color:#c53939;font-size:13px}
.text-button{border:0;background:none;color:var(--accent);cursor:pointer;padding:4px;font:inherit}
.vocab-actions{display:flex;align-items:center}.vocab-badges{margin:8px 0 14px}.vocab-detail .phonetic{justify-content:space-between}.vocab-detail .definition{white-space:pre-line}.vocab-detail .meaning{font-weight:600}.english-definition{color:var(--muted);font-size:14px;white-space:pre-line}.dictionary-source{color:var(--muted);font-size:12px;margin-top:12px}.vocab-detail .example{margin-top:14px}.vocab-detail .example p{margin:7px 0 0}
/* Responsive catalogue layout updates */
.brand-mobile-page-title{display:none}
@media(max-width:760px){
  .brand{position:relative}
  .brand-mobile-page-title{display:block;position:absolute;left:70px;top:-5px;color:var(--muted);font-size:11px;font-weight:500;line-height:1;white-space:nowrap}
  .catalogue{display:flex;flex-direction:column}
  .catalogue .searchbox{order:1;margin-bottom:10px}
  .catalogue>h1{order:2;margin:0 0 10px;font-size:21px;line-height:1.25}
  .catalogue .filters{order:3;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;margin:0 -2px 17px;padding:2px 2px 7px;scrollbar-width:none;align-items:center}
  .catalogue .filters::-webkit-scrollbar{display:none}
  .catalogue .filters button{flex:0 0 auto;white-space:nowrap}
  .catalogue .filters select{flex:0 0 auto;margin:0;white-space:nowrap}
  .catalogue .video-grid{order:4}
  .catalogue .pagination{order:5}
  .catalogue .footer{order:6}
  .card-fav{top:8px;right:8px;width:32px;height:32px}
  .card-fav svg{width:18px;height:18px}
  .card-meta{flex-wrap:nowrap;min-width:0}
  .card-meta span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .card-meta time{flex:0 0 auto;margin-left:auto;font-size:11px;white-space:nowrap}
}
/* Study player refinements */
header:has(+main .study) .header-center{display:none}
.video-shell{isolation:isolate}
.video-back{position:absolute;z-index:3;top:14px;left:14px;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#0009;color:#fff;opacity:0;pointer-events:none;transition:opacity .18s}
.video-back svg{width:20px;height:20px}
.video-shell.show-back .video-back{opacity:1;pointer-events:auto}
.video-controls{z-index:2}
.video-controls .seek{margin:0 0 12px;height:4px}
.video-controls .control-row{min-height:24px}
.subtitle-row{min-height:0}
.subtitle-row .sentence,.subtitle-row .translation{overflow-wrap:anywhere;word-break:break-word}
.subtitle-toolbar{flex:0 0 auto}
.subtitle-toolbar{position:sticky;bottom:0;z-index:4;background:var(--bg);padding:6px 0;border-top:1px solid transparent}
.subtitle-side{display:flex;flex-direction:column;min-height:0}
.subtitle-list{flex:1;min-height:0;overscroll-behavior:contain;touch-action:pan-y}
@media(max-width:760px){
  .study{gap:10px}
  .video-shell{border-radius:18px}
  .video-back{top:10px;left:10px;width:34px;height:34px}
  .video-controls{padding:28px 12px 10px}
  .video-controls .seek{margin-bottom:9px;height:4px}
  .tools{margin:8px 0 2px;gap:5px;flex-wrap:nowrap}
  .tools .pill{min-height:35px;padding:0 8px;font-size:11px}
  .tools .pill.round{width:35px}
  .subtitle-list{height:calc(100vh - 285px);min-height:300px}
  .subtitle-row{padding:14px 15px;min-height:0;border-radius:18px}
  .subtitle-row.active{min-height:0}
  .sentence{font-size:18px;line-height:1.65}
  .translation{font-size:15px;line-height:1.7}
  .subtitle-toolbar{order:-1;height:36px;margin:0 0 5px;justify-content:center;top:0;bottom:auto}
  .subtitle-toolbar{padding:4px 0;background:var(--bg)}
  .subtitle-toolbar .segmented{padding:2px}
  .subtitle-toolbar .segmented button{padding:5px 10px;font-size:12px}
  .subtitle-toolbar .icon-button{width:30px;height:30px}
}
@media(max-width:760px){
  .study{padding-left:0;padding-right:0}
  .video-side{width:100%}
  .video-shell{width:100%;border-radius:0}
  .tools{padding-left:14px;padding-right:14px}
  .subtitle-side{width:100%}
  .subtitle-list{padding-left:8px;padding-right:8px}
}
@media(min-width:761px){.subtitle-list{height:calc(100vh - 245px)}.subtitle-toolbar{margin-top:8px}}
/* Keep the study page in the viewport; only the transcript itself scrolls. */
@media(min-width:761px){
  body:has(.study){overflow:hidden}
  .study{height:calc(100vh - 127px);height:calc(100dvh - 127px);overflow:hidden;align-items:start}
  .subtitle-side{height:100%;max-height:100%;overflow:hidden}
  .subtitle-list{height:auto;max-height:none;overflow-x:hidden;overflow-y:auto;padding-bottom:12px}
}
@media(max-width:760px){
  body:has(.study){overflow:hidden}
  .study{height:calc(100vh - 86px);height:calc(100dvh - 86px);overflow:hidden}
  .video-side{flex:0 0 auto;min-height:0}
  .subtitle-side{flex:1 1 auto;height:auto;min-height:0;overflow:hidden;padding-bottom:4px}
  .subtitle-list{flex:1 1 auto;height:auto;min-height:0;max-height:none;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;padding-bottom:10px}
}
/* The page may scroll as far as the video-side content; the transcript must not
   increase the document height and continues to scroll inside its own panel. */
@media(min-width:761px){
  body:has(.study){overflow-x:hidden;overflow-y:auto}
  .study{height:auto;min-height:calc(100vh - 127px);min-height:calc(100dvh - 127px);overflow:visible}
  .subtitle-side{position:sticky;top:18px;height:calc(100vh - 145px);height:calc(100dvh - 145px);max-height:calc(100vh - 145px);max-height:calc(100dvh - 145px)}
}
@media(max-width:760px){
  body:has(.study){overflow-x:hidden;overflow-y:auto}
  .study{height:auto;min-height:0;overflow:visible}
  .subtitle-side{flex:0 0 auto;height:55vh;height:55dvh;min-height:300px;max-height:520px}
}
/* iOS Safari gives buttons a default horizontal padding (about 1em per side), which
   leaves small round icon buttons with no content width and pushes the icon right. */
.theme-switch button,.card-fav,.icon-button,.video-back,.avatar,.pill.round,.tools .pill.round,.library-video-favorite,.library-word-action,.library-pronunciation button,.settings-close{padding:0}
/* Study page: no site header, the video sits at the very top. */
body.study-page>header{display:none}
body.study-page .study{margin-top:24px}
@media(min-width:761px){body.study-page .study{min-height:calc(100vh - 48px);min-height:calc(100dvh - 48px)}body.study-page .subtitle-side{top:24px;height:calc(100vh - 48px);height:calc(100dvh - 48px);max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px)}}
@media(max-width:760px){body.study-page .study{margin-top:0}body.study-page .subtitle-side{height:calc(100vh - 56.25vw - 55px);height:calc(100dvh - 56.25vw - 55px);max-height:none}}
/* Auto-hiding video controls: shown while paused or after a tap/mouse move. */
.video-controls,.video-back{transition:opacity .25s}
.video-shell.controls-hidden .video-controls{opacity:0;pointer-events:none}
.video-shell.controls-hidden{cursor:none}
.video-shell:not(.controls-hidden) .video-back{opacity:1;pointer-events:auto}
.video-shell.controls-hidden .video-back{opacity:0;pointer-events:none}
.control-row .control-speed{min-width:34px;height:24px;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}
.control-row #fullscreen svg{width:19px;height:19px}
@media(hover:none){.control-row .volume{display:none}}
@media(max-width:760px){.control-row{gap:12px}.control-row .time-label{font-size:12px}.control-row .control-speed{font-size:13px}}
/* Subtitle auto-follow is animated in player.js; CSS smooth scrolling would slow it down. */
.subtitle-list{scroll-behavior:auto}
/* Study page: the theme toggle lives in the subtitle toolbar (left of the mode tabs, mirroring the
   settings button), so the floating switch no longer covers the transcript. */
body.study-page .theme-switch{display:none}
.theme-icon-moon,.theme-icon-sun{display:grid;place-items:center}
body:not(.dark) .theme-icon-sun,body.dark .theme-icon-moon{display:none}
/* Tools row: loop on the left, previous/next centred, favourite on the right. */
.tools{display:grid;grid-template-columns:1fr auto 1fr}
.tools>#loop{justify-self:start}
.tools>#fav-video{justify-self:end}
.tools-center{display:flex;align-items:center;gap:8px}
@media(max-width:760px){.tools-center{gap:5px}}
