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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    color: #FFE4B5;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(139, 69, 19, 0.9);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid #CD853F;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(90deg, #A0522D, #8B4513);
    border-radius: 10px;
    border: 2px solid #FFD700;
}

header h1 {
    font-size: 2.5em;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

header p {
    font-size: 1.2em;
    color: #FFE4B5;
    font-style: italic;
}

.main-panel {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Upload Section */
.upload-section {
    display: flex;
    justify-content: center;
}

.tape-deck {
    background: linear-gradient(145deg, #8B4513, #654321);
    border-radius: 20px;
    padding: 30px;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 3px solid #CD853F;
}

.upload-area {
    background: linear-gradient(135deg, #A0522D, #8B4513);
    border: 3px dashed #FFD700;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 400px;
}

.upload-area:hover, .upload-area.drag-over {
    background: linear-gradient(135deg, #CD853F, #A0522D);
    border-color: #FFA500;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.upload-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.upload-area p {
    font-size: 1.3em;
    color: #FFE4B5;
    font-weight: bold;
}

/* Audio Controls */
.audio-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(90deg, #654321, #8B4513);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #CD853F;
}

.play-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(145deg, #FFD700, #FFA500);
    border: 3px solid #CD853F;
    font-size: 24px;
    color: #8B4513;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.play-button:active {
    transform: translateY(0);
}

.progress-container {
    flex: 1;
    position: relative;
}

#progressCanvas {
    width: 100%;
    height: 30px;
    border: 2px solid #CD853F;
    border-radius: 5px;
    background: #2F1B14;
}

.progress-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    opacity: 0;
    cursor: pointer;
}

.volume-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.volume-slider {
    writing-mode: vertical-lr;
    direction: rtl;
    width: 30px;
    height: 100px;
    background: #654321;
    outline: none;
}

/* Effects Panel */
.effects-panel {
    display: flex;
    gap: 30px;
    background: linear-gradient(135deg, #654321, #8B4513);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #CD853F;
}

.wow-section, .flutter-section {
    flex: 1;
    text-align: center;
}

.wow-section h3, .flutter-section h3 {
    color: #FFD700;
    margin-bottom: 20px;
    font-size: 1.4em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.knob-container {
    margin-bottom: 20px;
}

.knob-container canvas {
    display: block;
    margin: 0 auto 10px;
    cursor: grab;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.knob-container label {
    display: block;
    color: #FFE4B5;
    font-weight: bold;
    margin-bottom: 5px;
}

.knob-container span {
    display: block;
    color: #FFD700;
    font-size: 1.2em;
    font-weight: bold;
}

.slider-container {
    margin-bottom: 15px;
}

.effect-slider {
    width: 100%;
    height: 8px;
    background: #2F1B14;
    border-radius: 4px;
    outline: none;
    margin-bottom: 5px;
}

.effect-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #FFD700;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slider-container label {
    display: block;
    color: #FFE4B5;
    font-size: 0.9em;
    margin-bottom: 3px;
}

.slider-container span {
    color: #FFD700;
    font-weight: bold;
}

/* Visualization */
.visualization {
    background: linear-gradient(135deg, #2F1B14, #654321);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #CD853F;
}

#waveformCanvas {
    width: 100%;
    height: 200px;
    background: #1a1a1a;
    border: 2px solid #8B4513;
    border-radius: 8px;
    margin-bottom: 20px;
}

.meters {
    display: flex;
    gap: 20px;
    align-items: center;
}

.meter {
    text-align: center;
}

.meter canvas {
    background: #1a1a1a;
    border: 2px solid #8B4513;
    border-radius: 8px;
    margin-bottom: 10px;
}

.speed-graph {
    flex: 1;
    text-align: center;
}

.speed-graph canvas {
    width: 100%;
    background: #1a1a1a;
    border: 2px solid #8B4513;
    border-radius: 8px;
    margin-bottom: 10px;
}

.meter label, .speed-graph label {
    color: #FFE4B5;
    font-size: 0.9em;
    font-weight: bold;
}

/* Presets */
.presets {
    background: linear-gradient(90deg, #8B4513, #654321);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #CD853F;
    text-align: center;
}

.presets h3 {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.preset-btn {
    background: linear-gradient(145deg, #A0522D, #8B4513);
    border: 2px solid #CD853F;
    color: #FFE4B5;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-weight: bold;
}

.preset-btn:hover {
    background: linear-gradient(145deg, #CD853F, #A0522D);
    transform: translateY(-1px);
}

.preset-btn.active {
    background: linear-gradient(145deg, #FFD700, #FFA500);
    color: #8B4513;
    border-color: #FFD700;
}

/* Info Panel */
.info-panel {
    background: linear-gradient(90deg, #2F1B14, #654321);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #8B4513;
}

.tech-info {
    display: flex;
    justify-content: space-around;
    color: #FFD700;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    font-weight: bold;
}

.tech-info span {
    text-align: center;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #CD853F;
    color: #FFE4B5;
}

footer a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 10px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .effects-panel {
        flex-direction: column;
        gap: 20px;
    }
    
    .audio-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .volume-control {
        order: 3;
        flex-basis: 100%;
    }
    
    .meters {
        flex-direction: column;
        align-items: center;
    }
    
    .tech-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .upload-area {
        min-width: auto;
        padding: 30px 20px;
    }
    
    .preset-btn {
        display: block;
        margin: 5px auto;
        width: 200px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }
    
    header p {
        font-size: 1em;
    }
    
    .upload-area p {
        font-size: 1.1em;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    #waveformCanvas {
        height: 150px;
    }
}