/* ml3 - Free Music Player - Styles */

/* Reset and General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.player-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    padding: 30px;
    max-width: 650px;
    width: 95%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Track Information Section */
#track-info {
    text-align: center;
}

#track-title {
    font-size: 1.5em;
    margin-bottom: 8px;
    color: #282828;
}

#artist-name {
    font-size: 1em;
    color: #6c757d;
}

/* Player Controls Section */
#player-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.playback-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.playback-controls button,
.volume-controls button {
    background: none;
    border: none;
    font-size: 1.8em;
    color: #555;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.playback-controls button:hover,
.volume-controls button:hover {
    color: #007bff;
    background-color: #e9ecef;
}

.playback-controls button:focus,
.volume-controls button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5);
}

/* Progress Bar Section */
.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#seek-slider {
    flex-grow: 1;
    height: 8px;
    border-radius: 5px;
    background-color: #ddd;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

#seek-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background-color: #007bff;
    border-radius: 50%;
    cursor: pointer;
}

#seek-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background-color: #007bff;
    border-radius: 50%;
    cursor: pointer;
}

#current-time,
#duration {
    font-size: 0.9em;
    color: #555;
    min-width: 40px;
    text-align: center;
}

/* Volume Controls Section */
.volume-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

#volume-slider {
    width: 100px;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 5px;
    background-color: #ddd;
    cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background-color: #6c757d;
    border-radius: 50%;
    cursor: pointer;
}

#volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background-color: #6c757d;
    border-radius: 50%;
    cursor: pointer;
}


/* Playlist Section */
#playlist-container {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

#playlist-container h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #343a40;
}

#playlist-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

#playlist-items li {
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

#playlist-items li:last-child {
    border-bottom: none;
}

#playlist-items li:hover {
    background-color: #f8f9fa;
}

#audio-file {
    margin-top: 15px;
    padding: 10px;
    border: 1px dashed #ced4da;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95em;
    background-color: #f8f9fa;
    color: #495057;
}

#audio-file:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}


/* Responsive Design */
@media (max-width: 768px) {
    .player-container {
        padding: 20px;
        border-radius: 10px;
        margin: 15px;
    }

    #track-title {
        font-size: 1.3em;
    }

    .playback-controls button,
    .volume-controls button {
        font-size: 1.5em;
        padding: 8px;
    }

    .progress-container {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }

    #current-time,
    #duration {
        text-align: right;
    }

    .volume-controls {
        justify-content: space-between;
    }

    #volume-slider {
        width: 80px;
    }
}

@media (max-width: 576px) {
    .playback-controls {
        gap: 10px;
    }

    .playback-controls button,
    .volume-controls button {
        font-size: 1.3em;
        padding: 6px;
    }
}