*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: poppins, sans-serif;
}

body{
    background-color: black;
    color: white;
}

html, body {
    height: 100%;
    overflow: hidden; /* não rola o body */
}

.container {
    height: 100%;
    display: flex;
}

main {
    padding: 24px;
    flex-grow: 1;
    overflow-y: auto; /* só o conteúdo do main rola */
}


/* header */
header{
    display: flex;
    align-items: center;
    padding: 16px 24px;
}

/* profile menu */
.profile-menu{
    margin-left: auto;
}

.profile-menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-actions {
    display: flex;
    gap: 12px;
}

.user-actions a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    color: #b7b3b6;
}

.user-actions a:hover {
    text-decoration: none;
    scale: 1.1;
}

.user-logo img{
    width: 70px;
    height: 70px;
    border-radius: 50%;
}

header img{
    width: 50px;
    height: 50px;
}

/* ===== poLogin ===== */
.modal {
    display: none; /* escondido por padrão */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    width: 350px;
    max-width: 90%;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.modal-content h2 {
    margin-bottom: 20px;
    text-align: center;
}

.modal-content label {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #ccc;
}

.modal-content input {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border: none;
    border-radius: 6px;
    background: #242424;
    color: white;
}

.modal-content button {
    margin-top: 20px;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: white;
    color: black;
    font-weight: bold;
    cursor: pointer;
}

.modal-content button:hover {
    background: #ddd;
}

.close {
    float: right;
    font-size: 22px;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: white;
}


/* search bar */

.search-bar input{
    background-color: #242424;
    color: #fff;
    border: 1px solid #fff;
    padding: 10px;
    border-radius: 40px;
    width: 300px;
    margin-left: 15px;
}

.container{
    height: 100vh;
    display: flex;
}

/* side bar */
.side-bar{
    width: 300px;
    background-color: #1a1a1a;
    padding: 24px 24px 90px 24px;
    display: flex;
    flex-direction: column;
}

.nav-logo i{
    font-size: 24px;
}

.nav-library{
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-library i, .nav-library p{ 
    color: #b7b3b6;
    font-size: 1;
}

.nav-playlist, .nav-podcast{
    background-color: #242424;
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
}

.nav-playlist button, .nav-podcast button{
    background-color: white;
    color: black;
    border: none;
    padding: 7px;
    margin-top: 16px;
    cursor: pointer;
    border-radius: 15px;
}

.nav-playlist h5, .nav-podcast h5 {
    font-size: 16px;
    color: #ffffff;
}

.nav-playlist p, .nav-podcast p {
    font-size: 14px;
    color: #b7b3b6;
}

.nav-footer{
    margin-top: 60%;
}

.nav-footer a{
    color: #b7b3b6;
    text-decoration: none;
    font-size: 12px;
    margin-bottom: 12px;
    margin-right: 12px;
}

.nav-lang-button {
    background-color: transparent;
    border: 1px solid #fff;
    color: white;
    padding: 10px 50px;
    margin-bottom: 16px;
    border-radius: 40px;
    cursor: pointer;
}

.content{
    margin-top: 20px;
}

.artist-card{
    padding: 20px;
    background-color: #242424;
    border-radius: 10px;
    margin-top: 40px;
}

.artist-card img{
    border-radius: 50%;
    max-width: 200px;
    max-height: auto;
}

.album-card{
    padding: 20px;
    background-color: #242424;
    border-radius: 10px;
    margin-top: 40px;
}

.album-card img{
    border-radius: 10px;
    max-width: 200px;
    max-height: auto;
}

.artist-grid, .albums-grid {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    overflow-x: auto;  /* permite scroll horizontal */
    padding-bottom: 10px; /* espaço pra não cortar sombra/scroll */
}

.artist-card, .album-card {
    flex: 0 0 auto; /* impede que eles estiquem */
}

.artist-card:hover , .album-card:hover {
    background-color: #3c3c3c;
    scale: 1.02;
    transition: all 0.3s ease;
}

/* largura da barra de rolagem */
.artist-grid::-webkit-scrollbar,
.albums-grid::-webkit-scrollbar {
    height: 8px; /* como é horizontal, controla a altura */
}

/* fundo da barra */
.artist-grid::-webkit-scrollbar-track,
.albums-grid::-webkit-scrollbar-track {
    background: #1a1a1a; /* cor do fundo */
    border-radius: 10px;
}

/* "thumb" (a parte que arrasta) */
.artist-grid::-webkit-scrollbar-thumb,
.albums-grid::-webkit-scrollbar-thumb {
    background: #303030; /* cor da barrinha */
    border-radius: 10px;
}

/* quando passa o mouse em cima */
.artist-grid::-webkit-scrollbar-thumb:hover,
.albums-grid::-webkit-scrollbar-thumb:hover {
    background: #888;
}
