/* AutoVibe CSS for Free Music Hub - Iteration 2 - Enhanced UI */

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

.music-player {
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    overflow: hidden;
    width: 90%;
    max-width: 500px; /* Slightly wider max-width */
    margin: 20px;
}

.display-area {
    background-color: #e0e7ff; /* Light blue display area */
    color: #333;
    padding: 30px 20px;
    text-align: center;
}

#track-title {
    font-size: 1.8em;
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #2e4053; /* Darker text for title */
}

.controls-area {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #f9fafb; /* Very light grey for controls */
}

.controls-area button {
    background-color: #3b82f6; /* Blue button color */
    color: white;
    border: none;
    padding: 12px 24px;
    margin: 0 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.controls-area button:hover {
    background-color: #2563eb; /* Darker blue on hover */
}

.controls-area button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5); /* Focus outline */
}

.music-list-area {
    padding: 20px;
}

.music-list-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.music-list-area li {
    padding: 12px 15px;
    border-bottom: 1px solid #e5e7eb; /* Light border for list items */
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.music-list-area li:last-child {
    border-bottom: none;
}

.music-list-area li:hover {
    background-color: #f3f4f6; /* Lighter grey on hover */
}

.music-list-area li:active {
    background-color: #e5e7eb; /* Slightly darker grey on active */
}


/* Media queries for responsiveness */
@media (max-width: 600px) {
    .music-player {
        width: 95%;
        margin: 10px;
    }

    .display-area {
        padding: 20px 15px;
    }

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

    .controls-area {
        padding: 15px;
        flex-direction: column; /* Stack buttons on smaller screens */
    }

    .controls-area button {
        margin: 5px 0;
        width: 100%; /* Full width buttons on small screens */
    }

    .music-list-area {
        padding: 15px;
    }

    .music-list-area li {
        padding: 10px 12px;
        font-size: 0.95em;
    }
}

@media (min-width: 769px) {
    .music-player {
        max-width: 600px; /* Slightly wider for larger screens */
    }
}