/* StreamHub — основная таблица стилей */
:root{
  --bg:#0E0F13;--bg-2:#15171D;--surface:#1C1F27;--surface-2:#242833;--line:#2C313D;--line-2:#3A4050;
  --text:#F2F3F7;--text-2:#B4B8C5;--muted:#7D8294;
  --accent:#F5B335;--accent-2:#FFCB5C;--accent-ink:#1A1300;
  --danger:#F26C6C;--ok:#5FD39A;
  --shadow:0 12px 32px rgba(0,0,0,.45);
  --r:10px;--r-lg:16px;
  --font:"Rubik","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --logo:"Unbounded","Rubik","Segoe UI",sans-serif;
  --mono:"JetBrains Mono",Consolas,"Courier New",monospace;
  --header-h:60px;--side-w:236px;
  color-scheme:dark;
}
:root[data-theme="light"]{
  --bg:#F6F6F8;--bg-2:#FFFFFF;--surface:#FFFFFF;--surface-2:#EEEFF3;--line:#E1E3EA;--line-2:#CDD0DA;
  --text:#15161C;--text-2:#454957;--muted:#7A7F90;
  --accent:#D8921A;--accent-2:#B87A10;--accent-ink:#FFFFFF;
  --shadow:0 10px 28px rgba(20,22,40,.12);
  color-scheme:light;
}
*{box-sizing:border-box;margin:0;padding:0}
html{height:100%;scroll-behavior:smooth}
body{min-height:100%;background:var(--bg);color:var(--text);font:15px/1.5 var(--font);-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img,video,svg{display:block;max-width:100%}
button,input,select,textarea{font:inherit;color:inherit}
button{background:none;border:0;cursor:pointer}
ul{list-style:none}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* ---------- шапка ---------- */
.header{position:sticky;top:0;z-index:40;height:var(--header-h);display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;padding:0 16px;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.header-left{display:flex;align-items:center;gap:10px}
.icon-btn{width:40px;height:40px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:var(--text-2);transition:background .15s,color .15s;position:relative}
.icon-btn:hover{background:var(--surface-2);color:var(--text)}
.icon-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.icon-btn .badge{position:absolute;top:5px;right:5px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--danger);color:#fff;font:600 10.5px/16px var(--font);text-align:center}
.logo{display:inline-flex;align-items:center;gap:9px;font:700 18px/1 var(--logo);letter-spacing:.01em;color:var(--text)}
.logo i{width:30px;height:30px;border-radius:9px;background:var(--accent);display:inline-grid;place-items:center}
.logo i::after{content:"";width:0;height:0;border-style:solid;border-width:7px 0 7px 12px;border-color:transparent transparent transparent var(--accent-ink);margin-left:3px}
.logo span b{color:var(--accent)}
.search{position:relative;max-width:640px;width:100%;justify-self:center}
.search form{display:flex;height:42px;border:1px solid var(--line-2);border-radius:21px;background:var(--bg-2);overflow:hidden;transition:border-color .15s,box-shadow .15s}
.search form:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent)}
.search input{flex:1;min-width:0;padding:0 18px;background:transparent;border:0;outline:0;color:var(--text)}
.search input::placeholder{color:var(--muted)}
.search button{width:64px;background:var(--surface-2);border-left:1px solid var(--line);color:var(--text-2);display:grid;place-items:center}
.search button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.suggest{position:absolute;top:calc(100% + 6px);left:0;right:0;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);overflow:hidden;z-index:50}
.suggest li{display:flex;align-items:center;gap:12px;padding:10px 14px;cursor:pointer}
.suggest li[aria-selected="true"],.suggest li:hover{background:var(--surface-2)}
.suggest li svg{width:18px;height:18px;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round;flex:none}
.suggest li .s-type{margin-left:auto;font-size:11.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
.suggest li mark{background:none;color:var(--accent);font-weight:600}
.header-right{display:flex;align-items:center;gap:4px}
.avatar{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,var(--accent),#E8683F);color:#1A1300;display:grid;place-items:center;font-weight:700;font-size:14px;flex:none}
.avatar.lg{width:80px;height:80px;font-size:30px}
.avatar.xl{width:120px;height:120px;font-size:44px}
.menu{position:absolute;top:calc(var(--header-h) - 6px);right:12px;width:340px;max-width:calc(100vw - 24px);background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);z-index:60;overflow:hidden}
.menu h4{padding:14px 16px 10px;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);border-bottom:1px solid var(--line)}
.menu .m-list{max-height:380px;overflow:auto}
.menu .m-item{display:flex;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line);align-items:flex-start}
.menu .m-item:last-child{border-bottom:0}
.menu .m-item:hover{background:var(--surface-2)}
.menu .m-item img{width:84px;aspect-ratio:16/9;object-fit:cover;border-radius:6px;flex:none}
.menu .m-item .t{font-size:13.5px;font-weight:500;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.menu .m-item .s{font-size:12px;color:var(--muted);margin-top:4px}
.menu .m-empty{padding:28px 16px;text-align:center;color:var(--muted);font-size:14px}
.menu .m-row{display:flex;align-items:center;gap:12px;padding:12px 16px;width:100%;text-align:left;color:var(--text)}
.menu .m-row:hover{background:var(--surface-2)}
.menu .m-row svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.menu .m-profile{display:flex;gap:12px;align-items:center;padding:16px;border-bottom:1px solid var(--line)}
.menu .m-profile b{display:block}
.menu .m-profile span{font-size:12.5px;color:var(--muted)}

/* ---------- каркас ---------- */
.layout{display:grid;grid-template-columns:var(--side-w) minmax(0,1fr);min-height:calc(100vh - var(--header-h))}
.layout.collapsed{grid-template-columns:72px minmax(0,1fr)}
.layout.watch-layout{grid-template-columns:minmax(0,1fr)}
.sidebar{position:sticky;top:var(--header-h);height:calc(100vh - var(--header-h));overflow-y:auto;padding:12px 10px;border-right:1px solid var(--line);background:var(--bg)}
.sidebar::-webkit-scrollbar{width:6px}.sidebar::-webkit-scrollbar-thumb{background:var(--line-2);border-radius:3px}
.side-group{padding:6px 0 10px;border-bottom:1px solid var(--line);margin-bottom:8px}
.side-group:last-child{border-bottom:0}
.side-title{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);padding:8px 12px 6px}
.side-link{display:flex;align-items:center;gap:14px;padding:9px 12px;border-radius:9px;color:var(--text-2);font-weight:500;font-size:14px;width:100%;text-align:left;transition:background .12s,color .12s}
.side-link svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.side-link:hover{background:var(--surface);color:var(--text)}
.side-link[aria-current="page"]{background:var(--surface-2);color:var(--text)}
.side-link[aria-current="page"] svg{stroke:var(--accent)}
.side-link .count{margin-left:auto;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.side-link .dot{width:8px;height:8px;border-radius:50%;background:var(--accent);margin-left:auto}
.layout.collapsed .side-link{flex-direction:column;gap:5px;padding:12px 4px;font-size:10.5px;font-weight:400}
.layout.collapsed .side-link .count,.layout.collapsed .side-title,.layout.collapsed .side-link .dot,.layout.collapsed .side-group.cats{display:none}
.layout.collapsed .side-group{border:0;margin:0}
.side-chan{display:flex;align-items:center;gap:12px;padding:8px 12px;border-radius:9px;font-size:14px;color:var(--text-2)}
.side-chan:hover{background:var(--surface);color:var(--text)}
.side-chan .avatar{width:26px;height:26px;font-size:11px}
.side-chan span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.side-foot{padding:14px 12px;font-size:12px;color:var(--muted);line-height:1.6}
.side-foot a{color:var(--text-2)}
.main{padding:20px 24px 72px;min-width:0}
@media (max-width:1100px){.layout{grid-template-columns:72px minmax(0,1fr)}.layout .side-link{flex-direction:column;gap:5px;padding:12px 4px;font-size:10.5px;font-weight:400}.layout .side-link .count,.layout .side-title,.layout .side-group.cats,.layout .side-chan,.layout .side-foot,.layout .side-link .dot{display:none}.layout .side-group{border:0;margin:0}}
@media (max-width:720px){.layout,.layout.collapsed{grid-template-columns:minmax(0,1fr)}.sidebar{display:none}.main{padding:14px 14px 80px}.header{grid-template-columns:auto 1fr auto;gap:8px;padding:0 10px}.logo span{display:none}.search button{width:48px}.header-right .hide-sm{display:none}}

/* ---------- мобильная нижняя навигация ---------- */
.tabbar{display:none;position:fixed;left:0;right:0;bottom:0;z-index:40;background:var(--bg-2);border-top:1px solid var(--line);padding:6px 0 calc(6px + env(safe-area-inset-bottom,0px));grid-template-columns:repeat(5,1fr)}
.tabbar a{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:10.5px;color:var(--text-2);padding:4px 0}
.tabbar a svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tabbar a[aria-current="page"]{color:var(--accent)}
@media (max-width:720px){.tabbar{display:grid}}

/* ---------- фильтры-чипы ---------- */
.chips{display:flex;gap:8px;overflow-x:auto;padding:2px 0 12px;scrollbar-width:none;position:sticky;top:var(--header-h);background:var(--bg);z-index:5;margin-bottom:8px}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;padding:7px 14px;border-radius:8px;background:var(--surface);border:1px solid var(--line);color:var(--text-2);font-size:13.5px;font-weight:500;white-space:nowrap;transition:background .12s,color .12s}
.chip:hover{background:var(--surface-2);color:var(--text)}
.chip[aria-pressed="true"]{background:var(--text);color:var(--bg);border-color:var(--text)}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:4px 0 18px}
.toolbar h1{font-size:22px;font-weight:600;letter-spacing:-.01em;text-wrap:balance}
.toolbar .sub{color:var(--muted);font-size:13.5px;margin-top:2px}
.toolbar .right{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.select{height:36px;padding:0 34px 0 12px;border-radius:8px;border:1px solid var(--line-2);background:var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;appearance:none;color:var(--text);font-size:13.5px}
.btn{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 16px;border-radius:19px;background:var(--surface-2);color:var(--text);font-weight:500;font-size:14px;transition:background .12s,transform .1s;white-space:nowrap}
.btn:hover{background:var(--line)}
.btn:active{transform:scale(.98)}
.btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.btn.primary{background:var(--accent);color:var(--accent-ink)}
.btn.primary:hover{background:var(--accent-2)}
.btn.outline{background:transparent;border:1px solid var(--line-2)}
.btn.outline:hover{background:var(--surface)}
.btn.sm{height:32px;padding:0 12px;font-size:13px}
.btn[aria-pressed="true"]{background:var(--text);color:var(--bg)}
.btn[aria-pressed="true"] svg{fill:currentColor;stroke:none}

/* ---------- сетка карточек ---------- */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:26px 18px}
@media (max-width:480px){.grid{grid-template-columns:1fr;gap:20px}}
.card{display:flex;flex-direction:column;gap:11px;min-width:0;position:relative}
.thumb{position:relative;aspect-ratio:16/9;border-radius:var(--r);overflow:hidden;background:var(--surface);isolation:isolate}
.thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease,opacity .25s}
.thumb video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .25s;background:#000}
.card:hover .thumb img{transform:scale(1.04)}
.thumb.playing img{opacity:0}.thumb.playing video{opacity:1}
.thumb .dur{position:absolute;right:8px;bottom:8px;padding:2px 6px;border-radius:5px;background:rgba(0,0,0,.82);color:#fff;font:500 12px/1.5 var(--mono);z-index:2}
.thumb .q{position:absolute;left:8px;top:8px;padding:2px 7px;border-radius:5px;background:rgba(0,0,0,.72);color:#fff;font:600 10.5px/1.6 var(--font);letter-spacing:.06em;z-index:2}
.thumb .q.hd{background:var(--accent);color:var(--accent-ink)}
.thumb .prog{position:absolute;left:0;right:0;bottom:0;height:3px;background:rgba(255,255,255,.25);z-index:2}
.thumb .prog i{display:block;height:100%;background:var(--accent)}
.thumb .pv-bar{position:absolute;left:0;right:0;bottom:0;height:3px;background:rgba(255,255,255,.3);z-index:3;opacity:0;transition:opacity .2s}
.thumb.playing .pv-bar{opacity:1}
.thumb .pv-bar i{display:block;height:100%;width:0;background:#fff}
.thumb .wl{position:absolute;top:8px;right:8px;width:30px;height:30px;border-radius:7px;background:rgba(0,0,0,.72);color:#fff;display:grid;place-items:center;opacity:0;transition:opacity .15s;z-index:3}
.thumb .wl svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.card:hover .thumb .wl,.thumb .wl[aria-pressed="true"]{opacity:1}
.thumb .wl[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink)}
.card-meta{display:flex;gap:12px;align-items:flex-start}
.card-meta .avatar{margin-top:2px}
.card-text{min-width:0;flex:1}
.card-title{font-size:15px;font-weight:500;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--text)}
.card-sub{font-size:13px;color:var(--muted);margin-top:4px;line-height:1.45}
.card-sub a:hover{color:var(--text)}
.card-sub .sep::before{content:"•";margin:0 5px}
.card.row{flex-direction:row;gap:12px}
.card.row .thumb{width:168px;flex:none;border-radius:8px}
.card.row .card-meta{gap:0}
.card.row .card-title{font-size:14px;-webkit-line-clamp:2}
.card.row .card-sub{font-size:12.5px}
@media (max-width:480px){.card.row .thumb{width:140px}}
.card.row.big{gap:16px}
.card.row.big .thumb{width:360px}
.card.row.big .card-title{font-size:18px}
@media (max-width:860px){.card.row.big .thumb{width:220px}.card.row.big .card-title{font-size:15px}}
.skeleton .thumb,.skeleton .sk{background:linear-gradient(100deg,var(--surface) 30%,var(--surface-2) 50%,var(--surface) 70%);background-size:300% 100%;animation:sh 1.3s infinite}
.skeleton .sk{height:14px;border-radius:5px;margin-top:8px}
@keyframes sh{to{background-position-x:-300%}}
.empty{padding:60px 20px;text-align:center;color:var(--muted);border:1px dashed var(--line-2);border-radius:var(--r-lg)}
.empty h3{color:var(--text);font-weight:600;margin-bottom:6px}
.empty .btn{margin-top:16px}
.loadmore{display:flex;justify-content:center;padding:36px 0 10px}
.section{margin-top:36px}
.section-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:14px}
.section-h h2{font-size:19px;font-weight:600}
.section-h a{font-size:13.5px;color:var(--accent)}
.shelf{display:flex;gap:16px;overflow-x:auto;padding-bottom:8px;scroll-snap-type:x mandatory;scrollbar-width:thin}
.shelf .card{flex:0 0 280px;scroll-snap-align:start}
.cat-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.cat-tile{position:relative;aspect-ratio:2.2;border-radius:var(--r);overflow:hidden;background:var(--surface);display:flex;align-items:flex-end;padding:14px;color:#fff;font-weight:600;font-size:16px;isolation:isolate}
.cat-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1;transition:transform .5s;filter:brightness(.7)}
.cat-tile:hover img{transform:scale(1.06)}
.cat-tile::before{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.75),transparent 70%);z-index:-1}
.cat-tile small{display:block;font-weight:400;font-size:12px;opacity:.85}

/* ---------- страница просмотра ---------- */
.watch{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:24px;padding:20px 24px 80px;max-width:1800px;margin:0 auto}
.watch.theater{grid-template-columns:minmax(0,1fr)}
.watch.theater .player-wrap{max-height:calc(100vh - var(--header-h) - 40px)}
.watch.theater .player-wrap .player{aspect-ratio:auto;height:min(78vh,calc(100vw * 9 / 16))}
.watch.theater .rec{grid-column:1;max-width:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px 18px}
.watch.theater .rec .card.row{flex-direction:column;gap:11px}
.watch.theater .rec .card.row .thumb{width:auto}
@media (max-width:1100px){.watch{grid-template-columns:minmax(0,1fr);padding:0 0 80px}.watch .rec{padding:0 14px}.watch .v-info{padding:0 14px}}
.v-title{font-size:20px;font-weight:600;line-height:1.3;margin:14px 0 10px;text-wrap:balance}
.v-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.v-owner{display:flex;align-items:center;gap:12px}
.v-owner .avatar{width:40px;height:40px}
.v-owner b{display:block;font-size:15px}
.v-owner span{font-size:12.5px;color:var(--muted)}
.v-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.likebar{display:inline-flex;height:38px;border-radius:19px;background:var(--surface-2);overflow:hidden}
.likebar button{display:inline-flex;align-items:center;gap:8px;padding:0 14px;font-weight:500;font-size:14px;color:var(--text)}
.likebar button:hover{background:var(--line)}
.likebar button:first-child{border-right:1px solid var(--line-2)}
.likebar button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.likebar button[aria-pressed="true"] svg{fill:currentColor}
.likebar button[aria-pressed="true"]{color:var(--accent)}
.v-desc{margin-top:16px;padding:14px 16px;border-radius:12px;background:var(--surface);cursor:pointer;transition:background .15s}
.v-desc:hover{background:var(--surface-2)}
.v-desc.open{cursor:default}
.v-desc .stats{font-weight:600;font-size:14px;display:flex;gap:8px;flex-wrap:wrap}
.v-desc .stats .tags{font-weight:500;color:var(--accent)}
.v-desc .text{margin-top:8px;font-size:14px;line-height:1.6;white-space:pre-wrap;color:var(--text-2);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.v-desc.open .text{display:block;-webkit-line-clamp:unset;overflow:visible}
.v-desc .more{margin-top:8px;font-weight:600;font-size:14px;color:var(--text)}
.v-desc .tech{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px 16px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line);font-size:13px}
.v-desc .tech span{color:var(--muted);display:block;font-size:11.5px;text-transform:uppercase;letter-spacing:.06em}
.v-desc .tech b{font:500 13.5px var(--mono);font-variant-numeric:tabular-nums}
.v-desc .src{margin-top:12px;font-size:13px;color:var(--muted)}
.v-desc .src a{color:var(--accent)}
.tagline{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.tagline a{padding:5px 11px;border-radius:7px;background:var(--surface);border:1px solid var(--line);font-size:13px;color:var(--text-2)}
.tagline a:hover{color:var(--text);border-color:var(--line-2)}

/* ---------- плеер ---------- */
.player-wrap{position:relative;background:#000;border-radius:var(--r-lg);overflow:hidden}
@media (max-width:1100px){.player-wrap{border-radius:0}}
.player{position:relative;aspect-ratio:16/9;background:#000;user-select:none;outline:0}
.player video{width:100%;height:100%;object-fit:contain;background:#000}
.player.idle .controls,.player.idle .top-bar{opacity:0;pointer-events:none}
.player.idle{cursor:none}
.player .controls{position:absolute;left:0;right:0;bottom:0;padding:0 14px 8px;background:linear-gradient(to top,rgba(0,0,0,.85),rgba(0,0,0,.35) 60%,transparent);transition:opacity .25s;color:#fff}
.player .top-bar{position:absolute;left:0;right:0;top:0;padding:12px 16px;background:linear-gradient(to bottom,rgba(0,0,0,.6),transparent);font-weight:500;font-size:15px;color:#fff;transition:opacity .25s;text-shadow:0 1px 2px rgba(0,0,0,.6);display:flex;justify-content:space-between;gap:12px}
.player .top-bar .ql{font:600 11px/1 var(--font);letter-spacing:.08em;padding:5px 7px;border-radius:5px;background:var(--accent);color:var(--accent-ink);align-self:flex-start}
.seek{position:relative;height:18px;display:flex;align-items:center;cursor:pointer;margin-bottom:2px}
.seek .track{position:relative;width:100%;height:4px;border-radius:2px;background:rgba(255,255,255,.28);transition:height .12s}
.seek:hover .track,.seek.dragging .track{height:6px}
.seek .buf,.seek .fill,.seek .hov{position:absolute;left:0;top:0;bottom:0;border-radius:2px}
.seek .buf{background:rgba(255,255,255,.45)}
.seek .hov{background:rgba(255,255,255,.55);opacity:0}
.seek:hover .hov{opacity:1}
.seek .fill{background:var(--accent)}
.seek .knob{position:absolute;top:50%;width:14px;height:14px;border-radius:50%;background:var(--accent);transform:translate(-50%,-50%) scale(0);transition:transform .12s;box-shadow:0 0 0 4px rgba(0,0,0,.25)}
.seek:hover .knob,.seek.dragging .knob{transform:translate(-50%,-50%) scale(1)}
.seek .tip{position:absolute;bottom:22px;transform:translateX(-50%);background:rgba(0,0,0,.9);padding:3px 7px;border-radius:5px;font:500 12px/1.4 var(--mono);opacity:0;pointer-events:none;white-space:nowrap}
.seek:hover .tip{opacity:1}
.ctl-row{display:flex;align-items:center;gap:4px}
.ctl{width:40px;height:40px;display:grid;place-items:center;border-radius:8px;color:#fff;transition:background .12s}
.ctl:hover{background:rgba(255,255,255,.14)}
.ctl svg{width:24px;height:24px;fill:#fff;stroke:none}
.ctl.outline svg{fill:none;stroke:#fff;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ctl[aria-pressed="true"]{background:rgba(255,255,255,.18)}
.vol{display:flex;align-items:center;gap:4px}
.vol input{width:0;opacity:0;transition:width .2s,opacity .2s;accent-color:#fff;height:4px;cursor:pointer}
.vol:hover input,.vol:focus-within input{width:80px;opacity:1}
.time{font:500 13px/1 var(--mono);color:#fff;padding:0 8px;font-variant-numeric:tabular-nums;white-space:nowrap}
.time span{color:rgba(255,255,255,.7)}
.ctl-spacer{flex:1}
.popover{position:absolute;right:14px;bottom:62px;min-width:200px;background:rgba(20,20,24,.96);border:1px solid rgba(255,255,255,.1);border-radius:10px;padding:6px;box-shadow:var(--shadow);color:#fff;z-index:5}
.popover h5{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.6);padding:8px 10px 6px}
.popover button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:9px 10px;border-radius:7px;font-size:14px;color:#fff;text-align:left}
.popover button:hover{background:rgba(255,255,255,.1)}
.popover button[aria-checked="true"]::after{content:"✓";color:var(--accent);font-weight:700}
.popover button small{color:rgba(255,255,255,.55);font-size:12px;margin-left:10px}
.popover .row{display:flex;align-items:center;justify-content:space-between;padding:9px 10px;font-size:14px}
.switch{width:38px;height:22px;border-radius:11px;background:rgba(255,255,255,.25);position:relative;transition:background .15s;flex:none}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .15s}
.switch[aria-checked="true"]{background:var(--accent)}
.switch[aria-checked="true"]::after{transform:translateX(16px)}
.big-play{position:absolute;inset:0;margin:auto;width:84px;height:84px;border-radius:50%;background:rgba(0,0,0,.55);border:2px solid rgba(255,255,255,.7);display:grid;place-items:center;transition:transform .15s,opacity .2s;z-index:3}
.big-play:hover{transform:scale(1.06)}
.big-play svg{width:38px;height:38px;fill:#fff;margin-left:4px}
.player.playing .big-play{opacity:0;pointer-events:none}
.flash{position:absolute;inset:0;margin:auto;width:92px;height:92px;border-radius:50%;background:rgba(0,0,0,.6);display:grid;place-items:center;color:#fff;font:600 16px var(--font);opacity:0;pointer-events:none;z-index:4}
.flash svg{width:40px;height:40px;fill:#fff}
.flash.show{animation:flash .6s ease-out}
@keyframes flash{0%{opacity:0;transform:scale(.7)}25%{opacity:1}100%{opacity:0;transform:scale(1.25)}}
.spinner{position:absolute;inset:0;margin:auto;width:56px;height:56px;border:4px solid rgba(255,255,255,.25);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite;z-index:3;display:none}
.player.waiting .spinner{display:block}
@keyframes spin{to{transform:rotate(360deg)}}
.player:fullscreen{aspect-ratio:auto;width:100vw;height:100vh;border-radius:0}
.player:fullscreen video{height:100vh}
.nextup{position:absolute;right:16px;bottom:70px;width:300px;background:rgba(20,20,24,.95);border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:12px;color:#fff;z-index:6;display:flex;gap:12px;align-items:center}
.nextup img{width:110px;aspect-ratio:16/9;object-fit:cover;border-radius:6px}
.nextup .n-t{font-size:13px;font-weight:500;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nextup .n-s{font-size:12px;color:rgba(255,255,255,.65);margin-top:4px}
.nextup button{margin-top:6px;font-size:12.5px;color:var(--accent);font-weight:600}
.nextup .ring{position:absolute;left:12px;top:12px;width:110px;aspect-ratio:16/9;border-radius:6px;display:grid;place-items:center;background:rgba(0,0,0,.4);font:600 20px var(--mono)}

/* ---------- комментарии ---------- */
.comments{margin-top:28px}
.comments-h{display:flex;align-items:center;gap:20px;margin-bottom:18px}
.comments-h h2{font-size:18px;font-weight:600}
.comments-h .sort{display:inline-flex;align-items:center;gap:6px;font-size:14px;color:var(--text-2)}
.comments-h .sort svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
.c-form{display:flex;gap:14px;align-items:flex-start;margin-bottom:28px}
.c-form .field{flex:1;min-width:0}
.c-form textarea{width:100%;min-height:40px;resize:none;background:transparent;border:0;border-bottom:1px solid var(--line-2);padding:8px 0;outline:0;color:var(--text);line-height:1.5;transition:border-color .15s}
.c-form textarea:focus{border-bottom:2px solid var(--text)}
.c-form .f-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}
.c-form .f-actions .counter{margin-right:auto;font-size:12.5px;color:var(--muted);align-self:center;font-variant-numeric:tabular-nums}
.comment{display:flex;gap:14px;margin-bottom:18px}
.comment .c-body{flex:1;min-width:0}
.comment .c-head{display:flex;align-items:center;gap:8px;font-size:13px}
.comment .c-head b{font-weight:600}
.comment .c-head .pin{font-size:11px;padding:2px 6px;border-radius:4px;background:var(--surface-2);color:var(--text-2)}
.comment .c-head span{color:var(--muted)}
.comment .c-text{margin-top:4px;line-height:1.5;white-space:pre-wrap;word-break:break-word}
.comment .c-acts{display:flex;align-items:center;gap:4px;margin-top:6px}
.comment .c-acts button{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 10px;border-radius:15px;font-size:12.5px;color:var(--text-2);font-weight:500}
.comment .c-acts button:hover{background:var(--surface-2);color:var(--text)}
.comment .c-acts button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.comment .c-acts button[aria-pressed="true"]{color:var(--accent)}
.comment .c-acts button[aria-pressed="true"] svg{fill:currentColor}
.comment .c-acts .n{font-variant-numeric:tabular-nums}
.replies{margin-top:8px;padding-left:4px}
.replies .toggle{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 12px;border-radius:16px;color:var(--accent);font-weight:600;font-size:13.5px}
.replies .toggle:hover{background:color-mix(in srgb,var(--accent) 15%,transparent)}
.replies .toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;transition:transform .2s}
.replies .toggle[aria-expanded="true"] svg{transform:rotate(180deg)}
.replies .list{margin-top:10px;padding-left:4px;border-left:2px solid var(--line)}
.replies .list .comment{padding-left:14px;margin-bottom:12px}
.replies .list .comment .avatar{width:28px;height:28px;font-size:11px}
.reply-form{margin:8px 0 14px}
.reply-form .c-form{margin-bottom:0}

/* ---------- рекомендации ---------- */
.rec{display:flex;flex-direction:column;gap:12px;min-width:0}
.rec-h{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:4px}
.rec .sentinel{height:1px}
.autoplay-row{display:flex;align-items:center;justify-content:space-between;padding:6px 2px 8px;font-size:14px;color:var(--text-2)}
.autoplay-row .switch{background:var(--line-2)}
.autoplay-row .switch[aria-checked="true"]{background:var(--accent)}

/* ---------- канал ---------- */
.ch-banner{height:clamp(120px,18vw,220px);border-radius:var(--r-lg);background:var(--surface);position:relative;overflow:hidden;isolation:isolate}
.ch-banner img{width:100%;height:100%;object-fit:cover;filter:saturate(1.1) brightness(.75);transform:scale(1.03)}
.ch-banner .mosaic{position:absolute;inset:0;display:grid;grid-template-columns:repeat(6,1fr);gap:0}
.ch-banner .mosaic img{filter:brightness(.6) saturate(1.2)}
.ch-banner::after{content:"";position:absolute;inset:0;background:linear-gradient(to right,rgba(14,15,19,.6),transparent 60%),linear-gradient(to top,var(--bg),transparent 40%);z-index:1}
.ch-head{display:flex;gap:22px;align-items:flex-start;margin:18px 0 10px;flex-wrap:wrap}
.ch-head .avatar{box-shadow:0 0 0 4px var(--bg)}
.ch-head .info{flex:1;min-width:240px}
.ch-head h1{font-size:28px;font-weight:600;letter-spacing:-.01em}
.ch-head .handle{color:var(--muted);font-size:14px;margin-top:2px;display:flex;gap:6px;flex-wrap:wrap}
.ch-head .handle span::before{content:"•";margin-right:6px}
.ch-head .bio{margin-top:10px;color:var(--text-2);font-size:14px;max-width:70ch}
.ch-head .actions{display:flex;gap:10px;align-items:center}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:14px 0 20px;overflow-x:auto}
.tabs button{padding:12px 16px;font-weight:600;font-size:14.5px;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}
.tabs button:hover{color:var(--text)}
.tabs button[aria-selected="true"]{color:var(--text);border-bottom-color:var(--text)}
.pl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:22px 18px}
.pl{display:flex;flex-direction:column;gap:10px}
.pl .stack{position:relative;aspect-ratio:16/9;border-radius:var(--r);overflow:hidden;background:var(--surface)}
.pl .stack::before,.pl .stack::after{content:"";position:absolute;left:6%;right:6%;top:-5px;height:5px;border-radius:4px 4px 0 0;background:var(--line-2)}
.pl .stack::after{left:3%;right:3%;top:-10px;background:var(--line)}
.pl .stack img{width:100%;height:100%;object-fit:cover}
.pl .stack .n{position:absolute;right:0;top:0;bottom:0;width:38%;background:rgba(0,0,0,.75);display:grid;place-items:center;color:#fff;font-weight:600;text-align:center;font-size:14px;line-height:1.3}
.pl .stack .n svg{width:24px;height:24px;fill:#fff;margin:0 auto 4px}
.pl h3{font-size:15px;font-weight:500}
.pl p{font-size:13px;color:var(--muted)}
.about{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:32px}
@media (max-width:860px){.about{grid-template-columns:1fr}}
.about h2{font-size:18px;font-weight:600;margin-bottom:10px}
.about p{color:var(--text-2);line-height:1.65;max-width:70ch}
.stat-list{display:flex;flex-direction:column;gap:10px;border-left:1px solid var(--line);padding-left:20px}
.stat-list div{display:flex;gap:12px;align-items:center;font-size:14px;color:var(--text-2)}
.stat-list svg{width:20px;height:20px;fill:none;stroke:var(--muted);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.stat-list b{color:var(--text);font-weight:500;font-variant-numeric:tabular-nums}
.pl-view{display:grid;grid-template-columns:360px minmax(0,1fr);gap:24px}
@media (max-width:900px){.pl-view{grid-template-columns:1fr}}
.pl-side{position:sticky;top:calc(var(--header-h) + 16px);align-self:start;background:var(--surface);border-radius:var(--r-lg);padding:18px;display:flex;flex-direction:column;gap:12px}
.pl-side h2{font-size:22px;font-weight:600}
.pl-side p{color:var(--muted);font-size:13.5px}
.pl-list{display:flex;flex-direction:column;gap:10px}
.pl-list .card.row .num{width:22px;color:var(--muted);font:500 13px var(--mono);align-self:center;text-align:center}

/* ---------- модалка / тосты ---------- */
.modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:rgba(0,0,0,.6);backdrop-filter:blur(4px);padding:16px}
.modal .box{width:min(520px,100%);background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:22px;box-shadow:var(--shadow)}
.modal h3{font-size:18px;font-weight:600;margin-bottom:6px}
.modal p{color:var(--text-2);font-size:14px;line-height:1.55}
.modal .share-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:10px;margin:18px 0}
.modal .share-grid button{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 6px;border-radius:12px;background:var(--surface-2);font-size:12.5px;color:var(--text-2)}
.modal .share-grid button:hover{background:var(--line)}
.modal .share-grid svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.modal .link-row{display:flex;gap:8px}
.modal .link-row input{flex:1;min-width:0;height:40px;padding:0 12px;border-radius:8px;border:1px solid var(--line-2);background:var(--bg-2);font:500 13px var(--mono);color:var(--text)}
.modal .timecode{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:13.5px;color:var(--text-2)}
.modal .timecode input[type=checkbox]{accent-color:var(--accent);width:16px;height:16px}
.modal .timecode input[type=text]{width:90px;height:32px;padding:0 8px;border-radius:6px;border:1px solid var(--line-2);background:var(--bg-2);font:500 13px var(--mono);color:var(--text)}
.modal .close{position:absolute;top:14px;right:14px}
.modal .box{position:relative}
.drop{margin:16px 0;border:2px dashed var(--line-2);border-radius:12px;padding:28px;text-align:center;color:var(--muted);font-size:14px}
.drop b{color:var(--text);display:block;margin-bottom:4px}
.toast-wrap{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:200;display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none}
.toast{padding:11px 18px;border-radius:10px;background:var(--text);color:var(--bg);font-weight:500;font-size:14px;box-shadow:var(--shadow);animation:toast .25s ease-out;pointer-events:auto;display:flex;gap:12px;align-items:center}
.toast button{color:var(--accent);font-weight:600}
@keyframes toast{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.kbd{display:inline-block;min-width:22px;padding:1px 6px;border-radius:5px;border:1px solid var(--line-2);background:var(--bg-2);font:500 12px var(--mono);text-align:center;color:var(--text-2)}
.shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:8px 20px;font-size:13.5px;margin-top:14px}
.shortcuts div{display:flex;justify-content:space-between;gap:10px;color:var(--text-2)}
.footer{margin-top:60px;padding-top:20px;border-top:1px solid var(--line);color:var(--muted);font-size:13px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px}
.footer a{color:var(--text-2)}
.history-day{font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:22px 0 12px}
.history-day:first-child{margin-top:0}
.list{display:flex;flex-direction:column;gap:16px}
.pill-stat{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:var(--surface);border:1px solid var(--line);font-size:12.5px;color:var(--text-2)}
