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

body {
    font-family: 'Arial', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ff0080, #8000ff, #0080ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.canvas-container {
    width: 100%;
    height: 400px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#visualizer {
    width: 100%;
    height: 100%;
}

.controls {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.input-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.file-label {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(45deg, #ff0080, #8000ff);
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.file-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 128, 0.4);
}

.file-label input {
    display: none;
}

.or-divider {
    color: #666;
    font-size: 0.9em;
}

.mic-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.mic-button:hover {
    background: #3a3a3a;
    border-color: #666;
}

.mic-button.active {
    background: linear-gradient(45deg, #ff0080, #8000ff);
    border-color: transparent;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.mic-icon {
    font-size: 1.2em;
}

.playback-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 10px;
}

.control-button {
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    transition: transform 0.2s;
}

.control-button:hover {
    transform: scale(1.1);
}

.seek-bar {
    flex: 1;
    height: 6px;
    background: #333;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.seek-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(45deg, #ff0080, #8000ff);
    border-radius: 50%;
    cursor: pointer;
}

.seek-bar::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: linear-gradient(45deg, #ff0080, #8000ff);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.time-display {
    font-size: 0.9em;
    color: #888;
    min-width: 80px;
}

.settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-group label {
    font-size: 0.9em;
    color: #888;
}

.setting-group input[type="range"] {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.setting-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.setting-group input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.setting-group select {
    padding: 8px 12px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    outline: none;
}

.setting-group select:hover {
    background: #3a3a3a;
    border-color: #666;
}

footer {
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 0.9em;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .canvas-container {
        height: 300px;
    }
    
    .input-section {
        flex-direction: column;
    }
    
    .or-divider {
        display: none;
    }
    
    .settings {
        grid-template-columns: 1fr;
    }
}