/* Portal & VOD 2.1.13 — video-platform template (light, like MediaCMS / YouTube). Every rule is scoped to yt- classes. */
.yt-body{--yt-bg:#f9f9f9;--yt-surface:#fff;--yt-side:#fff;--yt-text:#0f0f0f;--yt-muted:#606060;--yt-soft:#909090;--yt-line:#e5e5e5;--yt-hover:#f2f2f2;--yt-active:#e5e5e5;
 --yt-green:#009933;--yt-red:#cc0000;--yt-blue:#065fd4;--yt-head:64px;--yt-side-w:240px;
 margin:0;background:var(--yt-bg);color:var(--yt-text);font-size:14px;line-height:1.45;-webkit-text-size-adjust:100%}
.yt-body *,.yt-body *::before,.yt-body *::after{box-sizing:border-box}
.yt-body a{color:inherit;text-decoration:none}
.yt-body img{max-width:100%}
.yt-body button{font-family:inherit}
.yt-ico{fill:currentColor;flex:0 0 auto;display:block}
.yt-skip{position:absolute;inset-inline-start:-9999px;top:0;z-index:100}.yt-skip:focus{inset-inline-start:8px;background:#fff;padding:8px 12px;border-radius:4px}
.yt-muted{color:var(--yt-muted)}

/* Header */
.yt-header{position:fixed;inset:0 0 auto 0;height:var(--yt-head);background:var(--yt-surface);display:flex;align-items:center;gap:16px;padding:0 16px;z-index:40;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.yt-header-start{display:flex;align-items:center;gap:12px;min-width:0;flex:0 0 auto}
.yt-icon-btn{width:44px;height:44px;border-radius:50%;border:0;background:none;color:var(--yt-text);display:grid;place-items:center;cursor:pointer}
.yt-icon-btn:hover{background:var(--yt-hover)}
.yt-logo{display:flex;align-items:center;max-width:190px;min-width:0;overflow:hidden}
.yt-logo .ls-brand-identity,.yt-logo>*{display:flex;align-items:center;gap:8px;margin:0;padding:0;min-width:0;color:var(--yt-text)}
.yt-logo img{max-height:34px;width:auto}
.yt-logo small,.yt-logo .ls-brand-subtitle{display:none}
.yt-logo .ls-brand-caption{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.yt-search{flex:1;display:flex;max-width:640px;margin:0 auto;height:40px}
.yt-search input{flex:1;min-width:0;border:1px solid #ccc;border-inline-end:0;border-start-start-radius:2px;border-end-start-radius:2px;padding:0 12px;font:inherit;font-size:16px;color:var(--yt-text);background:#fff;outline:none;box-shadow:inset 0 1px 2px #eee}
.yt-search input:focus{border-color:#1c62b9}
.yt-search button{width:64px;border:1px solid #d3d3d3;background:#f8f8f8;color:#333;display:grid;place-items:center;cursor:pointer;border-start-end-radius:2px;border-end-end-radius:2px}
.yt-search button:hover{background:#f0f0f0}
.yt-header-end{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.yt-search-open{display:none}
.yt-signin{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--yt-line);color:var(--yt-blue);border-radius:2px;padding:6px 12px;font-weight:500;text-transform:uppercase;font-size:14px;background:#fff;white-space:nowrap}
.yt-signin .yt-ico{width:22px;height:22px}
.yt-signin:hover{background:#def1ff}
.yt-account{position:relative}
.yt-avatar{width:36px;height:36px;border-radius:50%;border:0;background:var(--yt-red);color:#fff;font-weight:700;font-size:16px;display:grid;place-items:center;cursor:pointer;flex:0 0 auto}
.yt-avatar-small{width:32px;height:32px;font-size:14px;cursor:default}
.yt-account-menu{position:absolute;inset-inline-end:0;top:46px;width:280px;background:#fff;border-radius:4px;box-shadow:0 4px 32px rgba(0,0,0,.18);padding:8px 0;z-index:60}
.yt-account-menu[hidden]{display:none}
.yt-account-head{display:flex;align-items:center;gap:12px;padding:10px 16px 14px;border-bottom:1px solid var(--yt-line);margin-bottom:6px;background:#f5f5f5}
.yt-account-menu a,.yt-account-menu button{display:flex;align-items:center;gap:20px;width:100%;padding:10px 20px;border:0;background:none;color:var(--yt-text);font:inherit;font-size:15px;cursor:pointer;text-align:start}
.yt-account-menu a:hover,.yt-account-menu button:hover{background:var(--yt-hover)}
.yt-account-menu .yt-ico{color:var(--yt-soft)}
.yt-account-menu form{margin:0}

/* Layout and side menu */
.yt-layout{padding-top:var(--yt-head)}
.yt-sidebar{position:fixed;top:var(--yt-head);bottom:0;inset-inline-start:0;width:var(--yt-side-w);background:var(--yt-side);overflow-y:auto;overflow-x:hidden;padding:8px 0 16px;z-index:30;scrollbar-width:thin}
.yt-nav-group{padding:8px 0;border-bottom:1px solid var(--yt-line)}
.yt-nav{display:flex;align-items:center;gap:24px;height:44px;padding:0 24px;color:var(--yt-text);font-size:15px;white-space:nowrap}
.yt-nav .yt-ico{color:var(--yt-soft)}
.yt-nav:hover{background:var(--yt-hover)}
.yt-nav.is-active{background:var(--yt-active);font-weight:600}
.yt-nav.is-active .yt-ico{color:var(--yt-green)}
.yt-nav span{overflow:hidden;text-overflow:ellipsis}
.yt-nav-signin{padding:14px 24px}.yt-nav-signin p{margin:0 0 10px;color:var(--yt-muted);font-size:14px}
.yt-side-foot{padding:14px 24px;color:var(--yt-muted);font-size:12px}.yt-side-foot p{margin:0 0 6px}
.yt-main{margin-inline-start:var(--yt-side-w);padding:24px 24px 48px;min-height:calc(100vh - var(--yt-head));min-width:0}
.yt-side-hidden .yt-sidebar{display:none}.yt-side-hidden .yt-main{margin-inline-start:0}
.yt-shade{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:35}.yt-shade[hidden]{display:none}
.yt-notice{background:#e8f4ff;border:1px solid #b9dcff;color:#0b4a8b;padding:10px 14px;border-radius:4px;margin:0 0 16px}.yt-notice-error{background:#fdecec;border-color:#f5c2c2;color:#a10000}
.yt-page-title{font-size:20px;font-weight:500;margin:0 0 20px}
.yt-sub-title{font-size:18px;font-weight:500;margin:24px 0 16px}
.yt-empty{color:var(--yt-muted);font-size:15px;padding:24px 0}
.yt-empty-home{text-align:center;padding:12vh 16px}.yt-empty-home h1{font-weight:500}

/* Cards */
.yt-card{display:block;color:var(--yt-text);min-width:0}
.yt-thumb{position:relative;display:block;aspect-ratio:16/9;background:#e3e3e3;border-radius:4px;overflow:hidden}
.yt-thumb>img{width:100%;height:100%;object-fit:cover;display:block}
.yt-thumb-empty{position:absolute;inset:0;display:grid;place-items:center;color:#aaa}
.yt-duration{position:absolute;bottom:6px;inset-inline-end:6px;background:rgba(0,0,0,.82);color:#fff;font-size:12px;font-weight:500;padding:1px 5px;border-radius:2px;letter-spacing:.3px}
.yt-watched{position:absolute;inset:auto 0 0 0;height:3px;background:rgba(255,255,255,.4)}.yt-watched span{display:block;height:100%;background:var(--yt-red)}
.yt-thumb .lsp-hover-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .2s;pointer-events:none}
.yt-card.is-previewing .lsp-hover-video{opacity:1}.yt-card.is-previewing .yt-duration{opacity:0}
.yt-card-body{display:block;padding:10px 0 0}
.yt-card-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:15px;font-weight:500;line-height:1.4;color:var(--yt-text);max-height:2.8em}
.yt-card-meta{display:block;margin-top:4px;color:var(--yt-muted);font-size:13px;line-height:1.5}
.yt-card-author,.yt-card-stats{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.yt-card-desc{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--yt-muted);font-size:13px;margin-top:8px}
.yt-card:hover .yt-card-title{color:#000}

/* Home rows */
.yt-row{margin:0 0 28px;padding-bottom:24px;border-bottom:1px solid var(--yt-line)}
.yt-row:last-child{border-bottom:0}
.yt-row-head{display:flex;align-items:baseline;gap:18px;margin:0 0 14px}
.yt-row-head h2{font-size:20px;font-weight:500;margin:0}.yt-row-link{color:inherit;text-decoration:none}.yt-row-link:hover,.yt-row-link:focus-visible{text-decoration:underline}.yt-row-link::after{content:' ›';opacity:.6}
.yt-viewall{color:var(--yt-muted);font-size:14px;font-weight:500;text-transform:uppercase;letter-spacing:.3px}
.yt-viewall:hover{color:var(--yt-text)}
.yt-carousel{position:relative}
.yt-car-track{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 4*8px)/5);gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:4px}
.yt-car-track::-webkit-scrollbar{display:none}
.yt-car-track>.yt-card{scroll-snap-align:start}
.yt-car-btn{position:absolute;top:calc((100% - 70px)/2);width:44px;height:44px;border-radius:50%;border:0;background:#fff;color:#333;box-shadow:0 2px 6px rgba(0,0,0,.25);display:grid;place-items:center;cursor:pointer;z-index:2}
.yt-car-btn[hidden]{display:none}
.yt-car-next{inset-inline-end:-22px}.yt-car-prev{inset-inline-start:-22px}
.yt-car-prev .yt-ico{transform:scaleX(-1)}
html[dir=rtl] .yt-car-next .yt-ico{transform:scaleX(-1)}html[dir=rtl] .yt-car-prev .yt-ico{transform:none}

/* Grids and lists */
.yt-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:24px 12px}
.yt-list{display:grid;gap:16px;max-width:1100px}
.yt-card-list{display:grid;grid-template-columns:minmax(160px,300px) 1fr;gap:16px;align-items:start}
.yt-card-list .yt-card-body{padding:0}
.yt-card-list .yt-card-title{font-size:18px;font-weight:400;-webkit-line-clamp:2;max-height:none}
.yt-card-list .yt-card-meta{display:flex;flex-wrap:wrap;gap:0 4px}.yt-card-list .yt-card-author::after{content:"•";margin-inline-start:4px}
.yt-more-wrap{text-align:center;margin:28px 0}
.yt-more{display:inline-block;border:1px solid var(--yt-line);background:#fff;border-radius:18px;padding:8px 22px;color:var(--yt-blue);font-weight:500}
.yt-more:hover{background:#def1ff}.yt-more.is-loading{opacity:.6}

/* Results header and filters */
.yt-results-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:8px}
.yt-results-head .yt-page-title{margin:0}
.yt-filters{position:relative}
.yt-filters summary{list-style:none;display:flex;align-items:center;gap:8px;cursor:pointer;color:var(--yt-muted);font-weight:500;text-transform:uppercase;padding:8px}
.yt-filters summary::-webkit-details-marker{display:none}
.yt-filters>div{position:absolute;inset-inline-end:0;top:40px;background:#fff;box-shadow:0 4px 18px rgba(0,0,0,.15);border-radius:4px;padding:8px 0;min-width:220px;z-index:5}
.yt-filters>div a{display:block;padding:8px 16px;color:var(--yt-text)}.yt-filters>div a:hover{background:var(--yt-hover)}.yt-filters>div a.is-active{font-weight:700;color:var(--yt-green)}

/* Tags and categories */
.yt-tags{display:flex;flex-wrap:wrap;gap:10px}
.yt-tag{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--yt-line);border-radius:16px;padding:6px 14px;font-size:14px}
.yt-tag small{color:var(--yt-muted)}.yt-tag:hover{background:var(--yt-hover)}
.yt-grid-cats{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.yt-cat{display:block}.yt-cat strong{display:block;font-size:17px;font-weight:500;margin-top:10px}.yt-cat small{color:var(--yt-muted);font-size:14px}
.yt-thumb-cat{display:grid;place-items:center;color:#9a9a9a;background:#efefef}
.yt-thumb-cat>img{position:absolute;inset:0}

/* Playlists */
.yt-pl-card{display:flex;flex-direction:column;gap:6px;min-width:0}
.yt-pl-thumb .yt-pl-count{position:absolute;inset-block:0;inset-inline-end:0;width:42%;background:rgba(0,0,0,.8);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}
.yt-pl-thumb .yt-pl-count strong{font-size:20px;font-weight:500}
.yt-pl-card .yt-card-title{margin-top:4px}
.yt-pl-all{color:var(--yt-muted);font-size:13px;font-weight:500;text-transform:uppercase;letter-spacing:.3px}.yt-pl-all:hover{color:var(--yt-text)}
.yt-pl-page{display:grid;grid-template-columns:360px 1fr;gap:24px;align-items:start}
.yt-pl-head{background:#fff;border-radius:8px;padding:16px;position:sticky;top:calc(var(--yt-head) + 16px)}
.yt-pl-head h1{font-size:22px;font-weight:500;margin:14px 0 6px}
.yt-pl-desc{color:var(--yt-muted);font-size:14px;white-space:normal}
.yt-pl-list{list-style:none;margin:0;padding:0;display:grid;gap:10px;counter-reset:pl}
.yt-pl-list>li{counter-increment:pl;display:grid;grid-template-columns:28px 1fr;align-items:center}
.yt-pl-list>li::before{content:counter(pl);color:var(--yt-muted);text-align:center;font-size:13px}
.yt-pl-list .yt-card-list{grid-template-columns:minmax(120px,200px) 1fr}
.yt-pl-list .yt-card-list .yt-card-title{font-size:16px;font-weight:500}

/* Buttons */
.yt-btn{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:18px;padding:9px 18px;font:inherit;font-weight:500;font-size:14px;cursor:pointer;background:#f2f2f2;color:var(--yt-text)}
.yt-btn:hover{filter:brightness(.96)}
.yt-btn-dark{background:#0f0f0f;color:#fff!important;margin-top:12px}
.yt-btn-red{background:var(--yt-red);color:#fff!important}
.yt-btn-blue{background:var(--yt-blue);color:#fff!important;border-radius:18px}
.yt-btn-light{background:#fff;color:#0f0f0f!important}
.yt-link{background:none;border:0;padding:0;color:var(--yt-muted);font:inherit;font-size:13px;font-weight:500;cursor:pointer;text-transform:uppercase}
.yt-link:hover{color:var(--yt-text)}

/* Channel page */
.yt-channel{margin:-24px -24px 0}
.yt-banner{height:clamp(110px,16vw,265px);overflow:hidden;background:#ddd}.yt-banner img{width:100%;height:100%;object-fit:cover;display:block}
.yt-channel-head{display:flex;align-items:center;gap:24px;padding:20px 48px 4px;background:var(--yt-bg)}
.yt-channel-head h1{font-size:30px;font-weight:400;margin:0}
.yt-channel-logo{width:96px;height:96px;border-radius:50%;overflow:hidden;background:#fff;display:grid;place-items:center;box-shadow:0 0 0 4px #fff,0 1px 4px rgba(0,0,0,.2);flex:0 0 auto}
.yt-channel-logo img{max-width:80%;max-height:80%}
.yt-channel-logo .ls-brand-caption,.yt-channel-logo .ls-brand-identity span:not(:first-child),.yt-channel-logo strong,.yt-channel-logo small{display:none}
.yt-channel-logo-small{width:44px;height:44px;box-shadow:none;border:1px solid var(--yt-line)}
.yt-tabs{display:flex;align-items:center;gap:8px;padding:0 48px;border-bottom:1px solid var(--yt-line);background:var(--yt-bg)}
.yt-tabs a{padding:14px 28px;color:var(--yt-muted);font-weight:500;text-transform:uppercase;border-bottom:3px solid transparent}
.yt-tabs a.is-active{color:var(--yt-text);border-bottom-color:var(--yt-muted)}
.yt-tab-search input{border:0;border-bottom:1px solid transparent;background:transparent;font:inherit;padding:8px;width:180px}.yt-tab-search input:focus{outline:0;border-bottom-color:var(--yt-text)}
.yt-channel>.yt-sub-title,.yt-channel>.yt-grid,.yt-channel>.yt-about,.yt-channel>.yt-more-wrap,.yt-channel>.yt-empty{margin-inline:48px}
.yt-about{max-width:900px;padding:24px 0;font-size:15px;white-space:normal}
.yt-about-stats{display:flex;gap:48px;margin:24px 0 0}.yt-about-stats dt{color:var(--yt-muted);font-size:13px}.yt-about-stats dd{margin:0;font-size:22px}

/* Watch page */
.yt-watch{display:grid;grid-template-columns:minmax(0,1fr) 402px;gap:24px;max-width:1800px}
.yt-player{position:relative;background:#000;border-radius:0;aspect-ratio:16/9;overflow:hidden}
.yt-video{width:100%;height:100%;display:block;background:#000}
.yt-player-status{position:absolute;inset:auto 12px 56px;color:#fff;margin:0;font-size:14px;text-shadow:0 1px 2px #000;pointer-events:none}
.yt-player-status:empty{display:none}
.yt-version{position:absolute;top:10px;inset-inline-end:10px;display:flex;gap:6px;align-items:center;background:rgba(0,0,0,.6);color:#fff;padding:4px 8px;border-radius:4px;font-size:13px;opacity:0;transition:opacity .2s}
.yt-player:hover .yt-version,.yt-version:focus-within{opacity:1}
.yt-version select{background:transparent;color:#fff;border:0;font:inherit}.yt-version option{color:#000}
.yt-player-locked{background-size:cover;background-position:center;display:grid;place-items:center}
.yt-player-locked::before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.62)}
.yt-locked-box{position:relative;text-align:center;color:#fff;display:flex;flex-direction:column;align-items:center;gap:12px;padding:16px}
.yt-locked-box p{margin:0;font-size:18px}
.yt-watch-title{font-size:20px;font-weight:400;line-height:1.4;margin:18px 0 8px}
.yt-watch-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-bottom:10px;border-bottom:1px solid var(--yt-line)}
.yt-views{color:var(--yt-muted);font-size:15px}
.yt-actions{display:flex;gap:6px;flex-wrap:wrap}
.yt-act{display:inline-flex;align-items:center;gap:6px;border:0;background:none;color:var(--yt-muted);font:inherit;font-weight:500;font-size:14px;padding:6px 10px;border-radius:18px;cursor:pointer;text-transform:uppercase}
.yt-act:hover{background:var(--yt-hover)}
.yt-act[aria-pressed=true]{color:var(--yt-blue)}
.yt-desc{padding:16px 0;border-bottom:1px solid var(--yt-line)}
.yt-desc-head{display:flex;align-items:center;gap:14px;margin-bottom:12px}
.yt-desc-head>div{display:flex;flex-direction:column}
.yt-desc-author{font-weight:500;font-size:15px}
.yt-desc-text{margin-inline-start:58px;font-size:14px;max-height:4.4em;overflow:hidden;white-space:normal}
.yt-desc-text.is-open{max-height:none}
.yt-desc [data-clamp-toggle]{margin-inline-start:58px;margin-top:6px}
.yt-chips{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0 0;margin-inline-start:58px}
.yt-chips a{background:#f2f2f2;border-radius:16px;padding:4px 12px;font-size:13px}.yt-chips a:hover{background:#e5e5e5}
.yt-chip-tag{color:var(--yt-blue)}
.yt-comments{padding:20px 0}
.yt-comments h2{font-size:16px;font-weight:400;margin:0 0 18px}
.yt-comment-form{display:flex;gap:14px;align-items:flex-start;margin:0 0 24px;flex-wrap:wrap}
.yt-comment-form textarea{flex:1;min-width:200px;border:0;border-bottom:1px solid #ccc;background:transparent;font:inherit;font-size:14px;padding:6px 0;resize:none;outline:0;min-height:30px}
.yt-comment-form textarea:focus{border-bottom:2px solid var(--yt-text)}
.yt-reply-form{margin:10px 0 6px}
.yt-comment-list{list-style:none;margin:0;padding:0;display:grid;gap:18px}
.yt-comment{display:flex;gap:14px;align-items:flex-start}
.yt-comment-body{flex:1;min-width:0}
.yt-comment-head{margin:0 0 2px;font-size:13px}
.yt-comment-text{margin:0;font-size:14px;white-space:normal;overflow-wrap:anywhere}
.yt-comment-tools{margin:6px 0 0;display:flex;gap:16px}
.yt-reply{margin-top:14px}
.yt-watch-side{min-width:0}
.yt-upnext-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px}
.yt-upnext-head h2{font-size:16px;font-weight:500;margin:0}
.yt-autoplay{display:flex;align-items:center;gap:8px;color:var(--yt-muted);font-size:13px;font-weight:500;cursor:pointer;position:relative}
.yt-autoplay input{position:absolute;opacity:0;width:1px;height:1px}
.yt-autoplay i{width:36px;height:14px;border-radius:7px;background:#ccc;position:relative;transition:background .2s}
.yt-autoplay i::after{content:"";position:absolute;top:-3px;inset-inline-start:-2px;width:20px;height:20px;border-radius:50%;background:#f1f1f1;box-shadow:0 1px 3px rgba(0,0,0,.4);transition:inset-inline-start .2s,background .2s}
.yt-autoplay input:checked+i{background:#9ed8b2}.yt-autoplay input:checked+i::after{inset-inline-start:18px;background:var(--yt-green)}
.yt-autoplay input:focus-visible+i{outline:2px solid var(--yt-blue);outline-offset:2px}
.yt-upnext{display:grid;gap:8px}
.yt-upnext hr{border:0;border-top:1px solid var(--yt-line);margin:8px 0}
.yt-card-compact{display:grid;grid-template-columns:168px 1fr;gap:8px;align-items:start}
.yt-card-compact .yt-card-body{padding:0}
.yt-card-compact .yt-card-title{font-size:14px}
.yt-card-compact .yt-card-meta{font-size:12px}
.yt-pl-panel{border:1px solid var(--yt-line);border-radius:8px;background:#fff;margin:0 0 16px;overflow:hidden}
.yt-pl-panel header{padding:12px 16px;background:#f5f5f5;display:flex;flex-direction:column;gap:2px}.yt-pl-panel header a{font-weight:600;font-size:16px}
.yt-pl-panel ol{list-style:none;margin:0;padding:6px 0;max-height:420px;overflow-y:auto}
.yt-pl-panel li{display:grid;grid-template-columns:28px 1fr;align-items:center;padding:4px 8px}
.yt-pl-panel li.is-current{background:#eaeaea}
.yt-pl-num{color:var(--yt-muted);font-size:12px;text-align:center}
.yt-pl-panel .yt-card-compact{grid-template-columns:100px 1fr}

/* Classic pages inside this template (sign-in, registration, profile, live channels): light colours */
.yt-classic{--bg:var(--yt-bg);--panel:#fff;--card:#f2f2f2;--edge:#e0e0e0;--text:#0f0f0f;--muted:#606060;--accent:#cc0000;background:transparent;font-size:15px}
.yt-classic .lp-auth,.yt-classic .card{background:#fff}

.yt-toast{position:fixed;bottom:24px;inset-inline-start:24px;background:#323232;color:#fff;padding:12px 18px;border-radius:4px;opacity:0;transform:translateY(16px);transition:.25s;z-index:80;pointer-events:none}
.yt-toast.is-on{opacity:1;transform:none}
.yt-signin-box{background:#fff;border-radius:8px;padding:24px;max-width:520px}
.yt-body .lp-member-banners{margin:0 0 16px}

/* Narrower screens */
@media (max-width:1600px){.yt-car-track{grid-auto-columns:calc((100% - 3*8px)/4)}}
@media (max-width:1300px){.yt-watch{grid-template-columns:minmax(0,1fr) 340px}.yt-card-compact{grid-template-columns:140px 1fr}}
@media (max-width:1100px){
 .yt-sidebar{transform:translateX(-100%);transition:transform .2s;box-shadow:0 0 24px rgba(0,0,0,.25);z-index:50;top:0;padding-top:12px}
 html[dir=rtl] .yt-sidebar{transform:translateX(100%)}
 .yt-drawer-open .yt-sidebar{transform:none!important;display:block}
 .yt-main{margin-inline-start:0}
 .yt-side-hidden .yt-sidebar{display:block}
 .yt-car-track{grid-auto-columns:calc((100% - 2*8px)/3)}
 .yt-watch{grid-template-columns:1fr}
 .yt-pl-page{grid-template-columns:1fr}.yt-pl-head{position:static}
}
@media (max-width:760px){
 .yt-header{gap:6px;padding:0 8px}
 .yt-search{position:absolute;inset:0;margin:0;max-width:none;height:var(--yt-head);background:#fff;padding:12px 8px;display:none;z-index:2}
 .yt-search-open .yt-search{display:flex}
 .yt-search-open{display:grid}
 .yt-signin span{display:none}.yt-signin{padding:6px;border:0}
 .yt-main{padding:16px 12px 40px}
 .yt-car-track{grid-auto-columns:calc((100% - 8px)/1.5)}
 .yt-car-btn{display:none}
 .yt-grid{grid-template-columns:1fr;gap:20px}
 .yt-card-list{grid-template-columns:1fr;gap:8px}
 .yt-card-list .yt-card-title{font-size:16px;font-weight:500}
 .yt-channel{margin:-16px -12px 0}
 .yt-channel-head{padding:16px;gap:14px}.yt-channel-head h1{font-size:22px}.yt-channel-logo{width:64px;height:64px}
 .yt-tabs{padding:0 8px;overflow-x:auto}.yt-tabs a{padding:12px 14px;white-space:nowrap}.yt-tab-search{display:none}
 .yt-channel>.yt-sub-title,.yt-channel>.yt-grid,.yt-channel>.yt-about,.yt-channel>.yt-more-wrap,.yt-channel>.yt-empty{margin-inline:12px}
 .yt-watch{margin:-16px -12px 0}
 .yt-watch-main>:not(.yt-player){margin-inline:12px}
 .yt-watch-side{padding:0 12px}
 .yt-desc-text,.yt-desc [data-clamp-toggle],.yt-chips{margin-inline-start:0}
 .yt-pl-list .yt-card-list{grid-template-columns:120px 1fr}
 .yt-account-menu{position:fixed;inset-inline:8px;top:56px;width:auto}
}
@media (max-width:420px){.yt-logo{max-width:120px}.yt-logo .ls-brand-logo+.ls-brand-caption{display:none}}
/* 2.1.16: origin chips (Lebanese / Arabic / International) */
.yt-chips-bar{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px}
.yt-chips-bar a{background:#f2f2f2;border-radius:8px;padding:6px 14px;font-size:14px;font-weight:500;color:var(--yt-text)}
.yt-chips-bar a:hover{background:#e5e5e5}.yt-chips-bar a.is-active{background:#0f0f0f;color:#fff}
/* 2.1.17: the featured slider of the classic home, above the rows (dark banner on the light page) */
.yt-hero{--panel:#0f0f0f;--card:#272727;--edge:#3a3a3a;--text:#fff;--muted:#d6d6d6;--accent:#cc0000;--bg:#fff;margin:0 0 28px}
.yt-hero .lp-hero{margin:0;border:0;border-radius:12px;color:#fff;box-shadow:0 4px 18px rgba(0,0,0,.18)}
.yt-hero .lp-hero-copy{padding:2.2rem 2.8rem;max-width:660px}
.yt-hero .lp-hero-copy h1{font-size:clamp(1.5rem,2.8vw,2.6rem);color:#fff;font-weight:600}
.yt-hero .lp-hero-copy p{color:#e8e8e8}
.yt-hero .lp-eyebrow{color:#ff4e45}
.yt-hero .lp-button{border-radius:18px;color:#fff!important;font-weight:600}
.yt-hero .lp-slide-arrow{color:#fff}
@media (max-width:760px){.yt-hero{margin:-4px 0 22px}.yt-hero .lp-hero{border-radius:10px}.yt-hero .lp-hero-copy{padding:1.4rem 1.2rem}.yt-hero .lp-hero-copy h1{font-size:1.35rem;margin:.2rem 0 .5rem}.yt-hero .lp-slide{min-height:240px}}
/* 2.1.18: the program theme colours form fields light-on-dark; on this light page they keep dark text */
.yt-body input,.yt-body textarea,.yt-body select{color:var(--yt-text);-webkit-text-fill-color:var(--yt-text);caret-color:var(--yt-text)}
.yt-body input::placeholder,.yt-body textarea::placeholder{color:var(--yt-soft);-webkit-text-fill-color:var(--yt-soft);opacity:1}
.yt-comment-form textarea{overflow:hidden;line-height:20px;min-height:32px;box-shadow:none;border-radius:0}
.yt-hero input,.yt-hero textarea{color:#fff;-webkit-text-fill-color:#fff}
/* 2.1.20: a lower slider in the video-platform template */
.yt-hero .lp-hero:not(.lp-hero-full) .lp-slide{min-height:clamp(210px,24vw,360px)}
.yt-hero .lp-hero-small .lp-slide{min-height:clamp(190px,19vw,290px)!important}
.yt-hero .lp-hero-copy{padding:1.6rem 2.4rem}
@media (max-width:760px){.yt-hero .lp-hero:not(.lp-hero-full) .lp-slide{min-height:200px}}
/* 2.1.21: watch page like MediaCMS — the side menu opens over the page instead of taking room from the video */
.yt-page-watch .yt-main{margin-inline-start:0}
.yt-page-watch .yt-sidebar{display:block;transform:translateX(-100%);visibility:hidden;transition:transform .2s,visibility .2s;box-shadow:0 0 24px rgba(0,0,0,.25);z-index:50}
html[dir=rtl] .yt-page-watch .yt-sidebar{transform:translateX(100%)}
.yt-page-watch.yt-drawer-open .yt-sidebar{transform:none!important;visibility:visible}
.yt-watch.is-theater{grid-template-columns:minmax(0,1fr) 402px}
.yt-watch.is-theater .yt-watch-main{display:contents}
.yt-watch.is-theater .yt-player{grid-column:1/-1;aspect-ratio:auto;height:min(56.25vw,calc(100vh - var(--yt-head) - 120px));min-height:300px;margin:-24px -24px 0}
.yt-watch.is-theater .yt-watch-main>:not(.yt-player){grid-column:1}
.yt-watch.is-theater .yt-watch-side{grid-column:2;grid-row:2/span 20}
.yt-channel-logo-small img{width:100%;height:100%;max-width:none;max-height:none;object-fit:cover}
.yt-row-live .yt-car-track .yt-card-live{min-width:0}
/* the player's own controls (assets/ytplayer.js) */
.ytp .yt-version{display:none}
.ytp-bar{position:absolute;inset:auto 0 0 0;padding:28px 12px 4px;background:linear-gradient(transparent,rgba(0,0,0,.72));color:#fff;transition:opacity .25s;z-index:3}
.ytp.is-idle .ytp-bar,.ytp.is-idle .ytp-big{opacity:0}.ytp.is-idle{cursor:none}
.ytp-progress{position:relative;height:16px;display:flex;align-items:center;cursor:pointer;touch-action:none;outline:0}
.ytp-progress::before{content:"";position:absolute;inset:6px 0;background:rgba(255,255,255,.25);transition:inset .1s}
.ytp-buffer,.ytp-played{position:absolute;inset-block:6px;left:0;width:0;transition:inset .1s}
.ytp-buffer{background:rgba(255,255,255,.45)}.ytp-played{background:var(--yt-green)}
.ytp-progress:hover::before,.ytp-progress:hover .ytp-buffer,.ytp-progress:hover .ytp-played,.ytp-progress:focus-visible::before{inset-block:5px}
.ytp-knob{position:absolute;right:-6px;top:50%;width:13px;height:13px;margin-top:-6.5px;border-radius:50%;background:var(--yt-green);transform:scale(0);transition:transform .1s}
.ytp-progress:hover .ytp-knob,.ytp-progress:focus-visible .ytp-knob{transform:scale(1)}
.ytp-progress:focus-visible{box-shadow:0 0 0 2px #fff}
.ytp-tip{position:absolute;bottom:18px;transform:translateX(-50%);background:rgba(28,28,28,.9);padding:2px 6px;border-radius:3px;font-size:12px;opacity:0;pointer-events:none;white-space:nowrap}
.ytp-progress:hover .ytp-tip{opacity:1}
.ytp-row{display:flex;align-items:center;gap:2px;height:44px}
.ytp-btn{display:grid;place-items:center;width:44px;height:44px;border:0;background:none;color:#fff;cursor:pointer;opacity:.92;border-radius:4px;padding:0}
.ytp-btn:hover{opacity:1}.ytp-btn:focus-visible{outline:2px solid #fff;outline-offset:-4px}.ytp-btn svg{fill:currentColor}
.ytp-btn[aria-pressed=true]{color:var(--yt-green)}
.ytp-vol{display:flex;align-items:center}
.ytp-range{width:0;opacity:0;transition:width .2s,opacity .2s;-webkit-appearance:none;appearance:none;height:4px;border-radius:2px;background:linear-gradient(to right,#fff var(--v,100%),rgba(255,255,255,.3) var(--v,100%));cursor:pointer;margin:0}
.ytp-vol:hover .ytp-range,.ytp-range:focus{width:64px;opacity:1;margin-inline-end:8px}
.ytp-range::-webkit-slider-thumb{-webkit-appearance:none;width:12px;height:12px;border-radius:50%;background:#fff}
.ytp-range::-moz-range-thumb{width:12px;height:12px;border:0;border-radius:50%;background:#fff}
.ytp-time{font-size:13px;margin-inline-start:6px;white-space:nowrap;font-variant-numeric:tabular-nums}
.ytp-gap{flex:1}
.ytp-big{position:absolute;inset:50% auto auto 50%;width:68px;height:68px;margin:-34px 0 0 -34px;border-radius:50%;border:0;background:rgba(0,0,0,.6);color:#fff;display:none;place-items:center;cursor:pointer;z-index:2;transition:opacity .2s}
.ytp-big svg{width:40px;height:40px;fill:currentColor}
.ytp.is-paused:not(.was-played) .ytp-big{display:grid}
.ytp-spin{position:absolute;inset:50% auto auto 50%;width:48px;height:48px;margin:-24px 0 0 -24px;border:4px solid rgba(255,255,255,.25);border-top-color:#fff;border-radius:50%;animation:ytp-spin 1s linear infinite;display:none;pointer-events:none;z-index:2}
.ytp.is-waiting .ytp-spin{display:block}
@keyframes ytp-spin{to{transform:rotate(360deg)}}
.ytp-menu{position:absolute;inset-inline-end:12px;bottom:64px;min-width:220px;max-height:calc(100% - 80px);overflow:auto;background:rgba(28,28,28,.94);border-radius:8px;padding:6px 0;color:#fff;z-index:4;font-size:14px}
.ytp-mi{display:flex;align-items:center;gap:10px;width:100%;padding:9px 14px;border:0;background:none;color:inherit;font:inherit;text-align:start;cursor:pointer}
.ytp-mi:hover,.ytp-mi:focus-visible{background:rgba(255,255,255,.12);outline:0}
.ytp-mi>span:first-child{flex:1}.ytp-mv{opacity:.8}.ytp-mi svg{fill:currentColor;width:20px;height:20px;flex:none}
html[dir=rtl] .ytp-mi:not(.ytp-opt) svg{transform:scaleX(-1)}
.ytp-mhead{border-bottom:1px solid rgba(255,255,255,.2);margin-bottom:4px;font-weight:500}
.ytp-opt svg{visibility:hidden}.ytp-opt.is-on svg{visibility:visible}.ytp-opt>span{flex:1}
.ytp .yt-player-status{bottom:72px}
.ytp video::cue{font-size:inherit}
.ytp.is-fs{border-radius:0}.ytp.is-fs .yt-video{height:100vh}
@media (max-width:1100px){.yt-watch.is-theater{grid-template-columns:1fr}.yt-watch.is-theater .yt-watch-main{display:block}.yt-watch.is-theater .yt-player{height:auto;aspect-ratio:16/9;margin:0}.ytp-th{display:none}}
@media (max-width:560px){.ytp-vol .ytp-range{display:none}.ytp-btn{width:38px}.ytp-time{font-size:12px}}
/* live channel cards (live page and the home row) */
.yt-thumb-live{display:grid;place-items:center;background:#1f1f1f}
.yt-thumb-live img{object-fit:contain!important;padding:14%;box-sizing:border-box}
.yt-thumb-live strong{color:#fff;font-size:34px;letter-spacing:1px}
.yt-live-badge{position:absolute;bottom:8px;inset-inline-end:8px;background:var(--yt-red);color:#fff;font-size:12px;font-weight:600;padding:2px 6px;border-radius:2px}
/* 2.1.25: profile pictures */
.yt-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.yt-avatar{overflow:hidden;padding:0}
/* 2.1.26: like MediaCMS — administrator shortcuts, channel edit buttons, My media */
.yt-nav-admin .yt-nav .yt-ico{color:var(--yt-soft)}
.yt-btn-green{background:var(--yt-green);color:#fff!important;border-radius:2px;font-weight:500;letter-spacing:.3px}
.yt-channel-edit{margin-inline-start:auto;display:flex;gap:10px;flex-wrap:wrap}
.yt-edit-wrap{display:flex;flex-direction:column;min-width:0}
.yt-edit-media{display:block;background:var(--yt-green);color:#fff!important;text-align:center;font-size:14px;font-weight:500;padding:7px 8px;letter-spacing:.3px}
.yt-edit-media:hover{filter:brightness(1.08)}
.yt-channel-logo img{width:100%;height:100%;max-width:none;max-height:none;object-fit:cover}
.yt-mymedia-avatar{background:var(--yt-red)}.yt-mymedia-avatar b{color:#fff;font-size:40px}
.yt-mymedia .yt-channel-head{padding-top:12px}
@media (max-width:760px){.yt-channel-edit{margin-inline-start:0}}
/* 2.1.26: light scrollbars like MediaCMS, whatever the program theme (a dark theme would make them black) */
html[data-theme]:has(>body.yt-body){color-scheme:light}
.yt-body{color-scheme:light}
.yt-sidebar{scrollbar-color:#c1c1c1 transparent}
button.yt-edit-media{width:100%;border:0;font:inherit;font-size:14px;font-weight:500;cursor:pointer}
button.yt-edit-media:disabled{opacity:.6;cursor:default}
/* 2.1.27: the subscriber's own channel */
.yt-mm-banner{position:relative}
.yt-mm-banner.is-empty{background:linear-gradient(120deg,#e9e9e9,#d6d6d6)}
.yt-mm-banner form{position:absolute;top:22px;margin:0}
.yt-mm-edit{inset-inline-end:32px}.yt-mm-remove{inset-inline-start:32px}
.yt-mm-banner .yt-btn-green{cursor:pointer;padding:10px 20px;border-radius:2px;font-size:15px}
.yt-mymedia .yt-channel-head .yt-channel-edit{align-self:flex-start}
.yt-ulist-new,.yt-ulist-edit{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}
.yt-channel>.yt-ulist-new{margin-inline:48px}
.yt-ulist-new input,.yt-ulist-edit input,.yt-saveto-new input{flex:1;min-width:0;padding:8px 10px;border:1px solid var(--yt-line);border-radius:2px;background:#fff;color:#0f0f0f;font:inherit}
.yt-ulist-page{padding:20px 48px}.yt-ulist-del{color:#c00;margin-top:8px}
.yt-saveto{border:0;border-radius:12px;padding:20px 20px 16px;width:min(360px,calc(100vw - 32px));background:#fff;color:#0f0f0f;box-shadow:0 12px 40px rgba(0,0,0,.35)}
.yt-saveto::backdrop{background:rgba(0,0,0,.5)}
.yt-saveto h2{margin:0 0 12px;font-size:16px;font-weight:500}
.yt-saveto-list{display:grid;gap:2px;max-height:50vh;overflow:auto;margin-bottom:14px}
.yt-saveto-row{display:flex;align-items:center;gap:12px;padding:8px 4px;cursor:pointer;border-radius:4px}.yt-saveto-row:hover{background:#f2f2f2}
.yt-saveto-row input{width:18px;height:18px;accent-color:var(--yt-green)}
.yt-saveto-new{display:flex;gap:8px;border-top:1px solid var(--yt-line);padding-top:12px}
@media (max-width:760px){.yt-mm-banner form{top:10px}.yt-mm-edit{inset-inline-end:10px}.yt-mm-remove{inset-inline-start:10px}.yt-mm-banner .yt-btn-green{padding:6px 10px;font-size:12px}.yt-channel>.yt-ulist-new{margin-inline:12px}.yt-ulist-page{padding:16px 12px}}

/* 2.1.35: share button on live channel cards */
.lp-card-share{position:absolute;top:8px;inset-inline-end:8px;z-index:3;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:rgba(0,0,0,.6);color:#fff;font-size:16px;line-height:1;cursor:pointer;opacity:.9}.lp-card-share:hover,.lp-card-share:focus-visible{opacity:1;background:#e5484d;outline:none}

/* 2.1.41: a subscriber's own videos — Upload, My videos, video details and their channel */
.yt-studio{max-width:1100px}
.yt-studio-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}.yt-studio-head .yt-page-title{margin:0;margin-inline-end:auto}
.yt-upload,.yt-studio-form{background:#fff;border:1px solid var(--yt-line);border-radius:8px;padding:20px;display:grid;gap:14px;max-width:760px}
.yt-drop{position:relative;display:grid;place-items:center;gap:6px;text-align:center;border:2px dashed #c6c6c6;border-radius:8px;padding:28px 16px;cursor:pointer;color:var(--yt-muted);background:#fafafa}
.yt-drop.is-over{border-color:var(--yt-blue);background:#eef5ff}.yt-drop .yt-ico{color:var(--yt-soft)}.yt-drop strong{color:var(--yt-text);font-weight:500;word-break:break-word}
.yt-drop input{position:absolute;width:1px;height:1px;opacity:0}
.yt-field{display:grid;gap:6px;min-width:0}.yt-field>span{font-weight:500;font-size:13px;color:var(--yt-muted)}
.yt-field input,.yt-field textarea,.yt-field select{width:100%;box-sizing:border-box;border:1px solid #ccc;border-radius:4px;padding:9px 10px;font:inherit;font-size:15px;color:var(--yt-text);background:#fff}
.yt-field textarea{resize:vertical}.yt-field input:focus,.yt-field textarea:focus,.yt-field select:focus{outline:2px solid var(--yt-blue);outline-offset:-1px;border-color:transparent}
.yt-field-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.yt-form-actions{display:flex;gap:10px;flex-wrap:wrap}.yt-form-actions .yt-btn[disabled]{opacity:.6;cursor:default}
.yt-upload-progress{display:grid;gap:6px}.yt-upload-progress progress{width:100%;height:10px}.yt-upload-progress .is-error{color:#a10000}
.yt-studio-list{display:grid;gap:12px;margin-top:12px}
.yt-studio-row{display:grid;grid-template-columns:200px minmax(0,1fr) auto;gap:16px;align-items:center;background:#fff;border:1px solid var(--yt-line);border-radius:8px;padding:10px}
.yt-studio-info .yt-card-title{display:block;margin-bottom:4px}.yt-studio-info p{margin:0}.yt-studio-error{color:#a10000;font-size:13px;margin-top:4px!important}
.yt-studio-actions{display:flex;gap:8px;flex-wrap:wrap}.yt-studio-actions form{margin:0}
.yt-state{display:inline-block;padding:1px 8px;border-radius:10px;font-size:12px;font-weight:500;background:#eee;color:#333}
.yt-state-approved{background:#e3f6ea;color:#0a6b2d}.yt-state-pending,.yt-state-processing{background:#fff4d6;color:#7a5200}.yt-state-rejected,.yt-state-failed{background:#fdecec;color:#a10000}
.yt-studio-edit{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start;margin-top:12px}
.yt-studio-side{display:grid;gap:14px;background:#fff;border:1px solid var(--yt-line);border-radius:8px;padding:16px}
.yt-studio-side form{display:grid;gap:8px;margin:0}.yt-studio-facts{margin:0;display:grid;gap:8px}.yt-studio-facts div{display:flex;justify-content:space-between;gap:10px}
.yt-studio-facts dt{color:var(--yt-muted)}.yt-studio-facts dd{margin:0;text-align:end;min-width:0;overflow-wrap:anywhere}
.yt-creator-channel .yt-channel-head p{margin:2px 0 0}
@media (max-width:760px){
 .yt-field-row,.yt-studio-edit{grid-template-columns:1fr}
 .yt-studio-row{grid-template-columns:120px minmax(0,1fr)}.yt-studio-actions{grid-column:1/-1}
 .yt-upload,.yt-studio-form{padding:14px}
}
/* 2.1.43: the cover — a scene of the video or a picture */
.yt-cover{border:1px solid var(--yt-line);border-radius:8px;padding:12px 14px;margin:0;display:grid;gap:12px;min-width:0}
.yt-cover legend{font-weight:500;font-size:13px;color:var(--yt-muted);padding:0 6px}
.yt-cover-modes{display:flex;gap:18px;flex-wrap:wrap}.yt-cover-modes label{display:flex;align-items:center;gap:6px;cursor:pointer}
.yt-scene{display:grid;gap:8px;min-width:0}.yt-scene video{width:100%;max-height:360px;background:#000;border-radius:6px;aspect-ratio:16/9;object-fit:contain}
.yt-scene-bar{display:flex;align-items:center;gap:10px}.yt-scene-bar input{flex:1;min-width:0}.yt-scene-time{font-variant-numeric:tabular-nums;color:var(--yt-muted);min-width:4.5em;text-align:end}
.yt-scene-help{margin:0;font-size:13px}.yt-cover-preview{max-width:320px;width:100%;border-radius:6px;aspect-ratio:16/9;object-fit:cover;background:#eee}
.yt-scene-pick{display:grid;gap:10px}.yt-scene-pick>summary{list-style:none;justify-content:center}.yt-scene-pick>summary::-webkit-details-marker{display:none}
.yt-scene-pick[open]{border:1px solid var(--yt-line);border-radius:8px;padding:10px}

/* 2.1.44 / 2.1.47: Live page like Owncast — the player and its buttons in one dark block (no empty space), the name
   under it, the chat as a column the height of the screen beside it (under the player on phones), every channel below */
.yt-live{max-width:1800px;margin:0 auto}
.yt-live-top{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start;scroll-margin-top:72px}
.yt-live.has-chat:not(.chat-hidden) .yt-live-top{grid-template-columns:minmax(0,1fr) 360px}
.yt-live.chat-hidden .yt-chat{display:none}
.yt-live-player{background:#000;border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
.yt-live-screen{position:relative;width:100%;aspect-ratio:16/9;max-height:calc(100vh - var(--yt-head) - 170px);min-height:200px;background:#000}
.yt-live-screen video,.yt-live-screen .lp-video{position:absolute;inset:0;width:100%;height:100%;max-height:none;aspect-ratio:auto;border-radius:0;object-fit:contain;background:#000}
.yt-live-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;background:#0f0f0f;border-top:1px solid #222}
.yt-live-bar-main,.yt-live-bar-side{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.yt-live-btn{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border:0;border-radius:18px;background:#272727;color:#f1f1f1!important;font:inherit;font-size:14px;font-weight:500;cursor:pointer;text-decoration:none;white-space:nowrap}
.yt-live-btn:hover{background:#3a3a3a}
.yt-live-btn.is-primary{background:var(--yt-blue);color:#fff!important}
.yt-live-btn.is-primary:hover{filter:brightness(1.1)}
.yt-live-btn .yt-ico{fill:currentColor}
.yt-live-btn[hidden]{display:none}
.yt-live-info{display:flex;align-items:center;gap:12px;margin-top:12px}
.yt-live-logo{width:56px;height:56px;border-radius:50%;background:var(--yt-soft);display:grid;place-items:center;overflow:hidden;font-weight:700;flex:none}
.yt-live-logo img{width:100%;height:100%;object-fit:contain}
.yt-live-name{flex:1 1 220px;min-width:0}
.yt-live-name h1{font-size:20px;margin:2px 0;overflow-wrap:anywhere}
.yt-live-name p{margin:0;color:var(--yt-muted);font-size:14px}
.yt-live-name .yt-live-badge,.yt-live-row .yt-live-badge{position:static;display:inline-block}
.yt-live-status{margin:8px 0 0;min-height:0}
.yt-live-status:empty{display:none}
.yt-live-detail{margin:2px 0 0;font-size:12px}
.yt-live-detail:empty{display:none}
.yt-chat{display:flex;flex-direction:column;border:1px solid #d9d9d9;border-radius:12px;background:#ebebeb;min-height:360px;overflow:hidden}
.yt-chat-head,.yt-chat-form,.yt-chat-signin{border-color:#d9d9d9!important;background:#e2e2e2}
.yt-chat-form input{background:#fff!important}
.yt-chat-head{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--yt-line)}
.yt-chat-head strong{white-space:nowrap}
.yt-chat-live{flex:1;min-width:0;color:var(--yt-muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.yt-chat-hide{border:0;background:none;color:var(--yt-muted);cursor:pointer;padding:4px;border-radius:50%;display:grid;place-items:center}
.yt-chat-hide:hover{background:var(--yt-hover);color:var(--yt-text)}
.yt-chat-hide .yt-ico{fill:currentColor}
.yt-chat-list{list-style:none;margin:0;padding:8px 12px;flex:1;overflow-y:auto}
.yt-chat-msg{padding:5px 0}
.yt-chat-msg p{margin:1px 0 0;overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.4}
.yt-chat-meta{display:flex;align-items:center;gap:8px;font-size:13px}
.yt-chat-meta strong{font-weight:700}
.yt-chat-meta time{color:var(--yt-muted);font-size:11px}
.yt-chat-tool{margin-inline-start:auto;border:0;background:none;color:var(--yt-muted);cursor:pointer;font-size:15px;line-height:1;padding:2px 4px;border-radius:4px;opacity:0;transition:opacity .15s}
.yt-chat-msg:hover .yt-chat-tool,.yt-chat-tool:focus-visible{opacity:1}
@media (hover:none){.yt-chat-tool{opacity:1}}
.yt-chat-tool+.yt-chat-tool{margin-inline-start:0}
.yt-chat-tool:hover{background:var(--yt-hover);color:var(--yt-red)}
.yt-chat-empty{color:var(--yt-muted);text-align:center;margin:0;padding:24px 12px}
.yt-chat-form{position:relative;display:flex;align-items:center;gap:6px;padding:10px;border-top:1px solid var(--yt-line)}
.yt-chat-form input{flex:1;min-width:0;height:38px;padding:0 12px;border:1px solid var(--yt-line);border-radius:19px;background:var(--yt-bg);color:var(--yt-text);font:inherit}
.yt-chat-emoji-btn,.yt-chat-send{flex:none;width:38px;height:38px;border:0;border-radius:50%;background:var(--yt-soft);cursor:pointer;font-size:18px;display:grid;place-items:center;color:var(--yt-text)}
.yt-chat-send{background:var(--yt-blue);color:#fff;font-size:16px}
html[dir=rtl] .yt-chat-send{transform:scaleX(-1)}
.yt-chat-send:disabled,.yt-chat-form input:disabled{opacity:.5}
.yt-chat-emoji{position:absolute;bottom:calc(100% + 4px);inset-inline-start:8px;display:grid;grid-template-columns:repeat(6,36px);gap:2px;padding:6px;background:var(--yt-bg);border:1px solid var(--yt-line);border-radius:10px;box-shadow:0 4px 16px rgba(0,0,0,.15);z-index:2}
.yt-chat-emoji[hidden]{display:none}
.yt-chat-emoji button{width:36px;height:36px;border:0;background:none;border-radius:6px;font-size:20px;cursor:pointer}
.yt-chat-emoji button:hover{background:var(--yt-hover)}
.yt-chat-error{margin:0;padding:0 12px 10px;color:var(--yt-red);font-size:13px}
.yt-chat-signin{margin:0;padding:12px;border-top:1px solid var(--yt-line);text-align:center}
.yt-live-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px;margin-top:8px}
.yt-live-row{display:flex;gap:12px;align-items:center;padding:10px;border:1px solid var(--yt-line);border-radius:12px;background:var(--yt-bg)}
.yt-live-row.is-current{border-color:var(--yt-blue);box-shadow:0 0 0 1px var(--yt-blue) inset}
.yt-live-thumb{position:relative;flex:none;width:128px;aspect-ratio:16/9;border:0;border-radius:8px;background:var(--yt-soft);display:grid;place-items:center;overflow:hidden;cursor:pointer;padding:0;color:var(--yt-text);font:inherit}
.yt-live-thumb img{width:100%;height:100%;object-fit:cover}
.yt-live-thumb .yt-live-badge{position:absolute;bottom:4px;inset-inline-end:4px;font-size:10px}
.yt-live-now{display:none;position:absolute;inset:0;background:rgba(0,0,0,.6);color:#fff;font-size:11px;font-weight:700;place-items:center}
.yt-live-row.is-current .yt-live-now{display:grid}
.yt-live-row-body{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}
.yt-live-row-body strong{overflow-wrap:anywhere}
.yt-live-row-body small{color:var(--yt-muted)}
.yt-live-row-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}
.yt-live-row-actions .yt-btn{padding:4px 10px;font-size:13px}
/* 2.1.52: the channel at the start of the dark bar; every channel in one strip of pictures under the player. */
.yt-live-ident{display:flex;align-items:center;gap:10px;min-width:0;margin-inline-end:6px}
.yt-live-ident .yt-live-logo{width:40px;height:40px;background:#fff;font-size:13px}
.yt-live-ident .yt-live-name{display:grid;gap:1px;min-width:0;flex:none;max-width:260px}
.yt-live-ident .yt-live-badge{font-size:10px;padding:1px 5px;justify-self:start}
.yt-live-ident strong{color:#fff;font-size:15px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.yt-live-ident small{color:#aaa;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.yt-live-strip{position:relative;display:flex;align-items:center;gap:6px}
.yt-live-strip .yt-live-list{display:flex;gap:10px;overflow-x:auto;scroll-behavior:smooth;scrollbar-width:thin;padding:4px 2px 8px;flex:1;min-width:0;margin:0}
.yt-live-strip .yt-live-row{flex:none;width:160px;display:grid;gap:4px;padding:0;border:0;background:none;box-shadow:none}
.yt-live-strip .yt-live-thumb{width:160px;border:2px solid transparent;border-radius:10px}
.yt-live-strip .yt-live-row.is-current .yt-live-thumb{border-color:var(--yt-blue)}
.yt-live-strip .yt-live-row.is-current{box-shadow:none}
.yt-live-strip .yt-live-now{display:grid;opacity:0;transition:opacity .15s;background:rgba(0,0,0,.45)}
.yt-live-strip .yt-live-now .yt-ico{fill:#fff}
.yt-live-strip .yt-live-thumb:hover .yt-live-now,.yt-live-strip .yt-live-row.is-current .yt-live-now{opacity:1}
.yt-live-row-name{font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 2px}
.yt-live-row.is-current .yt-live-row-name{color:var(--yt-blue);font-weight:700}
.yt-strip-arrow{flex:none;width:34px;height:34px;border-radius:50%;border:1px solid var(--yt-line);background:var(--yt-surface);color:var(--yt-text);font-size:22px;line-height:1;cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.12)}
.yt-strip-arrow[hidden]{visibility:hidden;display:block}
html[dir=rtl] .yt-strip-arrow{transform:scaleX(-1)}
/* Wide screens: one screen — the player and the chat the same height and fixed; the strip under them. */
@media (min-width:1001px){
.yt-live{--live-list:128px}
.yt-live-top{grid-template-rows:calc(100vh - var(--yt-head) - 60px - var(--live-list)) var(--live-list);row-gap:12px;align-items:stretch}
.yt-live-stage{display:contents}
.yt-live-player{grid-column:1;grid-row:1;height:100%;min-height:0}
.yt-live-screen{flex:1;min-height:0;max-height:none;aspect-ratio:auto}
.yt-chat{grid-column:2;grid-row:1;position:static;height:100%;min-height:0}
.yt-live-scroll{grid-column:1/-1;grid-row:2;min-height:0;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end}
.yt-live-scroll .yt-live-status,.yt-live-scroll .yt-live-detail{margin:0 0 4px}
.yt-page-live .yt-main{padding-bottom:24px}
}
@media (max-width:1000px){.yt-live.has-chat:not(.chat-hidden) .yt-live-top{grid-template-columns:minmax(0,1fr)}.yt-chat{height:460px}.yt-live-screen{max-height:none}}
@media (max-width:520px){.yt-live-list{grid-template-columns:minmax(0,1fr)}.yt-live-thumb{width:100px}.yt-live-btn{height:34px;padding:0 10px}.yt-live-bar-side .yt-live-btn span{display:none}.yt-live-bar{padding:8px}}
