:root{color-scheme:dark;--bg:#0f0f0f;--elev:#202020;--text:#f1f1f1;--muted:#aaa;--line:#303030;--accent:#3ea6ff}
*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text);font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}a{color:var(--accent)}[hidden]{display:none!important}
button,input,select{font:inherit;color:inherit}button{cursor:pointer;border:0}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#video-app{max-width:1100px;margin:auto;height:100vh;height:100dvh;display:flex;flex-direction:column;padding:env(safe-area-inset-top,0px) max(0px,env(safe-area-inset-right)) 0 max(0px,env(safe-area-inset-left));overflow:hidden}
.video-actions{flex:none;padding:8px 12px}.video-actions input{display:block;width:100%;min-width:0;border:1px solid var(--line);border-radius:10px;background:#202020;padding:10px 13px;font-size:16px;line-height:24px}.video-actions input:focus{outline:1px solid var(--accent);border-color:var(--accent)}.video-actions input::placeholder{color:#919191}
.pinned-player{flex:none;min-height:0;background:#000}.player-stage{position:relative;width:100%;aspect-ratio:16/9;max-height:57dvh;min-height:150px;background:#000;overflow:hidden;isolation:isolate;outline:none;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.dubbing-player{display:block;width:100%;height:100%;object-fit:contain;background:#000}.background-audio{display:none}.audio-artwork{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.32;filter:blur(3px)}.audio-mode-label{position:absolute;top:43%;left:0;right:0;text-align:center;color:#ddd;pointer-events:none}.player-stage.is-audio .player-center{margin-top:8px}
.player-overlay{position:absolute;inset:0;background:linear-gradient(#0009 0%,#0000 34%,#0000 55%,#0009 100%);opacity:0;transition:opacity .18s;pointer-events:none;z-index:2}.player-overlay.controls-visible{opacity:1}.player-overlay.controls-visible button,.player-overlay.controls-visible input{pointer-events:auto}.player-top,.player-bottom{position:absolute;left:9px;right:9px;display:flex;align-items:center;gap:7px}.player-top{top:8px}.player-bottom{bottom:24px}.player-top-spacer,.player-bottom-spacer{flex:1}.icon-button{background:#0004;border-radius:50%;padding:8px;color:#fff;display:grid;place-items:center;width:38px;height:38px;flex:none;-webkit-tap-highlight-color:transparent}.icon-button:hover:not(:disabled){background:#ffffff30}.icon-button svg{width:23px;height:23px;fill:currentColor}.icon-button[aria-pressed=true]{color:var(--accent)}.player-top .icon-button{background:transparent}.player-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:26px}.player-center .play-button{width:60px;height:60px;background:#0008}.play-button svg{width:38px;height:38px}.seek-back,.seek-forward{position:relative;width:42px;height:42px;background:transparent}.seek-back span,.seek-forward span{position:absolute;font-size:9px;font-weight:700;top:17px;left:17px}.player-time{font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums;text-shadow:0 1px 2px #000}.player-bottom .icon-button{width:32px;height:32px;padding:5px}.player-seek{-webkit-appearance:none;appearance:none;border:0;border-radius:0;position:absolute;left:0;bottom:0;width:100%;height:20px;margin:0;accent-color:#ff314c;background:transparent;cursor:pointer}.player-seek::-webkit-slider-runnable-track{height:10px;border-radius:5px;background:var(--chapter-gaps,linear-gradient(transparent,transparent)),linear-gradient(to right,#ff314c var(--played,0%),#ffffff50 var(--played,0%))}.player-seek::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 0 0 2px #ff314c,0 1px 4px #000a;margin-top:-4px}.player-seek::-moz-range-track{height:10px;border-radius:5px;background:#ffffff50}.player-seek::-moz-range-progress{height:10px;border-radius:5px;background:#ff314c}.player-seek::-moz-range-thumb{width:18px;height:18px;border:0;border-radius:50%;background:#fff;box-shadow:0 0 0 2px #ff314c,0 1px 4px #000a}.player-scrub{position:absolute;left:0;right:0;bottom:0;height:36px;touch-action:none;cursor:pointer;-webkit-tap-highlight-color:transparent}.player-overlay.controls-visible .player-scrub{pointer-events:auto}.player-overlay.controls-visible .player-seek{pointer-events:none}.skip-ripple{position:absolute;z-index:1;top:0;bottom:0;left:0;width:40%;box-sizing:border-box;padding-right:16%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:0 50% 50% 0;background:#ffffff26;color:#fff;font-size:12px;line-height:1.2;text-shadow:0 1px 3px #000c;font-variant-numeric:tabular-nums;pointer-events:none;opacity:0;transition:opacity .25s}.skip-ripple.is-forward{left:auto;right:0;padding:0 0 0 16%;border-radius:50% 0 0 50%}.skip-ripple.is-shown{opacity:1;transition:none}.skip-arrows{display:flex}.skip-ripple:not(.is-forward) .skip-arrows{transform:scaleX(-1)}.skip-arrows svg{width:16px;height:16px;fill:currentColor;opacity:.3;animation:skip-arrow .75s infinite}.skip-arrows svg:nth-child(2){animation-delay:.25s}.skip-arrows svg:nth-child(3){animation-delay:.5s}.skip-amount{font-size:14px}@keyframes skip-arrow{0%,100%{opacity:.3}35%{opacity:1}}.dubbing-player,.audio-artwork{touch-action:none;-webkit-touch-callout:none}.speed-boost{position:absolute;z-index:3;top:12px;left:50%;transform:translateX(-50%);display:none;align-items:center;gap:2px;padding:5px 12px;border-radius:999px;background:#000a;color:#fff;font-size:13px;font-weight:600;pointer-events:none}.speed-boost svg{width:12px;height:12px;fill:currentColor}.is-boosted .speed-boost{display:flex}.scrub-tip{position:absolute;bottom:30px;left:50%;transform:translateX(-50%);max-width:min(72%,340px);display:none;flex-direction:column;align-items:center;gap:1px;padding:5px 10px;border-radius:8px;background:#000c;color:#fff;font-size:12px;line-height:1.25;font-variant-numeric:tabular-nums;text-align:center;pointer-events:none}.scrub-tip.is-shown{display:flex}.scrub-tip b{display:none;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.scrub-tip.has-chapter b{display:block}.player-overlay.is-scrubbing .player-top,.player-overlay.is-scrubbing .player-center,.player-overlay.is-scrubbing .player-bottom{opacity:0;transition:opacity .12s}html:has(.player-expanded){overflow:hidden}.player-seek:focus-visible{outline:2px solid var(--accent)}
.autoplay-button{width:42px}.autoplay-track{display:block;width:29px;height:17px;background:#ffffff70;border-radius:20px;padding:1px;text-align:left}.autoplay-track svg{display:block;width:15px;height:15px;border-radius:50%;background:#fff;color:#111}.autoplay-button[aria-checked=true] .autoplay-track{background:var(--accent)}.autoplay-button[aria-checked=true] svg{margin-left:12px}.player-menu{position:absolute;z-index:5;top:50px;right:10px;width:min(260px,calc(100% - 20px));max-height:calc(100% - 62px);overflow:auto;border-radius:12px;background:#202020f5;box-shadow:0 6px 24px #0008;padding:5px;overscroll-behavior:contain}.settings-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;background:transparent;border-radius:7px;color:#fff;padding:10px 12px;min-height:40px;font-size:13px}.settings-row:hover:not(:disabled),.settings-row:focus-visible{background:#ffffff19}.settings-row span:last-child{color:#bbb;white-space:nowrap}.settings-row.is-selected{color:var(--accent)}.playback-notice{position:absolute;z-index:4;bottom:54px;left:12px;right:12px;pointer-events:none;text-align:center}.player-error{font-size:12px;color:#fff;background:#171717d9;border-radius:8px;padding:5px 8px;display:inline-block}.player-error:empty{display:none}.retry-playback{pointer-events:auto;margin:5px;background:#ffffff25;color:#fff;border-radius:8px;padding:7px 12px}.player-stage:fullscreen,.player-expanded{width:100vw!important;height:100dvh!important;max-height:none!important;aspect-ratio:auto}.player-expanded{position:fixed!important;inset:0;z-index:1000}.player-stage:fullscreen .player-top,.player-expanded .player-top{padding-top:env(safe-area-inset-top)}
.video-bottom{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;padding:0 14px max(25px,env(safe-area-inset-bottom));-webkit-overflow-scrolling:touch}.video-tabs{display:flex;gap:8px;padding:10px 0 0}.video-tabs button{background:#222;color:#d7d7d7;border-radius:7px;padding:6px 11px;font-size:12px;line-height:18px}.video-tabs button[aria-expanded=true]{background:#3ea6ff25;color:#70bdff}.video-heading{display:flex;gap:12px;align-items:baseline;margin:12px 0}.video-heading h1{font-size:17px;line-height:1.4;font-weight:600;margin:0;flex:1;overflow-wrap:anywhere}.message{color:var(--muted);font-size:13px;margin:10px 0}.message:empty{display:none}.message.error{color:#ff9ca9}.video-details{padding:12px;background:#191919;border-radius:10px;margin:10px 0;font-size:13px}.video-details p{margin:0 0 9px}.video-details p:last-child{margin:0}.rich-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.detail-meta{color:var(--muted);margin-bottom:10px}.comment{padding:10px 0;border-bottom:1px solid #ffffff0d}.comment:first-child{padding-top:0}.comment:last-child{border:0;padding-bottom:0}.comment-author{font-size:12px;color:#ddd;font-weight:600;margin-bottom:5px}.comment-likes{font-size:11px;color:var(--muted);margin-top:5px}.download-option{display:flex;width:100%;align-items:center;justify-content:space-between;background:#252525;border-radius:8px;padding:11px 12px;margin:6px 0;color:#eee;text-decoration:none}.download-option:hover{background:#303030}.download-option span:last-child{font-size:12px;color:#aaa}.task-progress{padding:10px 12px;border:1px solid var(--line);border-radius:10px;margin:10px 0}.task-progress p{font-size:12px;margin:0 0 5px}.task-progress progress{width:100%;height:6px;accent-color:var(--accent)}.task-progress a{display:inline-block;padding:5px 0;font-size:13px}
.library{margin-top:18px}.library h2{font-size:14px;margin:0 0 12px;font-weight:600;color:#ddd}.video-library{display:flex;flex-direction:column;gap:13px}.saved-video{display:grid;grid-template-columns:minmax(0,40fr) minmax(0,60fr);gap:11px;text-decoration:none;color:var(--text);border-radius:9px;border:1px solid transparent;padding:3px}.saved-video[aria-current=true]{background:#ffffff08;border-color:#3ea6ff88}.saved-preview{min-width:0;align-self:start}.saved-meta{padding:6px 1px 0;min-width:0}.saved-thumbnail{position:relative;align-self:start;overflow:hidden;border-radius:8px;background:#171717;aspect-ratio:16/9}.saved-thumbnail img{width:100%;height:100%;object-fit:cover;display:block}.saved-duration{position:absolute;bottom:4px;right:4px;padding:1px 4px;background:#000c;border-radius:3px;font-size:10px}.saved-info{min-width:0}.saved-title{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;font-weight:500;line-height:1.35;margin:1px 0 6px}.saved-author,.saved-stats,.saved-date{display:block;color:var(--muted);font-size:12px;line-height:1.45;overflow:hidden;text-overflow:ellipsis}.saved-author{white-space:nowrap}.saved-date{font-size:11px;line-height:1.45;color:var(--muted);margin-top:2px;overflow-wrap:anywhere}.saved-description{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font-size:12px;line-height:1.4;color:#a9b5bc;margin-top:7px}.saved-title{overflow-wrap:anywhere}.saved-meta>:empty{display:none}.saved-stats{margin-top:2px}.video-login{max-width:34rem;margin:10vh auto;padding:calc(1.5rem + env(safe-area-inset-top,0px)) calc(1.5rem + env(safe-area-inset-right,0px)) 1.5rem calc(1.5rem + env(safe-area-inset-left,0px));line-height:1.6}.video-login h1{font-size:1.7rem}.video-login button{background:#222;border-radius:9px;padding:.75rem 1rem}.video-login .primary{background:var(--accent);color:#06121e}.video-login a{display:inline-block;margin-top:1rem}
@media(min-width:850px){#video-app{max-width:1050px}.video-actions{padding:10px 0}.player-stage{max-height:59dvh}.video-bottom{padding-left:0;padding-right:0}.video-library{max-width:750px}.saved-title{font-size:16px}.saved-author,.saved-stats{font-size:13px}.player-top{gap:12px}.icon-button{width:42px;height:42px}.player-center .play-button{width:70px;height:70px}}
@media(max-width:380px){.video-actions{padding:6px 8px}.video-actions input{padding:8px 10px}.player-top{gap:3px;left:5px;right:5px;top:4px}.icon-button{width:34px;height:34px;padding:6px}.icon-button svg{width:21px;height:21px}.player-center{gap:20px}.player-center .play-button{width:52px;height:52px}.player-bottom{left:6px;right:6px;bottom:22px}.video-bottom{padding-left:10px;padding-right:10px}.video-heading h1{font-size:15px}.saved-title{font-size:12px}.saved-author,.saved-stats{font-size:11px}.saved-video{gap:9px}}
@media(prefers-reduced-motion:reduce){.player-overlay,.skip-ripple{transition:none}.skip-arrows svg{animation:none;opacity:1}}
.mini-restore{position:absolute;inset:0;z-index:8;width:100%;height:100%;padding:0;background:transparent;color:#fff;border-radius:inherit}.mini-restore span{position:absolute;right:5px;top:5px;display:grid;place-items:center;border-radius:5px;background:#0008;width:27px;height:27px}.mini-restore svg{width:19px;height:19px;fill:currentColor}
.pinned-player.is-mini{position:fixed;z-index:800;right:calc(var(--mini-right,12px) + env(safe-area-inset-right,0px));bottom:calc(var(--mini-bottom,12px) + env(safe-area-inset-bottom,0px));width:var(--mini-width,164px);max-width:calc(var(--mini-visible-width,100vw) - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px) - 24px);aspect-ratio:16/9;max-height:calc(var(--mini-visible-height,100dvh) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 24px);min-height:0;border:1px solid #ffffff40;border-radius:9px;box-shadow:0 5px 25px #000a;background:#000;overflow:hidden}.pinned-player.is-mini #video-surface{width:100%;height:100%}.pinned-player.is-mini .player-stage{width:100%;height:100%;min-height:0;max-height:none;aspect-ratio:16/9;border-radius:8px}.pinned-player.is-mini .player-overlay,.pinned-player.is-mini .skip-ripple,.pinned-player.is-mini .speed-boost,.pinned-player.is-mini .player-menu,.pinned-player.is-mini .playback-notice,.pinned-player.is-mini .audio-mode-label{display:none!important}.has-mini-player .video-tabs,.has-mini-player .video-heading,.has-mini-player .video-byline,.has-mini-player #video-details,.has-mini-player #video-desk{display:none!important}
.search-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px;max-width:750px}.search-heading h2{margin:0}.search-heading button,.search-retry{border-radius:7px;background:#252525;padding:7px 10px;font-size:12px;white-space:nowrap}.search-query{font-size:13px;color:var(--muted);overflow-wrap:anywhere;margin:0 0 12px}.search-retry{margin:0 0 14px}.library-more{margin:14px 0 0;border-radius:7px;background:#252525;padding:7px 10px;font-size:12px;white-space:nowrap}.library-more:disabled{opacity:.6;cursor:default}.video-actions input::-webkit-search-cancel-button{cursor:pointer}
.share-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 10px}.share-url{flex:1 1 12rem;min-width:0;border:1px solid var(--line);border-radius:8px;background:#0f0f0f;color:var(--text);padding:8px 10px;font-size:13px}.share-button{display:inline-flex;align-items:center;justify-content:center;border-radius:8px;background:#2a2a2a;color:#eee;padding:8px 12px;font-size:13px;line-height:18px;text-decoration:none;white-space:nowrap}.share-button:hover{background:#333}.share-button.share-primary{background:var(--accent);color:#06121e;font-weight:600}.share-button.share-revoke{background:transparent;color:#ff9ca9;margin-left:auto}.video-details .share-note{color:var(--muted);font-size:12px}.video-details .share-error{color:#ff9ca9}

.video-language-badge{display:inline-block;flex:none;font-size:10px;font-weight:600;line-height:1.4;border-radius:4px;background:#eee;color:#111;padding:2px 5px}.saved-thumbnail>.video-language-badge{position:absolute;left:4px;bottom:4px}.video-heading>.video-language-badge{align-self:center}
.translate-button.is-translated,.translate-button.is-translated[aria-pressed=true]{color:#55d68b}.translation-menu .settings-row:disabled{opacity:.42;cursor:default}.translation-eta{position:absolute;z-index:3;top:53px;left:12px;max-width:calc(100% - 24px);padding:5px 9px 7px;border-radius:7px;background:#171717ce;color:#fff;font-size:12px;line-height:1.3;font-variant-numeric:tabular-nums;pointer-events:none;overflow:hidden;text-shadow:0 1px 2px #000}.translation-eta::after{content:"";position:absolute;left:0;bottom:0;height:2px;width:var(--translation-progress,0%);background:#55d68b;transition:width .3s}.pinned-player.is-mini .translation-eta{top:auto;bottom:5px;left:5px;font-size:10px;padding:3px 5px 5px;max-width:calc(100% - 10px)}
/* A docked mini-player stays decoded; only a narrow return tab remains visible. */
.pinned-player.is-mini{right:calc(var(--mini-right,12px) + env(safe-area-inset-right,0px) - var(--mini-offset-x,0px));bottom:calc(var(--mini-bottom,12px) + env(safe-area-inset-bottom,0px) - var(--mini-offset-y,0px))}
.is-mini .mini-restore{touch-action:none;cursor:grab;-webkit-user-select:none;user-select:none}.is-mini-dragging .mini-restore{cursor:grabbing}.is-mini-settling{transition:right .2s cubic-bezier(.2,.75,.25,1),bottom .2s cubic-bezier(.2,.75,.25,1)}
.mini-edge-handle{user-select:none;position:absolute;inset:0 auto 0 0;width:28px;height:100%;padding:0;z-index:9;border-radius:8px 0 0 8px;background:#252525f5;color:#eee;font-size:32px;line-height:1;touch-action:none;box-shadow:0 0 8px #0008}.is-docked-left .mini-edge-handle{left:auto;right:0;border-radius:0 8px 8px 0}.is-docked .mini-restore{pointer-events:none}.is-docked .translation-eta{display:none}.mini-edge-handle:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
@media(prefers-reduced-motion:reduce){.is-mini-settling{transition:none}}

/* One compact, reversible playback preference; no technical edit details. */
.ad-skip-toggle{position:absolute;left:12px;bottom:66px;z-index:8;padding:5px 9px;border:0;border-radius:6px;background:#111c;color:#d4f4db;font:inherit;font-size:12px;cursor:pointer}.ad-skip-toggle[aria-pressed="false"]{color:#ddd}.ad-skip-toggle[hidden],.is-mini .ad-skip-toggle{display:none}
/* Under the player (owner 26.10): the title; avatar with the channel, views and date, each on its own line; round
   buttons «язык», «скачать», «поделиться»; tabs Описание · Комментарии · Главы — the open tab takes the place of the
   list under the video. Prefixed with .video-info: video-channel.css loads after this file. */
.video-info .video-heading{display:block;margin:12px 0 10px}
.video-info .video-heading h1{display:inline;font-size:18px;line-height:1.35;font-weight:650;overflow-wrap:anywhere}
.video-info .video-heading>.video-language-badge{display:inline-block;vertical-align:2px;margin-left:7px;font-size:11px}
.video-info .video-byline{display:flex;align-items:flex-start;gap:10px;margin:0 0 12px;flex-wrap:nowrap}
.video-info .video-channel-link{flex:1;min-width:0;display:flex;align-items:flex-start;gap:11px;padding:0;background:none;text-align:left;color:var(--text);font-size:13px;font-weight:400}
.video-info .video-channel-link:hover{text-decoration:none}
.video-info .video-channel-link:hover b{text-decoration:underline}
.video-avatar{position:relative;flex:none;width:44px;height:44px;border-radius:50%;overflow:hidden;display:grid;place-items:center;color:#fff;font-size:17px;font-weight:700;background:#3a3a3a}
.video-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.video-channel-lines{display:flex;flex-direction:column;min-width:0;line-height:1.35;padding-top:1px}
.video-channel-lines b{font-size:15px;font-weight:650;overflow-wrap:anywhere}
.video-channel-lines span,.video-info .video-published{font-size:13px;color:var(--muted)}
.video-views:empty,.video-info .video-published:empty{display:none}.video-info .video-subscribers{display:none}
.video-round{display:flex;gap:8px;flex:none}
.round-button{width:44px;height:44px;border-radius:50%;background:#272727;color:#f1f1f1;display:grid;place-items:center;padding:0}
.round-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.round-button[data-panel="share"] svg{fill:currentColor;stroke:none}
.round-button[aria-expanded=true],.round-button.is-russian{background:#3ea6ff2e;color:#8fcaff}
.round-button:focus-visible,.video-info .video-tabs button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.round-label,.round-label .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.video-info .video-tabs{display:flex;gap:4px;padding:4px;margin:0 0 10px;background:var(--elev);border-radius:12px}
.video-info .video-tabs[hidden],.video-info .video-tabs button[hidden]{display:none}
.video-info .video-tabs button{flex:1 1 auto;min-width:0;height:40px;padding:0 10px;border-radius:9px;background:transparent;color:#cfcfcf;font-size:14px;font-weight:600;line-height:1.2;white-space:nowrap}
.video-info .video-tabs button[aria-pressed=true]{background:#3a3a3a;color:#fff}
.tab-count{color:var(--muted);font-weight:500}
.video-info .video-details{padding:14px;background:#181818;border-radius:12px;margin:0 0 12px;font-size:14.5px}
.video-info .rich-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;font-size:14.5px;color:#e6e6e6}
.rt-link{color:var(--accent);text-decoration:none}
.rt-link:hover{text-decoration:underline}
.rt-video::after{content:" · здесь";color:#8fcaff;font-size:12px}
.rt-time,.rt-tag{display:inline;margin:0;border-radius:5px;color:var(--accent);font:inherit;font-weight:600;line-height:inherit;cursor:pointer}
.rt-time{padding:0 4px;background:#3ea6ff1a}
.rt-tag{padding:0;background:none;font-weight:500}
.detail-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:8px;margin:0 0 12px}
.detail-stats div{background:var(--elev);border-radius:12px;padding:8px 10px;text-align:center;display:flex;flex-direction:column;line-height:1.3}
.detail-stats b{font-size:16px}.detail-stats span{font-size:12px;color:var(--muted)}
.video-info .detail-original{font-size:13px;color:var(--muted);margin:0 0 10px}
.video-info .detail-line{font-size:13.5px;font-weight:650;margin:0 0 4px}
.detail-heading{font-size:13px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin:16px 0 4px}
.chapter-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.chapter{display:flex;align-items:center;gap:12px;width:100%;min-height:46px;padding:4px 6px;border-radius:9px;background:none;color:var(--text);text-align:left;font-size:14.5px;border-bottom:1px solid #262626}
.chapter-list li:last-child .chapter{border-bottom:0}
.chapter-time{flex:none;min-width:52px;text-align:center;font-weight:650;color:var(--accent);background:#3ea6ff1a;border-radius:6px;padding:2px 6px;font-size:13.5px;font-variant-numeric:tabular-nums}
.chapter-title{flex:1;min-width:0}
.chapter.is-now{background:#3ea6ff14}
.chapter-now{flex:none;font-size:12px;color:#8fcaff}
.comments-head{display:flex;align-items:center;gap:10px;margin:0 0 14px}
.comments-sort{display:flex;gap:8px}
.comments-sort button{height:36px;padding:0 14px;border-radius:18px;background:#272727;font-size:13.5px;font-weight:600;color:#eee}
.comments-sort button[aria-pressed=true]{background:#f1f1f1;color:#111}
.comment-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:16px}
.video-info .comment{display:flex;gap:11px;padding:0;border:0}
.comment-avatar,.heart-avatar{position:relative;flex:none;width:34px;height:34px;border-radius:50%;overflow:hidden;display:grid;place-items:center;color:#fff;font-size:13px;font-weight:700}
.comment-avatar img,.heart-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.comment-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.comment-pin{display:flex;align-items:center;gap:5px;font-size:12.5px;color:var(--muted)}
.comment-pin svg{width:14px;height:14px;fill:currentColor}
.comment-meta{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.video-info .comment-author{font-size:13.5px;color:#eee;font-weight:650;margin:0}
.comment-author.is-owner{background:#3a3a3a;border-radius:10px;padding:1px 8px}
.comment-verified{margin-left:4px;color:#ccc}
.video-info .comment-text{font-size:15px;line-height:1.5;color:#ececec}
.comment-text.is-clamped{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.comment-more{align-self:flex-start;padding:2px 0;background:none;font-size:13.5px;font-weight:650;color:#ddd}
.comment-foot{display:flex;align-items:center;gap:16px;margin-top:3px}
.video-info .comment-likes{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;color:#d0d0d0;margin:0}
.comment-likes svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
.comment-heart{position:relative;display:inline-flex}
.heart-avatar{width:22px;height:22px;font-size:10px}
.comment-heart::after{content:"♥";position:absolute;right:-6px;bottom:-5px;font-size:12px;color:#ff4e6a}
.video-info .comments-note{margin:16px 0 0;padding-top:10px;border-top:1px solid #262626;font-size:12.5px;color:var(--muted);text-align:center}
.comments-note a{color:var(--accent)}
.list-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:2px 0 10px}.list-switch{display:flex;gap:20px}.list-switch button{background:transparent;padding:6px 0;border-bottom:2px solid transparent;border-radius:0;font-size:16px;font-weight:600;color:#aaa}.list-switch button[aria-pressed=true]{color:#f1f1f1;border-bottom-color:#f1f1f1}.list-actions{display:flex;gap:8px;flex:none}.list-action{position:relative;width:40px;height:40px;border-radius:50%;background:#272727;color:#f1f1f1;display:grid;place-items:center;padding:0;flex:none}.list-action svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.list-action[aria-expanded=true]{background:#3ea6ff2e;color:#8fcaff}.list-action-count{position:absolute;right:-5px;top:-5px;min-width:18px;padding:0 5px;border-radius:9px;background:#3ea6ff;color:#06121e;font-size:11px;font-weight:600;line-height:18px;text-align:center}.list-action[aria-busy=true] svg{animation:list-spin 1s linear infinite}@keyframes list-spin{to{transform:rotate(360deg)}}#saved-library>h2{display:none}#history-videos .saved-date{display:none}
@media(max-width:999px){/* An open «Описание»/«Комментарии» takes the lists' place under the video; with the video minimized the lists return
   (owner 28.10: the red button showed a black screen while a panel stayed open). */
#video-app.has-open-panel:not(.has-mini-player) .video-lists{display:none}.video-desk{display:none!important}}
@media(max-width:380px){.round-button{width:40px;height:40px}.video-round{gap:6px}.video-avatar{width:40px;height:40px}.video-info .video-tabs button{font-size:13px}}
/* Computer (owner 26.10, the proposed variant): the page scrolls; the video with its details on the left, the lists on
   the right, staying in view. */
@media(min-width:1000px){
 #video-app{max-width:1440px;height:100vh;height:100dvh;overflow-x:hidden;overflow-y:auto;display:grid;grid-template-columns:minmax(0,1fr) clamp(320px,30vw,400px);grid-template-rows:auto max-content auto;align-content:start;column-gap:24px;padding:0 24px}
 .video-actions{grid-column:1/-1;position:sticky;top:0;z-index:5;background:var(--bg)}
 /* As on YouTube: the button at the left edge, the search in the middle. */
 #video-actions .video-home,#video-actions .video-submit{margin-right:auto}#video-actions input{flex:0 1 640px}
 .player-stage{max-height:calc(100dvh - 216px)}
 #video-app>.pinned-player{grid-column:1;grid-row:2;min-height:auto}
 .video-bottom{display:contents}
 .video-info{grid-column:1;grid-row:3;min-width:0;padding-bottom:28px}
 .video-lists{grid-column:2;grid-row:2/span 2;align-self:start;position:sticky;top:66px;max-height:calc(100dvh - 66px);overflow-y:auto;scrollbar-width:thin;min-width:0;padding-bottom:28px}
 .video-info .video-tabs{display:none!important}
 .video-info .video-heading h1{font-size:21px}
 .video-info .video-byline{align-items:center;flex-wrap:wrap;row-gap:10px}
 .video-info .video-channel-link{flex:1 1 220px;align-items:center}
 .video-channel-lines>*{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .video-info .video-round{margin-left:auto}
 /* Views and date open the description card below; the channel shows its subscribers. */
 .video-info .video-subscribers{display:block}.video-info .video-views,.video-info .video-published{display:none}
 .round-button{width:auto;height:40px;border-radius:20px;padding:0 15px;display:inline-flex;gap:8px;font-size:14px;font-weight:600}
 .round-label{position:static;width:auto;height:auto;overflow:visible;clip:auto}
 .video-desk{display:flex;flex-direction:column;gap:18px}
 .desk-description{background:var(--elev);border-radius:14px;padding:12px 14px}
 .desk-description .rich-text.is-clamped{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
 .desk-more{margin-top:6px;padding:0;background:none;font-size:13.5px;font-weight:650;color:#eee}
 .desk-heading{font-size:19px;margin:0 0 12px}
 .video-lists .library{margin-top:4px}
 /* Compact rows in the side column: the switch above names the list. */
 .video-lists .video-library{gap:8px;max-width:none}
}

.mini-close{position:absolute;top:0;left:0;z-index:10;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;background:transparent;color:#fff;touch-action:manipulation}
.mini-close span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#000b}
.mini-close svg{width:22px;height:22px;fill:currentColor}
.mini-close:focus-visible{outline:2px solid #9ed3ff;outline-offset:-3px;border-radius:9px}
.is-docked .mini-close{display:none}

.player-stage:is(.player-expanded,:fullscreen) .player-top,.player-stage:is(.player-expanded,:fullscreen) .player-bottom{left:max(9px,env(safe-area-inset-left));right:max(9px,env(safe-area-inset-right))}
/* Full screen on a phone (owner 28.10: «в неё попасть невозможно»): the bar stands clear of the iPhone's
   home-indicator edge and its sides, the strip that takes the finger is 48 px tall over the bar, and the
   buttons row sits above that strip. */
.player-stage:is(.player-expanded,:fullscreen) .player-bottom{bottom:calc(48px + env(safe-area-inset-bottom))}
.player-stage:is(.player-expanded,:fullscreen) .player-seek{bottom:calc(10px + env(safe-area-inset-bottom));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));width:auto}
.player-stage:is(.player-expanded,:fullscreen) .player-scrub{height:calc(48px + env(safe-area-inset-bottom))}
.player-stage:is(.player-expanded,:fullscreen) .scrub-tip{bottom:calc(56px + env(safe-area-inset-bottom))}
.player-stage:is(.player-expanded,:fullscreen) .playback-notice{bottom:calc(88px + env(safe-area-inset-bottom))}
.player-stage:is(.player-expanded,:fullscreen) .ad-skip-toggle{bottom:calc(88px + env(safe-area-inset-bottom))}
/* Phone, «Для вас» under an open video (owner 28.10, variant B): only the topics with «Обновить» at their end. The tabs
   return once the video is minimized; «Мои видео», search and a channel keep their own headings. */
@media(max-width:999px){
 .video-lists:is([data-view=search],[data-view=channel]) .list-bar{display:none}
 #video-app:not(.has-mini-player) #viewer:not([hidden])~.video-bottom .video-lists[data-view=feed] .list-bar{display:none}
 #video-app:not(.has-mini-player) #viewer:not([hidden])~.video-bottom .feed-bar .list-action{display:grid}
}
/* One row for every list and width (owner 28.10): the thumbnail on the left, all text on the right — title in two
   lines, channel, views, date — and every row exactly the thumbnail's height, so the rectangles line up. */
.video-lists .video-library{gap:10px;max-width:none}
.video-lists .saved-video{--thumb:clamp(150px,42vw,210px);grid-template-columns:var(--thumb) minmax(0,1fr);grid-template-rows:auto auto 1fr;gap:0 10px;align-items:start;padding:3px;height:calc(var(--thumb) * 9 / 16 + 8px);overflow:hidden;box-sizing:border-box}
.video-lists .saved-preview{display:contents}
.video-lists .saved-thumbnail{grid-column:1;grid-row:1/-1}
.video-lists .saved-info{grid-column:2;grid-row:1;min-width:0}
.video-lists .saved-meta{grid-column:2;grid-row:2;padding:0;min-width:0}
.video-lists .saved-title,.video-lists .feed-list .saved-title{-webkit-line-clamp:2;font-size:14px;line-height:1.3;margin:0 0 3px}
.video-lists .saved-author,.video-lists .saved-stats,.video-lists .saved-date{font-size:12px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:0}
.video-lists .saved-description,.video-lists .feed-format{display:none}
@media(min-width:850px){.video-lists .saved-video{--thumb:clamp(168px,22vw,240px)}.video-lists .saved-title{font-size:15px}.video-lists .saved-author,.video-lists .saved-stats,.video-lists .saved-date{font-size:13px}}
@media(min-width:1000px){.video-lists .saved-video{--thumb:168px}.video-lists .saved-title{font-size:14px}.video-lists .saved-author,.video-lists .saved-stats,.video-lists .saved-date{font-size:12px}}

