* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: black;
}

.sidebar {
    width: 300px;
    background: black;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
}

.sidebar-nav {
    background: #111111;
    border-radius: 10px;
    padding: 30px 10px;
    margin-bottom: 10px;
}

.sidebar-nav .logo {
    width: 120px;
}

.sidebar-nav .logo img {
    width: 100%;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav ul li {
    padding: 10px 20px;
}

.sidebar-nav ul li a:hover {
    color: #ffff;
}

.sidebar-nav ul li a {
    text-decoration: none;
    color: #b3b3b3;
    font-size: 16px;
    font-weight: 600;
}

.sidebar-nav ul li a i {
    font-size: 20px;
    margin-right: 10px;
}

.library::after {
    content: '+';
    float: right;
    text-align: center;
    border-radius: 50%;
    font-size: 17px;
}

.create-playlist {
    background: #302f2f;
    padding: 30px 15px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.sidebar-scroll {
    height: 120px;
    overflow: auto;
}

.sidebar-scroll::-webkit-scrollbar {
    background: transparent;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: transparent;
    width: 10px;
}

.sidebar-scroll:hover::-webkit-scrollbar-thumb {
    background: #5c5b5b;
    width: 5px;
}

.create-playlist h4 {
    color: white;
    font-size: 15px;
}

.create-playlist p {
    color: white;
    font-size: 12px;
    margin: 12px 0;
}

.create-playlist button {
    padding: 8px 15px;
    border: 0;
    outline: 0;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.privacy ul li a {
    text-decoration: none;
    color: #818080;
    font-size: 12px;
    font-weight: 600;
    margin: 0 6px;
}

.privacy ul li a:hover {
    text-decoration: underline;
    color: #bebcbc;
}

.privacy ul {
    list-style: none;
    margin-top: 20px;
}

.privacy ul li {
    padding: 0;
    padding-bottom: 8px;
}

.eng-btn {
    padding: 20px 30px;
}

.eng-btn button {
    padding: 10px 30px;
    background: transparent;
    border: 0;
    outline: none;
    color: #ffffff;
    border: 1px solid #818080;
    border-radius: 20px;
    margin: 20px 0;
}

.eng-btn button:hover {
    padding: 11px 31px;
    border: 1px solid #ffff;
}



/* ...............main section css............ */
.main-section {
    margin-left: 315px;
    background: #181818;
    height: 100vh;
    overflow: auto;
}

.main-section .top-nav {
    padding: 22px 30px;
    background: #131212;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-section .top-nav button {
    background: transparent;
    border: 0;
    outline: 0;
}

.main-section .top-nav .prev-btn button {
    color: #838181;
    font-size: 22px;
    margin-right: 20px;
}

.top-nav .login-btn .sign-up {
    color: #838181;
    font-size: 16px;
    font-weight: 600;
    margin-right: 25px;
}

.top-nav .login-btn .sign-up:hover {
    color: #ffffff;
}

.top-nav .login-btn .login {
    color: #242323;
    font-size: 16px;
    font-weight: 600;
    background: #ffff;
    padding: 10px 15px;
    border-radius: 20px;
}

.top-nav .login-btn .login:hover {
    background: #f3f3f3;
}

/* Main container styling */
.spotify-playlist {
    padding: 20px;
    background-color: #121212;
    /* Dark background like Spotify */
    color: white;
    font-family: 'Segoe UI', sans-serif;
}

/* Title styling */
.spotify-playlist h2 {
    color: white;
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Cards list container */
.spotify-playlist .list {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
}

/* Individual card styling */
.spotify-playlist .card {
    min-width: 160px;
    background-color: #181818;
    border-radius: 6px;
    padding: 16px;
    transition: background-color 0.3s ease;
}

.spotify-playlist .card:hover {
    background-color: #282828;
}

/* Image container */
.spotify-playlist .card .item {
    position: relative;
    margin-bottom: 16px;
}

/* Album image */
.spotify-playlist .card .item img {
    width: 100%;
    border-radius: 4px;
    aspect-ratio: 1;
    /* Makes images square */
    object-fit: cover;
    /* Ensures images fill the space */
}

/* Play button */
.spotify-playlist .card .play-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #1db954;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.spotify-playlist .card:hover .play-btn {
    opacity: 1;
    transform: translateY(-5px);
}

/* Album title */
.spotify-playlist .card h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Artist names */
.spotify-playlist .card p {
    color: #a7a7a7;
    font-size: 14px;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.spotify-playlist .card p:hover {
    text-decoration: underline;
}




/* .........Popular artist section............... */
.spotify-popular {
    padding: 20px;
    margin-top: 30px;
    color: white;
}

.spotify-popular h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.spotify-popular .list {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none; /* For Firefox */
}

.spotify-popular .list::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Opera */
}

.spotify-popular .card {
    background: #181818;
    border-radius: 6px;
    padding: 15px;
    width: 150px;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.spotify-popular .card:hover {
    background-color: #282828;
}

.spotify-popular .item {
    position: relative;
    margin-bottom: 15px;
}

.spotify-popular .item img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.spotify-popular .play-btn {
    position: absolute;
    right: 10px;
    bottom: -10px;
    background-color: #1db954;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.spotify-popular .card:hover .play-btn {
    opacity: 1;
    transform: translateY(0);
}

.spotify-popular .play-btn span {
    font-size: 14px;
    color: white;
}

.spotify-popular h4 {
    font-size: 16px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-popular p {
    font-size: 14px;
    color: #a7a7a7;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}





.footer-section {
    background-color: #000;
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column {
    min-width: 150px;
}

.footer-column > div {
    color: #919496;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 20px;
}

.col-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.col-links li {
    margin-bottom: 15px;
}

.col-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s ease;
}

.col-links a:hover {
    color: #1db954;
}

.social-links {
    display: flex;
    justify-content: flex-end;
}

.social-links div {
    display: flex;
    gap: 20px;
}

.social-links i {
    font-size: 24px;
    color: #fff;
    background: #222326;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.social-links i:hover {
    color: #1db954;
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-links {
        gap: 30px;
    }
    
    .footer-column {
        min-width: 120px;
    }
    
    .social-links {
        justify-content: flex-start;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-column {
        margin-bottom: 20px;
    }
}