/* Estilos base */
:root {
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    transition: background-color var(--transition-speed);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.player-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

/* Cabeçalho do player */
.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.player-header h1 {
    font-size: 24px;
    color: #333;
}

/* Container de mídia */
.media-wrapper {
    width: 100%;
    margin-bottom: 20px;
}

.media-container {
    width: 100%;
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.media-player {
    width: 100%;
    max-height: 70vh;
    background: #000;
}

/* Controles */
.controls {
    width: 100%;
}

.file-controls {
    margin-bottom: 15px;
    text-align: center;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.progress-wrapper {
    flex-grow: 1;
    position: relative;
}

.playback-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Equalizador */
.equalizer-section {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.equalizer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.equalizer-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
}

.equalizer-band {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 5px;
}

.fader-container {
    position: relative;
    width: 40px;
    height: 150px;
    margin-bottom: 10px;
}

/* Presets do equalizador */
.equalizer-presets {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.preset-btn {
    padding: 8px 12px;
    font-size: 14px;
    background: linear-gradient(to bottom, #3a3a3a, #2a2a2a);
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* Playlist */
.playlist {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 20px;
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.playlist-controls {
    display: flex;
    gap: 10px;
}

/* Tema escuro */
body.dark-theme {
    background-color: #1a1a1a;
    color: #fff;
}

body.dark-theme .player-container,
body.dark-theme .playlist {
    background-color: #2d2d2d;
    color: #fff;
}

body.dark-theme .player-header h1 {
    color: #fff;
}

/* Media Queries */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .player-container {
        padding: 15px;
    }

    .player-header h1 {
        font-size: 20px;
    }

    .equalizer-container {
        gap: 2px;
    }

    .fader-container {
        width: 30px;
        height: 120px;
    }

    .preset-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .playback-controls {
        gap: 5px;
    }

    .control-btn {
        padding: 8px;
    }

    .control-btn-large {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .equalizer-container {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .equalizer-band {
        flex-shrink: 0;
    }

    .playback-controls {
        flex-direction: column;
        align-items: center;
    }

    .volume-control {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
    }

    .playlist-header {
        flex-direction: column;
        gap: 10px;
    }

    .playlist-controls {
        width: 100%;
        justify-content: center;
    }
}

/* Mantendo os estilos específicos do equalizador */
.eq-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-appearance: none;
    background: transparent;
    transform: rotate(180deg);
    z-index: 3;
    cursor: pointer;
}

.eq-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: transparent;
    cursor: pointer;
}

.eq-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: transparent;
    cursor: pointer;
    border: none;
}

.fader-track {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: calc(100% - 20px);
    background: linear-gradient(to bottom, #3a3a3a, #2a2a2a);
    border-radius: 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.fader-knob {
    position: absolute;
    width: 30px;
    height: 20px;
    background: linear-gradient(to bottom, #e0e0e0, #b0b0b0);
    border-radius: 3px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
    pointer-events: none;
    z-index: 2;
}

.freq-label {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}
