:root {
    --bg-black: #000000;
    --bg-dark-gray: #121212;
    --bg-card: #181818;
    --bg-card-hover: #1f1f1f;
    --bg-light-gray: #242424;
    --text-white: #ffffff;
    --text-gray: #a7a7a7;
    --spotify-green: #1ed760;
    --border-radius-base: 8px;
    --font-stack: 'Montserrat', sans-serif;
}

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

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-stack);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.container {
    display: flex;
    height: calc(100vh - 66px);
    padding: 8px;
    gap: 8px;
}

.sidebar {
    width: 350px;
    background-color: var(--bg-black);
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.sidebar .nav-links,
.sidebar .library-section {
    background-color: var(--bg-dark-gray);
    border-radius: var(--border-radius-base);
    padding: 8px 12px;
}

.sidebar .nav-links {
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.logo {
    padding: 12px 24px 0px 24px;
    margin-bottom: 20px;
}


.library-section {
    flex: 1;
    overflow-y: auto;
    position: relative;
    padding: 8px 8px 30px;
}

.lib-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 16px 8px 16px;
    color: var(--text-gray);
}

.lib-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s;
}

.lib-title:hover,
.lib-header i:hover {
    color: var(--text-white);
}

.create-playlist {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 20px;
    padding: 0 8px;
}

.cp-card {
    background-color: var(--bg-light-gray);
    padding: 16px 20px;
    border-radius: var(--border-radius-base);
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.cp-card h4 {
    font-size: 16px;
    font-weight: 700;
}

.cp-card p {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.small-btn {
    background-color: var(--text-white);
    color: var(--bg-black);
    border: none;
    padding: 6px 16px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.small-btn:hover {
    transform: scale(1.04);
}

.sidebar-footer {
    padding: 40px 24px 30px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.legal-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 11px;
}

.lang-btn {
    background: transparent;
    border: 1px solid #727272;
    color: var(--text-white);
    padding: 6px 14px;
    border-radius: 100px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    cursor: pointer;
    font-size: 13px;
}

.lang-btn:hover {
    border-color: var(--text-white);
    transform: scale(1.04);
}

.main-content {
    flex: 1;
    background-color: var(--bg-dark-gray);
    border-radius: var(--border-radius-base);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background-color: #101010;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-controls {
    display: flex;
    gap: 8px;
}

.circle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    color: var(--text-gray);
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar-container {
    flex: 1;
    max-width: 480px;
    margin: 0 10px;
}

.search-box {
    background-color: #242424;
    border-radius: 500px;
    border: 0;
    color: #fff;
    height: 48px;
    padding: 6px 48px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

.search-box:hover {
    background-color: #2a2a2a;
    outline: 1px solid #3d3d3d;
}

.search-box svg {
    position: absolute;
    color: #b3b3b3;
}

.search-box .search-icon {
    left: 12px;
}

.search-box .browse-icon {
    right: 12px;
    border-left: 1px solid #7c7c7c;
    padding-left: 10px;
    box-sizing: content-box;
    width: 24px;
    height: 24px;
}

.search-box input {
    background: transparent;
    border: none;
    color: white;
    font-family: var(--font-stack);
    font-size: 14px;
    width: 100%;
    outline: none;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 24px;
}

.premium-link,
.support-link,
.download-link {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.2s;
}

.premium-link:hover,
.support-link:hover,
.download-link:hover {
    color: var(--text-white);
    transform: scale(1.04);
}

.divider {
    height: 24px;
    width: 1px;
    background-color: var(--text-white);
    margin: 0 8px;
}

.install-app {
    background-color: transparent;
    color: var(--text-gray);
    border: none;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.install-app:hover {
    color: var(--text-white);
    transform: scale(1.04);
}

.signup-btn {
    background-color: transparent;
    color: var(--text-gray);
    border: none;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}

.signup-btn:hover {
    color: var(--text-white);
    transform: scale(1.04);
}

.login-btn {
    background-color: var(--text-white);
    color: var(--bg-black);
    border: none;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}

.login-btn:hover {
    transform: scale(1.04);
}

.content-scroll {
    overflow-y: auto;
    padding: 16px 24px 60px;
    background: linear-gradient(#202020 0%, #121212 100%);
    flex: 1;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0 16px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.section-header h2:hover {
    text-decoration: underline;
    cursor: pointer;
}

.show-all {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.show-all:hover {
    text-decoration: underline;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.card {
    background-color: var(--bg-card);
    padding: 16px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.card:hover {
    background-color: var(--bg-card-hover);
}

.img-holder {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
    aspect-ratio: 1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.artist-card img {
    border-radius: 50%;
}

.play-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 48px;
    height: 48px;
    background-color: var(--spotify-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    font-size: 20px;
}

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

.card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card p {
    font-size: 14px;
    color: var(--text-gray);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

.main-footer {
    padding-top: 60px;
    padding-bottom: 40px;
    display: flex;
    justify-content: space-between;
}

.footer-links {
    display: flex;
}

.fl-col h4 {
    margin-bottom: 12px;
}

.fl-col a {
    display: block;
    color: var(--text-gray);
    text-decoration: none;
    padding: 8px 0;
}

.fl-col a:hover {
    text-decoration: underline;
    color: var(--text-white);
}

.social-icons {
    display: flex;
    gap: 16px;
}

.icon-circle {
    width: 40px;
    height: 40px;
    background-color: #292929;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.icon-circle:hover {
    background-color: #727272;
}

.preview-banner {
    position: fixed;
    border-radius: 15px;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #af2896, #509bf5);
    padding: 11px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    height: 66px;
}

.preview-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.preview-subtitle {
    font-size: 15px;
    font-weight: 600;
}

.banner-btn {
    background-color: var(--text-white);
    color: var(--bg-black);
    border: none;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}

.banner-btn:hover {
    transform: scale(1.04);
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-thumb {
    background-color: hsla(0, 0%, 100%, .3);
}

.sidebar .library-section:hover::-webkit-scrollbar-thumb,
.content-scroll:hover::-webkit-scrollbar-thumb {
    background-color: hsla(0, 0%, 100%, .3);
}

::-webkit-scrollbar-track {
    background-color: transparent;
}