@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #000;
    color: #fff;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    height: calc(100vh - 90px);
    /* Adjust for player bar */
    background-color: #000;
}

/* Sidebar */
.sidebar {
    width: 240px;
    /* Fixed width for sidebar */
    background-color: #000;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
    /* Prevent sidebar from shrinking */
}

.sidebar .logo a {
    text-decoration: none;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sidebar .logo i {
    font-size: 30px;
}

.sidebar .navigation ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar .navigation ul li a {
    text-decoration: none;
    color: #b3b3b3;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: color 0.3s;
}

.sidebar .navigation ul li a:hover {
    color: #fff;
}

.sidebar .navigation ul li a i {
    font-size: 20px;
}

.sidebar .policies {
    margin-top: auto;
}

.sidebar .policies ul {
    list-style: none;
}

.sidebar .policies ul li a {
    text-decoration: none;
    color: #b3b3b3;
    font-size: 11px;
    margin-bottom: 5px;
    display: block;
}

.sidebar .policies ul li a:hover {
    text-decoration: underline;
}

/* Main Content */
.main-content {
    flex: 1;
    background: linear-gradient(to bottom, #1f1f1f, #121212);
    border-radius: 8px;
    margin: 10px 10px 0 0;
    /* Margin top, right, bottom (0), left (0) */
    overflow-y: auto;
    padding: 20px;
    position: relative;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: transparent;
    /* Or match background if needed */
}

.top-bar .prev-next-buttons button {
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    margin-right: 10px;
    font-size: 16px;
}

.top-bar .navbar {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar .navbar ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar .navbar ul li a {
    text-decoration: none;
    color: #b3b3b3;
    font-weight: 700;
    font-size: 14px;
    transition: color 0.3s;
}

.top-bar .navbar ul li a:hover {
    color: #fff;
    transform: scale(1.05);
}

.top-bar .navbar ul li.divider {
    color: #fff;
}

.top-bar .navbar button {
    background-color: #fff;
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.1s;
}

.top-bar .navbar button:hover {
    transform: scale(1.05);
}

.spotify-playlists h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.spotify-playlists .list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.spotify-playlists .list .item {
    background-color: #181818;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
}

.spotify-playlists .list .item:hover {
    background-color: #282828;
}

.spotify-playlists .list .item img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 4px 60px rgba(0, 0, 0, 0.5);
}

.spotify-playlists .list .item .play {
    position: absolute;
    top: 155px;
    /* Adjust based on image size */
    right: 20px;
    width: 48px;
    height: 48px;
    background-color: #1db954;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.spotify-playlists .list .item:hover .play {
    opacity: 1;
    transform: translateY(0);
}

.spotify-playlists .list .item .play span {
    color: #000;
    font-size: 18px;
}

.spotify-playlists .list .item h4 {
    margin-bottom: 10px;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-playlists .list .item p {
    color: #b3b3b3;
    font-size: 13px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Preview Bar (Bottom) */
.preview {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to right, #ae2896, #509bf5);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 20;
    display: none;
    /* Hidden by default, can be shown if not logged in */
}

.preview .text h6 {
    font-size: 13px;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.preview .text p {
    font-size: 16px;
    font-weight: 500;
}

.preview .button button {
    background-color: #fff;
    color: #000;
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}

/* Player Bar */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background-color: #181818;
    border-top: 1px solid #282828;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 30;
}

.player-bar .song-info {
    display: flex;
    align-items: center;
    width: 30%;
}

.player-bar .song-info img {
    width: 56px;
    height: 56px;
    margin-right: 15px;
    border-radius: 4px;
}

.player-bar .song-info .song-desc h4 {
    font-size: 14px;
    margin-bottom: 5px;
    cursor: pointer;
}

.player-bar .song-info .song-desc h4:hover {
    text-decoration: underline;
}

.player-bar .song-info .song-desc p {
    font-size: 11px;
    color: #b3b3b3;
    cursor: pointer;
}

.player-bar .song-info .song-desc p:hover {
    text-decoration: underline;
    color: #fff;
}

.player-bar .song-info i {
    margin-left: 20px;
    color: #b3b3b3;
    cursor: pointer;
}

.player-bar .song-info i:hover {
    color: #fff;
}

.player-bar .player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
}

.player-bar .player-controls .control-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.player-bar .player-controls .control-buttons i {
    color: #b3b3b3;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s;
}

.player-bar .player-controls .control-buttons i:hover {
    color: #fff;
}

.player-bar .player-controls .control-buttons #play-pause-btn {
    font-size: 32px;
    color: #fff;
}

.player-bar .player-controls .control-buttons #play-pause-btn:hover {
    transform: scale(1.1);
}

.player-bar .player-controls .progress-container {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.player-bar .player-controls .progress-container span {
    font-size: 11px;
    color: #b3b3b3;
    min-width: 35px;
}

.player-bar .player-controls .progress-container input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

.player-bar .player-controls .progress-container input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #5e5e5e;
    border-radius: 2px;
}

.player-bar .player-controls .progress-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: #fff;
    margin-top: -4px;
    display: none;
    /* Hide thumb by default */
}

.player-bar .player-controls .progress-container:hover input[type="range"]::-webkit-slider-thumb {
    display: block;
    /* Show thumb on hover */
}

.player-bar .player-controls .progress-container input[type="range"]:hover::-webkit-slider-runnable-track {
    background: #1db954;
}

.player-bar .volume-controls {
    display: flex;
    align-items: center;
    width: 30%;
    justify-content: flex-end;
    gap: 15px;
}

.player-bar .volume-controls i {
    color: #b3b3b3;
    font-size: 16px;
    cursor: pointer;
}

.player-bar .volume-controls i:hover {
    color: #fff;
}

.player-bar .volume-controls input[type="range"] {
    width: 100px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

.player-bar .volume-controls input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #5e5e5e;
    border-radius: 2px;
}

.player-bar .volume-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: #fff;
    margin-top: -4px;
    display: none;
}

.player-bar .volume-controls:hover input[type="range"]::-webkit-slider-thumb {
    display: block;
}

.player-bar .volume-controls input[type="range"]:hover::-webkit-slider-runnable-track {
    background: #1db954;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #888;
}