body {
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: #FFFFFF;
    margin: 0;
    min-height: 100vh;
    padding: 0;
    padding-bottom: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

h1 {
    color: #ea26a1;
    margin-bottom: 20px;
}

/* Search Bar Styling */
.search-container {
    position: relative; /* Needed for absolute positioning of the button */
    display: inline-block; /* Adjust display as needed */
    width: 350px; /* Adjust width as necessary */
}

.search-container input[type="text"] {
    padding: 10px 40px 10px 15px; /* Add padding for the button */
    border: 1px solid #535353; /* Optional: Add a border */
    border-radius: 25px; /* Rounded corners */
    width: 100%; /* Make input take full width of container */
    box-sizing: border-box; /* Include padding and border in width */
    background-color: #282828;
    color: #FFFFFF;
}

.search-container button {
    position: absolute;
    right: 5px; /* Position button on the right */
    top: 50%;
    transform: translateY(-50%); /* Center button vertically */
    background: none;
    border: none;
    padding: 8px 10px;
    cursor: pointer;
    color: #b3b3b3; /* Icon color */
    font-size: 16px;
}

.search-container button:hover {
    color: #FFFFFF; /* Icon color on hover */
    background: none; /* Ensure no background on hover */
}
/* End Search Bar Styling */

form {
    margin-bottom: 30px;
}

/* Remove specific input styling if handled by .search-container input */
/* input[type="text"] {
    padding: 10px;
    border: none;
    border-radius: 20px;
    width: 300px;
    margin-right: 10px;
} */

/* Remove specific button styling if handled by .search-container button */
/* button {
    padding: 10px 20px;
    background-color: #ea26a1;
    border: none;
    border-radius: 20px;
    color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.3s ease;
} */

/* button:hover {
    background-color: #ea26a1;
} */

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin: 10px 0;
}

a {
    color: #ea26a1;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

a:hover {
    color: #ea26a1;
}

#audio-player {
    margin-top: 20px;
    width: 100%;
    max-width: 600px;
    display: none;
}

.active-track {
    background-color: rgba(29, 185, 84, 0.1);
    padding: 10px;
    border-radius: 5px;
    border-left: 3px solid #ea26a1;
}

.active-track a {
    color: #ea26a1;
    font-weight: bold;
}

/* Player container */
#music-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #282828; /* Spotify dark background */
    color: #fff;
    padding: 10px 20px;
    box-sizing: border-box; /* Include padding in width */
    border-top: 1px solid #121212;
}

/* Style for hidden player */
#music-player.hidden {
    display: none;
}

.player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Left side: Track Info */
.track-info {
    display: flex;
    align-items: center;
    flex: 1; /* Take up available space */
    min-width: 150px; /* Ensure some minimum space */
}

#album-art {
    margin-right: 15px;
    border-radius: 4px;
}

.track-info div {
    display: flex;
    flex-direction: column;
}

#track-title {
    font-weight: bold;
    font-size: 0.9em;
}

#track-artist {
    font-size: 0.8em;
    color: #b3b3b3; /* Lighter grey for artist */
}

/* Center: Playback Controls & Seek Bar */
.controls-center {
    display: flex;
    flex-direction: column; /* Stack button group and seek bar */
    align-items: center;
    flex: 2; /* Take up more space */
    margin: 0 20px; /* Add some spacing */
}

/* NEW: Style for the button group */
.control-buttons-group {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px; /* Space below buttons */
}
/* Remove margin from the direct div child selector as it's now handled by the group */
/* .controls-center > div:first-child {
    margin-bottom: 5px;
} */

.control-button {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 14px;
    cursor: pointer;
    margin: 0 12px;
    padding: 8px;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.control-button:hover {
    color: #fff;
    background-color: rgba(255,255,255,0.1); /* Subtle background on hover */
}

#play-pause-button {
    font-size: 16px; /* Adjust for icon inside */
    background-color: #ea26a1;
    color: #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    transition: transform 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3); /* Add subtle shadow */
    border: none;
    margin: 0 15px; /* Give more space on sides */
}

#play-pause-button:hover {
    transform: scale(1.08);
    background-color: #ea26a1;
}

.seek-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 500px; /* Limit seek bar width */
}

#seek-bar {
    flex-grow: 1; /* Allow seek bar to fill space */
    margin: 0 10px;
    cursor: pointer;
    appearance: none; /* Override default look */
    width: 100%;
    height: 4px;
    background: #535353; /* Darker grey track */
    border-radius: 2px;
    outline: none;
}

/* Seek bar thumb styling (Chrome, Edge, Safari) */
#seek-bar::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: #fff; /* White thumb */
    border-radius: 50%;
    cursor: pointer;
}

/* Seek bar thumb styling (Firefox) */
#seek-bar::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none; /* Remove default border */
}

/* Style the track progress (filled part) - needs JS to update dynamically or specific browser pseudo-elements */
/* Basic look, enhance later if needed */
#current-time, #duration {
    font-size: 0.75em;
    color: #b3b3b3;
    min-width: 30px; /* Ensure space for time */
    text-align: center;
}

/* Right side: Volume Control */
.volume-container {
    display: flex;
    align-items: center;
    flex: 1; /* Take up available space */
    justify-content: flex-end; /* Align to the right */
    min-width: 120px; /* Ensure some minimum space */
}

.volume-container i {
    color: #b3b3b3;
    margin: 0 5px;
}

#volume-bar {
    cursor: pointer;
    appearance: none; /* Override default look */
    width: 80px; /* Fixed width for volume */
    height: 4px;
    background: #535353; /* Darker grey track */
    border-radius: 2px;
    outline: none;
}

/* Volume bar thumb styling (Chrome, Edge, Safari) */
#volume-bar::-webkit-slider-thumb {
    appearance: none;
    width: 10px;
    height: 10px;
    background: #fff; /* White thumb */
    border-radius: 50%;
    cursor: pointer;
}

/* Volume bar thumb styling (Firefox) */
#volume-bar::-moz-range-thumb {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none; /* Remove default border */
}
