/* ===== RESET & BASE ===== */ * { margin: 0; padding: 0; box-sizing: border-box; } :root { --bg-primary: #0f0f0f; --bg-secondary: #1a1a1a; --bg-tertiary: #272727; --bg-hover: #3a3a3a; --text-primary: #f1f1f1; --text-secondary: #aaaaaa; --accent-color: #ff0000; --accent-hover: #cc0000; --border-color: #3a3a3a; --header-bg: #0f0f0f; --sidebar-width: 240px; --sidebar-mini-width: 72px; --header-height: 56px; --chip-bg: #272727; --chip-active-bg: #f1f1f1; --chip-active-text: #0f0f0f; --subscribe-bg: #cc0000; } html { scroll-behavior: smooth; } body { font-family: 'Roboto', Arial, sans-serif; background: var(--bg-primary); color: var(--text-primary); overflow-x: hidden; min-height: 100vh; } a { text-decoration: none; color: inherit; } /* ===== SCROLLBAR ===== */ ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: var(--bg-primary); } ::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: #555; } /* ===== HEADER ===== */ .header { position: fixed; top: 0; left: 0; right: 0; height: var(--header-height); background: var(--header-bg); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.1); } .header-left { display: flex; align-items: center; gap: 16px; min-width: 200px; } .menu-btn { background: none; border: none; color: var(--text-primary); font-size: 20px; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.2s; } .menu-btn:hover { background: var(--bg-tertiary); } .logo { display: flex; align-items: center; gap: 4px; cursor: pointer; } .logo-icon { font-size: 28px; color: var(--accent-color); } .logo-text { font-size: 20px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.5px; } .header-center { display: flex; align-items: center; flex: 1; max-width: 640px; margin: 0 auto; gap: 8px; } .search-box { display: flex; flex: 1; height: 40px; border: 1px solid var(--border-color); border-radius: 20px; overflow: hidden; background: var(--bg-primary); } .search-box input { flex: 1; background: transparent; border: none; outline: none; color: var(--text-primary); padding: 0 16px; font-size: 16px; } .search-box input::placeholder { color: var(--text-secondary); } .search-btn { width: 64px; background: var(--bg-tertiary); border: none; border-left: 1px solid var(--border-color); color: var(--text-primary); cursor: pointer; font-size: 16px; transition: background 0.2s; } .search-btn:hover { background: var(--bg-hover); } .voice-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-tertiary); border: none; color: var(--text-primary); cursor: pointer; font-size: 16px; transition: background 0.2s; } .voice-btn:hover { background: var(--bg-hover); } .header-right { display: flex; align-items: center; gap: 8px; min-width: 200px; justify-content: flex-end; } .icon-btn { width: 40px; height: 40px; border-radius: 50%; background: none; border: none; color: var(--text-primary); cursor: pointer; font-size: 18px; position: relative; display: flex; align-items: center; justify-content: center; transition: background 0.2s; } .icon-btn:hover { background: var(--bg-tertiary); } .notification-badge { position: absolute; top: 2px; right: 2px; background: var(--accent-color); color: white; font-size: 10px; padding: 1px 4px; border-radius: 8px; font-weight: 500; } .avatar { width: 32px; height: 32px; border-radius: 50%; background: #7c4dff; display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 14px; cursor: pointer; color: white; } .avatar.small { width: 28px; height: 28px; font-size: 12px; } /* ===== SIDEBAR ===== */ .sidebar { position: fixed; top: var(--header-height); left: 0; width: var(--sidebar-width); height: calc(100vh - var(--header-height)); background: var(--bg-primary); overflow-y: auto; overflow-x: hidden; z-index: 999; padding: 12px 0; transition: transform 0.3s ease, width 0.3s ease; } .sidebar.collapsed { width: var(--sidebar-mini-width); } .sidebar.collapsed .sidebar-item span, .sidebar.collapsed .sidebar-title, .sidebar.collapsed .sidebar-footer, .sidebar.collapsed .sidebar-divider { display: none; } .sidebar.collapsed .sidebar-item { flex-direction: column; padding: 8px 0; justify-content: center; font-size: 10px; } .sidebar.collapsed .sidebar-item i { margin: 0; font-size: 20px; } .sidebar-section { padding: 0 12px; margin-bottom: 12px; } .sidebar-title { font-size: 14px; font-weight: 500; padding: 8px 12px; color: var(--text-secondary); } .sidebar-item { display: flex; align-items: center; gap: 24px; padding: 8px 12px; border-radius: 10px; cursor: pointer; transition: background 0.2s; font-size: 14px; color: var(--text-primary); white-space: nowrap; } .sidebar-item:hover { background: var(--bg-tertiary); } .sidebar-item.active { background: var(--bg-tertiary); font-weight: 500; } .sidebar-item i { font-size: 18px; width: 24px; text-align: center; } .sidebar-avatar { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; color: white; font-weight: 500; } .sidebar-divider { border: none; border-top: 1px solid var(--border-color); margin: 12px 16px; } .sidebar-footer { text-align: center; font-size: 12px; color: var(--text-secondary); padding: 16px; } /* ===== MAIN CONTENT ===== */ .main-content { margin-top: var(--header-height); margin-left: var(--sidebar-width); padding: 16px 24px; padding-bottom: 80px; transition: margin-left 0.3s ease; } body.sidebar-collapsed .main-content { margin-left: var(--sidebar-mini-width); } /* ===== CATEGORY CHIPS ===== */ .category-chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 16px; position: sticky; top: var(--header-height); background: var(--bg-primary); z-index: 100; -ms-overflow-style: none; scrollbar-width: none; } .category-chips::-webkit-scrollbar { display: none; } .chip { padding: 6px 16px; border-radius: 8px; background: var(--chip-bg); border: none; color: var(--text-primary); font-size: 14px; cursor: pointer; white-space: nowrap; transition: all 0.2s; font-family: 'Roboto', sans-serif; } .chip:hover { background: var(--bg-hover); } .chip.active { background: var(--chip-active-bg); color: var(--chip-active-text); font-weight: 500; } /* ===== VIDEO GRID ===== */ .video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; padding-top: 8px; } .video-card { cursor: pointer; border-radius: 12px; overflow: hidden; transition: transform 0.2s; } .video-card:hover { transform: scale(1.02); } .thumbnail-wrapper { position: relative; width: 100%; padding-top: 56.25%; overflow: hidden; border-radius: 12px; background: var(--bg-tertiary); } .thumbnail-wrapper img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; } .video-card:hover .thumbnail-wrapper img { transform: scale(1.05); } .video-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.8); color: white; padding: 2px 6px; border-radius: 4px; font-size: 12px; font-weight: 500; } .video-info { display: flex; gap: 12px; padding: 12px 0; } .video-info .channel-avatar { width: 36px; height: 36px; border-radius: 50%; background: #7c4dff; display: flex; align-items: center; justify-content: center; font-size: 14px; color: white; flex-shrink: 0; font-weight: 500; } .video-details { flex: 1; min-width: 0; } .video-details h3 { font-size: 14px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; } .video-details .channel-name-small { font-size: 13px; color: var(--text-secondary); margin-bottom: 2px; display: flex; align-items: center; gap: 4px; } .video-details .channel-name-small .verified { font-size: 12px; color: var(--text-secondary); } .video-details .video-meta { font-size: 13px; color: var(--text-secondary); } .video-card .menu-dots { position: absolute; top: 8px; right: 8px; background: none; border: none; color: white; font-size: 18px; cursor: pointer; opacity: 0; transition: opacity 0.2s; text-shadow: 0 0 4px rgba(0,0,0,0.5); } .video-card:hover .menu-dots { opacity: 1; } /* ===== SHORTS SHELF ===== */ .shorts-shelf { margin-bottom: 24px; padding: 16px 0; border-bottom: 1px solid var(--border-color); } .shorts-shelf-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; } .shorts-shelf-header h2 { font-size: 20px; display: flex; align-items: center; gap: 8px; } .shorts-shelf-header h2 i { color: var(--accent-color); } .view-all { color: var(--text-secondary); font-size: 14px; display: flex; align-items: center; gap: 4px; cursor: pointer; transition: color 0.2s; } .view-all:hover { color: var(--text-primary); } .shorts-shelf-container { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; -ms-overflow-style: none; scrollbar-width: none; } .shorts-shelf-container::-webkit-scrollbar { display: none; } .short-card { min-width: 180px; max-width: 180px; cursor: pointer; flex-shrink: 0; border-radius: 12px; overflow: hidden; position: relative; transition: transform 0.2s; } .short-card:hover { transform: scale(1.05); } .short-card .short-thumbnail { width: 100%; height: 320px; object-fit: cover; border-radius: 12px; background: var(--bg-tertiary); } .short-card .short-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px 8px 8px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); border-radius: 0 0 12px 12px; } .short-card .short-title { font-size: 13px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .short-card .short-views { font-size: 12px; color: var(--text-secondary); margin-top: 4px; } /* ===== WATCH PAGE ===== */ .watch-container { margin-top: var(--header-height); display: flex; max-width: 1800px; margin-left: auto; margin-right: auto; padding: 24px; gap: 24px; } .watch-primary { flex: 1; min-width: 0; max-width: 1000px; } .video-player-wrapper { position: relative; width: 100%; padding-top: 56.25%; background: #000; border-radius: 12px; overflow: hidden; } .video-player-wrapper iframe, .video-player-wrapper video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; } .video-info-section { padding: 16px 0; } .video-title { font-size: 20px; font-weight: 600; line-height: 1.4; margin-bottom: 12px; } .video-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; } .video-views, .video-date { font-size: 14px; color: var(--text-secondary); } .video-actions { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; } .action-btn { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 20px; background: var(--bg-tertiary); border: none; color: var(--text-primary); cursor: pointer; font-size: 14px; transition: background 0.2s; font-family: 'Roboto', sans-serif; } .action-btn:hover { background: var(--bg-hover); } .action-btn.active { color: #3ea6ff; } .channel-info-box { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--border-color); } .channel-info-left { display: flex; align-items: center; gap: 12px; } .channel-avatar-large { width: 42px; height: 42px; border-radius: 50%; background: #7c4dff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 18px; color: white; } .channel-details .channel-name { font-size: 16px; font-weight: 500; } .channel-details .channel-subs { font-size: 13px; color: var(--text-secondary); } .subscribe-btn { padding: 10px 20px; border-radius: 20px; background: var(--subscribe-bg); color: white; border: none; font-weight: 500; font-size: 14px; cursor: pointer; transition: all 0.2s; font-family: 'Roboto', sans-serif; } .subscribe-btn:hover { background: #aa0000; } .subscribe-btn.subscribed { background: var(--bg-tertiary); color: var(--text-primary); } .description-box { background: var(--bg-tertiary); border-radius: 12px; padding: 16px; margin-top: 16px; font-size: 14px; line-height: 1.6; color: var(--text-secondary); cursor: pointer; transition: background 0.2s; } .description-box:hover { background: var(--bg-hover); } .show-more-btn { background: none; border: none; color: var(--text-primary); font-weight: 500; cursor: pointer; margin-top: 8px; font-size: 14px; font-family: 'Roboto', sans-serif; } /* ===== COMMENTS ===== */ .comments-section { margin-top: 24px; } .comments-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; } .comments-header h3 { font-size: 16px; font-weight: 500; } .sort-btn { background: none; border: none; color: var(--text-primary); cursor: pointer; font-size: 14px; display: flex; align-items: center; gap: 8px; font-family: 'Roboto', sans-serif; } .add-comment { display: flex; gap: 12px; margin-bottom: 24px; } .comment-input-wrapper { flex: 1; } .comment-input-wrapper input { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--border-color); color: var(--text-primary); padding: 8px 0; font-size: 14px; outline: none; font-family: 'Roboto', sans-serif; } .comment-input-wrapper input:focus { border-bottom-color: var(--text-primary); } .comment-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; } .cancel-btn { padding: 8px 16px; border-radius: 20px; background: transparent; border: none; color: var(--text-primary); cursor: pointer; font-size: 14px; font-family: 'Roboto', sans-serif; } .cancel-btn:hover { background: var(--bg-tertiary); } .submit-comment-btn { padding: 8px 16px; border-radius: 20px; background: #3ea6ff; border: none; color: #0f0f0f; font-weight: 500; cursor: pointer; font-size: 14px; font-family: 'Roboto', sans-serif; } .comment-item { display: flex; gap: 12px; margin-bottom: 16px; padding: 8px 0; } .comment-item .comment-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; color: white; flex-shrink: 0; font-weight: 500; } .comment-body { flex: 1; } .comment-author { font-size: 13px; font-weight: 500; margin-bottom: 2px; } .comment-author span { font-weight: 400; color: var(--text-secondary); margin-left: 8px; font-size: 12px; } .comment-text { font-size: 14px; line-height: 1.4; margin-bottom: 8px; } .comment-reactions { display: flex; align-items: center; gap: 16px; } .comment-reactions button { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 13px; display: flex; align-items: center; gap: 4px; transition: color 0.2s; font-family: 'Roboto', sans-serif; } .comment-reactions button:hover { color: var(--text-primary); } /* ===== RECOMMENDED SIDEBAR ===== */ .watch-secondary { width: 400px; flex-shrink: 0; } .recommended-header { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; } .recommended-header::-webkit-scrollbar { display: none; } .rec-chip { padding: 6px 12px; border-radius: 8px; background: var(--chip-bg); border: none; color: var(--text-primary); font-size: 13px; cursor: pointer; white-space: nowrap; transition: all 0.2s; font-family: 'Roboto', sans-serif; } .rec-chip.active { background: var(--chip-active-bg); color: var(--chip-active-text); } .recommended-list { display: flex; flex-direction: column; gap: 8px; } .rec-video-card { display: flex; gap: 8px; cursor: pointer; border-radius: 8px; padding: 4px; transition: background 0.2s; } .rec-video-card:hover { background: var(--bg-tertiary); } .rec-thumbnail { width: 168px; min-width: 168px; height: 94px; border-radius: 8px; overflow: hidden; position: relative; background: var(--bg-tertiary); } .rec-thumbnail img { width: 100%; height: 100%; object-fit: cover; } .rec-thumbnail .video-duration { position: absolute; bottom: 4px; right: 4px; background: rgba(0,0,0,0.8); padding: 1px 4px; border-radius: 3px; font-size: 11px; } .rec-video-info { flex: 1; min-width: 0; } .rec-video-info h4 { font-size: 13px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; } .rec-video-info .rec-channel { font-size: 12px; color: var(--text-secondary); } .rec-video-info .rec-meta { font-size: 12px; color: var(--text-secondary); } /* ===== LOADING ===== */ .loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; color: var(--text-secondary); } .spinner { width: 40px; height: 40px; border: 3px solid var(--bg-tertiary); border-top: 3px solid var(--accent-color); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 12px; } @keyframes spin { to { transform: rotate(360deg); } } /* ===== MOBILE BOTTOM NAV ===== */ .mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg-secondary); border-top: 1px solid var(--border-color); z-index: 1001; padding: 4px 0; } .mobile-bottom-nav { display: none; justify-content: space-around; align-items: center; } .mobile-nav-item { display: flex; flex-direction: column; align-items: center; padding: 6px 0; font-size: 10px; color: var(--text-secondary); gap: 2px; cursor: pointer; transition: color 0.2s; text-decoration: none; } .mobile-nav-item i { font-size: 20px; } .mobile-nav-item.active { color: var(--text-primary); } .mobile-nav-item.upload-nav i { font-size: 28px; color: var(--accent-color); } /* ===== RESPONSIVE ===== */ @media (max-width: 1200px) { .watch-secondary { width: 360px; } } @media (max-width: 1024px) { .watch-container { flex-direction: column; } .watch-secondary { width: 100%; } .rec-video-card { flex-direction: row; } } @media (max-width: 900px) { .sidebar { transform: translateX(-100%); z-index: 1001; background: var(--bg-secondary); } .sidebar.open { transform: translateX(0); } .main-content { margin-left: 0 !important; } .video-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } } @media (max-width: 768px) { .header-center { display: none; } .header-right .icon-btn:not(:last-child) { display: none; } .mobile-bottom-nav { display: flex !important; } .video-grid { grid-template-columns: 1fr; gap: 12px; padding: 0; } .main-content { padding: 12px; padding-bottom: 80px; } .watch-container { padding: 0; } .video-player-wrapper { border-radius: 0; } .video-info-section { padding: 12px; } .video-actions { margin-left: 0; margin-top: 8px; overflow-x: auto; } .watch-secondary { padding: 0 12px; } .comments-section { padding: 0 12px; } .short-card { min-width: 150px; max-width: 150px; } .short-card .short-thumbnail { height: 260px; } } @media (max-width: 480px) { .header-left { min-width: auto; } .logo-text { font-size: 18px; } .header { padding: 0 8px; } } /* ===== SECTION 3 ENHANCEMENTS ===== */ /* ===== ADD THESE TO YOUR EXISTING style.css FILE ===== */ /* ===== ENHANCED ANIMATIONS ===== */ @keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } @keyframes fadeInScale { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } } @keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } } @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } } @keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } } @keyframes bounceIn { 0% { transform: scale(0.3); opacity: 0; } 50% { transform: scale(1.05); } 70% { transform: scale(0.9); } 100% { transform: scale(1); opacity: 1; } } @keyframes ripple { 0% { transform: scale(0); opacity: 0.5; } 100% { transform: scale(4); opacity: 0; } } @keyframes heartBeat { 0% { transform: scale(1); } 14% { transform: scale(1.3); } 28% { transform: scale(1); } 42% { transform: scale(1.3); } 70% { transform: scale(1); } } /* ===== SKELETON LOADING ===== */ .skeleton { background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 50%, var(--bg-tertiary) 75% ); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; } .skeleton-card { border-radius: 12px; overflow: hidden; } .skeleton-thumbnail { width: 100%; padding-top: 56.25%; border-radius: 12px; } .skeleton-avatar { width: 36px; height: 36px; border-radius: 50%; } .skeleton-text { height: 14px; border-radius: 4px; margin-bottom: 8px; } .skeleton-text.short { width: 60%; } .skeleton-text.medium { width: 80%; } .skeleton-text.long { width: 95%; } .skeleton-row { display: flex; gap: 12px; padding: 12px 0; } /* ===== VIDEO CARD ANIMATIONS ===== */ .video-card { animation: fadeInUp 0.4s ease; animation-fill-mode: both; } .video-card:nth-child(1) { animation-delay: 0.05s; } .video-card:nth-child(2) { animation-delay: 0.1s; } .video-card:nth-child(3) { animation-delay: 0.15s; } .video-card:nth-child(4) { animation-delay: 0.2s; } .video-card:nth-child(5) { animation-delay: 0.25s; } .video-card:nth-child(6) { animation-delay: 0.3s; } .video-card:nth-child(7) { animation-delay: 0.35s; } .video-card:nth-child(8) { animation-delay: 0.4s; } /* ===== HOVER PREVIEW OVERLAY ===== */ .video-card .hover-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; border-radius: 12px; } .video-card:hover .hover-overlay { opacity: 1; } .hover-play-icon { width: 60px; height: 60px; border-radius: 50%; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; font-size: 24px; color: white; transform: scale(0.8); transition: transform 0.2s; } .video-card:hover .hover-play-icon { transform: scale(1); } /* ===== WATCH LATER TOOLTIP ===== */ .thumbnail-actions { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 4px; opacity: 0; transition: opacity 0.2s; z-index: 5; } .video-card:hover .thumbnail-actions { opacity: 1; } .thumb-action-btn { width: 32px; height: 32px; border-radius: 4px; background: rgba(0,0,0,0.7); border: none; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: background 0.2s; } .thumb-action-btn:hover { background: rgba(0,0,0,0.9); } /* ===== PROGRESS BAR ON THUMBNAIL ===== */ .watch-progress { position: absolute; bottom: 0; left: 0; height: 3px; background: #ff0000; border-radius: 0 0 0 12px; z-index: 3; } /* ===== TOOLTIP ===== */ .tooltip { position: relative; } .tooltip::after { content: attr(data-tooltip); position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%); padding: 6px 12px; background: #616161; color: white; font-size: 12px; border-radius: 4px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.2s; z-index: 100; } .tooltip:hover::after { opacity: 1; } /* ===== NOTIFICATION PANEL ===== */ .notification-panel { position: fixed; top: var(--header-height); right: 16px; width: 360px; max-height: 500px; background: var(--bg-secondary); border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.5); z-index: 1100; display: none; overflow: hidden; animation: fadeInScale 0.2s ease; border: 1px solid var(--border-color); } .notification-panel.open { display: block; } .notification-header { padding: 16px 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; } .notification-header h3 { font-size: 16px; } .notification-list { max-height: 400px; overflow-y: auto; padding: 8px 0; } .notification-item { display: flex; gap: 12px; padding: 12px 20px; cursor: pointer; transition: background 0.2s; } .notification-item:hover { background: var(--bg-tertiary); } .notification-item.unread { background: rgba(62, 166, 255, 0.05); } .notification-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 600; flex-shrink: 0; } .notification-content { flex: 1; min-width: 0; } .notification-content p { font-size: 13px; line-height: 1.4; margin-bottom: 4px; } .notification-content .notif-time { font-size: 11px; color: var(--text-secondary); } .notification-thumb { width: 80px; height: 45px; border-radius: 4px; overflow: hidden; flex-shrink: 0; } .notification-thumb img { width: 100%; height: 100%; object-fit: cover; } /* ===== MINI PLAYER ===== */ .mini-player { position: fixed; bottom: 80px; right: 20px; width: 320px; background: var(--bg-secondary); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.5); z-index: 900; display: none; animation: slideInRight 0.3s ease; border: 1px solid var(--border-color); } .mini-player.active { display: block; } .mini-player-video { width: 100%; aspect-ratio: 16/9; background: #000; } .mini-player-video iframe { width: 100%; height: 100%; border: none; } .mini-player-info { padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; } .mini-player-info .mini-title { font-size: 13px; font-weight: 500; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 8px; } .mini-player-controls { display: flex; gap: 4px; } .mini-player-controls button { width: 28px; height: 28px; border-radius: 50%; background: none; border: none; color: var(--text-primary); cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: background 0.2s; } .mini-player-controls button:hover { background: var(--bg-tertiary); } /* ===== SEARCH SUGGESTIONS ===== */ .search-suggestions { position: absolute; top: 100%; left: 0; right: 64px; background: var(--bg-secondary); border-radius: 0 0 12px 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.4); z-index: 1100; display: none; overflow: hidden; border: 1px solid var(--border-color); border-top: none; } .search-suggestions.open { display: block; } .suggestion-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer; transition: background 0.1s; font-size: 14px; } .suggestion-item:hover { background: var(--bg-tertiary); } .suggestion-item i { color: var(--text-secondary); font-size: 16px; width: 20px; text-align: center; } /* ===== SHARE MODAL ===== */ .share-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); } .share-modal-overlay.visible { display: flex; } .share-modal { background: var(--bg-secondary); border-radius: 16px; width: 100%; max-width: 500px; overflow: hidden; animation: fadeInScale 0.2s ease; } .share-modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; } .share-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 24px; } .share-option { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; padding: 12px; border-radius: 8px; transition: background 0.2s; border: none; background: none; color: var(--text-primary); font-family: 'Roboto', sans-serif; } .share-option:hover { background: var(--bg-tertiary); } .share-option .share-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; color: white; } .share-option span { font-size: 12px; color: var(--text-secondary); } .share-url-box { display: flex; margin: 0 24px 24px; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; } .share-url-box input { flex: 1; padding: 10px 14px; background: var(--bg-tertiary); border: none; color: var(--text-primary); font-size: 13px; outline: none; font-family: 'Roboto', sans-serif; } .share-url-box button { padding: 10px 20px; background: #3ea6ff; border: none; color: #0f0f0f; font-weight: 600; cursor: pointer; font-size: 13px; font-family: 'Roboto', sans-serif; transition: background 0.2s; } .share-url-box button:hover { background: #65b8ff; } /* ===== CONTEXT MENU ===== */ .context-menu { position: fixed; background: var(--bg-secondary); border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.5); z-index: 2000; min-width: 220px; padding: 8px 0; display: none; border: 1px solid var(--border-color); animation: fadeInScale 0.15s ease; } .context-menu.visible { display: block; } .context-menu-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer; font-size: 14px; color: var(--text-primary); transition: background 0.1s; } .context-menu-item:hover { background: var(--bg-tertiary); } .context-menu-item i { width: 20px; text-align: center; color: var(--text-secondary); font-size: 16px; } .context-menu-divider { height: 1px; background: var(--border-color); margin: 4px 0; } /* ===== BACK TO TOP ===== */ .back-to-top { position: fixed; bottom: 90px; right: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-tertiary); border: 1px solid var(--border-color); color: var(--text-primary); cursor: pointer; font-size: 18px; display: none; align-items: center; justify-content: center; z-index: 800; transition: all 0.2s; box-shadow: 0 4px 12px rgba(0,0,0,0.3); } .back-to-top.visible { display: flex; } .back-to-top:hover { background: var(--bg-hover); transform: translateY(-2px); } /* ===== RIPPLE EFFECT ===== */ .ripple-container { position: relative; overflow: hidden; } .ripple-effect { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.2); animation: ripple 0.6s linear; pointer-events: none; } /* ===== THEME COLORS FOR CHIPS ===== */ .chip[data-category="music"] { border-left: 3px solid #e91e63; } .chip[data-category="gaming"] { border-left: 3px solid #9c27b0; } .chip[data-category="education"] { border-left: 3px solid #2196f3; } .chip[data-category="comedy"] { border-left: 3px solid #ff9800; } .chip[data-category="tech"] { border-left: 3px solid #00bcd4; } .chip[data-category="news"] { border-left: 3px solid #f44336; } .chip[data-category="sports"] { border-left: 3px solid #4caf50; } .chip[data-category="cooking"] { border-left: 3px solid #ff5722; } .chip[data-category="travel"] { border-left: 3px solid #009688; } .chip[data-category="fitness"] { border-left: 3px solid #8bc34a; } .chip[data-category="movies"] { border-left: 3px solid #673ab7; } .chip[data-category="all"] { border-left: 3px solid #ffffff; } /* ===== LIVE BADGE ===== */ .live-badge { position: absolute; top: 8px; left: 8px; background: #ff0000; color: white; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; animation: pulse 2s infinite; } /* ===== NEW BADGE ===== */ .new-badge { position: absolute; top: 8px; left: 8px; background: #3ea6ff; color: #0f0f0f; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; } /* ===== VERIFIED BADGE ===== */ .verified-badge { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 50%; background: var(--text-secondary); color: var(--bg-primary); font-size: 8px; } /* ===== SCROLL INDICATOR ===== */ .scroll-indicator { position: fixed; top: var(--header-height); left: 0; height: 3px; background: linear-gradient(90deg, #ff0000, #ff4444, #ff0000); z-index: 999; transition: width 0.1s linear; } /* ===== FOCUS VISIBLE ===== */ *:focus-visible { outline: 2px solid #3ea6ff; outline-offset: 2px; } /* ===== PRINT STYLES ===== */ @media print { .header, .sidebar, .mobile-bottom-nav, .back-to-top { display: none !important; } .main-content { margin: 0 !important; } body { background: white; color: black; } } /* ===== REDUCED MOTION ===== */ @media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } } /* ===== HIGH CONTRAST ===== */ @media (prefers-contrast: high) { :root { --bg-primary: #000000; --bg-secondary: #111111; --bg-tertiary: #222222; --text-primary: #ffffff; --text-secondary: #cccccc; --border-color: #555555; } }