/** * KV-Tube Download Styles * Styling for download modal, progress, and library */ /* Download Modal */ .download-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.8); display: flex; align-items: center; justify-content: center; z-index: 10000; opacity: 0; visibility: hidden; transition: all 0.3s ease; } .download-modal.visible { opacity: 1; visibility: visible; } .download-modal-content { background: var(--yt-bg-primary, #0f0f0f); border: 1px solid var(--yt-border, #272727); border-radius: 16px; width: 90%; max-width: 450px; max-height: 80vh; overflow-y: auto; padding: 20px; transform: scale(0.9); transition: transform 0.3s ease; } .download-modal.visible .download-modal-content { transform: scale(1); } /* Header */ .download-header { display: flex; gap: 16px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--yt-border, #272727); } .download-thumb { width: 120px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; } .download-info h4 { font-size: 14px; font-weight: 500; margin: 0 0 8px 0; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .download-info span { color: var(--yt-text-secondary, #aaa); font-size: 12px; } /* Options */ .download-options h5 { font-size: 13px; color: var(--yt-text-secondary, #aaa); margin: 16px 0 12px 0; display: flex; align-items: center; gap: 8px; } .format-list { display: flex; flex-wrap: wrap; gap: 8px; } .format-btn { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--yt-bg-secondary, #272727); border: 1px solid transparent; border-radius: 8px; color: var(--yt-text-primary, #fff); cursor: pointer; transition: all 0.2s; flex: 1; min-width: 120px; } .format-btn:hover { background: var(--yt-bg-hover, #3a3a3a); border-color: var(--yt-accent-blue, #3ea6ff); } .format-btn.audio { background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2)); } .format-btn.audio:hover { background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3)); } .format-quality { font-weight: 600; font-size: 14px; } .format-size { color: var(--yt-text-secondary, #aaa); font-size: 12px; flex: 1; } .format-btn i { color: var(--yt-accent-blue, #3ea6ff); } /* Recommended format styling */ .format-btn.recommended { position: relative; background: linear-gradient(135deg, rgba(255, 0, 0, 0.15), rgba(255, 68, 68, 0.1)); border: 2px solid #ff4444; flex-direction: column; align-items: flex-start; padding: 16px; min-width: 160px; } .format-btn.recommended:hover { background: linear-gradient(135deg, rgba(255, 0, 0, 0.25), rgba(255, 68, 68, 0.15)); border-color: #ff6666; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2); } .format-btn.recommended .format-quality { font-size: 18px; } .format-btn.recommended .fa-download { position: absolute; right: 12px; bottom: 12px; } .format-badge { background: linear-gradient(135deg, #ff0000, #cc0000); color: #fff; font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 10px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; } /* Toggle button for advanced options */ .format-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; margin-top: 16px; background: transparent; border: 1px dashed var(--yt-border, #3a3a3a); border-radius: 8px; color: var(--yt-text-secondary, #aaa); cursor: pointer; font-size: 13px; transition: all 0.2s; } .format-toggle:hover { border-color: var(--yt-accent-blue, #3ea6ff); color: var(--yt-accent-blue, #3ea6ff); background: rgba(62, 166, 255, 0.05); } .format-advanced { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--yt-border, #272727); } /* Recommended dot indicator in full list */ .format-btn.is-recommended { border-color: rgba(255, 0, 0, 0.3); } .rec-dot { width: 6px; height: 6px; background: #ff4444; border-radius: 50%; flex-shrink: 0; } /* Loading & Error */ .download-loading, .download-error { text-align: center; padding: 40px; color: var(--yt-text-secondary, #aaa); } .download-loading i, .download-error i { font-size: 24px; margin-bottom: 12px; display: block; } .download-error { color: #ff4444; } /* Close button */ .download-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--yt-text-secondary, #aaa); cursor: pointer; padding: 8px; font-size: 18px; transition: color 0.2s; } .download-close:hover { color: #fff; } /* Progress indicator inline */ .download-progress-inline { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--yt-bg-secondary, #272727); border-radius: 8px; margin-top: 12px; } .download-progress-bar { flex: 1; height: 4px; background: var(--yt-border, #3a3a3a); border-radius: 2px; overflow: hidden; } .download-progress-fill { height: 100%; background: linear-gradient(90deg, #3ea6ff, #667eea); border-radius: 2px; transition: width 0.3s; } .download-progress-text { font-size: 12px; color: var(--yt-text-secondary, #aaa); min-width: 40px; text-align: right; } /* Downloads Library Page */ .downloads-page { padding: 24px; max-width: 1200px; margin: 0 auto; } .downloads-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; } .downloads-header h1 { font-size: 24px; font-weight: 600; } .downloads-clear-btn { padding: 10px 20px; background: rgba(255, 68, 68, 0.1); border: 1px solid #ff4444; border-radius: 20px; color: #ff4444; cursor: pointer; transition: all 0.2s; } .downloads-clear-btn:hover { background: rgba(255, 68, 68, 0.2); } .downloads-list { display: flex; flex-direction: column; gap: 12px; } .download-item { display: flex; gap: 16px; padding: 16px; background: var(--yt-bg-secondary, #181818); border-radius: 12px; transition: background 0.2s; } .download-item:hover { background: var(--yt-bg-hover, #272727); } .download-item-thumb { width: 160px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; } /* Thumbnail wrapper with play overlay */ .download-item-thumb-wrapper { position: relative; width: 160px; flex-shrink: 0; } .download-item-thumb-wrapper .download-item-thumb { width: 100%; } .download-thumb-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s ease; border-radius: 8px; } .download-thumb-overlay i { font-size: 32px; color: #fff; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); } .download-item.playable { cursor: pointer; } .download-item.playable:hover .download-thumb-overlay { opacity: 1; } /* Play button in actions */ .download-item-play { padding: 10px 16px; background: linear-gradient(135deg, #ff0000, #cc0000); border: none; border-radius: 20px; color: #fff; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 6px; } .download-item-play:hover { background: linear-gradient(135deg, #ff3333, #ff0000); transform: scale(1.05); } /* Re-download button in actions */ .download-item-redownload { padding: 8px 12px; background: linear-gradient(135deg, #3ea6ff, #2196f3); border: none; border-radius: 16px; color: #fff; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; } .download-item-redownload:hover { background: linear-gradient(135deg, #5bb5ff, #3ea6ff); transform: scale(1.05); } .download-item-info { flex: 1; } .download-item-title { font-size: 15px; font-weight: 500; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .download-item-meta { font-size: 12px; color: var(--yt-text-secondary, #aaa); } .download-item-actions { display: flex; gap: 8px; align-items: center; } .download-item-remove { padding: 8px; background: none; border: none; color: var(--yt-text-secondary, #aaa); cursor: pointer; border-radius: 50%; transition: all 0.2s; } .download-item-remove:hover { background: rgba(255, 68, 68, 0.1); color: #ff4444; } /* Active download progress bar container */ .download-progress-container { width: 100%; height: 6px; background: var(--yt-border, #3a3a3a); border-radius: 3px; overflow: hidden; margin-top: 10px; } .download-progress-bar { height: 100%; background: linear-gradient(90deg, #ff0000, #ff4444); border-radius: 3px; transition: width 0.3s ease; box-shadow: 0 0 8px rgba(255, 68, 68, 0.5); } /* Active download item styling */ .download-item.active { background: linear-gradient(135deg, rgba(255, 0, 0, 0.12), rgba(255, 68, 68, 0.08)); border: 1px solid rgba(255, 0, 0, 0.3); animation: pulse-active 2s infinite; } @keyframes pulse-active { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0); } 50% { box-shadow: 0 0 12px 2px rgba(255, 68, 68, 0.15); } } .download-item.active .status-text { color: #ff4444; font-weight: 600; font-size: 13px; } .downloads-empty { text-align: center; padding: 60px 20px; color: var(--yt-text-secondary, #aaa); } .downloads-empty i { font-size: 48px; margin-bottom: 16px; opacity: 0.5; } /* Mobile */ @media (max-width: 768px) { .download-modal-content { width: 95%; padding: 16px; } .download-header { flex-direction: column; } .download-thumb { width: 100%; } .format-btn { min-width: 100%; } .download-item { flex-direction: column; } .download-item-thumb, .download-item-thumb-wrapper { width: 100%; } } /* ===== Floating Download Progress Widget ===== */ .download-widget { position: fixed; bottom: 24px; right: 24px; width: 300px; background: var(--yt-bg-primary, #0f0f0f); border: 1px solid var(--yt-border, #272727); border-radius: 12px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); z-index: 9999; overflow: hidden; } .download-widget-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: var(--yt-bg-secondary, #181818); border-bottom: 1px solid var(--yt-border, #272727); } .download-widget-left { display: flex; align-items: center; gap: 10px; } .download-widget-left i { color: #ff4444; font-size: 16px; } .download-widget-title { font-size: 13px; font-weight: 500; color: var(--yt-text-primary, #fff); } .download-widget-actions { display: flex; align-items: center; gap: 12px; } .download-widget-btn { background: none; border: none; color: var(--yt-text-secondary, #aaa); cursor: pointer; padding: 8px; border-radius: 4px; transition: all 0.2s; font-size: 14px; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; } .download-widget-btn:hover { background: var(--yt-bg-hover, #272727); color: var(--yt-text-primary, #fff); } .download-widget-btn.close:hover { background: rgba(255, 68, 68, 0.2); color: #ff4444; } .download-widget-content { padding: 12px 16px; } .download-widget-item { /* Container for single download item - no additional styles needed */ display: block; } .download-widget-info { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; font-size: 12px; } .download-widget-info #downloadWidgetName { color: var(--yt-text-primary, #fff); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; font-weight: 500; } .download-widget-meta { display: flex; justify-content: space-between; width: 100%; align-items: center; } .download-widget-meta #downloadWidgetPercent { color: #ff4444; font-weight: 600; } .download-speed { color: #4caf50; font-weight: 500; } /* Specs Styling */ .download-item-specs { margin-top: 4px; color: var(--yt-text-secondary); font-size: 12px; font-family: monospace; opacity: 0.8; } .meta-specs { color: var(--yt-text-secondary); opacity: 0.7; margin-left: 4px; } .download-widget-bar { height: 4px; background: var(--yt-border, #3a3a3a); border-radius: 2px; overflow: hidden; } .download-widget-fill { height: 100%; background: linear-gradient(90deg, #ff0000, #ff4444); border-radius: 2px; transition: width 0.3s ease; } /* Mobile responsiveness for widget */ @media (max-width: 480px) { .download-widget { display: none !important; } }