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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease-out;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #888;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

#visualizer {
    border: 2px solid #333;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    max-width: 100%;
    animation: slideIn 0.6s ease-out;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.control-group:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

label {
    font-size: 0.9rem;
    color: #ccc;
}

select, input[type="range"] {
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #333;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

select:hover, input[type="range"]:hover {
    border-color: #667eea;
}

select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

input[type="range"] {
    width: 120px;
    padding: 0;
}

.btn {
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #333;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #444;
}

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

.info {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    max-width: 600px;
    animation: fadeIn 0.8s ease-out 0.4s both;
}

footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 0.85rem;
    border-top: 1px solid #222;
    margin-top: 40px;
}

.lang-select {
    margin-bottom: 10px;
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #333;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .controls {
        flex-direction: column;
        width: 100%;
    }
    
    .control-group {
        width: 100%;
        justify-content: space-between;
    }
    
    #visualizer {
        width: 100%;
        height: 300px;
    }
}