/* EasyStream Video Player Styles */ /* Player Container */ .video-player { background: #000; border-radius: 8px; overflow: hidden; margin-bottom: 1rem; position: relative; aspect-ratio: 16/9; } .video-player video, .video-player iframe { width: 100%; height: 100%; border: none; display: block; } /* Video Information */ .video-info { background: #212121; padding: 1.5rem; border-radius: 8px; margin-bottom: 1rem; } .video-title { font-size: 1.5rem; font-weight: 600; margin: 0 0 1rem 0; line-height: 1.3; color: #fff; } .video-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; } .video-stats { display: flex; align-items: center; gap: 1rem; color: #aaa; font-size: 0.875rem; } /* Action Buttons */ .video-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; } .action-btn { background: #333; color: #fff; border: none; padding: 0.5rem 1rem; border-radius: 20px; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; transition: all 0.2s ease; font-size: 0.875rem; font-weight: 500; } .action-btn:hover { background: #555; transform: translateY(-1px); } .action-btn:active { transform: translateY(0); } .action-btn.liked { background: #065fd4; } .action-btn.saved { background: #0f9d58; } .action-btn.in-watchlist { background: #f57c00; } /* Channel Information */ .channel-info { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; padding: 1rem 0; border-top: 1px solid #333; border-bottom: 1px solid #333; } .channel-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; } .channel-details { flex: 1; } .channel-details h3 { margin: 0; font-size: 1rem; color: #fff; } .channel-details p { margin: 0; color: #aaa; font-size: 0.875rem; } .subscribe-btn { background: #cc0000; color: white; border: none; padding: 0.5rem 1rem; border-radius: 20px; cursor: pointer; font-weight: 500; transition: all 0.2s ease; } .subscribe-btn:hover { background: #aa0000; transform: translateY(-1px); } .subscribe-btn.subscribed { background: #333; color: #aaa; } .subscribe-btn.subscribed:hover { background: #555; } /* Video Description */ .video-description { color: #ccc; line-height: 1.5; margin-top: 1rem; } .video-description p { margin: 0 0 1rem 0; } /* Sidebar */ .sidebar { background: #212121; border-radius: 8px; padding: 1rem; height: fit-content; } .sidebar h3 { margin: 0 0 1rem 0; color: #fff; font-size: 1.1rem; } /* Related Videos */ .related-videos { display: grid; gap: 1rem; } .related-video { display: flex; gap: 1rem; padding: 0.5rem; border-radius: 4px; transition: background 0.2s ease; cursor: pointer; } .related-video:hover { background: #333; } .related-thumbnail { width: 120px; height: 68px; border-radius: 4px; object-fit: cover; flex-shrink: 0; } .related-info { flex: 1; min-width: 0; } .related-info h4 { margin: 0 0 0.25rem 0; font-size: 0.875rem; line-height: 1.2; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .related-info p { margin: 0; color: #aaa; font-size: 0.75rem; line-height: 1.2; } /* Comments Section */ .comments-section { background: #212121; border-radius: 8px; padding: 1.5rem; margin-top: 1rem; } .comments-header { margin-bottom: 1.5rem; } .comments-header h3 { margin: 0; color: #fff; font-size: 1.2rem; } /* Comment Form */ .comment-form { margin-bottom: 2rem; } .comment-input { width: 100%; background: #333; border: 1px solid #555; color: #fff; padding: 0.75rem; border-radius: 4px; resize: vertical; min-height: 80px; font-family: inherit; font-size: 0.875rem; transition: border-color 0.2s ease; } .comment-input:focus { outline: none; border-color: #065fd4; } .comment-input::placeholder { color: #aaa; } .comment-actions { display: none; gap: 0.5rem; margin-top: 0.5rem; justify-content: flex-end; } .comment-btn { background: #065fd4; color: white; border: none; padding: 0.5rem 1rem; border-radius: 4px; cursor: pointer; font-size: 0.875rem; font-weight: 500; transition: all 0.2s ease; } .comment-btn:hover { background: #0a5bc4; } .comment-btn.cancel { background: #333; color: #aaa; } .comment-btn.cancel:hover { background: #555; } /* Comments List */ .comment { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #333; } .comment:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; } .comment-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; } .comment-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; } .comment-author { font-weight: 500; font-size: 0.875rem; color: #fff; } .comment-time { color: #aaa; font-size: 0.75rem; } .comment-text { color: #ccc; line-height: 1.4; font-size: 0.875rem; } /* Loading States */ .loading { display: flex; align-items: center; justify-content: center; padding: 2rem; color: #aaa; } .loading::before { content: ''; width: 20px; height: 20px; border: 2px solid #333; border-top: 2px solid #fff; border-radius: 50%; animation: spin 1s linear infinite; margin-right: 0.5rem; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Responsive Design */ @media (max-width: 1024px) { .player-container > div { grid-template-columns: 1fr !important; } .sidebar { order: -1; } .related-videos { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } .related-video { flex-direction: column; } .related-thumbnail { width: 100%; height: 160px; } } @media (max-width: 768px) { .player-container { padding: 10px; } .video-info { padding: 1rem; } .video-title { font-size: 1.25rem; } .video-meta { flex-direction: column; align-items: flex-start; gap: 1rem; } .video-actions { width: 100%; justify-content: space-between; } .action-btn { flex: 1; justify-content: center; min-width: 0; padding: 0.5rem 0.25rem; font-size: 0.75rem; } .channel-info { flex-wrap: wrap; } .subscribe-btn { width: 100%; margin-top: 0.5rem; } .comments-section { padding: 1rem; } } @media (max-width: 480px) { .video-actions { flex-direction: column; } .action-btn { width: 100%; } .related-videos { grid-template-columns: 1fr; } } /* Player Controls Enhancement */ .video-player:hover .player-controls { opacity: 1; } .player-controls { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.8)); padding: 1rem; opacity: 0; transition: opacity 0.3s ease; } .progress-bar { width: 100%; height: 4px; background: rgba(255,255,255,0.3); border-radius: 2px; margin-bottom: 0.5rem; cursor: pointer; } .progress-fill { height: 100%; background: #ff0000; border-radius: 2px; transition: width 0.1s ease; } .control-buttons { display: flex; align-items: center; justify-content: space-between; } .control-btn { background: none; border: none; color: white; cursor: pointer; padding: 0.25rem; border-radius: 4px; transition: background 0.2s ease; } .control-btn:hover { background: rgba(255,255,255,0.2); } /* Live Stream Indicators */ .live-indicator { position: absolute; top: 1rem; left: 1rem; background: #ff0000; color: white; padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; } .live-indicator::before { content: '●'; margin-right: 0.25rem; animation: pulse 1.5s infinite; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } /* Theater Mode */ .theater-mode .video-player { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 9999; border-radius: 0; } /* Fullscreen Enhancements */ .video-player:-webkit-full-screen { width: 100%; height: 100%; } .video-player:-moz-full-screen { width: 100%; height: 100%; } .video-player:fullscreen { width: 100%; height: 100%; }