#livesearchbar {
    font-family: Arial, sans-serif;
    background-color: #222; /* Darker background */
    color: #ccc; /* Softer font color */
    text-align: center;
    padding: 20px;
    
    position: relative; /* Ensure positioning context for child elements */
}

#livesearchbar #search-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Space between search and clear button */
    margin-bottom: 20px;
}

#livesearchbar #search {
    width: 80%; /* Adjusted width */
    max-width: 400px; /* Limit max width to 400px */
    padding: 10px;
    font-size: 18px;
    border-radius: 5px;
    border: 1px solid #444; /* Dark border color */
    background-color: #333; /* Darker input field */
    color: #fff; /* White text in input field */
    transition: border-color 0.3s; /* Smooth transition for border color */
}

#livesearchbar #search:focus {
    border-color: #666; /* Darker focus border color */
    outline: none; /* Remove default outline */
}

#livesearchbar #clear-btn {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #444; /* Button background matching the dark theme */
    border: 1px solid #555; /* Button border matching the theme */
    color: #ccc; /* Softer button text color */
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s; /* Smooth transition for hover */
}

#livesearchbar #clear-btn:hover {
    background-color: #555; /* Darker background on hover */
}

#livesearchbar #result {
    position: absolute; /* Position the result container absolutely */
    top: 80px; /* Adjust to position below the search bar */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Adjust centering */
    background-color: #333; /* Darker background for results */
    padding: 10px 0; /* Padding for spacing */
    border-radius: 5px;
    max-height: 400px; /* Set a max height for scroll */
    overflow-y: auto; /* Enable vertical scroll */
    display: none; /* Hidden by default */
    width: 80%; /* Set the same width as the search bar */
    max-width: 400px; /* Limit max width to 400px */
    color: #ccc; /* Softer font color for results */
    z-index: 10; /* Ensure it appears above other elements */
}

/* Scrollbar Styles */
#livesearchbar #result::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
}

#livesearchbar #result::-webkit-scrollbar-thumb {
    background-color: #555; /* Scrollbar thumb color */
    border-radius: 5px; /* Rounded edges */
}

#livesearchbar #result::-webkit-scrollbar-track {
    background: #333; /* Scrollbar track color */
    border-radius: 5px; /* Rounded edges */
}

/* Song item styles */
#livesearchbar .song-item {
    padding: 10px; /* Padding for song items */
    border-bottom: 1px solid #555; /* Softer border color */
    transition: background-color 0.3s; /* Smooth transition for hover */
}

#livesearchbar .song-item:hover {
    background-color: #444; /* Darker hover background */
}

#livesearchbar .loading {
    text-align: center;
    padding: 10px;
    color: #ccc; /* Softer loading text color */
}

/* Responsive Styles */
@media (max-width: 768px) {
    #livesearchbar #search {
        width: 90%; /* More space on smaller screens */
    }
}
@media (max-width: 480px) {
    #livesearchbar #search {
        width: 95%; /* Full width on very small screens */
        font-size: 16px; /* Slightly smaller font */
    }
    #livesearchbar {
        padding: 10px; /* Less padding on small screens */
    }
    #livesearchbar #result {
    top: 65px; /* Adjust to position below the search bar */
    }
}
