/* General body styling */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Playlist container styling */
.playlist-container {
    width: 80%;
    max-width: 300px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    overflow-y: auto; /* Allows scrolling if content exceeds container height */
    max-height: 80vh; /* Limits the height of the playlist container */
}

/* Playlist title styling */
.playlist-container h1 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

/* Playlist item list styling */
#playlist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    gap: 10px; /* Space between playlist items */
}

/* Playlist item styling */
#playlist li {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px; /* Rounded corners for playlist items */
    border: 1px solid #ddd;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#playlist li:hover {
    background-color: #f5f5f5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Cover image styling */
#playlist li img.cover {
    width: 50px; /* Consistent size for cover images */
    height: 50px; /* Consistent size for cover images */
    object-fit: cover;
    border-radius: 50%; /* Makes the image rounded */
    margin-right: 10px; /* Space between cover image and title */
}

/* Playlist item title and artist container styling */
#playlist li .info {
    flex: 1; /* Allows title and artist container to take up available space */
    display: flex;
    flex-direction: column; /* Stack title and artist vertically */
    justify-content: center; /* Center items vertically */
}

/* Playlist item title styling */
#playlist li .title {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px; /* Space between title and artist */
}

/* Playlist item artist styling */
#playlist li .artist {
    font-size: 14px;
    color: #666;
    text-align: center; /* Center the text horizontally */
}

/* Play icon styling */
#playlist li i {
    font-size: 18px;
    color: #008cba;
    margin-left: 10px; /* Space between title and play icon */
}

/* Button styling */
.control-button {
    background-color: #008cba;
    border: none;
    color: white;
    padding: 10px 20px;
    margin-top: 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.control-button:hover {
    background-color: #005f6a;
}
