:root{color-scheme:dark;--yellow:#f3d14b;--bg:#101010;--muted:#aaa;--line:#ffffff1c;font-family:Arial,"Segoe UI",sans-serif;font-size:16px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:#ddd;height:100dvh;overflow:hidden}button,select,input{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{border:0;background:none;color:inherit;cursor:pointer}button:hover,a:hover{color:var(--yellow)}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--yellow);outline-offset:3px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.topbar{height:52px;display:flex;align-items:center;gap:14px;padding:0 16px;background:#080808;position:relative;z-index:10;border-bottom:1px solid var(--line)}.logo{font-family:"Comic Sans MS",cursive;font-size:27px;white-space:nowrap;letter-spacing:-1.5px;color:#e5dcde}.logo>span:first-child{color:#e59d9d}.logo-tail{font-size:21px;color:#8e8aa2}.topbar select{background:#383838;border:0;border-radius:2px;color:#eee;padding:6px 9px;font-size:14px;max-width:205px}.topbar nav{display:flex;gap:10px;white-space:nowrap}.topbar nav button{font-size:14px;color:#a2a2a2;padding:8px 5px}.topbar nav .selected{color:var(--yellow)}.header-end{display:flex;gap:12px;align-items:center;margin-left:auto}.local-badge{border:1px solid #555;border-radius:20px;padding:5px 9px;color:#b5b5b5;font-size:12px;letter-spacing:1px}.header-end button{border:1px solid #444;border-radius:50%;width:28px;height:28px}.stage{height:calc(100dvh - 114px);position:relative;overflow:hidden;background:#000}.stage>#player{width:100%;height:100%;object-fit:cover}.shade{position:absolute;inset:0;background:linear-gradient(0deg,#000b,transparent 26%,#0002 70%,#0005);pointer-events:none}.suggestions,.study-panel{position:absolute;top:10px;bottom:88px;overflow:auto;scrollbar-width:thin;scrollbar-color:#ffffff22 transparent;transition:opacity .25s;background:#20202040}.suggestions{left:8px;width:34%;padding:16px 20px}.study-panel{right:8px;width:36%;padding:0 12px 12px}.panel-caption{font-size:12px;letter-spacing:1.5px;color:#ccc;margin-bottom:12px}.phrase-row{padding:16px 0;border-bottom:1px solid #ffffff0b;position:relative}.phrase-row button.phrase{padding:0;text-align:left;font-size:16px;font-weight:600;line-height:1.5}.phrase-row .row-translation{font-size:13px;color:#bebebe;line-height:1.5;padding-top:7px}.phrase-row .row-meta{font-size:12px;color:#999;padding-top:5px}.phrase-row .star{float:right;color:#bbb;padding:0 0 4px 8px}.phrase-row .active,.phrase-row .saved{color:var(--yellow)}.tabs{display:flex;flex-wrap:wrap;gap:3px;margin-bottom:16px;border-bottom:1px solid #ffffff15;position:sticky;top:0;background:#202020c0;padding:8px 0;z-index:1;backdrop-filter:blur(10px)}.tabs button{font-size:13px;padding:9px 7px;border-radius:5px;color:#bbb}.tabs .selected{background:#ffffff16;color:var(--yellow)}.play-controls{position:absolute;left:50%;top:47%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:22px;color:#fffc;text-shadow:0 2px 4px #000}.play-controls>button{font-size:50px;padding:0}.play-controls .play-toggle{border:6px solid #ddd9;border-radius:100%;font-size:44px;width:105px;height:105px;display:flex;align-items:center;justify-content:center;line-height:1;padding-left:5px}.small-controls{position:absolute;top:124px;width:240px;left:50%;transform:translateX(-50%);display:flex;justify-content:center;gap:18px}.small-controls button{font-size:14px;text-shadow:0 1px 3px #000;padding:7px 4px}.subtitle-block{position:absolute;bottom:29px;left:50%;transform:translateX(-50%);text-align:center;max-width:85%;width:max-content;text-shadow:0 2px 4px #000}.subtitle-block>div:first-child{background:#17171798;padding:7px 13px;display:flex;align-items:center;justify-content:center;gap:10px}.subtitle{font-size:28px;color:var(--yellow);line-height:1.25}.subtitle-block button{font-size:16px;color:#bbb}.translation{font-size:16px;color:#ddd;margin-top:8px}.download,.credit{position:absolute;bottom:12px;font-size:12px;color:#ddd}.download{left:20px}.credit{right:20px;text-decoration:underline;max-width:32%;text-align:right;line-height:1.4}.searchbar{height:62px;display:flex;align-items:center;gap:10px;padding:8px 14px;background:#171717;border-top:1px solid #333}.searchbar form{display:flex;flex:1;min-width:0;align-items:center}.searchbar input{border:0;background:none;outline:0;width:100%;min-width:0;color:#ddd;font-size:23px;font-weight:600;padding:8px 4px}.searchbar button{font-size:26px;color:#aaa;padding:4px}.searchbar button:hover,.searchbar .saved{color:var(--yellow)}#grammar-toggle{font-size:12px;border:1px solid #666;border-radius:6px;width:34px;height:34px}.counter{font-size:23px;font-weight:700;color:#b8b8b8;white-space:nowrap}.playing .suggestions,.playing .study-panel{opacity:0;pointer-events:none}.playing .play-controls{opacity:0;transition:opacity .2s}.playing:hover .play-controls{opacity:1}.progress{position:absolute;bottom:0;height:2px;left:0;background:var(--yellow);width:0;transition:width .1s}.empty{position:absolute;inset:0;background:#121212;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px}.empty h1{font-size:26px}.empty p{color:#aaa}.empty button,.primary{background:var(--yellow);color:#171717;border-radius:6px;padding:12px 18px;font-weight:600}.empty button:hover,.primary:hover{color:#000;background:#ffe379}.grid-view{position:absolute;inset:0;background:#171717;overflow:auto;padding:26px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-content:start}.clip-card{border:1px solid #ffffff16;border-radius:8px;background:#222;overflow:hidden;text-align:left;padding:0}.clip-card video{width:100%;aspect-ratio:16/9;object-fit:cover;display:block;background:#080808}.card-info{padding:14px}.card-info strong{display:block;font-size:17px;line-height:1.5}.card-info small{display:block;color:#aaa;font-size:13px;line-height:1.4;margin-top:8px}.card-info .card-length{float:right;color:var(--yellow);font-size:12px}.reel-nav{position:absolute;right:30px;top:40%;display:flex;flex-direction:column;gap:15px}.reel-nav button{border:1px solid #ffffff40;background:#0007;width:54px;height:54px;border-radius:50%;font-size:28px}.mode-reels .suggestions,.mode-reels .study-panel{display:none}.mode-reels #player{object-fit:contain}.mode-reels .play-controls{top:45%}.mode-clips .suggestions,.mode-clips .study-panel,.mode-clips .play-controls,.mode-clips .subtitle-block,.mode-clips>.download,.mode-clips>.credit,.mode-clips .shade{display:none}dialog{background:#242424;color:#ddd;border:1px solid #555;border-radius:12px;max-width:min(650px,calc(100vw - 32px));width:650px;padding:24px;max-height:85dvh}dialog::backdrop{background:#000b;backdrop-filter:blur(4px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #ffffff15;padding-bottom:15px;margin-bottom:20px}.dialog-heading h2{font-size:23px;margin:0}.dialog-heading button{font-size:28px}dialog p{line-height:1.7;color:#ccc}dialog a{color:var(--yellow)}.setting{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid #ffffff10}.setting select{max-width:210px;border:1px solid #555;background:#333;padding:8px;border-radius:5px;color:#eee}.setting input[type=checkbox]{accent-color:var(--yellow);width:20px;height:20px}.dialog-actions{display:flex;gap:10px;margin-top:20px;flex-wrap:wrap}.secondary{background:#444;border-radius:6px;padding:12px 16px}textarea{width:100%;min-height:140px;background:#151515;border:1px solid #555;color:#ddd;font:14px/1.6 monospace;padding:12px;border-radius:6px}.toast{position:fixed;bottom:80px;left:50%;transform:translateX(-50%);background:#eee;color:#222;padding:12px 20px;border-radius:6px;z-index:50;opacity:0;pointer-events:none;transition:opacity .15s;max-width:85%;text-align:center;font-size:14px}.toast.show{opacity:1}.filters{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:14px;font-size:13px;color:#ccc}.filters select{background:#ffffff16;border:1px solid #ffffff20;color:#ddd;padding:5px;border-radius:4px}.filters label{display:flex;align-items:center;gap:5px}.filters input{accent-color:var(--yellow)}.empty-small{font-size:15px;line-height:1.7;color:#bbb;padding:20px 8px}.stats-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px}.stat-card{padding:18px;background:#ffffff10;border-radius:6px}.stat-card strong{display:block;font-size:28px;color:var(--yellow);margin-bottom:8px}.stat-card span{font-size:13px}.vocab-grid{display:flex;flex-wrap:wrap;gap:8px}.vocab-grid button{background:#ffffff13;border-radius:6px;padding:10px 12px;font-size:16px}.lesson-row{display:flex;align-items:center;gap:10px;padding:8px 0}.lesson-row input{accent-color:var(--yellow)}.notice{font-size:13px;color:#aaa;line-height:1.6}.context-item{display:flex;justify-content:space-between;gap:20px;text-align:left;width:100%;padding:12px;border-bottom:1px solid #444}.level{font-size:12px;color:#aaa;margin-left:7px}
@media(min-width:1600px){.topbar{gap:20px}.suggestions{width:32%}.study-panel{width:35%}.phrase-row{padding:22px 0}.grid-view{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1000px){.topbar{gap:8px;padding:0 10px}.topbar #source{max-width:150px}.topbar nav{gap:0}.topbar nav button{font-size:13px}.local-badge{display:none}.study-panel{width:37%;padding:0 9px 10px}.suggestions{width:28%;padding:12px}.phrase-row button.phrase{font-size:14px}.tabs button{font-size:12px;padding:7px 5px}.subtitle{font-size:25px}.grid-view{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){body{height:100dvh}.topbar{height:94px;flex-wrap:wrap;gap:7px;padding:8px 10px}.logo{font-size:23px;margin-right:auto}.logo-tail{font-size:18px}.topbar #language{max-width:160px}.topbar #source{max-width:180px;font-size:12px}.topbar nav{order:4;width:100%;justify-content:center;border-top:1px solid #ffffff12}.topbar nav button{font-size:14px;flex:1;padding:7px}.header-end{margin-left:0}.stage{height:calc(100dvh - 150px)}.stage>#player{object-fit:contain}.suggestions{display:none}.study-panel{width:100%;left:0;right:0;top:auto;bottom:97px;height:36%;background:#171717dd;padding:0 14px}.play-controls{top:27%;gap:18px}.play-controls>button{font-size:35px}.play-controls .play-toggle{width:76px;height:76px;font-size:32px;border-width:4px}.small-controls{top:85px}.tabs{justify-content:center}.tabs button{font-size:12px}.phrase-row{padding:9px 0}.subtitle-block{bottom:40px;max-width:93%}.subtitle{font-size:21px}.translation{font-size:14px}.credit{right:10px;bottom:8px;max-width:70%;font-size:10px}.download{left:10px;font-size:11px;bottom:8px}.searchbar{height:56px;gap:6px;padding:7px 8px}.searchbar input{font-size:17px}.searchbar button{font-size:23px}.searchbar [data-action=lesson],.searchbar [data-action=fullscreen],#grammar-toggle{display:none}.counter{font-size:17px}.grid-view{padding:14px;gap:12px}.card-info{padding:10px}.card-info strong{font-size:14px}.card-info small{font-size:12px}.reel-nav{right:12px;top:28%}.reel-nav button{width:42px;height:42px}.mode-reels .play-controls{top:40%}dialog{padding:20px}.setting{font-size:14px;gap:10px}.setting select{max-width:170px}}
.back-grid{position:absolute;top:18px;left:50%;transform:translateX(-50%);z-index:5;background:#111c;border:1px solid #ffffff40;border-radius:6px;padding:10px 14px;font-size:14px}.playing.show-panels .suggestions,.playing.show-panels .study-panel{opacity:1;pointer-events:auto}.setting input[type=number],.setting input:not([type]){background:#333;color:#eee;border:1px solid #555;border-radius:5px;padding:8px;width:150px}.setting input[type=file]{max-width:240px;font-size:13px}
@media(max-width:700px){.topbar{height:116px}.stage{height:calc(100dvh - 172px)}.stage>#player{position:absolute;top:0;height:44%;object-fit:contain}.play-controls{top:22%}.mode-reels>#player{height:100%}.mode-reels .play-controls{top:40%}.back-grid{top:12px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
body{display:flex;flex-direction:column}.topbar,.searchbar{flex-shrink:0}.stage{flex:1;min-height:0;height:auto}
#playback-source{border:1px solid #f3d14b70;background:#2a281e;color:#f3d14b;min-width:135px}
.phrase-row a.phrase{padding:0;text-align:left;font-size:16px;font-weight:600;line-height:1.5;display:inline}.phrase-row a.phrase:hover{text-decoration:underline}
.original-view{position:absolute;top:0;left:0;width:62%;height:100%;display:flex;flex-direction:column;justify-content:center;padding:48px 6%;background:#141414}
.original-eyebrow{font-size:12px;color:var(--yellow);letter-spacing:2px}.original-view h1{font-size:26px;font-weight:400;color:#ddd;margin:20px 0 0;line-height:1.4}
.original-view .original-query{font-size:32px;color:#fff;line-height:1.4;margin:20px 0 10px;overflow-wrap:anywhere}.original-view p{font-size:16px;line-height:1.7;color:#bbb;margin:10px 0;max-width:540px}.original-view p.notice{font-size:14px;color:#999;margin-top:22px}
.original-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.original-actions a{display:inline-flex;align-items:center;justify-content:center;line-height:1.4}.original-actions button{line-height:1.4}.original-actions button:disabled{opacity:.45;cursor:default}
.mode-original{background:#141414}.mode-original>#player,.mode-original>.shade,.mode-original>.suggestions,.mode-original>.play-controls,.mode-original>.subtitle-block,.mode-original>.download,.mode-original>.credit,.mode-original>.progress{display:none}
.mode-original .study-panel{top:24px;bottom:24px;background:#202020;width:36%;border:1px solid #ffffff0c;border-radius:8px}.mode-original .tabs{background:#202020}.mode-original .phrase-row{padding:18px 0}.source-counter{font-size:13px;font-weight:400;border:1px solid #555;border-radius:18px;padding:5px 10px;color:#ccc;white-space:nowrap}
@media(max-width:1100px){.topbar{height:auto;min-height:52px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px}.topbar nav{order:4;width:100%;justify-content:center}.topbar nav button{padding:5px 14px}.stage{height:auto}}
@media(max-width:700px){.topbar{gap:7px}.topbar #playback-source{min-width:125px;max-width:145px;font-size:13px}.topbar #language{font-size:13px;max-width:145px}.topbar nav button{font-size:13px;padding:6px}.original-view{width:100%;height:53%;padding:20px 22px;justify-content:flex-start;overflow:auto}.original-view h1{font-size:21px;margin-top:10px}.original-view .original-query{font-size:25px;margin:10px 0 4px}.original-view p{font-size:14px;margin:6px 0;line-height:1.5}.original-view p.notice{font-size:12px;margin-top:12px}.original-actions{margin-top:12px;gap:8px}.original-actions a,.original-actions button{font-size:14px;padding:10px 12px}.mode-original .study-panel{top:55%;bottom:12px;left:10px;right:10px;width:auto;height:auto;padding:0 12px 12px}.source-counter{display:none}.source-original .searchbar [data-action=lesson],.source-original .searchbar [data-action=fullscreen]{display:none}}

/* DommaPhrase: proportions, typography and controls matched to the reference. */
@font-face{font-family:Roboto;src:url('fonts/roboto-regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Roboto;src:url('fonts/roboto-medium.ttf') format('truetype');font-weight:500;font-display:swap}
@font-face{font-family:Roboto;src:url('fonts/roboto-bold.ttf') format('truetype');font-weight:700;font-display:swap}
@font-face{font-family:'Gloria Hallelujah';src:url('fonts/gloria-hallelujah.ttf') format('truetype');font-weight:400;font-display:swap}
:root{font-family:Roboto,Arial,sans-serif;--yellow:#ffdf45;--muted:#aaa}
.icon{width:24px;height:24px;display:block;flex-shrink:0}
[data-icon]{display:inline-flex;vertical-align:middle}
.topbar{height:56px;min-height:56px;padding:0 18px;gap:16px;flex-wrap:nowrap;background:#000;border:0}
.logo{font-family:'Gloria Hallelujah',cursive;font-size:28px;font-weight:400;line-height:1.5;letter-spacing:-1.5px;color:#d6d4d4}
.logo>span:first-child{color:#e99b9f}
.topbar select{height:32px;padding:4px 9px;background:#393939;border:0;border-radius:0;font-size:16px;font-weight:500;max-width:215px;color:#ddd}
.topbar nav{flex:1;order:initial;width:auto;justify-content:space-evenly;gap:18px}
.topbar nav button{display:flex;align-items:center;gap:9px;font-size:16px;font-weight:500;padding:8px;color:#8b8b8b}
.topbar nav button:hover{color:#ddd}
.topbar nav .selected{color:var(--yellow)}
.header-end{margin-left:auto;gap:12px}
.header-end button{border:0;width:32px;height:32px;border-radius:0;display:grid;place-items:center;color:#888;padding:4px}
.header-end button:hover{color:var(--yellow)}
#playback-source{min-width:0;max-width:190px;background:#262626;border:0;color:#aaa;font-size:14px;font-weight:400}
.shade{background:linear-gradient(0deg,#000a,transparent 25%,#0001 70%,#0003)}
.suggestions,.study-panel{top:8px;bottom:112px;background:#4b45453b;opacity:.64;transition:opacity .2s;scrollbar-color:#ffffff15 transparent}
.suggestions:hover,.study-panel:hover,.suggestions:focus-within,.study-panel:focus-within{opacity:1}
.suggestions{left:9px;width:39%;padding:8px 24px}
.study-panel{right:9px;width:39.3%;padding:0 12px 12px}
.phrase-row{padding:18px 0 24px;border:0;min-height:100px}
.phrase-line{display:flex;align-items:baseline;gap:4px}
.phrase-row button.phrase,.phrase-row a.phrase{font-size:20px;font-weight:500;line-height:1.5;min-width:0;overflow-wrap:anywhere;color:#ddd}
.phrase-row .active{color:var(--yellow)!important}
.phrase-count{color:#b6b6b6;margin-left:5px;white-space:nowrap}
.phrase-row .row-translation{font-size:12px;font-weight:400;line-height:1.5;padding-top:9px;color:#ccc}
.row-number{font-size:20px;line-height:1.5;font-weight:500;margin-right:10px;color:#ccc;min-width:25px}
.phrase-row.numbered .row-translation{padding-left:39px}
.phrase-row .star{float:none;display:inline-flex;align-self:baseline;position:relative;top:3px;padding:0;margin-left:0;color:#aaa}
.star .icon{width:21px;height:21px}
.saved .icon-star{fill:currentColor}
.level{font-size:18px;font-weight:400;white-space:nowrap;color:#aaa;margin-left:6px}
.tabs{display:flex;flex-wrap:nowrap;gap:4px;border:0;padding:0;margin-bottom:10px;background:transparent;backdrop-filter:none}
.tabs button{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:7px;font-size:12px;padding:14px 6px;background:#ffffff09;border-radius:9px 9px 0 0;color:#bbb;white-space:nowrap}
.tabs .selected{background:#ffffff22;color:#ddd}
.tabs button:hover{background:#ffffff27;color:var(--yellow)}
.tabs .icon{width:25px;height:25px}
.filters{font-size:13px;gap:18px;margin:10px 0 14px;padding:0 1px;color:#ccc}
.filters select{padding:3px 5px;border-radius:0;border:0;background:#ffffff16;font-size:13px;max-width:180px}
.play-controls{top:44%;gap:34px;color:#ddd9;text-shadow:none}
.play-controls>button{display:flex;align-items:center;justify-content:center;font-size:initial;padding:0}
.play-controls>button>.icon,.play-controls>button>[data-icon]>.icon{width:104px;height:86px;stroke-width:1.15}
.play-controls .play-toggle{border:0;border-radius:0;width:140px;height:140px;padding:0}
.play-controls .play-toggle>.icon{width:140px;height:140px;stroke-width:1.65}
.play-controls>button:hover{color:#eeed}
.small-controls{top:160px;width:270px;gap:14px;color:#dddb}
.small-controls button{display:flex;align-items:center;gap:5px;font-size:12px;padding:6px 3px;text-shadow:0 1px 3px #000}
.small-controls .icon{width:19px;height:19px}
.small-controls button span{font-size:11px}
.subtitle-block{bottom:32px;max-width:86%}
.subtitle-block>div:first-child{padding:6px 16px;gap:16px;background:#24242499}
.subtitle{font-size:30px;color:var(--yellow);font-weight:400;line-height:1.3}
.subtitle-block button{padding:0;color:#ddd8}
.subtitle-block button .icon{width:18px;height:18px}
.translation{font-size:20px;color:#ddd9;margin-top:5px}
.download,.credit{bottom:10px;font-size:12px;color:#ccc9}
.download{left:24px;display:flex;align-items:center;gap:4px}
.download .icon{width:12px;height:12px}
.credit{right:25px}
.searchbar{height:78px;gap:10px;padding:10px;background:#242424;border:0}
.search-tools{flex:1;min-width:0;display:flex;align-items:center;gap:10px;padding:7px 10px;background:#141414;height:56px}
.searchbar input{font-size:28px;font-weight:500;color:#ccc;padding:0;line-height:1.4}
.searchbar button{display:flex;align-items:center;justify-content:center;flex-shrink:0;padding:3px;color:#888}
.searchbar button:hover,.searchbar button.saved{color:var(--yellow)}
.searchbar .icon{width:28px;height:28px;stroke-width:2}
#grammar-toggle{display:flex;border:2px solid #666;border-radius:8px;font-weight:700;font-size:14px;width:40px;height:40px;color:#888}
.counter{font-size:28px;font-weight:700;color:#999;padding-left:3px}
.source-counter{font-size:13px}
.playing .suggestions,.playing .study-panel{opacity:0;pointer-events:none}
.playing.show-panels .suggestions,.playing.show-panels .study-panel{opacity:.64;pointer-events:auto}
.playing.show-panels .suggestions:hover,.playing.show-panels .study-panel:hover{opacity:1}
.mode-original .study-panel{opacity:1}
.mode-original .tabs{background:transparent}
@media(max-width:1500px){
  .topbar{gap:12px;padding:0 14px}.topbar nav{gap:6px}.topbar nav button{font-size:14px;gap:6px}
  .topbar select{font-size:14px;max-width:185px}#playback-source{max-width:150px;font-size:12px}.header-end{gap:8px}
  .tabs button{flex-direction:column;gap:3px;padding:8px 3px;font-size:11px}.tabs .icon{width:22px;height:22px}
  .suggestions{padding:8px 18px}.phrase-row button.phrase{font-size:18px}.row-number{font-size:18px}.level{font-size:16px}
}
@media(max-width:1100px){
  .topbar{height:auto;min-height:56px;flex-wrap:wrap;padding:7px 12px;gap:9px}
  .logo{margin-right:auto}.header-end{margin-left:auto;order:0}.topbar nav{order:4;width:100%;flex:auto;justify-content:center;gap:24px}
  .topbar nav button{font-size:14px;padding:4px 10px}.topbar select{max-width:170px}
  .phrase-row button.phrase{font-size:16px}.level,.row-number{font-size:14px}.row-number{min-width:18px;margin-right:3px}
  .phrase-row.numbered .row-translation{padding-left:25px}.tabs button{font-size:10px}
  .searchbar input,.counter{font-size:23px}.search-tools{gap:7px}.searchbar .icon{width:25px;height:25px}
}
@media(max-width:700px){
  .topbar{display:grid;grid-template-columns:1fr 1fr;padding:6px 10px;gap:7px 10px;height:auto;min-height:0}
  .logo{font-size:24px;line-height:1.5;margin:0;grid-column:1;grid-row:1}
  .header-end{grid-column:2;grid-row:1;justify-content:flex-end;margin:0;gap:5px}
  .header-end button{width:28px;height:28px}#playback-source{display:none}
  .topbar #language,.topbar #source{width:100%;max-width:none;height:28px;font-size:12px;padding:3px 7px}
  .topbar nav{grid-column:1/-1;display:flex;width:100%;order:initial;justify-content:space-between;gap:2px;border:0}
  .topbar nav button{font-size:12px;padding:3px 4px;flex:initial;gap:5px}.topbar nav .icon{width:18px;height:18px}
  .stage>#player{position:absolute;top:0;height:48%;object-fit:contain}
  .shade{background:linear-gradient(0deg,#000b,transparent 65%)}
  .suggestions{display:none}
  .study-panel{top:48%;bottom:max(98px,calc(var(--subtitle-height,64px) + 44px));left:0;right:0;height:auto;width:100%;padding:0 12px 8px;background:#242424;opacity:1}
  .tabs{margin-bottom:9px;gap:3px}.tabs button{font-size:9px;gap:3px;padding:9px 2px;flex-direction:column}.tabs .icon{width:20px;height:20px}
  .filters{margin:8px 0;gap:15px;font-size:12px}.filters select{font-size:12px;max-width:145px}
  .phrase-row{padding:10px 0 14px;min-height:70px}.phrase-row button.phrase{font-size:16px}.row-number{font-size:16px}
  .row-translation{padding-top:4px!important}.level{font-size:13px}.star .icon{width:18px;height:18px}
  .play-controls{top:24%;gap:18px}.play-controls>button>.icon,.play-controls>button>[data-icon]>.icon{width:56px;height:50px}
  .play-controls .play-toggle{width:84px;height:84px}.play-controls .play-toggle>.icon{width:84px;height:84px}
  .small-controls{top:89px;width:235px;gap:13px}.small-controls .icon{width:17px;height:17px}
  .subtitle-block{bottom:34px;max-width:95%;width:95%;max-height:40%;overflow:auto}.subtitle-block>div:first-child{padding:5px 9px;gap:9px}
  .subtitle{font-size:20px}.translation{font-size:14px;margin-top:5px}.credit{right:10px;max-width:72%;font-size:10px;bottom:7px}
  .download{left:10px;font-size:10px;bottom:7px;gap:2px}
  .searchbar{height:62px;padding:6px;gap:5px}.search-tools{height:48px;padding:5px 6px;gap:5px}
  .searchbar input{font-size:17px}.searchbar .icon{width:23px;height:23px}.searchbar button{padding:0}.counter{font-size:17px;padding:0}
  .searchbar [data-action=vocabulary],.searchbar [data-action=lesson],.searchbar [data-action=fullscreen],.searchbar [data-mode=reels],#grammar-toggle{display:none}
  #search-form button[type=submit]{display:none}
  .toast{bottom:75px}.grid-view{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mode-reels>#player{height:100%}.mode-reels .play-controls{top:40%}
  .mode-original .study-panel{top:55%;bottom:12px;background:#242424;opacity:1}
  .playing.show-panels .study-panel{opacity:1}
}
@media(max-height:650px) and (max-width:700px){.study-panel{top:53%;bottom:max(85px,calc(var(--subtitle-height,64px) + 44px))}.stage>#player{height:53%}.play-controls{top:26%;gap:16px}.small-controls{top:81px}.play-controls .play-toggle,.play-controls .play-toggle>.icon{width:76px;height:76px}.tabs button{padding:5px 2px}.filters{margin:5px 0}.subtitle{font-size:17px}}
