/* It Plays shared video homepage, red interface v1.3.0. */
:root{color-scheme:dark;--home-bg:#181818;--home-surface:#202020;--home-mod:#323232;--home-text:#fff;--home-muted:#b7b7b7;--home-line:#3e3e3e;--home-green:#ef3441;--home-head:80px;--home-rail:76px;font:16px/1.45 Arial,system-ui,sans-serif}
html[data-home-theme=light]{color-scheme:light;--home-bg:#f4f4f4;--home-surface:#fff;--home-mod:#e9e9e9;--home-text:#171717;--home-muted:#606060;--home-line:#d5d5d5;--home-green:#bd1022}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:calc(var(--home-head) + 70px)}body{margin:0;background:var(--home-bg);color:var(--home-text)}a{color:inherit;text-decoration:none}button,input,textarea{font:inherit;color:inherit}button{cursor:pointer;background:none;border:0;min-width:44px;min-height:44px}button:disabled{opacity:.5;cursor:default}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--home-green);outline-offset:3px}svg{width:22px;height:22px;flex:none;stroke-width:1.7}p,h2,h3{margin:0}img,video{max-width:100%}[hidden]{display:none!important}
.home-header{height:var(--home-head);position:sticky;top:0;z-index:80;display:flex;align-items:center;gap:16px;padding:0 24px;background:var(--home-surface);border-bottom:2px solid var(--home-green)}.home-header>button{display:grid;place-items:center;flex:none;border-radius:50%}.home-header>button:hover{background:var(--home-mod)}.home-brand{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}.home-brand img{width:36px;height:36px;object-fit:contain}.home-brand b{font-size:24px;letter-spacing:-.04em;line-height:1}.home-search{margin:auto;display:flex;align-items:center;gap:10px;max-width:640px;min-width:120px;flex:1;background:var(--home-bg);border:1px solid var(--home-line);border-radius:28px;padding:0 16px;min-height:44px}.home-search input{min-width:0;width:100%;background:transparent;border:0;min-height:44px}.home-search svg{color:var(--home-muted)}.home-search:focus-within{border-color:var(--home-green)}
.category-menu{position:relative}.category-trigger{display:flex;align-items:center;gap:6px;font-size:14px;padding:0 8px}.category-trigger svg{width:16px}.category-menu nav{position:absolute;top:calc(100% + 14px);right:0;width:min(330px,calc(100vw - 20px));max-height:calc(100dvh - var(--home-head) - 24px);overflow:auto;padding:8px;background:var(--home-surface);border:1px solid var(--home-line);border-radius:12px;box-shadow:0 12px 30px #0005;animation:itp-appear .18s ease-out}.category-menu nav>button{display:flex;align-items:center;justify-content:space-between;text-align:left;width:100%;padding:6px 12px;border-radius:8px}.category-menu nav>button:hover{background:var(--home-mod)}.category-menu nav>.category-close{width:44px;margin-left:auto;justify-content:center}.home-theme-switch{width:44px;padding:0;color:var(--home-green)}.home-theme-switch span{display:grid;place-items:center}.home-auth{display:flex;gap:10px;white-space:nowrap;font-size:14px}.home-auth a{display:flex;align-items:center;min-height:44px;color:var(--home-green)}
.home-nav{position:fixed;z-index:90;inset:var(--home-head) auto 0 0;width:var(--home-rail);overflow:auto hidden;padding:12px 6px;background:var(--home-surface);transition:width .2s;scrollbar-width:thin}.home-nav.open,.home-nav:focus-within{width:min(250px,85vw);box-shadow:8px 0 24px #0005}.home-nav>a{display:flex;align-items:center;gap:18px;width:100%;padding:0 20px;min-height:48px;border-radius:10px;white-space:nowrap;font-size:14px;font-weight:550;margin-bottom:2px}.home-nav span,.home-nav small{display:none}.home-nav.open span,.home-nav:focus-within span{display:inline}.home-nav.open small,.home-nav:focus-within small{display:block}.home-nav small{padding:16px 20px 8px;color:var(--home-muted);font-size:13px}.home-nav a:hover{background:var(--home-mod)}.home-nav a[aria-current]{background:color-mix(in srgb,var(--home-green) 16%,var(--home-surface));color:var(--home-text);box-shadow:inset 3px 0 var(--home-green)}.home-nav-shade{position:fixed;inset:var(--home-head) 0 0;z-index:85;background:#0008;width:100%;height:100%;padding:0}.home-main{margin-left:var(--home-rail);padding:0 28px 30px;min-width:0}.home-filter-strip{position:sticky;top:var(--home-head);z-index:40;background:var(--home-bg);display:flex;gap:10px;overflow-x:auto;padding:14px 0;scrollbar-width:none}.home-filter-strip button{flex:none;min-height:36px;border-radius:8px;background:var(--home-mod);padding:0 14px;font-size:14px;font-weight:600}.home-filter-strip button[aria-pressed=true]{background:var(--home-green);color:white}.home-channels{display:flex;align-items:center;gap:20px;padding:12px 0 20px}.home-channels>span{font-weight:650}.home-channels button{display:flex;align-items:center;gap:9px}.home-channels img{border-radius:50%;object-fit:contain}.home-channels>a{display:flex;align-items:center;gap:6px;margin-left:auto;font-size:14px;color:var(--home-muted);min-height:44px}.home-section{margin-bottom:32px;scroll-margin-top:calc(var(--home-head) + 64px)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.section-heading h2{font-size:23px;line-height:1.3;letter-spacing:-.02em}.section-heading p{color:var(--home-muted);font-size:14px;margin-top:4px}.category-capacity,.progress-note{display:block;color:var(--home-muted);margin-top:4px;font-size:14px}.progress-clear{font-size:14px;text-decoration:underline;color:var(--home-muted);padding:0;min-height:44px}.rail-controls{display:flex;gap:7px;align-items:center;flex:none}.rail-controls button{display:grid;place-items:center;border:1px solid var(--home-line);border-radius:50%;background:var(--home-surface)}.rail-controls a{display:flex;align-items:center;min-height:44px;font-size:14px;gap:4px}
.home-rail{display:flex;align-items:stretch;gap:20px;overflow-x:auto;scroll-snap-type:x proximity;padding:0 0 14px;scrollbar-width:thin;scrollbar-color:var(--home-line) transparent}.home-card{position:relative;flex:0 0 calc((100% - 40px)/3);min-width:0;scroll-snap-align:start;display:flex;flex-direction:column;background:transparent;border:0;box-shadow:none}.card-screen{position:relative;width:100%;aspect-ratio:16/9;background:#000;border-radius:12px;overflow:hidden}.card-screen video{display:block;width:100%;height:100%;object-fit:contain}.card-screen>.card-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}.card-open{position:absolute;inset:0;display:grid;place-items:center;color:white}.card-open>svg{width:44px;height:44px;padding:11px;border-radius:50%;background:#0007;opacity:0}.home-card:hover .card-open>svg,.home-card:focus-within .card-open>svg{opacity:1}.preview-tools{position:absolute;left:4px;top:4px;display:flex;background:#0008;border-radius:8px;opacity:0;transition:opacity .16s;color:#fff}.home-card:hover .preview-tools,.home-card:focus-within .preview-tools{opacity:1}.preview-tools button{display:grid;place-items:center}.preview-tools svg{width:18px}.card-duration{position:absolute;right:7px;bottom:7px;padding:2px 5px;background:#000c;color:white;border-radius:4px;font-size:12px;pointer-events:none}.card-details{display:flex;gap:10px;padding:12px 0;align-items:flex-start}.channel-avatar{min-width:40px;width:40px;height:44px;display:grid;place-items:center;flex:none;padding:0}.channel-avatar img{width:36px;height:36px;border-radius:50%;object-fit:contain}.card-details>div{min-width:0;flex:1}.card-title{font-size:16px;font-weight:650;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.card-title:hover{text-decoration:underline}.card-details p,.card-details small{font-size:14px;color:var(--home-muted);margin-top:3px;display:block}.card-overflow{min-width:44px;width:44px;padding:0;flex:none}.card-overflow svg{width:22px}.shorts-rail .home-card{flex-basis:calc((100% - 80px)/5)}.shorts-rail .card-screen{aspect-ratio:9/16}.shorts-rail .channel-avatar{display:none}.shorts-rail .card-details{gap:2px}.shorts-rail .card-title{font-size:14px}.empty-state,.search-empty{padding:24px;border:1px solid var(--home-line);border-radius:12px;color:var(--home-muted);font-size:15px}.home-footer{border-top:1px solid var(--home-line);padding:24px 0;display:flex;align-items:center;flex-wrap:wrap;gap:20px}.home-footer nav{display:flex;flex-wrap:wrap;gap:18px;margin-left:auto;font-size:14px}.home-footer a{min-height:44px;display:flex;align-items:center}.home-footer small{color:var(--home-muted);flex-basis:100%;font-size:14px}.home-mobile-nav{display:none}.home-notice{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:180;max-width:min(600px,calc(100vw - 24px));display:flex;align-items:center;gap:12px;padding:10px 12px;background:var(--home-surface);border:1px solid var(--home-line);border-radius:12px;box-shadow:0 6px 24px #0006;font-size:14px}.home-notice button{display:grid;place-items:center;flex:none}
.home-dialog{position:fixed;inset:0;margin:auto;border:1px solid var(--home-line);border-radius:14px;background:var(--home-surface);color:var(--home-text);width:min(520px,calc(100vw - 32px));max-height:85dvh;overflow:auto;padding:20px;box-shadow:0 18px 80px #0008;overscroll-behavior:contain;animation:itp-appear .2s ease}.home-dialog::backdrop{background:#0009}.home-dialog-head{position:sticky;top:-20px;display:flex;align-items:center;gap:12px;background:var(--home-surface);padding:6px 0 12px;z-index:2;touch-action:none}.home-dialog-head h2{font-size:21px;flex:1}.home-dialog-head button{display:grid;place-items:center;border-radius:50%}.sheet-grip{display:none}.dialog-links{display:flex;flex-direction:column;gap:4px}.dialog-links a,.dialog-links button{text-align:left;width:100%;padding:10px 12px;min-height:48px;border-radius:8px}.dialog-links :is(a,button):hover{background:var(--home-mod)}.home-comments article{padding:16px 0;border-bottom:1px solid var(--home-line)}.home-comments small{display:block;color:var(--home-muted);margin-top:3px}.home-comments p{white-space:pre-wrap;margin-top:8px}.home-dialog form{display:flex;flex-direction:column;gap:12px;margin-top:20px}.home-dialog textarea{width:100%;min-height:110px;background:var(--home-bg);border:1px solid var(--home-line);border-radius:8px;padding:12px}.primary,.primary-link{display:flex;align-items:center;justify-content:center;background:var(--home-green);color:#fff;border-radius:24px;min-height:44px;padding:8px 18px}.profile-content{display:flex;flex-direction:column;gap:16px}.profile-content dl{display:flex;gap:24px}.profile-content dt{color:var(--home-muted);font-size:14px}.profile-content dd{margin:4px 0;font-size:24px}.card-channel-overlay{position:absolute;inset:0;z-index:9;overflow:auto;display:flex;align-items:flex-start;flex-direction:column;gap:8px;padding:20px;background:var(--home-surface);border:1px solid var(--home-line);border-radius:12px;box-shadow:0 5px 20px #0006}.card-channel-overlay .overlay-close{align-self:flex-end}.card-channel-overlay p,.card-channel-overlay small{color:var(--home-muted);font-size:14px}.overlay-uploads{display:flex;gap:8px;width:100%;overflow:auto}.overlay-uploads a{flex:0 0 65%;font-size:13px}.overlay-uploads img{width:100%;aspect-ratio:16/9;object-fit:contain;border-radius:6px}.home-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1600px){.home-card{flex-basis:calc((100% - 60px)/4)}}
@media(min-width:651px) and (max-width:1199px){:root{--home-head:72px}.home-header{gap:10px;padding:0 16px}.home-card{flex-basis:calc((100% - 20px)/2)}.shorts-rail .home-card{flex-basis:calc((100% - 40px)/3)}.home-main{padding:0 20px 30px}}
@media(max-width:650px){:root{--home-head:64px;--home-rail:0px}.home-header{gap:6px;padding:0 10px}.home-brand img{width:30px;height:30px}.home-brand b{font-size:20px}.home-search{padding:0 10px;min-width:64px}.home-search>svg{display:none}.home-search input{font-size:14px}.home-header .category-menu,.home-header .home-profile-button,.home-header .home-auth{display:none}.home-theme-switch{min-width:44px}.home-header>button[aria-label=Notifications]{display:none}.home-main{margin:0;padding:0 14px 90px}.home-filter-strip{margin:0 -14px;padding:12px 14px;gap:8px}.home-nav{top:auto;bottom:0;left:0;right:0;width:100%;max-height:84dvh;border-radius:20px 20px 0 0;padding:20px 16px max(20px,env(safe-area-inset-bottom));transform:translateY(105%);visibility:hidden;transition:transform .22s;touch-action:pan-y}.home-nav:before{content:"";display:block;width:44px;height:4px;border-radius:3px;background:var(--home-muted);margin:0 auto 16px}.home-nav.open,.home-nav:focus-within{width:100%;transform:none;visibility:visible}.home-nav.open span,.home-nav:focus-within span{display:inline}.home-nav-shade{inset:var(--home-head) 0 0}.home-card{flex-basis:100%}.shorts-rail .home-card{flex-basis:45%}.home-channels{gap:10px}.home-channels>span{font-size:14px}.home-channels>a{font-size:13px}.section-heading h2{font-size:21px}.section-heading p{font-size:14px}.rail-controls{gap:2px}.rail-controls button{min-width:44px;width:44px;border:0}.home-mobile-nav{display:flex;position:fixed;inset:auto 0 0;z-index:80;justify-content:space-around;align-items:center;background:var(--home-surface);border-top:1px solid var(--home-line);padding:5px 6px max(5px,env(safe-area-inset-bottom))}.home-mobile-nav>a,.home-mobile-nav>button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;min-height:48px;min-width:56px;font-size:12px}.home-mobile-nav [aria-current]{color:var(--home-green)}.home-notice{bottom:76px}.home-footer nav{margin:0;gap:14px}.home-dialog{inset:auto 0 0;margin:0;width:100%;max-height:85dvh;border-radius:20px 20px 0 0;padding:16px 20px 24px;animation:itp-sheet-up .22s ease}.home-dialog-head{top:-16px;padding-top:15px}.sheet-grip{display:block;position:absolute;top:0;left:calc(50% - 22px);width:44px;height:4px;background:var(--home-muted);border-radius:4px}.preview-tools{opacity:1}.card-details{padding-top:10px}.home-footer small{padding-bottom:8px}}
@media(max-width:420px){.home-header .home-brand b{display:none}.home-main{padding-inline:12px}.home-filter-strip{margin-inline:-12px;padding-inline:12px}}
@keyframes itp-sheet-up{from{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes itp-appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
@media(min-width:651px){.home-nav:not(.open):not(:focus-within)>a:nth-of-type(n+8){display:none}}
