* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #e0e0e0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    color: #00d9ff;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
    margin-bottom: 0.25rem;
}

.subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 2rem;
}

.inputs {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-weight: 600;
    color: #00d9ff;
}

.input-group input[type="text"] {
    padding: 0.75rem 1rem;
    border: 2px solid #333;
    border-radius: 8px;
    background: #0d0d1a;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.input-group input[type="text"]:focus {
    outline: none;
    border-color: #00d9ff;
}

.file-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid #444;
    border-radius: 4px;
    color: #888;
    cursor: pointer;
    font-size: 0.875rem;
    align-self: flex-start;
    transition: all 0.2s;
}

.file-btn:hover {
    border-color: #00d9ff;
    color: #00d9ff;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.play-btn, .stop-btn {
    padding: 1rem 3rem;
    font-size: 1.25rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}

.play-btn {
    background: linear-gradient(135deg, #00d9ff 0%, #00ff88 100%);
    color: #000;
}

.play-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
}

.stop-btn {
    background: #333;
    color: #fff;
}

.stop-btn:hover:not(:disabled) {
    background: #ff4444;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.visualization {
    position: relative;
    margin-bottom: 2rem;
}

#visualizer {
    width: 100%;
    height: 200px;
    background: #0d0d1a;
    border-radius: 12px;
    border: 2px solid #333;
}

.hypnotic-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

#hypnotic {
    width: 80px;
    height: 80px;
    opacity: 0.8;
    transition: transform 0.1s ease-out;
}

.meters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.meter {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meter label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
}

.meter-bar {
    height: 8px;
    background: #1a1a2e;
    border-radius: 4px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00ff88 0%, #00d9ff 50%, #ff00ff 100%);
    border-radius: 4px;
    transition: width 0.05s;
}

.status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #0d0d1a;
    border-radius: 8px;
    font-size: 0.875rem;
}

#statusText {
    color: #00ff88;
}

#matchInfo {
    color: #888;
    font-family: monospace;
}
