
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #121212;
    color: #fff;
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: calc(100vh - 100px);
}

.sidebar {
    width: 250px;
    background-color: #181818;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.logo img {
    width: 30px;
    margin-right: 10px;
}

.navigation ul, .categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navigation li, .categories li {
    margin-bottom: 15px;
}

.navigation a, .categories a {
    color: #b3b3b3;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.navigation a:hover, .categories a:hover {
    color: #fff;
}

.navigation a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.categories h3 {
    color: #fff;
    margin-top: 30px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
}

.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #121212;
     margin-bottom: 100px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-bar {
    display: flex;
    align-items: center;
}

.search-bar input[type="text"] {
    padding: 8px;
    border: none;
    border-radius: 4px 0 0 4px;
    background-color: #444;
    color: #fff;
    margin-right: 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.search-bar button {
    background-color: #1DB954;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    margin-left: 0;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: #14833d;
}

.queue ul, .favorites ul {
    list-style: none;
    padding: 0;
}

.queue li, .favorites li {
    padding: 10px;
    background-color: #1e1e1e;
    margin-bottom: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.queue li:hover, .favorites li:hover {
    background-color: #333;
    transform: translateY(-2px);
}

section {
    margin-bottom: 30px;
}

h2 {
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.2em;
    color: #eee;
}

.music-player {
    background-color: rgba(40, 40, 40, 0.9);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    z-index: 100;
}

.song-info {
    display: flex;
    align-items: center;
    width: auto;
    justify-content: flex-start;
    margin-bottom: 5px;
    word-break: break-word;
    flex: 1;
    max-width: 250px;
}

.song-info img {
    width: 50px;
    border-radius: 5px;
    margin-right: 15px;
}

.song-details {
    flex: none;
}

.song-details h3 {
    margin: 0;
    font-size: 1em;
    font-weight: 500;
}

.song-details p {
    color: #b3b3b3;
    margin: 0;
    font-size: 0.8em;
}

.controls {
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}

.controls button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2em;
    margin: 0 10px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

.controls button:hover {
  opacity: 0.8;
}

#add-to-favorites i {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    transition: all 0.2s ease-in-out;
}

#add-to-favorites:hover i {
    color: #FF69B4;
    transform: scale(1.1);
}

.volume-control {
    display: flex;
    align-items: center;
    margin-left: auto;
    width: auto;
    margin-right: 10px;
}

#mute-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2em;
    margin: 0 5px;
    cursor: pointer;
    transition: color 0.3s ease;
}

#mute-button:hover {
    color: #1DB954;
}

.volume-control input[type="range"] {
    width: 100px;
}

.seek-bar-container {
    width: 50%;
    padding: 0 10px;
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
}

#current-time, #duration {
    font-size: 0.8em;
    color: #ccc;
    margin: 0 5px;
    width: 35px;
    text-align: center;
}

.seek-bar-container input[type="range"] {
    flex: 1;
    height: 8px;
    background: linear-gradient(to right, #1DB954 var(--seek-before-width), #444 var(--seek-before-width));
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.seek-bar-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease;
}

.seek-bar-container input[type="range"]::-webkit-slider-thumb:hover {
        transform: scale(1.2);
}

.seek-bar-container input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.seek-bar-container input[type="range"]::-ms-thumb {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

#visualizer {
    position: absolute;
    bottom: 55px;
    left: 0;
    width: 25%;
    height: 50px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 10px;
    }

    .logo {
        justify-content: center;
    }

    .navigation, .categories {
        text-align: center;
    }

    .main-content {
        padding: 10px;
    }

    .music-player {
       flex-direction: column;
       align-items: center;
       padding: 10px;
    }

    .song-info {
        margin-bottom: 10px;
        flex-direction: column;
        align-items: flex-start;
    }

    .song-info img {
        margin-right: 0;
        margin-bottom: 5px;
    }

    .volume-control {
        margin-top: 10px;
        margin-left: 0;
    }

    .seek-bar-container {
       margin-top: 10px;
    }
}

.startup-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    text-align: center;
    width: 400px;
    max-width: 90%;
    aria-modal: true;
    margin: auto;
}

.startup-popup img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.startup-popup .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2em;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.startup-popup .close-button:hover {
    opacity: 1;
}

.popup-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.startup-popup.active, .popup-backdrop.active {
    display: block;
}