* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

main {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

/* Зона загрузки */
.upload-section {
    margin-bottom: 30px;
}

.upload-area {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 60px 20px;
    text-align: center;
    background: #f8f9ff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #764ba2;
    background: #f0f2ff;
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: #764ba2;
    background: #e8ebff;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.upload-area h2 {
    color: #667eea;
    margin-bottom: 10px;
}

.file-info {
    color: #666;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Кнопки */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.btn-download {
    background: #4caf50;
    color: white;
    margin-top: 15px;
}

.btn-download:hover {
    background: #45a049;
    transform: translateY(-2px);
}

/* Информация о файле */
.file-info-section {
    margin-bottom: 30px;
}

.file-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 15px;
    border: 2px solid #667eea;
}

.file-icon {
    font-size: 3rem;
}

.file-details {
    flex: 1;
}

.file-details h3 {
    color: #667eea;
    margin-bottom: 5px;
}

.file-details p {
    color: #666;
    font-size: 0.9rem;
}

/* Прогресс */
.progress-section {
    text-align: center;
    margin-bottom: 30px;
}

.progress-section h3 {
    color: #667eea;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    border-radius: 15px;
}

.progress-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 5px;
}

.status-text {
    color: #666;
    font-size: 0.9rem;
}

/* Результаты */
.results-section {
    text-align: center;
}

.results-section h2 {
    color: #4caf50;
    margin-bottom: 30px;
    font-size: 2rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.result-card {
    background: #f8f9ff;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #667eea;
}

.result-card h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.audio-player {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 8px;
}

/* Ошибка */
.error-section {
    text-align: center;
}

.error-card {
    background: #ffe0e0;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #f44336;
}

.error-card h3 {
    color: #f44336;
    margin-bottom: 15px;
}

.error-card p {
    color: #666;
    margin-bottom: 20px;
}

/* Footer */
footer {
    text-align: center;
    color: white;
    opacity: 0.8;
    padding: 20px;
}

/* Адаптивность */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 20px;
    }
    
    .upload-area {
        padding: 40px 15px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .file-card {
        flex-direction: column;
        text-align: center;
    }
}

