*{margin:0;padding:0;box-sizing:border-box;font-family:Roboto,sans-serif}:root,[data-theme=light]{--nav-height: 56px;--sidebar-width: 240px;--sidebar-collapsed: 72px;--mobile-breakpoint: 768px;--tablet-breakpoint: 1024px;--bg-primary: #f9f9f9;--bg-secondary: #ffffff;--text-primary: #0f0f0f;--text-secondary: #555555;--text-muted: #606060;--border-color: #e0e0e0;--hover-bg: #f2f2f2;--accent: #cc0000;--nav-shadow: rgba(0, 0, 0, .15);--skeleton-base: #e0e0e0;--skeleton-shine: #f5f5f5}[data-theme=dark]{--bg-primary: #0f0f0f;--bg-secondary: #212121;--text-primary: #f1f1f1;--text-secondary: #aaaaaa;--text-muted: #909090;--border-color: #3f3f3f;--hover-bg: #383838;--accent: #ff4444;--nav-shadow: rgba(0, 0, 0, .5);--skeleton-base: #2a2a2a;--skeleton-shine: #3a3a3a}body{background:var(--bg-primary);color:var(--text-primary);transition:background .2s ease,color .2s ease}a{text-decoration:none;color:var(--text-secondary)}img{cursor:pointer}.flex-div{display:flex;align-items:center}body.sidebar-open{overflow:hidden}.sidebar-backdrop{display:none}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%);background:var(--text-primary);color:var(--bg-secondary);padding:12px 24px;border-radius:8px;font-size:14px;z-index:1000;box-shadow:0 4px 12px #0000004d;animation:toast-in .25s ease}@keyframes toast-in{0%{opacity:0;transform:translate(-50%) translateY(12px)}to{opacity:1;transform:translate(-50%) translateY(0)}}@media (max-width: 768px){.sidebar-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;z-index:90}}nav{padding:10px 2%;justify-content:space-between;box-shadow:0 0 10px var(--nav-shadow);background:var(--bg-secondary);position:sticky;top:0;z-index:100;min-height:var(--nav-height);gap:12px;transition:background .2s ease}.nav-left{flex-shrink:0}.nav-left .menu-icon{width:22px;margin-right:16px}.nav-left .logo{width:130px;max-width:100%}.nav-middle{flex:1;justify-content:center;max-width:720px;min-width:0}.nav-middle .search-box{border:1px solid var(--border-color);padding:4px 4px 4px 16px;border-radius:40px;width:100%;max-width:540px;background:var(--bg-primary)}.nav-middle .search-box input{width:100%;min-width:0;border:0;outline:0;background:transparent;font-size:16px;color:var(--text-primary)}.search-submit{background:var(--hover-bg);border:none;border-radius:50%;width:40px;height:40px;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0}.search-submit img{width:18px}.nav-middle .mobile-search-icon{display:none}.nav-right{flex-shrink:0;gap:8px}.nav-right img{width:25px}.nav-right .user-icon{width:35px;border-radius:50%}.theme-toggle{background:var(--hover-bg);border:none;width:36px;height:36px;border-radius:50%;cursor:pointer;font-size:16px;display:flex;align-items:center;justify-content:center}.mobile-search-bar{display:none}@media (max-width: 1024px){.nav-left .logo{width:100px}.nav-right img{width:22px}.nav-right .user-icon{width:32px}}@media (max-width: 768px){nav{padding:8px 12px;flex-wrap:wrap;position:relative}nav.search-active .nav-middle .search-box{display:none}.nav-left .menu-icon{margin-right:12px}.nav-left .logo{width:90px}.nav-middle{flex:0;max-width:none}.nav-middle .search-box{display:none}.nav-middle .mobile-search-icon{display:block;width:22px;padding:4px}.nav-icon-upload,.nav-icon-more{display:none}.nav-right{gap:12px}.mobile-search-bar{display:flex;width:100%;order:4;gap:8px;padding-top:4px}.mobile-search-bar .search-box{flex:1;max-width:none;display:flex}.search-close{background:none;border:none;color:#065fd4;font-size:14px;cursor:pointer;white-space:nowrap;padding:0 4px}}@media (max-width: 480px){.nav-left .logo{width:80px}.nav-icon-notification{display:none}.nav-right{gap:8px}}.sidebar{background:var(--bg-secondary);width:var(--sidebar-width);height:100vh;position:fixed;top:0;left:0;padding-left:12px;padding-right:12px;padding-top:calc(var(--nav-height) + 16px);overflow-y:auto;z-index:95;transition:width .2s ease,transform .25s ease,background .2s ease}.shortcut-links img,.subscribed-list img{width:20px;margin-right:20px;flex-shrink:0}.subscribed-list img{width:25px;border-radius:50%}.side-link{display:flex;align-items:center;margin-bottom:20px;width:fit-content;max-width:100%;flex-wrap:nowrap;cursor:pointer;color:var(--text-primary)}.side-link p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}.sidebar hr{border:0;height:1px;background:var(--border-color);width:85%;margin-bottom:8px}.subscribed-list h3{font-size:13px;margin:20px 0 12px;color:var(--text-muted);font-weight:600}.small-sidebar{width:var(--sidebar-collapsed);padding-left:8px;padding-right:8px}.small-sidebar p,.small-sidebar h3{display:none}.small-sidebar hr{width:50%;margin-bottom:25px}.side-link.active{font-weight:600}.side-link.active img{padding-bottom:2px;border-bottom:3px solid var(--accent)}@media (min-width: 769px){.sidebar.video-page{display:none}}@media (max-width: 1024px) and (min-width: 769px){.sidebar.home-page{width:200px}.sidebar.home-page.small-sidebar{width:var(--sidebar-collapsed)}}@media (max-width: 768px){.sidebar{width:var(--sidebar-width);transform:translate(-100%);box-shadow:2px 0 12px #00000026}.sidebar.mobile-open{transform:translate(0)}.sidebar.small-sidebar{width:var(--sidebar-width)}.sidebar.small-sidebar p,.sidebar.small-sidebar h3{display:block}.sidebar.small-sidebar hr{width:85%}}.page-layout{background:var(--bg-primary);padding-left:calc(var(--sidebar-width) + 16px);padding-right:24px;padding-top:20px;padding-bottom:20px;min-height:calc(100vh - var(--nav-height));transition:padding-left .2s ease,background .2s ease}.page-layout.large-container{padding-left:calc(var(--sidebar-collapsed) + 16px)}.page-layout.mobile-container{padding-left:12px;padding-right:12px}.page-header{margin-bottom:20px}.page-header h1{font-size:24px;font-weight:600;color:var(--text-primary);margin-bottom:6px}.page-header p{color:var(--text-muted);font-size:14px}.page-header-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}.clear-btn{background:var(--bg-secondary);border:1px solid var(--border-color);color:var(--text-primary);padding:8px 16px;border-radius:20px;cursor:pointer;font-size:14px}.clear-btn:hover{background:var(--hover-bg)}.error-state,.empty-state{text-align:center;padding:60px 20px;color:var(--text-muted)}.error-state h3,.empty-state h3{color:var(--text-primary);margin-bottom:8px;font-size:18px}.retry-btn,.load-more-btn{margin-top:16px;background:var(--accent);color:#fff;border:none;padding:10px 24px;border-radius:20px;cursor:pointer;font-size:14px;font-weight:500}.load-more-btn{display:block;margin:24px auto 0}.load-more-btn:disabled{opacity:.6;cursor:not-allowed}@media (max-width: 1024px) and (min-width: 769px){.page-layout{padding-left:216px}.page-layout.large-container{padding-left:calc(var(--sidebar-collapsed) + 16px)}}@media (max-width: 768px){.page-layout,.page-layout.large-container{padding-left:12px;padding-right:12px}}.feed{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px 16px;margin-top:15px}.card{display:block;min-width:0}.history-item{min-width:0}.history-time{display:block;font-size:12px;color:var(--text-muted);margin-top:4px}@media (max-width: 768px){.feed{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:20px 12px;margin-top:8px}}@media (max-width: 480px){.feed{grid-template-columns:1fr;gap:24px}}.thumb-wrap{position:relative}.thumb-wrap img{width:100%;aspect-ratio:16 / 9;object-fit:cover;border-radius:12px;display:block}.duration-badge{position:absolute;bottom:8px;right:8px;background:#000c;color:#fff;font-size:12px;font-weight:600;padding:2px 6px;border-radius:4px;letter-spacing:.3px}.card h2{font-size:clamp(14px,2vw,16px);font-weight:600;color:var(--text-primary);margin:8px 0 4px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card h3{font-size:14px;font-weight:600;color:var(--text-secondary);margin:4px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card p{font-size:13px;color:var(--text-muted)}@media (max-width: 768px){.thumb-wrap img{border-radius:8px}}@media (max-width: 480px){.card h3{white-space:normal}}.skeleton{background:linear-gradient(90deg,var(--skeleton-base) 25%,var(--skeleton-shine) 50%,var(--skeleton-base) 75%);background-size:200% 100%;animation:shimmer 1.4s infinite;border-radius:8px}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.skeleton-card{min-width:0}.skeleton-thumb{width:100%;aspect-ratio:16 / 9;border-radius:12px;margin-bottom:10px}.skeleton-title{height:18px;margin-bottom:8px;width:90%}.skeleton-text{height:14px;margin-bottom:6px;width:70%}.skeleton-text.short{width:45%}.player-skeleton{flex:1 1 65%;min-width:0}.skeleton-player{width:100%;aspect-ratio:16 / 9;border-radius:12px;margin-bottom:16px}.play-container{background:var(--bg-primary);padding:20px 24px;display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:24px;min-height:calc(100vh - var(--nav-height));transition:background .2s ease}@media (max-width: 1024px){.play-container{padding-left:16px;padding-right:16px;gap:16px}}@media (max-width: 768px){.play-container{padding-left:12px;padding-right:12px;padding-top:12px;flex-direction:column;gap:12px}}.play-video{flex:1 1 65%;min-width:0;max-width:100%}.play-video iframe{width:100%;aspect-ratio:16 / 9;height:auto;border:none;border-radius:12px;background:#000}.play-video h3{margin-top:12px;font-weight:600;font-size:clamp(16px,2.5vw,22px);line-height:1.3;color:var(--text-primary)}.play-video-info{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:10px;font-size:14px;color:var(--text-muted)}.play-video-info img{width:20px;margin-right:8px}.play-video-info>div{display:flex;flex-wrap:wrap;gap:8px 12px}.action-btn{display:inline-flex;align-items:center;cursor:pointer;padding:6px 10px;border-radius:20px;transition:background .15s ease}.action-btn:hover{background:var(--hover-bg)}.action-btn.active{color:var(--accent);font-weight:600}.play-video hr{border:0;height:1px;background:var(--border-color);margin:10px 0}.publisher{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:20px}.publisher div{flex:1;min-width:120px;line-height:18px}.publisher img{width:40px;height:40px;border-radius:50%;object-fit:cover;flex-shrink:0}.publisher div p{color:var(--text-primary);font-weight:600;font-size:clamp(15px,2vw,18px)}.publisher div span{font-size:13px;color:var(--text-muted)}.publisher button{background:var(--accent);color:#fff;padding:8px 24px;border:0;outline:0;border-radius:20px;cursor:pointer;white-space:nowrap;flex-shrink:0;font-weight:600}.publisher button.subscribed{background:var(--hover-bg);color:var(--text-primary);border:1px solid var(--border-color)}.vid-description{padding-left:55px;margin:15px 0}.vid-description p{font-size:14px;margin-bottom:5px;color:var(--text-muted);line-height:1.5;word-break:break-word;white-space:pre-wrap}.show-more-btn{background:none;border:none;color:var(--text-primary);font-weight:600;cursor:pointer;font-size:14px;margin-bottom:8px}.vid-description h4{font-size:14px;color:var(--text-muted);margin-top:15px}.no-comments{color:var(--text-muted);font-size:14px;margin-top:8px}.comment{display:flex;align-items:flex-start;margin:20px 0;gap:12px}.comment img{width:35px;height:35px;border-radius:50%;flex-shrink:0;object-fit:cover}.comment>div{min-width:0;flex:1}.comment h3{font-size:14px;margin-bottom:2px;word-break:break-word;color:var(--text-primary)}.comment h3 span{font-size:12px;color:var(--text-muted);font-weight:500;margin-left:8px}.comment p{word-break:break-word;line-height:1.4;color:var(--text-secondary)}.comment-action{display:flex;align-items:center;margin:8px 0;font-size:14px}.comment-action img{border-radius:0;width:20px;margin-right:5px}.comment-action span{margin-right:20px;color:var(--text-muted)}@media (max-width: 768px){.play-video{flex:1 1 100%}.play-video iframe{border-radius:0}.vid-description{padding-left:0}.publisher button{width:100%;padding:10px}.play-video-info>div{width:100%;justify-content:space-between}.action-btn{font-size:13px;padding:4px 6px}.play-video-info img{width:18px}}@media (max-width: 480px){.play-video-info>div .action-btn:nth-child(3),.play-video-info>div .action-btn:nth-child(4){display:none}}.recommended{flex:0 1 32%;min-width:280px;max-width:100%}.recommended-title{font-size:16px;font-weight:600;color:var(--text-primary);margin-bottom:12px}.side-video-list{display:flex;justify-content:space-between;gap:8px;margin-bottom:12px}.side-thumb-wrap{position:relative;flex-shrink:0;width:168px;min-width:120px;max-width:45%}.side-thumb-wrap img{width:100%;aspect-ratio:16 / 9;object-fit:cover;border-radius:8px;display:block}.side-thumb-wrap .duration-badge{position:absolute;bottom:4px;right:4px;background:#000c;color:#fff;font-size:11px;font-weight:600;padding:1px 4px;border-radius:3px}.vid-info{flex:1;min-width:0}.vid-info h4{font-size:13px;margin-bottom:5px;line-height:1.3;color:var(--text-primary);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.vid-info p{font-size:12px;color:var(--text-muted);line-height:1.3}.skeleton-side{align-items:center}.side-skeleton-thumb{width:168px;height:94px;flex-shrink:0;border-radius:8px}.side-skeleton-text{flex:1;height:60px}@media (max-width: 768px){.recommended{flex:1 1 100%;min-width:0;width:100%}.side-thumb-wrap{width:140px;max-width:40%}}@media (max-width: 480px){.side-thumb-wrap{width:120px;min-width:100px}}.channel-banner{display:flex;gap:24px;align-items:flex-start;margin-bottom:32px;padding-bottom:24px;border-bottom:1px solid var(--border-color);flex-wrap:wrap}.channel-avatar{width:120px;height:120px;border-radius:50%;object-fit:cover;flex-shrink:0}.channel-info h1{font-size:clamp(22px,4vw,32px);color:var(--text-primary);margin-bottom:8px}.channel-info>p{color:var(--text-muted);font-size:14px;margin-bottom:8px}.channel-desc{line-height:1.5;max-width:600px}.subscribe-btn{margin-top:12px;background:var(--accent);color:#fff;border:none;padding:10px 20px;border-radius:20px;cursor:pointer;font-weight:600;font-size:14px}.subscribe-btn.subscribed{background:var(--bg-secondary);color:var(--text-primary);border:1px solid var(--border-color)}.channel-videos-title{font-size:18px;color:var(--text-primary);margin-bottom:16px}@media (max-width: 768px){.channel-banner{flex-direction:column;align-items:center;text-align:center}.channel-avatar{width:88px;height:88px}.subscribe-btn{width:100%;max-width:280px}}
