:root {
    --bg-color: #0d0f1a;
    --card-bg: rgba(23, 27, 44, 0.4);
    --border-color: rgba(255, 255, 255, 0.08);
    --primary-gradient: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    padding: 2rem 1rem;
}

h1,
h2,
h3 {
    font-family: 'Montserrat', sans-serif;
}

/* Background animated blobs */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 15s infinite ease-in-out alternate;
}

.blob-purple {
    width: 400px;
    height: 400px;
    background: #7c3aed;
    top: -100px;
    left: 10%;
    animation-delay: 0s;
}

.blob-pink {
    width: 500px;
    height: 500px;
    background: #db2777;
    bottom: -150px;
    right: 5%;
    animation-delay: -5s;
}

.blob-blue {
    width: 300px;
    height: 300px;
    background: #2563eb;
    top: 30%;
    left: -50px;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.1);
    }
}

/* Glassmorphism utility */
.glass-container {
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
}

.main-card {
    width: 100%;
    max-width: 640px;
    padding: 2.5rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2rem;
}

.gradient-text {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed rgba(168, 85, 247, 0.4);
    border-radius: 16px;
    padding: 3rem 1.5rem;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.02);
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: #ec4899;
    background: rgba(168, 85, 247, 0.08);
    transform: translateY(-2px);
}

.drop-zone input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    color: #a855f7;
    margin-bottom: 1rem;
}

.drop-zone p {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.drop-zone .hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Video List */
.list-section {
    margin-top: 1.5rem;
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.video-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem;
    border-radius: 12px;
    transition: transform 0.2s;
}

.video-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
}

.video-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-right: 1rem;
}

.video-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 350px;
    margin-bottom: 0.25rem;
}

.video-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.video-actions {
    display: flex;
    gap: 0.25rem;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-icon.delete:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Buttons */
.actions-section {
    margin-top: 2rem;
}

.btn {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(100%);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-success {
    background: var(--success-gradient);
    color: white;
}

.glow-effect:hover:not(:disabled) {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
    transform: translateY(-2px);
}

.btn:active:not(:disabled) {
    transform: scale(0.98);
}

/* Progress Section */
.progress-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    text-align: center;
}

.status-header h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #cbd5e1;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Result Section */
.result-section {
    margin-top: 1.5rem;
    padding: 2rem;
    text-align: center;
}

.success-text {
    color: #34d399;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.video-preview {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    background-color: #000;
    border: 1px solid var(--border-color);
}

.video-preview video {
    width: 100%;
    display: block;
    max-height: 400px;
}

/* Utility */
.hidden {
    display: none !important;
}

@media (max-width: 640px) {
    .main-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .gradient-text {
        font-size: 2rem;
    }
}