/* Video List */ .video-list { max-width: 1200px; margin: 0 auto; padding: 2rem; } .video-list h1 { margin-bottom: 2rem; font-size: 2rem; font-weight: 600; } .video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; } .video-card { background: var(--card-bg, #1a1a1a); border-radius: 12px; overflow: hidden; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; } .video-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); } .video-thumbnail { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%); display: flex; align-items: flex-end; justify-content: flex-end; padding: 0.5rem; } .video-thumbnail .duration { background: rgba(0, 0, 0, 0.8); padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.875rem; font-weight: 500; } .video-info { padding: 1rem; } .video-info h3 { font-size: 1rem; font-weight: 500; margin: 0 0 0.5rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .video-info .video-date { font-size: 0.875rem; color: var(--text-muted, #888); margin: 0; } .loading { text-align: center; padding: 2rem; color: var(--text-muted, #888); } .load-more { display: block; width: 100%; max-width: 300px; margin: 2rem auto 0; padding: 0.75rem 1.5rem; background: var(--accent, #646cff); color: white; border: none; border-radius: 8px; font-size: 1rem; cursor: pointer; transition: background 0.2s; } .load-more:hover { background: var(--accent-hover, #535bf2); } /* Watch Page - YouTube Style Layout */ .watch-page { display: grid; grid-template-columns: 1fr 380px; gap: 1.5rem; max-width: 1800px; margin: 0 auto; padding: 1rem 2rem; } .watch-main { min-width: 0; } .back-button { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; margin-bottom: 1rem; background: transparent; border: 1px solid var(--border, #333); border-radius: 6px; color: inherit; cursor: pointer; transition: background 0.2s; } .back-button:hover { background: var(--card-bg, #1a1a1a); } .video-container { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; } .video-element { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; } .error-overlay { position: absolute; top: 1rem; left: 1rem; right: 1rem; background: rgba(255, 68, 68, 0.9); color: white; padding: 0.75rem 1rem; border-radius: 8px; z-index: 10; } .video-details { padding: 1rem 0; } .video-title { font-size: 1.25rem; font-weight: 600; margin: 0 0 0.75rem; line-height: 1.4; } .video-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; color: var(--text-muted, #888); font-size: 0.875rem; } .quality-select { padding: 0.375rem 0.75rem; background: var(--card-bg, #1a1a1a); border: 1px solid var(--border, #333); border-radius: 6px; color: inherit; font-size: 0.875rem; cursor: pointer; } .creator-info { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--card-bg, #1a1a1a); border-radius: 12px; } .creator-avatar, .creator-avatar-img { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; } .creator-avatar { background: linear-gradient(135deg, #646cff, #535bf2); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 600; color: white; } .creator-avatar-img { object-fit: cover; } .creator-details { display: flex; flex-direction: column; gap: 0.25rem; } .creator-link { color: inherit; text-decoration: none; font-weight: 500; } .creator-link:hover { color: var(--accent, #646cff); } .creator-handle { font-size: 0.875rem; color: var(--text-muted, #888); } /* Sidebar */ .watch-sidebar { min-width: 0; } .sidebar-title { font-size: 1rem; font-weight: 600; margin: 0 0 1rem; } .related-videos { display: flex; flex-direction: column; gap: 0.75rem; } .related-video-card { display: grid; grid-template-columns: 168px 1fr; gap: 0.75rem; cursor: pointer; border-radius: 8px; transition: background 0.2s; } .related-video-card:hover { background: var(--card-bg, #1a1a1a); } .related-thumbnail { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%); border-radius: 8px; display: flex; align-items: flex-end; justify-content: flex-end; padding: 0.25rem; } .related-thumbnail .duration { background: rgba(0, 0, 0, 0.8); padding: 0.125rem 0.375rem; border-radius: 4px; font-size: 0.75rem; font-weight: 500; } .related-info { padding: 0.25rem 0; min-width: 0; } .related-info h4 { font-size: 0.875rem; font-weight: 500; margin: 0 0 0.25rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .related-info p { font-size: 0.75rem; color: var(--text-muted, #888); margin: 0; } /* Responsive */ @media (max-width: 1100px) { .watch-page { grid-template-columns: 1fr; padding: 1rem; } .watch-sidebar { border-top: 1px solid var(--border, #333); padding-top: 1.5rem; } .related-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; } .related-video-card { grid-template-columns: 1fr; } .related-thumbnail { width: 100%; } } /* Error state for video list */ .video-list.error { text-align: center; padding: 4rem 2rem; } .video-list.error button { margin-top: 1rem; padding: 0.75rem 2rem; background: var(--accent, #646cff); color: white; border: none; border-radius: 8px; cursor: pointer; } /* Responsive */ @media (max-width: 640px) { .video-list { padding: 1rem; } .video-list h1 { font-size: 1.5rem; } .video-grid { grid-template-columns: 1fr; } .video-header { flex-direction: column; align-items: stretch; } .video-header h2 { order: -1; } }