* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 2rem 1rem;
    color: #fff;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

/* Glassmorphism Cards */
.header-card,
.main-card,
.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Header */
.header-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 1rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-text h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.header-text p {
    opacity: 0.9;
    font-size: 1rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group {
    display: flex;
    gap: 0.75rem;
}

input[type="text"],
.select-input {
    flex: 1;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

input[type="text"]:focus,
.select-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.select-input {
    cursor: pointer;
}

/* Buttons */
.btn-primary,
.btn-download {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-download {
    width: 100%;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
    font-size: 1.1rem;
    padding: 1rem;
    margin-top: 1rem;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(17, 153, 142, 0.4);
}

.btn-download:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Video Info */
.video-info {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.video-info img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}

.video-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.video-details p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Options Row */
.options-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Progress Bar */
.progress-container {
    margin-top: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0..progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #11998e 0%, #38ef7d 50%, #11998e 100%);
    background-size: 200% 100%;
    border-radius: 12px;
    transition: width 0.3s ease;
    animation: progressWave 2s ease-in-out infinite;
}
#progress-text {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Error Message */
.error-message {
    padding: 1rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 10px;
    color: #fff;
    margin-top: 1rem;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    text-align: center;
    padding: 1.5rem;
}

.feature-card svg {
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes progressWave {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-card {
        flex-direction: column;
        text-align: center;
    }

    .header-text h1 {
        font-size: 1.5rem;
    }

    .input-group {
        flex-direction: column;
    }

    .options-row {
        grid-template-columns: 1fr;
    }

    .video-info {
        flex-direction: column;
    }

    .video-info img {
        width: 100%;
        height: auto;
    }
}

