* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.description {
    text-align: center;
    margin-bottom: 2rem;
    color: #7f8c8d;
}

.upload-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.upload-box {
    flex: 1;
    min-width: 300px;
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.file-input {
    display: none;
}

.file-label {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.file-label:hover {
    background: #2980b9;
}

.preview {
    margin-top: 1.5rem;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    background: #f1f1f1;
}

.preview video {
    width: 100%;
    display: block;
}

.actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
}

button {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover:not(:disabled) {
    background: #219653;
}

button:disabled {
    background: #a0a0a0;
    cursor: not-allowed;
}

.progress-container {
    width: 100%;
    max-width: 600px;
    margin-top: 1.5rem;
}

.progress-bar {
    background: #eee;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}

#progress-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #27ae60;
    width: 0;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.result {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.download-btn {
    display: inline-block;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: #c0392b;
}

.footer {
    text-align: center;
    color: #7f8c8d;
    margin-top: 2rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .upload-container {
        flex-direction: column;
    }
}
