:root {
    --header-h: 72px;
    --sidebar-w: 260px;
    --bg: #121212;
    --elev: #282727;
    --text: #ffffff;
    --muted: #b3b3b3;
    --accent: #1db954;
}

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

html,
body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

body::-webkit-scrollbar {
    display: none;
}




/* topbar */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 1000;
    background: linear-gradient(to bottom, #181818, #0f0f0f);
    border-bottom: 1px solid #222;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0 .75rem;
}

.topbar .left {
    display: flex;
    align-items: center;
    gap: .75rem;
    justify-content: space-evenly;
    width: 50vw;
}

.logo {
    width: 34px;
    height: 34px;
    display: block;
    border-radius: 6px;
}

.home-logo {
    width: 40px;
    height: 40px;
    display: block;
    padding: 7px;
    border-radius: 6px;
    border-radius: 20px;
    background-color: var(--elev);
}

.logo:hover,
.home-logo:hover {
    opacity: 0.7;
}

.search {
    width: 30vw;
    outline: none;
    padding: .65rem .9rem;
    border-radius: 999px;
    border: 1px solid #2b2b2b;
    background: var(--elev);
    color: var(--text);
    cursor: pointer;
}

.search input::placeholder {
    color: #8a8a8a;
}

.right {
    display: flex;
    /* justify-content: space-between; */
    flex-wrap: nowrap;
    align-items: center;
    width: 50vw;
    gap: 1vw;
    justify-content: space-between;

}

.right a {
    text-decoration: none;
    color: var(--text);
    font-size: 1.35vw;
    font-weight: 600;
    opacity: 0.8;
}

.right a:hover {
    opacity: 1;
}

#right-left {
    border-right: 1.5px solid var(--text);
    padding-right: 1vw;
    width: 21vw;
}

#right-right {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    /* justify-content: space-between; */
    gap: 1vw;
    width: 29vw;
}

#right-right a {
    width: 9vw;
    text-align: center;
    font-size: 1.5vw;
}

#right-right a:last-child {
    color: var(--bg);
    height: 50px;
    text-align: center;
    background-color: var(--text);
    padding-top: 15px;
    border-radius: 2.2vw;
    width: 10vw;
    opacity: 1;
}

#right-right a:last-child:hover {
    opacity: 0.8;
}




/* sidebar */
.sidebar {
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    width: 30vw;
    background: #000;
    border-right: 1px solid #222;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
}

.sidebar .library h3 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    margin-bottom: 1rem;
}

.sidebar .library h3 .plus {
    font-size: 1.3rem;
    cursor: pointer;
    color: #b3b3b3;
    width: 30px;
    padding-left: 8px;
}

.sidebar .library h3 .plus:hover {
    background-color: var(--elev);
    border-radius: 60px;

}

.sidebar .library div {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

#sidebar-div {
    overflow-y: auto;
    padding-right: 4px;
    height: 200px;
    display: flex;
    /* gap: 3rem; */
    flex-direction: column;
    /* flex-wrap: nowrap; */
    border-bottom: 2px solid var(--elev);

}

.sidebar-subdiv {
    height: 190px;
    margin-top: 2rem;
    background-color: var(--elev);
    border-radius: 6px;
    padding: 1rem;
    color: #fff;
}

.sidebar-subdiv p {
    font-size: 0.8rem;
}

.sidebar-subdiv h6 {
    font-size: 1.1rem;
}

.sidebar-subdiv button {
    width: 10vw;
    border-radius: 20px;
    padding: 0.4rem;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.sidebar-subdiv button:hover {
    transform: scale(1.08);
    cursor: pointer;
}

.sidebar .language {
    margin-top: auto;
}

.sidebar .language button {
    background: transparent;
    border: 1px solid #b3b3b3;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
}

.sidebar .language button:hover {
    border-color: #fff;
}

#sidebar-div::-webkit-scrollbar {
    width: 8px;
}




/* main content */

.page {
    padding-top: var(--header-h);
    margin-left: 30vw;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

.page section {
    margin-bottom: 1rem;
    height: 28vw;
}

.page-title-div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title-div p {
    font-size: 0.8rem;
}

.page-title-div p:hover {
    text-decoration: underline;
    cursor: pointer;
}

.page section h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

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

.trending {
    margin-top: 1rem;
}

.cards {
    display: flex;
    gap: 1.5rem;
    height: 23vw;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.cards::-webkit-scrollbar {
    display: none;
}

.card {
    position: relative;
    background: #181818;
    padding: 1rem;
    border-radius: 8px;
    height: 21vw;
    width: 18vw;
    flex: 0 0 auto;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

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

.card:hover {
    background: #282828;
}

.card img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.9rem;
    color: #b3b3b3;
}

.card h6 {
    font-size: 1rem;
    font-weight: 600;
}



/* footer */

footer {
    border-top: 2px solid var(--elev);
    background-color: #121212;
    color: #b3b3b3;
    padding: 40px 60px 20px;
    font-family: Arial, sans-serif;
    margin-left: 30vw;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-column a {
    color: #b3b3b3;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 34px;
    height: 34px;
    background-color: var(--elev);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 18px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.footer-social a:hover {
    background-color: #8a8a8a;
    color: var(--text);
}

.footer-bottom {
    border-top: 2px solid var(--elev);
    margin-top: 30px;
    padding-top: 15px;
    text-align: left;
    font-size: 12px;
    color: #888;
}
