380 lines
9 KiB
CSS
380 lines
9 KiB
CSS
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
:root {
|
|
--bg: #0a0a0f;
|
|
--surface: rgba(255,255,255,0.04);
|
|
--surface-hover: rgba(255,255,255,0.07);
|
|
--border: rgba(255,255,255,0.08);
|
|
--border-focus: rgba(99,102,241,0.6);
|
|
--text: #f1f1f5;
|
|
--text-muted: #8b8b9e;
|
|
--primary: #6366f1;
|
|
--primary-hover: #4f52e0;
|
|
--success: #22c55e;
|
|
--error: #f87171;
|
|
--radius: 14px;
|
|
--radius-sm: 8px;
|
|
}
|
|
|
|
html { font-size: 16px; }
|
|
|
|
body {
|
|
font-family: 'Inter', system-ui, sans-serif;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
/* Ambient background orbs */
|
|
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
|
|
.orb {
|
|
position: absolute;
|
|
border-radius: 50%;
|
|
filter: blur(80px);
|
|
opacity: 0.18;
|
|
}
|
|
.orb-1 { width: 500px; height: 500px; background: #6366f1; top: -150px; left: -100px; }
|
|
.orb-2 { width: 400px; height: 400px; background: #8b5cf6; bottom: -100px; right: -80px; }
|
|
.orb-3 { width: 300px; height: 300px; background: #06b6d4; top: 40%; left: 50%; transform: translateX(-50%); }
|
|
|
|
.container {
|
|
position: relative;
|
|
z-index: 1;
|
|
width: 100%;
|
|
max-width: 640px;
|
|
padding: 24px 16px 48px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 32px;
|
|
}
|
|
|
|
/* Header */
|
|
header { display: flex; justify-content: center; }
|
|
.logo {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-weight: 700;
|
|
font-size: 1.1rem;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
/* Hero */
|
|
.hero { text-align: center; }
|
|
.hero h1 {
|
|
font-size: clamp(2rem, 6vw, 2.8rem);
|
|
font-weight: 700;
|
|
line-height: 1.15;
|
|
letter-spacing: -0.03em;
|
|
}
|
|
.gradient-text {
|
|
background: linear-gradient(135deg, #6366f1, #a78bfa, #38bdf8);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
.subtitle {
|
|
margin-top: 12px;
|
|
color: var(--text-muted);
|
|
font-size: 1rem;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* Card */
|
|
.card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 24px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
backdrop-filter: blur(12px);
|
|
-webkit-backdrop-filter: blur(12px);
|
|
}
|
|
|
|
/* Input row */
|
|
.input-row { display: flex; gap: 10px; }
|
|
.input-wrap {
|
|
flex: 1;
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.input-icon {
|
|
position: absolute;
|
|
left: 14px;
|
|
color: var(--text-muted);
|
|
pointer-events: none;
|
|
flex-shrink: 0;
|
|
}
|
|
#url-input {
|
|
width: 100%;
|
|
background: rgba(255,255,255,0.05);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
color: var(--text);
|
|
font-family: inherit;
|
|
font-size: 0.9rem;
|
|
padding: 12px 40px 12px 42px;
|
|
outline: none;
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
}
|
|
#url-input::placeholder { color: var(--text-muted); }
|
|
#url-input:focus {
|
|
border-color: var(--border-focus);
|
|
box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
|
|
}
|
|
.clear-btn {
|
|
position: absolute;
|
|
right: 10px;
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
padding: 4px;
|
|
border-radius: 4px;
|
|
display: none;
|
|
align-items: center;
|
|
transition: color 0.15s;
|
|
}
|
|
.clear-btn:hover { color: var(--text); }
|
|
|
|
/* Buttons */
|
|
.btn-primary {
|
|
background: var(--primary);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: var(--radius-sm);
|
|
font-family: inherit;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
padding: 12px 22px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
white-space: nowrap;
|
|
transition: background 0.2s, transform 0.1s;
|
|
flex-shrink: 0;
|
|
}
|
|
.btn-primary:hover { background: var(--primary-hover); }
|
|
.btn-primary:active { transform: scale(0.97); }
|
|
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
|
|
|
|
.btn-download {
|
|
background: linear-gradient(135deg, #6366f1, #8b5cf6);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: var(--radius-sm);
|
|
font-family: inherit;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
padding: 14px 24px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
|
|
box-shadow: 0 4px 20px rgba(99,102,241,0.3);
|
|
}
|
|
.btn-download:hover { opacity: 0.9; box-shadow: 0 6px 28px rgba(99,102,241,0.45); }
|
|
.btn-download:active { transform: scale(0.98); }
|
|
.btn-download:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
|
|
|
|
/* Spinner */
|
|
.btn-spinner {
|
|
width: 16px;
|
|
height: 16px;
|
|
border: 2px solid rgba(255,255,255,0.3);
|
|
border-top-color: #fff;
|
|
border-radius: 50%;
|
|
animation: spin 0.7s linear infinite;
|
|
display: inline-block;
|
|
}
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
|
|
/* Error */
|
|
.error-msg {
|
|
background: rgba(248,113,113,0.1);
|
|
border: 1px solid rgba(248,113,113,0.25);
|
|
color: var(--error);
|
|
border-radius: var(--radius-sm);
|
|
padding: 12px 14px;
|
|
font-size: 0.875rem;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* Preview */
|
|
.preview {
|
|
display: none;
|
|
gap: 16px;
|
|
align-items: flex-start;
|
|
animation: fadeIn 0.3s ease;
|
|
}
|
|
.preview.visible { display: flex; }.thumbnail {
|
|
width: 140px;
|
|
height: 80px;
|
|
object-fit: cover;
|
|
border-radius: var(--radius-sm);
|
|
flex-shrink: 0;
|
|
background: var(--surface-hover);
|
|
}
|
|
.meta { flex: 1; min-width: 0; }
|
|
.video-title {
|
|
font-size: 0.95rem;
|
|
font-weight: 600;
|
|
line-height: 1.4;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
.meta-row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
|
|
.tag {
|
|
background: rgba(255,255,255,0.07);
|
|
border: 1px solid var(--border);
|
|
border-radius: 20px;
|
|
padding: 3px 10px;
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Format selector */
|
|
.format-section { display: flex; flex-direction: column; gap: 10px; }
|
|
.format-label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
|
|
.select-wrap { position: relative; }
|
|
.select-wrap select {
|
|
width: 100%;
|
|
background: rgba(255,255,255,0.05);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
color: var(--text);
|
|
font-family: inherit;
|
|
font-size: 0.875rem;
|
|
padding: 11px 40px 11px 14px;
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
cursor: pointer;
|
|
outline: none;
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
}
|
|
.select-wrap select:focus {
|
|
border-color: var(--border-focus);
|
|
box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
|
|
}
|
|
.select-wrap select option { background: #1a1a2e; color: var(--text); }
|
|
.select-arrow {
|
|
position: absolute;
|
|
right: 12px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: var(--text-muted);
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Progress */
|
|
.progress-wrap {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
animation: fadeIn 0.3s ease;
|
|
background: rgba(99,102,241,0.06);
|
|
border: 1px solid rgba(99,102,241,0.15);
|
|
border-radius: var(--radius-sm);
|
|
padding: 14px 16px;
|
|
}
|
|
.progress-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
.progress-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
.progress-bar {
|
|
flex: 1;
|
|
height: 6px;
|
|
background: rgba(255,255,255,0.07);
|
|
border-radius: 99px;
|
|
overflow: hidden;
|
|
}
|
|
.progress-actions { display: flex; gap: 8px; flex-shrink: 0; }
|
|
.progress-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-family: inherit;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
padding: 5px 10px;
|
|
cursor: pointer;
|
|
transition: opacity 0.15s, transform 0.1s;
|
|
}
|
|
.progress-btn:hover { opacity: 0.8; }
|
|
.progress-btn:active { transform: scale(0.96); }
|
|
.progress-btn.cancel {
|
|
background: rgba(248,113,113,0.12);
|
|
border: 1px solid rgba(248,113,113,0.25);
|
|
color: var(--error);
|
|
}
|
|
.progress-bar {
|
|
height: 6px;
|
|
background: rgba(255,255,255,0.07);
|
|
border-radius: 99px;
|
|
overflow: hidden;
|
|
}
|
|
.progress-fill {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, #6366f1, #a78bfa, #38bdf8);
|
|
background-size: 200% 100%;
|
|
border-radius: 99px;
|
|
width: 0%;
|
|
transition: width 0.5s ease;
|
|
animation: shimmer 2s linear infinite;
|
|
}
|
|
@keyframes shimmer {
|
|
0% { background-position: 200% center; }
|
|
100% { background-position: -200% center; }
|
|
}
|
|
.progress-label {
|
|
font-size: 0.82rem;
|
|
font-weight: 500;
|
|
color: var(--text-muted);
|
|
letter-spacing: 0.01em;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.progress-label .pct {
|
|
font-size: 1rem;
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
letter-spacing: -0.02em;
|
|
}
|
|
.progress-label .meta {
|
|
color: var(--text-muted);
|
|
font-size: 0.78rem;
|
|
}
|
|
|
|
/* Footer */
|
|
footer { text-align: center; font-size: 0.8rem; color: var(--text-muted); }
|
|
footer a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
|
|
footer a:hover { color: var(--text); }
|
|
|
|
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
|
|
|
|
@media (max-width: 480px) {
|
|
.input-row { flex-direction: column; }
|
|
.btn-primary { width: 100%; justify-content: center; }
|
|
.preview { flex-direction: column; }
|
|
.thumbnail { width: 100%; height: 180px; }
|
|
}
|