/* ВИДЕО — раздел в стиле YouTube (тёмная тема) */
.vd{position:fixed;inset:0;z-index:12000;background:#0f0f0f;color:#f1f1f1;display:flex;flex-direction:column;overflow:hidden;font-size:14px}
.vd[hidden]{display:none!important}
html.vd-open,html.vd-open body{overflow:hidden}
.vd button{font:inherit;color:inherit}
.vd svg{width:22px;height:22px;flex:none}
.sp{flex:1}
.vd-top{display:flex;align-items:center;gap:10px;height:56px;padding:0 12px;padding-top:env(safe-area-inset-top);box-sizing:content-box;background:#0f0f0f;position:relative;z-index:5}
.vd-ib{width:40px;height:40px;border:0;border-radius:50%;background:0;display:grid;place-items:center;cursor:pointer;flex:none}.vd-ib:hover{background:#272727}
.vd-brand{display:flex;align-items:center;gap:6px;border:0;background:0;cursor:pointer;font-weight:800;letter-spacing:.04em;flex:none}.vd-brand svg{color:#f03}
.vd-search{flex:1;max-width:640px;margin:0 auto;display:flex;position:relative}
.vd-search input{flex:1;min-width:0;height:40px;border:1px solid #303030;border-right:0;border-radius:20px 0 0 20px;background:#121212;color:inherit;padding:0 16px;font:inherit;outline:0}
.vd-search input:focus{border-color:#1c62b9}
.vd-search>button{width:64px;height:40px;border:1px solid #303030;border-radius:0 20px 20px 0;background:#222;display:grid;place-items:center;cursor:pointer}
.vd-sug{position:absolute;top:44px;left:0;right:64px;background:#212121;border-radius:12px;padding:8px 0;box-shadow:0 8px 24px rgba(0,0,0,.6);z-index:20}
.vd-sug button{display:flex;gap:12px;align-items:center;width:100%;border:0;background:0;padding:8px 16px;text-align:left;cursor:pointer}.vd-sug button:hover,.vd-sug button:focus{background:#3d3d3d;outline:0}.vd-sug svg{width:18px;height:18px;opacity:.7}
.vd-shell{flex:1;display:flex;min-height:0}
.vd-side{width:220px;flex:none;overflow:auto;padding:8px;border-right:0}
.vd-side button{display:flex;align-items:center;gap:20px;width:100%;border:0;background:0;padding:10px 12px;border-radius:10px;cursor:pointer;text-align:left}
.vd-side button:hover{background:#272727}.vd-side button.on{background:#272727;font-weight:600}
.vd-side-subs{border-top:1px solid #303030;margin-top:8px;padding-top:8px}.vd-side-subs b{display:block;padding:6px 12px;font-size:15px}
.vd-side-subs .vd-ava{width:24px;height:24px;font-size:11px}.vd-side-subs span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vd-main{flex:1;overflow:auto;-webkit-overflow-scrolling:touch;padding:0 16px 32px;padding-bottom:max(32px,env(safe-area-inset-bottom))}
.vd.watching .vd-side{display:none}
.vd-chips{display:flex;gap:12px;overflow-x:auto;padding:12px 0;position:sticky;top:0;background:#0f0f0f;z-index:3;scrollbar-width:none}.vd-chips::-webkit-scrollbar{display:none}
.vd-chips button{flex:none;border:0;border-radius:8px;background:#272727;padding:6px 12px;cursor:pointer;white-space:nowrap}.vd-chips button:hover{background:#3f3f3f}.vd-chips button.on{background:#f1f1f1;color:#0f0f0f}
.vd-chips.sm{position:static;padding:0}
.vd-h{display:flex;align-items:center;gap:10px;font-size:20px;margin:16px 0}.vd-h .vd-link{margin-left:auto}
.vd-sec{margin:8px 0 24px}.vd-sec header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.vd-sec h2{margin:0;font-size:18px}
.vd-link{background:0;border:0;color:#3ea6ff;cursor:pointer;padding:6px 8px;border-radius:16px}.vd-link:hover{background:#263850}
.vd-row{display:flex;gap:16px;overflow-x:auto;padding-bottom:6px}.vd-row .vd-card{width:260px;flex:none}
.vd-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:40px 16px;padding-top:4px}
.vd-card{display:flex;flex-direction:column;gap:12px;min-width:0;text-align:left}
.vd-hit{border:0;background:0;padding:0;cursor:pointer;display:block;width:100%}
.vd-thumb{position:relative;display:block;aspect-ratio:16/9;background:#272727;border-radius:12px;overflow:hidden}
.vd-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s}.vd-hit:hover .vd-thumb img{transform:scale(1.03)}
.vd-thumb i{position:absolute;right:6px;bottom:6px;background:rgba(0,0,0,.8);padding:1px 5px;border-radius:4px;font:500 12px/18px inherit;font-style:normal;display:flex;gap:4px;align-items:center}.vd-thumb i svg{width:14px;height:14px}
.vd-thumb b{position:absolute;left:0;right:0;bottom:0;height:4px;background:rgba(255,255,255,.3)}.vd-thumb b::after{content:"";display:block;width:var(--p,0);height:100%;background:#f03}
.vd-meta{display:flex;gap:12px;min-width:0}.vd-mt{display:flex;flex-direction:column;min-width:0;gap:2px}
.vd-avab{border:0;background:0;padding:0;cursor:pointer;flex:none;height:36px}
.vd-ava{width:36px;height:36px;border-radius:50%;display:inline-grid;place-items:center;background:hsl(var(--h,200) 45% 35%);font-weight:700;flex:none;object-fit:cover}
.vd-tt{border:0;background:0;padding:0;text-align:left;cursor:pointer;font-weight:600;font-size:15px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.vd-cn{border:0;background:0;padding:0;text-align:left;color:#aaa!important;cursor:pointer;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vd-cn:hover:not(:disabled){color:#f1f1f1!important}.vd-cn:disabled{cursor:default}
.vd-mt small{color:#aaa;font-size:13px}
.vd-card.ch{flex-direction:row;align-items:center;gap:16px;border:0;background:0;cursor:pointer;padding:8px}.vd-chava .vd-ava{width:96px;height:96px;font-size:36px}
.vd-card.sk .vd-thumb{animation:vdsk 1.2s infinite alternate}.vd-card.sk .vd-ava{background:#272727}.vd-card.sk i{display:block;height:14px;width:90%;background:#272727;border-radius:4px;margin:4px 0}.vd-card.sk i+i{width:60%}
@keyframes vdsk{from{opacity:.5}to{opacity:1}}
.vd-grid.list{grid-template-columns:1fr;gap:12px}
.vd-grid.list .vd-card{flex-direction:row;gap:10px}.vd-grid.list .vd-hit{width:168px;flex:none}.vd-grid.list .vd-thumb{border-radius:8px}.vd-grid.list .vd-tt{font-size:14px}
.vd-grid.search .vd-card:not(.ch){flex-direction:row;gap:16px}.vd-grid.search .vd-hit{width:min(360px,45%);flex:none}.vd-grid.search{grid-template-columns:1fr;gap:16px;max-width:1100px}
.vd-more{display:grid;place-items:center;padding:24px}.vd-spin3,.vd-spin2{width:36px;height:36px;border:3px solid rgba(255,255,255,.2);border-top-color:#fff;border-radius:50%;animation:vdspin .8s linear infinite}
@keyframes vdspin{to{transform:rotate(360deg)}}
.vd-empty{padding:60px 16px;text-align:center;color:#aaa}.vd-empty b{display:block;color:#f1f1f1;font-size:18px;margin-bottom:8px}
.vd-fbar{display:flex;gap:12px;align-items:center;padding:12px 0;flex-wrap:wrap}
.vd-fbtn{display:flex;gap:6px;align-items:center;border:0;background:0;cursor:pointer;padding:6px 12px;border-radius:18px}.vd-fbtn:hover,.vd-fbtn.on{background:#272727}
.vd-filters{display:none;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:8px 0 16px;border-bottom:1px solid #303030;margin-bottom:12px}.vd-filters.open{display:grid}
.vd-filters div{display:flex;flex-direction:column;gap:2px}.vd-filters b{font-size:12px;text-transform:uppercase;color:#aaa;padding:4px 0 8px;border-bottom:1px solid #303030;margin-bottom:4px}
.vd-filters button{border:0;background:0;text-align:left;padding:6px 0;color:#aaa;cursor:pointer}.vd-filters button.on{color:#f1f1f1;font-weight:700}
.vd-chhead{padding:16px 0}.vd-chrow{display:flex;gap:16px;align-items:center}.vd-chrow h1{margin:0 0 4px;font-size:28px}.vd-chrow small{color:#aaa}.vd-chrow p{color:#aaa;margin:6px 0 0;max-width:720px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.vd-chhead .vd-chrow>.vd-ava{width:120px;height:120px;font-size:44px}.vd-chrow.pl svg{width:56px;height:56px}
.vd-subb{margin-left:auto;border:0;border-radius:18px;background:#f1f1f1;color:#0f0f0f!important;font-weight:600;padding:0 16px;height:36px;cursor:pointer;flex:none}.vd-subb.on{background:#272727;color:#f1f1f1!important}
.vd-chrow.sm{margin:10px 0}.vd-chrow.sm .vd-ava{width:40px;height:40px}
/* страница просмотра */
.vd-watch{display:grid;grid-template-columns:minmax(0,1fr) 402px;gap:24px;padding-top:16px;max-width:1750px;margin:0 auto}
.vd.theater .vd-watch{grid-template-columns:1fr}.vd.theater .vd-stage{max-height:calc(100vh - 140px);aspect-ratio:auto;height:calc(100vh - 140px)}
.vd-info h1{font-size:20px;margin:12px 0 4px;line-height:1.35}
.vd-desc{background:#272727;border-radius:12px;padding:12px;margin-top:8px}.vd-desc b{display:block;margin-bottom:6px}
.vd-desc p{margin:0;white-space:pre-wrap;max-height:4.2em;overflow:hidden}.vd-desc.open p{max-height:none}
.vd-rel h3{margin:0 0 12px;font-size:16px}
.vd-stage{position:relative;background:#000;aspect-ratio:16/9;border-radius:12px;overflow:hidden;user-select:none;-webkit-user-select:none;touch-action:manipulation;outline:0}
.vd-stage video{width:100%;height:100%;object-fit:contain;display:block;background:#000}
.vd-stage.iskra-pfs{border-radius:0;aspect-ratio:auto!important}
.vd-spin2{position:absolute;left:50%;top:50%;margin:-24px;width:48px;height:48px;pointer-events:none}
.vd-big{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:72px;height:72px;border-radius:50%;border:0;background:rgba(0,0,0,.6);color:#fff;display:grid;place-items:center;cursor:pointer}.vd-big svg{width:36px;height:36px}
.vd-flash{position:absolute;left:50%;top:22%;transform:translateX(-50%);background:rgba(0,0,0,.7);padding:8px 14px;border-radius:20px;font-weight:600;opacity:0;pointer-events:none}
.vd-flash.on{animation:vdflash .8s}@keyframes vdflash{0%{opacity:1}70%{opacity:1}100%{opacity:0}}
.vd-ctl{position:absolute;left:0;right:0;bottom:0;padding:0 12px 6px;padding-bottom:max(6px,env(safe-area-inset-bottom));background:linear-gradient(transparent,rgba(0,0,0,.75));opacity:0;transition:opacity .2s;pointer-events:none}
.vd-stage.ui .vd-ctl,.vd-stage:focus-within .vd-ctl{opacity:1;pointer-events:auto}.vd-stage:not(.ui){cursor:none}
.vd-bar{position:relative;height:18px;display:flex;align-items:center;cursor:pointer;touch-action:none}
.vd-bar::before{content:"";position:absolute;left:0;right:0;height:4px;background:rgba(255,255,255,.25);border-radius:2px;top:7px;transition:height .1s,top .1s}
.vd-buf,.vd-pl{position:absolute;left:0;height:4px;top:7px;border-radius:2px;transition:height .1s,top .1s}.vd-buf{background:rgba(255,255,255,.45)}.vd-pl{background:#f03}
.vd-bar:hover::before,.vd-bar:hover .vd-buf,.vd-bar:hover .vd-pl,.vd-stage.drag .vd-bar::before,.vd-stage.drag .vd-pl{height:6px;top:6px}
.vd-knob{position:absolute;top:3px;width:13px;height:13px;margin-left:-6.5px;border-radius:50%;background:#f03;transform:scale(0);transition:transform .1s}.vd-bar:hover .vd-knob,.vd-stage.drag .vd-knob{transform:scale(1)}
.vd-tip{position:absolute;bottom:22px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:4px;pointer-events:none}
.vd-tip span{background:rgba(0,0,0,.8);padding:2px 8px;border-radius:4px;font-weight:600;font-size:13px}.vd-sbimg{border:2px solid #fff;border-radius:6px;background-repeat:no-repeat;background-color:#000}
.vd-row2{display:flex;align-items:center;gap:4px;height:44px}
.vd-cb{width:40px;height:40px;border:0;background:0;color:#fff!important;cursor:pointer;display:grid;place-items:center;border-radius:50%;flex:none}.vd-cb:hover{background:rgba(255,255,255,.12)}
.vd-txt{width:auto;padding:0 10px;border-radius:16px;font-weight:600;font-size:13px}
.vd-vol{display:flex;align-items:center}.vd-vol input{width:0;opacity:0;transition:width .2s,opacity .2s;accent-color:#fff}.vd-vol:hover input,.vd-vol:focus-within input{width:72px;opacity:1}
.vd-time{font-size:13px;color:#eee;margin-left:8px;white-space:nowrap;font-variant-numeric:tabular-nums}
.vd-menu{position:absolute;right:12px;bottom:60px;background:rgba(28,28,28,.95);border-radius:12px;padding:8px 0;min-width:180px;max-height:70%;overflow:auto}
.vd-menu b{display:block;padding:6px 16px;color:#aaa;font-size:12px}.vd-menu button{display:block;width:100%;text-align:left;border:0;background:0;color:#fff!important;padding:9px 16px 9px 36px;cursor:pointer;position:relative}
.vd-menu button:hover{background:rgba(255,255,255,.1)}.vd-menu button.on::before{content:"✓";position:absolute;left:14px}.vd-menu small{color:#f03;font-weight:700;font-size:10px;margin-left:4px}
@media(max-width:1100px){.vd-watch{grid-template-columns:1fr}.vd-side{width:72px}.vd-side span,.vd-side-subs{display:none}.vd-side button{justify-content:center;padding:14px 0}}
@media(max-width:760px){
  .vd-side{position:fixed;left:0;top:calc(56px + env(safe-area-inset-top));bottom:0;width:240px;background:#0f0f0f;z-index:6;transform:translateX(-100%);transition:transform .2s;box-shadow:4px 0 16px rgba(0,0,0,.5)}
  .vd.side-open .vd-side{transform:none}.vd-side span{display:inline}.vd-side-subs{display:block}.vd-side button{justify-content:flex-start;padding:12px}
  .vd-brand b{display:none}.vd-search>button{width:48px}.vd-sug{right:48px}
  .vd-main{padding:0 0 32px}.vd-chips,.vd-h,.vd-fbar,.vd-filters,.vd-chhead,.vd-sec header,.vd-info,.vd-rel,.vd-empty{padding-left:12px;padding-right:12px}
  .vd-grid{grid-template-columns:1fr;gap:20px}.vd-grid .vd-meta{padding:0 12px}.vd-thumb{border-radius:0}
  .vd-grid.search .vd-card:not(.ch){flex-direction:column}.vd-grid.search .vd-hit{width:100%}
  .vd-grid.list .vd-thumb{border-radius:8px}.vd-grid.list .vd-meta{padding:0}.vd-rel .vd-grid.list{padding:0}
  .vd-row{padding:0 12px}.vd-watch{padding-top:0;gap:8px}.vd-stage{border-radius:0}.vd-hide-s{display:none!important}.vd-vol input{display:none}
  .vd-filters{grid-template-columns:1fr}.vd-chrow h1{font-size:20px}.vd-chhead .vd-chrow{flex-wrap:wrap}.vd-chhead .vd-chrow>.vd-ava{width:72px;height:72px;font-size:28px}
}
/* ШОРТС 16.10.2026 */
.vd-shorts{position:fixed;inset:0;z-index:60;background:#000;overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior:contain;scrollbar-width:none;outline:none}
.vd-shorts::-webkit-scrollbar{display:none}
.vd-sh{position:relative;height:100vh;height:100dvh;scroll-snap-align:start;scroll-snap-stop:always;display:flex;align-items:center;justify-content:center;overflow:hidden}
.vd-sh video{width:100%;height:100%;max-width:calc(100dvh*9/16);object-fit:cover;background:#000}
@media (min-aspect-ratio:3/4){.vd-sh video{object-fit:contain;border-radius:12px}}
.vd-sh-tap{position:absolute;inset:0 70px 120px 0}
.vd-sh-ic{position:absolute;left:50%;top:50%;width:72px;height:72px;margin:-36px;color:#fff;opacity:0;pointer-events:none;transition:opacity .2s;filter:drop-shadow(0 2px 6px #000a)}
.vd-sh.paused .vd-sh-ic{opacity:.85}
.vd-sh-meta{position:absolute;left:12px;right:76px;bottom:22px;color:#fff;text-shadow:0 1px 3px #000c;pointer-events:none}
.vd-sh-meta p{margin:6px 0 0;font-size:14px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.vd-sh-cn{pointer-events:auto;display:flex;align-items:center;gap:8px;background:none;border:0;color:#fff;font-weight:600;padding:0;cursor:pointer}
.vd-sh-cn .vd-ava{width:32px;height:32px}
.vd-sh-act{position:absolute;right:10px;bottom:28px;display:flex;flex-direction:column;gap:14px}
.vd-sh-b{width:48px;height:48px;border-radius:50%;border:0;background:#fff3;color:#fff;display:grid;place-items:center;cursor:pointer;backdrop-filter:blur(6px)}
.vd-sh-b svg{width:24px;height:24px}.vd-sh-b.on{color:#ff3b5c}
.vd-sh-bar{position:absolute;left:0;right:0;bottom:0;height:3px;background:#fff3}.vd-sh-bar i{display:block;height:100%;width:0;background:#f33}
.vd-sh-top{position:sticky;top:0;height:0;z-index:2;display:flex;justify-content:space-between;align-items:flex-start;padding:0 8px;color:#fff}
.vd-sh-top>*{margin-top:calc(8px + env(safe-area-inset-top))}.vd-sh-top .vd-ib{background:#0006;color:#fff}.vd-sh-top b{padding-top:10px;text-shadow:0 1px 3px #000}
.vd-sh-end{height:100dvh;display:grid;place-items:center;color:#ccc;text-align:center;scroll-snap-align:start}
.vd-shchip{background:#f33!important;color:#fff!important}

/* НАСТОЯЩИЙ YOUTUBE 16.10.2026 */
.vd-rytchip{border:1px solid #f33!important}
.vd-ryt{position:fixed;inset:0;z-index:70;background:#0009;display:grid;place-items:center;padding:16px}
.vd-ryt-box{max-width:420px;width:100%;background:var(--vd-bg,#1f1f1f);color:var(--vd-fg,#fff);border-radius:16px;padding:18px;box-shadow:0 10px 40px #0008}
.vd-ryt-box h3{margin:0 0 8px;font-size:18px}.vd-ryt-box p{margin:0 0 14px;line-height:1.4;font-size:14px;opacity:.9}
.vd-ryt-btns{display:flex;flex-direction:column;gap:8px}
.vd-ryt-btns button{padding:11px;border-radius:10px;border:0;background:#ffffff1a;color:inherit;font-size:14px;cursor:pointer}
.vd-ryt-btns button.pri{background:#f33;color:#fff;font-weight:600}
