:root {
--anim-size: 380px;
--bg: #0b0c10;
--fg: #e5e7eb;
--muted: #9aa0a6;
--primary: #6d28d9;
--accent: #06b6d4;
--danger: #ef4444;
--card: rgba(255, 255, 255, 0.06);
--glass: rgba(255, 255, 255, 0.12);
--border: rgba(255, 255, 255, 0.18);
}
* {
box-sizing: border-box;
}
html, body {
height: 100%;
}
body {
margin: 0;
font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, sans-serif;
background: var(--bg);
color: var(--fg);
transition: background-color 0.24s ease, color 0.24s ease;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 24px 32px;
border-bottom: 1px solid var(--border);
backdrop-filter: blur(8px);
background: linear-gradient(180deg, var(--glass), transparent);
transition: background-color 0.24s ease, border-color 0.24s ease, color 0.24s ease;
}
.theme-btn {
appearance: none;
border: 1px solid var(--border);
background: var(--card);
color: var(--fg);
padding: 10px 12px;
border-radius: 10px;
font-weight: 600;
cursor: pointer;
transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.theme-btn {
transition: background-color 0.24s ease, color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}
.theme-btn:hover {
transform: translateY(-1px);
box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}
.brand {
font-weight: 800;
font-size: 24px;
letter-spacing: 0.5px;
background: linear-gradient(90deg, var(--primary), var(--accent));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.tagline {
font-weight: 600;
font-size: 14px;
color: var(--muted);
}
.main {
max-width: 1100px;
margin: 40px auto;
padding: 0 24px;
display: grid;
grid-template-columns: 1fr;
gap: 24px;
}
.uploader {
display: flex;
align-items: center;
justify-content: center;
}
.dropzone {
width: 100%;
max-width: 860px;
min-height: 220px;
border: 2px dashed var(--border);
border-radius: 18px;
padding: 28px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 16px;
background: var(--card);
box-shadow: 0 20px 50px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
transition: background-color 0.24s ease, color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}
.dropzone.active {
border-color: var(--accent);
transform: scale(1.01);
box-shadow: 0 30px 70px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
}
.dropzone.valid {
border-color: var(--accent);
}
.dropzone.invalid {
border-color: var(--danger);
}
.drop-instructions {
font-size: 18px;
font-weight: 600;
color: var(--fg);
}
.choose-btn {
appearance: none;
border: none;
outline: none;
cursor: pointer;
padding: 12px 18px;
border-radius: 12px;
font-weight: 700;
letter-spacing: 0.3px;
color: #0b0c10;
background: var(--accent);
box-shadow: 0 8px 20px rgba(0,0,0,0.25);
transition: transform 0.15s ease, box-shadow 0.15s ease;
transition: background-color 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}
.choose-btn:hover {
transform: translateY(-1px);
box-shadow: 0 12px 28px rgba(0,0,0,0.3);
}
.choose-btn:active {
transform: translateY(0);
}
.file-input {
display: none;
}
.status {
font-size: 13px;
color: var(--muted);
transition: color 0.24s ease;
}
.status.error {
color: var(--danger);
}
.status.ok {
color: var(--accent);
}
.hint-card {
margin-top: 12px;
padding: 12px 14px;
border-radius: 12px;
border: 1px solid var(--border);
background: var(--card);
color: var(--muted);
font-size: 13px;
transition: background-color 0.24s ease, border-color 0.24s ease, color 0.24s ease;
}
.player {
display: flex;
flex-direction: column;
align-items: center;
}
.animation {
width: var(--anim-size);
height: var(--anim-size);
border-radius: 24px;
background: var(--card);
box-shadow: 0 20px 60px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.04);
border: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
transition: background-color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}
.controls {
margin-top: 16px;
display: flex;
gap: 10px;
flex-wrap: wrap;
width: var(--anim-size);
justify-content: center;
}
.control-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
box-shadow: none;
transform: none;
}
.control-btn.active {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.control-btn {
appearance: none;
border: none;
outline: none;
cursor: pointer;
padding: 10px 14px;
border-radius: 10px;
font-weight: 700;
letter-spacing: 0.3px;
color: #0b0c10;
background: var(--primary);
box-shadow: 0 8px 20px rgba(0,0,0,0.25);
transition: transform 0.15s ease, box-shadow 0.15s ease;
transition: background-color 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}
.control-btn:hover {
transform: translateY(-1px);
box-shadow: 0 12px 28px rgba(0,0,0,0.3);
}
.control-btn:active {
transform: scale(0.98);
}
.control-btn:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.speed-group {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 10px;
border-radius: 10px;
border: 1px solid var(--border);
background: var(--card);
transition: background-color 0.24s ease, border-color 0.24s ease, color 0.24s ease;
}
.speed-label {
font-size: 12px;
color: var(--muted);
}
.speed-slider {
width: 160px;
accent-color: var(--accent);
}
.speed-slider:disabled {
opacity: 0.5;
}
.speed-value {
font-size: 12px;
color: var(--muted);
min-width: 48px;
text-align: right;
}
@media (min-width: 900px) {
.main {
grid-template-columns: 1fr 1fr;
}
.uploader {
justify-content: flex-start;
}
.player {
justify-content: flex-end;
}
}
@media (max-width: 600px) {
:root {
--anim-size: 300px;
}
.dropzone {
min-height: 180px;
padding: 22px;
}
.header {
padding: 18px 20px;
}
.brand {
font-size: 20px;
}
.tagline {
font-size: 12px;
}
}
@media (max-width: 420px) {
:root {
--anim-size: 240px;
}
.choose-btn {
width: 100%;
}
.controls {
gap: 8px;
}
.control-btn {
flex: 1 1 45%;
}
}
[data-theme="light"] {
--bg: #e9ecf3;
--fg: #1f2937;
--muted: #4b5563;
--primary: #6d28d9;
--accent: #0ea5e9;
--danger: #ef4444;
--card: rgba(0, 0, 0, 0.03);
--glass: rgba(255, 255, 255, 0.6);
--border: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] body {
background: #e9ecf3;
}
