*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } :root { --bg: #0a0a0a; --surface: #141414; --border: #2a2a2a; --text: #e0e0e0; --text-dim: #888; --accent: #3b82f6; --accent-hover: #2563eb; --success: #22c55e; --error: #ef4444; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; display: flex; align-items: center; justify-content: center; } .container { width: 100%; max-width: 480px; padding: 2rem; } h1 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.25rem; } .subtitle { color: var(--text-dim); font-size: 0.875rem; margin-bottom: 1.5rem; } .dropzone { border: 2px dashed var(--border); border-radius: 12px; padding: 3rem 1.5rem; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; } .dropzone:hover, .dropzone.drag-over { border-color: var(--accent); background: rgba(59, 130, 246, 0.05); } .dropzone-content svg { color: var(--text-dim); margin-bottom: 1rem; } .dropzone-content p { color: var(--text-dim); font-size: 0.875rem; } .link { color: var(--accent); cursor: pointer; text-decoration: underline; } .options { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; } .option-group { display: flex; align-items: center; gap: 0.75rem; } .option-group label { font-size: 0.8125rem; color: var(--text-dim); width: 80px; flex-shrink: 0; } .option-group select, .option-group input { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 0.5rem 0.75rem; color: var(--text); font-size: 0.875rem; } .slug-input { flex: 1; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; } .slug-prefix { padding: 0.5rem 0 0.5rem 0.75rem; color: var(--text-dim); font-size: 0.875rem; font-family: monospace; flex-shrink: 0; } .slug-input input { flex: 1; background: transparent; border: none; padding: 0.5rem 0.75rem 0.5rem 0; color: var(--text); font-size: 0.875rem; font-family: monospace; outline: none; } .slug-hint { font-size: 0.75rem; color: var(--error); margin-top: -0.25rem; padding-left: calc(80px + 0.75rem); } .btn { background: var(--accent); color: #fff; border: none; border-radius: 6px; padding: 0.625rem 1.25rem; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: background 0.2s; margin-top: 0.25rem; } .btn:hover { background: var(--accent-hover); } .btn:disabled { opacity: 0.5; cursor: not-allowed; } .btn-small { padding: 0.375rem 0.75rem; font-size: 0.8125rem; margin-top: 0; } .progress-bar { background: var(--surface); border-radius: 4px; height: 6px; overflow: hidden; margin: 0.5rem 0; } .progress-fill { background: var(--accent); height: 100%; width: 0%; border-radius: 4px; transition: width 0.15s; } .progress-text { font-size: 0.8125rem; color: var(--text-dim); text-align: right; } .file-name { font-size: 0.875rem; color: var(--text); word-break: break-all; } .result { margin-top: 1.5rem; padding: 1rem; background: var(--surface); border-radius: 8px; border: 1px solid var(--border); } .result-success p { color: var(--success); font-weight: 500; margin-bottom: 0.75rem; } .result-url { display: flex; gap: 0.5rem; } .result-url input { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 0.5rem 0.75rem; color: var(--text); font-size: 0.8125rem; font-family: monospace; } .result-meta { margin-top: 0.5rem; font-size: 0.75rem; color: var(--text-dim); word-break: break-all; } .error { margin-top: 1rem; padding: 0.75rem 1rem; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); border-radius: 8px; color: var(--error); font-size: 0.875rem; } .auth-form { display: flex; flex-direction: column; gap: 0.75rem; } .auth-form input { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 0.625rem 0.75rem; color: var(--text); font-size: 0.875rem; } footer { margin-top: 2rem; text-align: center; } footer a { color: var(--text-dim); font-size: 0.75rem; text-decoration: none; } footer a:hover { color: var(--accent); } .hidden { display: none !important; } /* File list */ .file-list { margin-top: 1rem; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; } .file-list-header { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0.75rem; background: var(--surface); font-size: 0.8125rem; color: var(--text-dim); border-bottom: 1px solid var(--border); } .file-list-clear { background: none; border: none; font-size: 0.75rem; cursor: pointer; } .file-list-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.75rem; font-size: 0.8125rem; border-bottom: 1px solid var(--border); } .file-list-item:last-child { border-bottom: none; } .file-list-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .file-list-size { color: var(--text-dim); flex-shrink: 0; font-size: 0.75rem; } .file-list-remove { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 0.25rem; flex-shrink: 0; } .file-list-remove:hover { color: var(--error); } .progress-overall { font-size: 0.8125rem; color: var(--text-dim); margin-bottom: 0.25rem; } /* Multi-file results */ .result-list { display: flex; flex-direction: column; gap: 0.5rem; } .result-item { display: flex; flex-direction: column; gap: 0.125rem; padding: 0.375rem 0; border-bottom: 1px solid var(--border); } .result-item:last-child { border-bottom: none; } .result-item-name { font-size: 0.8125rem; color: var(--accent); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .result-item-name:hover { text-decoration: underline; } .result-item-url { font-size: 0.75rem; color: var(--text-dim); font-family: monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* Batch page */ .batch-container { max-width: 720px; } .batch-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.25rem; } .batch-header h1 { margin-bottom: 0.125rem; } .batch-header .btn { margin-top: 0; flex-shrink: 0; } .batch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; } .batch-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: border-color 0.2s; } .batch-card:hover { border-color: var(--accent); } .batch-card-preview { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; background: var(--bg); overflow: hidden; text-decoration: none; } .batch-card-preview img, .batch-card-preview video { width: 100%; height: 100%; object-fit: cover; } .batch-card-icon { color: var(--text-dim); } .batch-card-footer { padding: 0.5rem 0.625rem; display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; } .batch-card-name { font-size: 0.75rem; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .batch-card-name:hover { color: var(--accent); } .batch-card-size { font-size: 0.6875rem; color: var(--text-dim); } /* Lightbox */ .lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; } .lightbox-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.9); } .lightbox-content { position: relative; max-width: 90vw; max-height: 80vh; display: flex; align-items: center; justify-content: center; } .lightbox-content img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 4px; user-select: none; } .lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; z-index: 1001; background: none; border: none; color: #fff; cursor: pointer; opacity: 0.7; transition: opacity 0.2s; padding: 0; } .lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { opacity: 1; } .lightbox-close { top: 1rem; right: 1.25rem; font-size: 2.5rem; line-height: 1; } .lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); font-size: 3rem; line-height: 1; } .lightbox-prev { left: 1rem; } .lightbox-next { right: 1rem; } .lightbox-footer { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 1001; display: flex; align-items: center; gap: 1rem; background: rgba(0, 0, 0, 0.6); padding: 0.5rem 1rem; border-radius: 6px; font-size: 0.8125rem; color: #fff; white-space: nowrap; } .lightbox-dl-btn { color: var(--accent); text-decoration: none; font-size: 0.8125rem; } .lightbox-dl-btn:hover { text-decoration: underline; } /* Download page */ .file-card { margin-top: 0; padding: 1.5rem; background: var(--surface); border-radius: 12px; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 1.25rem; } .file-preview { text-align: center; } .thumbnail { max-width: 160px; max-height: 160px; border-radius: 8px; object-fit: cover; background: var(--bg); display: block; margin: 0 auto; } .audio-preview { width: 100%; border-radius: 8px; background: var(--bg); padding: 1rem; } .pdf-preview { width: 100%; height: 200px; border: none; border-radius: 8px; background: var(--bg); } .thumb-icon { display: flex; align-items: center; justify-content: center; height: 120px; color: var(--text-dim); background: var(--bg); border-radius: 8px; } .file-title { font-size: 1rem; font-weight: 600; word-break: break-all; line-height: 1.4; } .file-meta { display: flex; flex-direction: column; gap: 0.5rem; } .meta-row { display: flex; justify-content: space-between; font-size: 0.8125rem; } .meta-label { color: var(--text-dim); } .file-actions { display: flex; gap: 0.75rem; } .file-actions .btn { flex: 1; text-align: center; text-decoration: none; margin-top: 0; } .btn-secondary { background: var(--border); color: var(--text); } .btn-secondary:hover { background: #3a3a3a; }