/* ==========================================================
   RATECORE — style.css (navbar mobile + footer fix)
   ========================================================== */

*{
    box-sizing:border-box;
}

body{
    margin:0;
    background:#090909;
    color:white;
    font-family:'Poppins',sans-serif;
}

a{
    color:inherit;
}

img{
    max-width:100%;
}

/* ===== NAVBAR ===== */

.navbar{
    height:90px;
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    padding:0 70px;
    border-bottom:1px solid rgba(255,255,255,.08);
    background:#090909;
    position:sticky;
    top:0;
    z-index:50;
}

.logo{
    display:flex;
    justify-content:center;
    text-decoration:none;
}

.logo img{
    width:150px;
}

.search-box{
    position:relative;
    display:flex;
    align-items:center;
    gap:8px;
    background:#141414;
    border:1px solid #252525;
    border-radius:8px;
    padding:8px 14px;
    width:fit-content;
    justify-self:start;
}

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

.search-box input::placeholder{
    color:#7d7d7d;
}

.search-box i{
    color:#7d7d7d;
    font-size:13px;
}

nav{
    display:flex;
    align-items:center;
    gap:40px;
    justify-self:end;
}

nav a{
    position:relative;
    color:#bdbdbd;
    text-decoration:none;
    font-size:16px;
    font-weight:500;
    transition:.3s;
}

nav a:hover{
    color:white;
}

nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-8px;
    width:0;
    height:2px;
    background:white;
    transition:.3s;
}

nav a:hover::after{
    width:100%;
}

nav a.active{
    color:white;
}

nav a.active::after{
    width:100%;
}

.menu-toggle{
    display:none;
    background:none;
    border:none;
    color:white;
    font-size:22px;
    cursor:pointer;
    justify-self:end;
    width:26px;
    height:20px;
    position:relative;
    padding:0;
}

.menu-toggle span{
    position:absolute;
    left:0;
    width:100%;
    height:2px;
    background:white;
    border-radius:2px;
    transition:.25s;
}

.menu-toggle span:nth-child(1){ top:0; }
.menu-toggle span:nth-child(2){ top:9px; }
.menu-toggle span:nth-child(3){ top:18px; }

/* ===== BUSCA COM PREVIA ===== */

.search-results{
    display:none;
    position:absolute;
    top:calc(100% + 12px);
    left:0;
    width:320px;
    max-height:360px;
    overflow-y:auto;
    background:#111;
    border:1px solid #252525;
    border-radius:12px;
    padding:10px;
    box-shadow:0 12px 30px rgba(0,0,0,.5);
    z-index:100;
}

.search-results.open{
    display:block;
}

.search-result-item{
    display:flex;
    align-items:center;
    gap:12px;
    padding:8px;
    border-radius:8px;
    text-decoration:none;
    transition:.2s;
}

.search-result-item:hover{
    background:#1c1c1c;
}

.search-result-item img{
    width:46px;
    height:46px;
    object-fit:cover;
    border-radius:4px;
    border:1px solid #333;
}

.search-result-name{
    color:white;
    font-size:13px;
    font-weight:600;
    margin:0 0 2px 0;
}

.search-result-artist{
    color:#7d7d7d;
    font-size:11px;
    margin:0;
}

.search-empty{
    color:#7d7d7d;
    font-size:13px;
    font-style:italic;
    padding:16px 10px;
    margin:0;
    text-align:center;
}

/* ===== TROCA DE IDIOMA + LOGOUT (NAVBAR) ===== */

.lang-toggle{
    background:none;
    border:none;
    cursor:pointer;
    padding:0;
    margin-left:8px;
    transition:.25s;
    width:24px;
    height:16px;
    border-radius:3px;
    overflow:hidden;
}

.lang-toggle img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.lang-toggle:hover{
    transform:scale(1.15);
}

.logout-btn{
    background:none;
    border:1px solid #252525;
    color:#7d7d7d;
    font-size:12px;
    padding:6px 12px;
    border-radius:8px;
    cursor:pointer;
    margin-left:12px;
    transition:.25s;
    font-family:'Poppins',sans-serif;
}

.logout-btn:hover{
    border-color:#f5a623;
    color:#f5a623;
}

/* ===== TROCA DE IDIOMA — LOGIN/CADASTRO ===== */

.page-lang-toggle{
    position:fixed;
    top:24px;
    right:24px;
    background:#1a1a1a;
    border:1px solid #333;
    border-radius:8px;
    width:38px;
    height:38px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.25s;
    overflow:hidden;
    z-index:20;
}

.page-lang-toggle img{
    width:24px;
    height:16px;
    object-fit:cover;
    border-radius:3px;
    display:block;
}

.page-lang-toggle:hover{
    border-color:#f5a623;
    transform:scale(1.08);
}

/* ===== HOME - ALBUM EM DESTAQUE ===== */

.hero-section{
    padding:70px;
}

.hero-eyebrow{
    color:#7d7d7d;
    letter-spacing:3px;
    font-size:13px;
    margin:0 0 24px 0;
    text-transform:uppercase;
}

.hero-album{
    display:grid;
    grid-template-columns:420px 1fr;
    gap:60px;
    align-items:center;
    text-decoration:none;
    padding:40px;
    border:1px solid #1f1f1f;
    border-radius:18px;
    background:linear-gradient(160deg,#111 0%,#0a0a0a 100%);
    transition:.35s;
}

.hero-album:hover{
    border-color:#f5a623;
    box-shadow:0 0 40px rgba(245,166,35,.12);
}

.hero-cover-wrap{
    width:100%;
    aspect-ratio:1/1;
    overflow:hidden;
    border-radius:10px;
    border:1px solid white;
}

.hero-cover-wrap img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform .5s ease;
}

.hero-album:hover .hero-cover-wrap img{
    transform:scale(1.05);
}

.hero-name{
    font-size:44px;
    line-height:1.1;
    margin:0 0 14px 0;
    color:white;
}

.hero-artist{
    color:#f5a623;
    font-size:18px;
    font-weight:600;
    margin:0 0 6px 0;
}

.hero-meta{
    color:#7d7d7d;
    font-style:italic;
    font-size:15px;
    margin:0 0 30px 0;
}

.hero-cta{
    display:inline-flex;
    align-items:center;
    gap:10px;
    width:fit-content;
    padding:14px 30px;
    background:white;
    color:black;
    border-radius:10px;
    font-weight:600;
    font-size:15px;
    transition:.25s;
}

.hero-album:hover .hero-cta{
    transform:scale(1.04);
    background:#f5a623;
}

/* ===== PAGINA DE ALBUM ===== */

.album-page{
    padding:60px 70px;
    display:grid;
    grid-template-columns:380px 1fr 360px;
    gap:60px;
}

.album-cover-box{
    width:100%;
    aspect-ratio:1/1;
    border:1px solid white;
    border-radius:4px;
    overflow:hidden;
}

.album-cover-box img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.tracklist-box h3,
.rating-panel h3{
    color:#7d7d7d;
    letter-spacing:2px;
    font-size:13px;
    margin:0 0 20px 0;
}

.tracklist-box ol{
    list-style:decimal;
    padding-left:20px;
    color:white;
    font-size:15px;
    line-height:2.1;
    margin:0;
}

.tracklist-box ol li{
    color:#e0e0e0;
}

.album-info{
    margin-top:24px;
}

.album-info h1{
    color:#f5a623;
    font-size:26px;
    margin:0 0 6px 0;
}

.album-info p{
    color:#7d7d7d;
    font-style:italic;
    font-size:15px;
    margin:0;
}

/* ===== BOTAO SPOTIFY ===== */

.spotify-btn{
    display:inline-flex;
    align-items:center;
    gap:12px;
    margin-top:30px;
    padding:16px 32px;
    background:#1DB954;
    color:white;
    text-decoration:none;
    border-radius:30px;
    font-weight:600;
    font-size:16px;
    transition:.25s;
    width:fit-content;
}

.spotify-btn:hover{
    background:#1ed760;
    transform:scale(1.03);
}

.spotify-btn svg{
    width:22px;
    height:22px;
    flex-shrink:0;
}

/* ===== PAINEL DE AVALIACAO ===== */

.rating-panel{
    background:#0f0f0f;
    border:1px solid #1f1f1f;
    border-radius:14px;
    padding:28px 22px;
    height:fit-content;
}

.rating-panel .stars{
    flex-wrap:nowrap;
    justify-content:space-between;
    gap:0;
}

.rating-panel .star{
    font-size:22px;
}

.stars{
    display:flex;
    gap:8px;
    cursor:pointer;
}

.star{
    font-size:38px;
    color:transparent;
    -webkit-text-stroke:1.5px #555;
    transition:.2s;
    user-select:none;
}

.star.filled{
    color:#f5a623;
    -webkit-text-stroke:1.5px #f5a623;
    text-shadow:0 0 12px rgba(245,166,35,.55);
}

.star:hover{
    text-shadow:0 0 8px rgba(245,166,35,.35);
}

.rating-feedback{
    margin-top:16px;
    color:#bdbdbd;
    font-size:14px;
}

.rating-feedback span{
    color:white;
    font-weight:600;
}

/* ===== COMPARTILHAR NOTA ===== */

.share-rating{
    display:none;
    margin-top:16px;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.share-rating.visible{
    display:flex;
}

.share-rating-label{
    color:#7d7d7d;
    font-size:12px;
    margin-right:4px;
}

.share-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    border-radius:50%;
    background:#141414;
    border:1px solid #252525;
    color:white;
    text-decoration:none;
    transition:.25s;
}

.share-btn:hover{
    border-color:#f5a623;
    transform:scale(1.08);
}

.share-btn svg{
    width:16px;
    height:16px;
}

/* ===== COMENTARIOS ===== */

.comments-section{
    grid-column:1 / -1;
    margin-top:50px;
    padding-top:40px;
    border-top:1px solid rgba(255,255,255,.08);
}

.comments-header{
    display:flex;
    align-items:center;
    gap:20px;
    margin-bottom:30px;
}

.avg-rating{
    font-size:42px;
    font-weight:700;
    color:#f5a623;
}

.avg-rating span{
    font-size:18px;
    color:#7d7d7d;
    font-weight:400;
}

.comments-count{
    color:#7d7d7d;
    font-size:14px;
}

.comment-form{
    display:flex;
    flex-direction:column;
    gap:12px;
    max-width:600px;
    margin-bottom:40px;
}

.comment-form input,
.comment-form textarea{
    background:#141414;
    border:1px solid #252525;
    color:white;
    border-radius:10px;
    padding:14px 16px;
    font-family:'Poppins',sans-serif;
    font-size:14px;
    transition:.3s;
    resize:none;
}

.comment-form input:focus,
.comment-form textarea:focus{
    border:1px solid white;
    outline:none;
}

.comment-form textarea{
    height:90px;
}

.comment-form button{
    align-self:flex-start;
    padding:12px 28px;
    background:white;
    color:black;
    border:none;
    border-radius:10px;
    font-weight:600;
    cursor:pointer;
    transition:.25s;
}

.comment-form button:hover{
    transform:scale(1.03);
}

.comments-list{
    display:flex;
    flex-direction:column;
    gap:24px;
    max-width:600px;
}

.comment-item{
    padding-bottom:24px;
    border-bottom:1px solid rgba(255,255,255,.06);
}

.comment-top{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:8px;
    flex-wrap:wrap;
}

.comment-author{
    color:white;
    font-weight:600;
    font-size:15px;
}

.comment-author-link{
    text-decoration:none;
    transition:.2s;
}

.comment-author-link:hover .comment-author{
    color:#f5a623;
}

.comment-date{
    color:#7d7d7d;
    font-size:12px;
}

.comment-text{
    color:#bdbdbd;
    font-size:14px;
    line-height:1.6;
}

.comment-avatar{
    width:32px;
    height:32px;
    border-radius:50%;
    object-fit:cover;
    border:1px solid #333;
    flex-shrink:0;
}

.comment-rating-badge{
    background:rgba(245,166,35,.15);
    color:#f5a623;
    font-size:11px;
    font-weight:600;
    padding:2px 8px;
    border-radius:10px;
}

.comment-actions{
    display:flex;
    align-items:center;
    gap:16px;
    margin-top:8px;
}

.like-btn{
    background:none;
    border:none;
    color:#7d7d7d;
    font-size:12px;
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:5px;
    padding:0;
    transition:.2s;
}

.like-btn:hover{
    color:#f5a623;
}

.like-btn.liked{
    color:#f5a623;
}

.like-btn .heart-icon{
    font-size:14px;
}

.comment-reply-btn{
    background:none;
    border:none;
    color:#7d7d7d;
    font-size:12px;
    cursor:pointer;
    margin-top:8px;
    padding:0;
    transition:.2s;
}

.comment-reply-btn:hover{
    color:#f5a623;
}

.reply-form{
    display:none;
    margin-top:12px;
    gap:8px;
    flex-direction:column;
}

.reply-form.open{
    display:flex;
}

.reply-form textarea{
    background:#141414;
    border:1px solid #252525;
    color:white;
    border-radius:8px;
    padding:10px 12px;
    font-family:'Poppins',sans-serif;
    font-size:13px;
    resize:vertical;
    min-height:60px;
}

.reply-form button{
    align-self:flex-start;
    padding:8px 18px;
    background:white;
    color:black;
    border:none;
    border-radius:8px;
    font-weight:600;
    font-size:12px;
    cursor:pointer;
}

.comment-replies{
    margin-top:16px;
    margin-left:24px;
    padding-left:16px;
    border-left:2px solid #1f1f1f;
    display:flex;
    flex-direction:column;
    gap:16px;
}

.load-more-btn{
    display:block;
    width:100%;
    max-width:200px;
    margin:20px auto 0;
    padding:11px;
    background:#141414;
    border:1px solid #252525;
    color:#bdbdbd;
    border-radius:8px;
    font-size:13px;
    cursor:pointer;
    transition:.25s;
    font-family:'Poppins',sans-serif;
}

.load-more-btn:hover{
    border-color:#f5a623;
    color:#f5a623;
}

.no-comments,
.no-ranking,
.no-ranking-data,
.no-acervo{
    color:#7d7d7d;
    font-style:italic;
    font-size:14px;
}

/* ===== PAGINA DE PERFIL ===== */

.profile-page{
    padding:60px 70px;
    display:grid;
    grid-template-columns:280px 1fr;
    gap:80px;
}

.profile-photo-box{
    width:100%;
    aspect-ratio:1/1;
    max-width:280px;
    border:1px solid white;
    border-radius:4px;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#0f0f0f;
}

.profile-photo-box img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.profile-photo-box .placeholder-icon{
    font-size:60px;
    color:#252525;
}

.profile-name{
    color:white;
    font-size:20px;
    font-weight:600;
    text-transform:uppercase;
    margin-top:20px;
}

.profile-member-since{
    color:#7d7d7d;
    font-size:13px;
    margin-top:6px;
}

.profile-stats{
    display:flex;
    gap:40px;
    margin:0 0 50px 0;
    flex-wrap:wrap;
}

.stat-item{
    display:flex;
    flex-direction:column;
    position:relative;
}

.stat-number{
    color:#f5a623;
    font-size:30px;
    font-weight:700;
    line-height:1;
}

.stat-label{
    color:#7d7d7d;
    font-size:12px;
    letter-spacing:1px;
    text-transform:uppercase;
    margin-top:6px;
}

.streak-stat{
    position:relative;
    cursor:default;
}

.streak-stat .stat-number{
    opacity:.35;
    transition:.25s;
}

.streak-stat.active .stat-number{
    opacity:1;
}

.streak-tooltip{
    display:none;
    position:absolute;
    top:calc(100% + 12px);
    left:50%;
    transform:translateX(-50%);
    background:#1a1a1a;
    border:1px solid #333;
    color:white;
    font-size:12.5px;
    padding:12px 16px;
    border-radius:10px;
    width:230px;
    text-align:center;
    line-height:1.6;
    z-index:10;
}

.streak-stat:hover .streak-tooltip{
    display:block;
}

.profile-ranking h3{
    color:#7d7d7d;
    letter-spacing:2px;
    font-size:13px;
    margin:0 0 20px 0;
}

.profile-podium{
    display:flex;
    align-items:flex-end;
    justify-content:center;
    gap:24px;
    flex-wrap:wrap;
    margin-top:10px;
}

.profile-podium-item{
    display:block;
    text-decoration:none;
    border-radius:8px;
    position:relative;
    transition:.3s;
}

.profile-podium-item img{
    display:block;
    object-fit:cover;
    border-radius:8px;
    transition:transform .35s ease, box-shadow .35s ease;
}

.profile-podium-item:hover img{
    transform:scale(1.08);
    box-shadow:0 0 25px rgba(245,166,35,.3);
}

.profile-podium-badge{
    position:absolute;
    top:8px;
    left:8px;
    background:rgba(0,0,0,.75);
    color:#f5a623;
    font-weight:700;
    font-size:13px;
    padding:3px 9px;
    border-radius:6px;
    pointer-events:none;
}

.profile-podium-1 img{
    width:170px;
    height:170px;
    border:2px solid #f5a623;
}

.profile-podium-2 img,
.profile-podium-3 img{
    width:130px;
    height:130px;
    border:1px solid white;
}

.profile-podium-rest{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:16px;
    margin-top:24px;
}

.profile-podium-rest img{
    width:90px;
    height:90px;
    border:1px solid #333;
}

/* ===== EDITAR PERFIL ===== */

.edit-profile-btn{
    background:#141414;
    border:1px solid #252525;
    color:#bdbdbd;
    padding:8px 16px;
    border-radius:8px;
    font-size:12px;
    cursor:pointer;
    margin-top:12px;
    transition:.25s;
    font-family:'Poppins',sans-serif;
}

.edit-profile-btn:hover{
    border-color:#f5a623;
    color:#f5a623;
}

.edit-profile-form{
    display:none;
    margin-top:16px;
    background:#0f0f0f;
    border:1px solid #1f1f1f;
    border-radius:12px;
    padding:20px;
    max-width:280px;
}

.edit-profile-form.open{
    display:block;
}

.edit-profile-form label{
    display:block;
    color:#7d7d7d;
    font-size:12px;
    margin:14px 0 6px;
}

.edit-profile-form label:first-child{
    margin-top:0;
}

.edit-profile-form input[type="text"]{
    width:100%;
    background:#141414;
    border:1px solid #252525;
    color:white;
    border-radius:8px;
    padding:10px 12px;
    font-family:'Poppins',sans-serif;
    font-size:13px;
}

.edit-avatar-grid{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.edit-avatar-option{
    width:44px;
    height:44px;
    border-radius:50%;
    overflow:hidden;
    border:2px solid #252525;
    cursor:pointer;
    transition:.2s;
}

.edit-avatar-option img{
    width:44px;
    height:44px;
    object-fit:cover;
    display:block;
}

.edit-avatar-option.selected{
    border-color:#f5a623;
}

.edit-optin-row{
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:14px;
}

.edit-optin-row input[type="checkbox"]{
    accent-color:#f5a623;
    width:15px;
    height:15px;
    cursor:pointer;
}

.edit-optin-row label{
    margin:0;
    cursor:pointer;
}

.edit-profile-form button[type="submit"]{
    margin-top:16px;
    width:100%;
    padding:11px;
    background:white;
    color:black;
    border:none;
    border-radius:8px;
    font-weight:600;
    font-size:13px;
    cursor:pointer;
}

.edit-profile-feedback{
    margin-top:10px;
    font-size:12px;
}

/* ===== PAGINA DE RANKING ===== */

.ranking-page{
    padding:60px 70px;
}

.ranking-page-title{
    color:white;
    font-size:22px;
    margin-bottom:50px;
}

.podium{
    display:flex;
    align-items:flex-end;
    justify-content:center;
    gap:30px;
    margin-bottom:70px;
    flex-wrap:wrap;
}

.podium-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    text-decoration:none;
}

.podium-item img{
    border-radius:4px;
    object-fit:cover;
    margin-bottom:16px;
}

.podium-1 img{
    width:180px;
    height:180px;
    border:2px solid #f5a623;
}

.podium-2 img,
.podium-3 img{
    width:130px;
    height:130px;
    border:1px solid white;
}

.podium-name{
    color:white;
    font-weight:600;
    font-size:15px;
    margin:0 0 4px 0;
    max-width:180px;
}

.podium-artist{
    color:#7d7d7d;
    font-size:12px;
    font-style:italic;
    margin:0 0 10px 0;
}

.podium-block{
    width:150px;
    background:#141414;
    border:1px solid #252525;
    border-radius:8px 8px 0 0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    padding-top:14px;
}

.podium-1 .podium-block{
    height:140px;
    border-color:#f5a623;
}

.podium-2 .podium-block{
    height:100px;
}

.podium-3 .podium-block{
    height:70px;
}

.podium-position{
    font-size:30px;
    font-weight:700;
    color:#f5a623;
}

.podium-score{
    color:white;
    font-size:14px;
    margin-top:4px;
}

.ranking-rest{
    max-width:700px;
    margin:0 auto;
}

.rest-item{
    display:flex;
    align-items:center;
    gap:18px;
    padding:16px 0;
    border-bottom:1px solid rgba(255,255,255,.06);
    text-decoration:none;
}

.rest-position{
    font-size:18px;
    font-weight:700;
    color:#7d7d7d;
    width:24px;
}

.rest-item img{
    width:55px;
    height:55px;
    object-fit:cover;
    border:1px solid #333;
    border-radius:4px;
}

.rest-item-info{
    flex:1;
    min-width:0;
}

.rest-item-info h4{
    color:white;
    margin:0 0 3px 0;
    font-size:15px;
}

.rest-item-info p{
    color:#7d7d7d;
    margin:0;
    font-size:12px;
}

.rest-score{
    color:white;
    font-weight:600;
    font-size:15px;
}

.ranking-more-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    max-width:320px;
    margin:50px auto 0;
    padding:14px 30px;
    background:white;
    color:black;
    text-decoration:none;
    border-radius:10px;
    font-weight:600;
    font-size:14px;
    transition:.25s;
}

.ranking-more-btn:hover{
    background:#f5a623;
    transform:scale(1.03);
}

/* ===== PAGINA ACERVO ===== */

.acervo-page{
    padding:60px 70px;
}

.acervo-title{
    color:white;
    font-size:22px;
    margin-bottom:36px;
}

.alphabet-nav{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:60px;
}

.alphabet-letter{
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    border:1px solid #252525;
    background:#111;
    color:#3a3a3a;
    font-weight:600;
    font-size:15px;
    text-decoration:none;
    cursor:default;
    transition:.25s;
}

.alphabet-letter.has-albums{
    color:white;
    border-color:#333;
    cursor:pointer;
}

.alphabet-letter.has-albums:hover{
    background:#f5a623;
    color:#090909;
    border-color:#f5a623;
    transform:translateY(-6px) scale(1.08);
    box-shadow:0 8px 20px rgba(245,166,35,.35);
}

.alphabet-letter:not(.has-albums):hover{
    border-color:#3a3a3a;
    transform:translateY(-2px);
}

.acervo-section{
    margin-bottom:56px;
    scroll-margin-top:110px;
}

.acervo-section-letter{
    color:#f5a623;
    font-size:32px;
    font-weight:700;
    margin:0 0 24px 0;
    border-bottom:1px solid #1f1f1f;
    padding-bottom:12px;
}

.acervo-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));
    gap:26px;
}

.acervo-card{
    text-decoration:none;
    display:block;
}

.acervo-cover-wrap{
    position:relative;
    width:100%;
    aspect-ratio:1/1;
    overflow:hidden;
    border-radius:6px;
    border:1px solid #2a2a2a;
    margin-bottom:12px;
    transition:.3s;
}

.acervo-cover-wrap img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform .4s ease;
}

.acervo-card:hover .acervo-cover-wrap{
    border-color:#f5a623;
    box-shadow:0 0 20px rgba(245,166,35,.2);
}

.acervo-card:hover .acervo-cover-wrap img{
    transform:scale(1.08);
}

.acervo-card-name{
    color:white;
    font-size:14px;
    font-weight:600;
    margin:0 0 3px 0;
}

.acervo-card-artist{
    color:#7d7d7d;
    font-size:12px;
    margin:0;
}

.acervo-rating-badge{
    position:absolute;
    top:10px;
    right:10px;
    background:rgba(9,9,9,.8);
    backdrop-filter:blur(4px);
    color:#f5a623;
    font-size:13px;
    font-weight:700;
    padding:4px 10px;
    border-radius:8px;
    box-shadow:0 4px 12px rgba(0,0,0,.4);
}

.acervo-rating-badge.no-votes{
    display:none;
}

/* ===== POPUP DE BOAS-VINDAS ===== */

.welcome-overlay{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.85);
    z-index:200;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.welcome-overlay.open{
    display:flex;
}

.welcome-modal{
    position:relative;
    background:#0f0f0f;
    border:1px solid #252525;
    border-radius:18px;
    max-width:560px;
    width:100%;
    max-height:85vh;
    overflow-y:auto;
    padding:40px 36px;
    animation:welcomeIn .35s ease;
}

@keyframes welcomeIn{
    from{
        opacity:0;
        transform:translateY(20px) scale(.97);
    }
    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }
}

.welcome-lang-toggle{
    position:absolute;
    top:22px;
    right:26px;
    background:#1a1a1a;
    border:1px solid #333;
    border-radius:8px;
    width:38px;
    height:38px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.25s;
    overflow:hidden;
}

.welcome-lang-toggle img{
    width:24px;
    height:16px;
    object-fit:cover;
    border-radius:3px;
    display:block;
}

.welcome-lang-toggle:hover{
    border-color:#f5a623;
    transform:scale(1.08);
}

.welcome-title{
    color:#f5a623;
    font-size:22px;
    margin:0 0 22px 0;
    padding-right:40px;
}

.welcome-text p{
    color:#d5d5d5;
    font-size:14.5px;
    line-height:1.7;
    margin:0 0 16px 0;
}

.welcome-signoff{
    color:white;
    font-weight:600;
}

.welcome-cta{
    display:block;
    width:100%;
    margin-top:10px;
    padding:15px;
    background:white;
    color:black;
    border:none;
    border-radius:12px;
    font-weight:600;
    font-size:15px;
    cursor:pointer;
    transition:.25s;
    text-align:center;
}

.welcome-cta:hover{
    background:#f5a623;
    transform:scale(1.02);
}

/* ===== RODAPE ===== */

.site-footer{
    border-top:1px solid rgba(255,255,255,.08);
    padding:50px 70px 40px;
    margin-top:60px;
}

.footer-columns{
    display:flex;
    justify-content:center;
    align-items:flex-start;
    gap:50px;
    max-width:700px;
    margin:0 auto;
    text-align:center;
}

.footer-col{
    flex:1;
}

.footer-divider{
    color:#333;
    font-size:20px;
    padding-top:2px;
}

.footer-title{
    color:#f5a623;
    font-size:13px;
    letter-spacing:2px;
    text-transform:uppercase;
    margin:0 0 14px 0;
}

.footer-text{
    color:#7d7d7d;
    font-size:13.5px;
    line-height:1.7;
    margin:0;
}

.footer-contact-item{
    margin-bottom:10px;
}

.footer-contact-item:last-child{
    margin-bottom:0;
}

.footer-label{
    color:#7d7d7d;
    font-size:12px;
    display:block;
    margin-bottom:3px;
}

.footer-link{
    color:white;
    text-decoration:none;
    font-size:14px;
    transition:.25s;
}

.footer-link:hover{
    color:#f5a623;
}

/* ===== PAINEL ADMIN ===== */

.admin-page{
    padding:50px 70px;
    max-width:900px;
    margin:0 auto;
}

.admin-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:40px;
}

.admin-title{
    font-size:24px;
    color:white;
    margin:0;
}

.admin-logout{
    background:#141414;
    border:1px solid #252525;
    color:#bdbdbd;
    padding:10px 18px;
    border-radius:8px;
    cursor:pointer;
    font-size:13px;
    transition:.25s;
}

.admin-logout:hover{
    border-color:#f5a623;
    color:white;
}

.admin-section{
    background:#0f0f0f;
    border:1px solid #1f1f1f;
    border-radius:14px;
    padding:30px;
    margin-bottom:30px;
}

.admin-section h3{
    color:#f5a623;
    font-size:15px;
    letter-spacing:1px;
    margin:0 0 24px 0;
    text-transform:uppercase;
}

.admin-form-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
    margin-bottom:16px;
}

.admin-form-row.full{
    grid-template-columns:1fr;
}

.admin-form-row label{
    display:block;
    color:#7d7d7d;
    font-size:12px;
    margin-bottom:6px;
}

.admin-form-row input,
.admin-form-row textarea,
.admin-form-row select{
    width:100%;
    background:#141414;
    border:1px solid #252525;
    color:white;
    border-radius:8px;
    padding:12px 14px;
    font-family:'Poppins',sans-serif;
    font-size:14px;
}

.admin-form-row textarea{
    resize:vertical;
    min-height:90px;
}

.admin-tracklist-input{
    display:flex;
    gap:8px;
    margin-bottom:10px;
}

.admin-tracklist-input input{
    flex:1;
}

.admin-tracklist-remove{
    background:#2a1414;
    border:1px solid #442020;
    color:#ff6b6b;
    width:38px;
    border-radius:8px;
    cursor:pointer;
    font-size:16px;
}

.admin-add-track{
    background:#141414;
    border:1px dashed #333;
    color:#7d7d7d;
    padding:10px;
    width:100%;
    border-radius:8px;
    cursor:pointer;
    font-size:13px;
    margin-bottom:16px;
}

.admin-add-track:hover{
    border-color:#f5a623;
    color:#f5a623;
}

.admin-cover-preview{
    width:100px;
    height:100px;
    border-radius:8px;
    border:1px solid #252525;
    object-fit:cover;
    margin-top:10px;
    display:none;
}

.admin-btn{
    background:white;
    color:black;
    border:none;
    padding:13px 28px;
    border-radius:10px;
    font-weight:600;
    cursor:pointer;
    font-size:14px;
    transition:.25s;
}

.admin-btn:hover{
    background:#f5a623;
    transform:scale(1.02);
}

.admin-btn:disabled{
    opacity:.5;
    cursor:default;
    transform:none;
}

.admin-feedback{
    margin-top:14px;
    font-size:13px;
}

.admin-feedback.success{
    color:#4ade80;
}

.admin-feedback.error{
    color:#ff6b6b;
}

.admin-album-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.admin-album-item{
    display:flex;
    align-items:center;
    gap:14px;
    background:#141414;
    border:1px solid #252525;
    border-radius:10px;
    padding:12px 16px;
}

.admin-album-item img{
    width:44px;
    height:44px;
    object-fit:cover;
    border-radius:6px;
}

.admin-album-item-info{
    flex:1;
}

.admin-album-item-info h4{
    color:white;
    margin:0 0 2px 0;
    font-size:14px;
}

.admin-album-item-info p{
    color:#7d7d7d;
    margin:0;
    font-size:12px;
}

.admin-featured-btn{
    background:#141414;
    border:1px solid #333;
    color:#7d7d7d;
    padding:8px 14px;
    border-radius:8px;
    font-size:12px;
    cursor:pointer;
    transition:.25s;
    white-space:nowrap;
}

.admin-featured-btn.is-featured{
    background:#f5a623;
    border-color:#f5a623;
    color:#090909;
    font-weight:600;
}

/* ===== CADASTRO: GENERO E AVATARES ===== */

.gender-select{
    display:flex;
    gap:12px;
    margin-bottom:20px;
}

.gender-btn{
    flex:1;
    padding:13px;
    background:#141414;
    border:1px solid #252525;
    border-radius:12px;
    color:#bdbdbd;
    font-family:'Poppins',sans-serif;
    font-size:14px;
    font-weight:500;
    cursor:pointer;
    transition:.25s;
}

.gender-btn:hover{
    border-color:#444;
}

.gender-btn.selected{
    background:#1a1a1a;
    border-color:#f5a623;
    color:#f5a623;
}

.avatar-grid{
    display:none !important;
    flex-flow:row wrap !important;
    gap:14px !important;
    margin-bottom:20px !important;
}

.avatar-grid.open{
    display:flex !important;
}

.avatar-option{
    width:90px !important;
    height:90px !important;
    max-width:90px !important;
    min-width:90px !important;
    border-radius:50% !important;
    overflow:hidden !important;
    border:2px solid #252525 !important;
    cursor:pointer !important;
    transition:.25s !important;
    background:#141414 !important;
    flex:0 0 90px !important;
}

.avatar-option img{
    width:90px !important;
    height:90px !important;
    max-width:90px !important;
    object-fit:cover !important;
    display:block !important;
    transform:scale(1.15) !important;
}

.avatar-option:hover{
    border-color:#555 !important;
}

.avatar-option.selected{
    border-color:#f5a623 !important;
    box-shadow:0 0 14px rgba(245,166,35,.4) !important;
}

.email-optin{
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin-bottom:16px;
    padding:14px;
    background:#141414;
    border:1px solid #252525;
    border-radius:10px;
}

.email-optin input[type="checkbox"]{
    margin-top:3px;
    width:16px;
    height:16px;
    accent-color:#f5a623;
    cursor:pointer;
    flex-shrink:0;
}

.email-optin label{
    color:#bdbdbd;
    font-size:13px;
    line-height:1.5;
    cursor:pointer;
}

.optin-email-field{
    display:none;
    margin-bottom:20px;
}

.optin-email-field.open{
    display:block;
}

/* ===== SKELETON DE CARREGAMENTO ===== */

@keyframes skeletonPulse{
    0%, 100%{ opacity:.5; }
    50%{ opacity:.9; }
}

.skeleton{
    background:#161616;
    border-radius:8px;
    animation:skeletonPulse 1.4s ease-in-out infinite;
}

.skeleton-hero{
    display:grid;
    grid-template-columns:420px 1fr;
    gap:60px;
    align-items:center;
    padding:40px;
    border:1px solid #1f1f1f;
    border-radius:18px;
}

.skeleton-hero-cover{
    width:100%;
    aspect-ratio:1/1;
    border-radius:10px;
}

.skeleton-line{
    height:16px;
    margin-bottom:12px;
}

.skeleton-line.wide{ width:70%; height:32px; margin-bottom:20px; }
.skeleton-line.medium{ width:45%; }
.skeleton-line.narrow{ width:30%; }

.skeleton-album-card{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.skeleton-album-cover{
    width:100%;
    aspect-ratio:1/1;
    border-radius:6px;
}

.skeleton-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));
    gap:26px;
}

.skeleton-podium{
    display:flex;
    align-items:flex-end;
    justify-content:center;
    gap:30px;
    margin-bottom:70px;
}

.skeleton-podium-item{
    width:130px;
    height:130px;
    border-radius:4px;
}

/* ==========================================================
   RESPONSIVO
   ========================================================== */

@media (max-width:980px){

    .album-page{
        grid-template-columns:1fr;
    }

    .rating-panel .stars{
        justify-content:flex-start;
        gap:14px;
    }

    .rating-panel .star{
        font-size:28px;
    }

    .profile-page{
        grid-template-columns:1fr;
        gap:40px;
    }

    .hero-album{
        grid-template-columns:1fr;
    }

    .hero-cover-wrap{
        max-width:420px;
        margin:0 auto;
    }

    .hero-name,
    .hero-artist,
    .hero-meta{
        text-align:center;
    }

    .hero-cta{
        margin:0 auto;
    }

    .spotify-btn{
        margin-left:auto;
        margin-right:auto;
    }

    .skeleton-hero{
        grid-template-columns:1fr;
    }

}

@media (max-width:900px){

    .navbar{
        display:flex;
        flex-wrap:wrap;
        justify-content:space-between;
        align-items:center;
        padding:0 24px;
        height:auto;
        min-height:70px;
        padding-top:14px;
        padding-bottom:14px;
    }

    /* Ordem fixa da primeira linha: logo sempre à esquerda, hamburguer sempre à direita */
    .navbar .logo{
        order:1;
    }

    .navbar .menu-toggle{
        order:2;
    }

    .navbar .search-box{
        order:3;
        flex-basis:100%;
    }

    .navbar nav{
        order:4;
        flex-basis:100%;
    }

    .search-box,
    nav{
        overflow:hidden;
        max-height:0;
        opacity:0;
        transition:max-height .35s ease, opacity .3s ease, margin .35s ease;
        margin-top:0 !important;
    }

    .navbar.nav-open .search-box{
        max-height:60px;
        opacity:1;
        margin-top:16px !important;
        display:flex;
    }

    .navbar.nav-open nav{
        max-height:280px;
        opacity:1;
        margin-top:20px !important;
        display:flex;
        flex-direction:column;
        gap:20px;
        padding-bottom:20px;
    }

    .menu-toggle{
        display:block;
    }

    .search-results{
        width:100%;
    }

    .lang-toggle,
    .logout-btn{
        margin-left:0;
        margin-top:6px;
        pointer-events:auto;
        position:relative;
        z-index:5;
    }

    .hero-section,
    .album-page,
    .profile-page,
    .ranking-page,
    .acervo-page,
    .admin-page,
    .site-footer{
        padding-left:24px;
        padding-right:24px;
    }

}

@media (max-width:640px){

    .comments-header{
        flex-direction:column;
        align-items:flex-start;
        gap:6px;
    }

    .podium-1 img,
    .podium-2 img,
    .podium-3 img{
        width:110px;
        height:110px;
    }

    .podium-block{
        width:100px;
    }

    .footer-columns{
        flex-direction:column;
        gap:30px;
        text-align:center;
    }

    .footer-divider{
        display:none;
    }

    .footer-col{
        width:100%;
        text-align:center;
    }

    .footer-contact-item{
        text-align:center;
    }

}

@media (max-width:600px){

    .navbar{
        padding-left:16px;
        padding-right:16px;
    }

    .logo img{
        width:110px;
    }

    .hero-section{
        padding:30px 18px;
    }

    .hero-eyebrow{
        text-align:center;
        font-size:11px;
    }

    .hero-album{
        padding:22px 18px;
        border-radius:14px;
        gap:24px;
    }

    .hero-cover-wrap{
        max-width:100%;
    }

    .hero-name{
        font-size:24px;
    }

    .hero-artist{
        font-size:15px;
    }

    .hero-meta{
        font-size:13px;
        margin-bottom:20px;
    }

    .hero-cta{
        width:100%;
        justify-content:center;
        padding:13px 20px;
        font-size:14px;
    }

    .album-page{
        padding:30px 18px;
        gap:32px;
    }

    .album-cover-box{
        max-width:280px;
        margin:0 auto;
    }

    .album-info h1{
        font-size:21px;
    }

    .tracklist-box ol{
        font-size:14px;
        line-height:1.9;
    }

    .rating-panel{
        padding:20px 16px;
    }

    .rating-panel .star{
        font-size:24px;
    }

    .avg-rating{
        font-size:32px;
    }

    .comment-form{
        max-width:100%;
    }

    .profile-page{
        padding:30px 18px;
        gap:30px;
    }

    .profile-photo-box{
        max-width:160px;
        margin:0 auto;
    }

    .profile-name,
    .profile-member-since{
        text-align:center;
    }

    .profile-stats{
        justify-content:center;
        gap:28px;
        text-align:center;
    }

    .profile-podium-1 img{
        width:130px;
        height:130px;
    }

    .profile-podium-2 img,
    .profile-podium-3 img{
        width:100px;
        height:100px;
    }

    .ranking-page,
    .acervo-page{
        padding:30px 18px;
    }

    .ranking-page-title,
    .acervo-title{
        font-size:19px;
    }

    .podium-1 img,
    .podium-2 img,
    .podium-3 img{
        width:95px;
        height:95px;
    }

    .podium-block{
        width:88px;
    }

    .podium-name{
        font-size:13px;
        max-width:130px;
    }

    .acervo-grid{
        grid-template-columns:repeat(auto-fill, minmax(120px, 1fr));
        gap:16px;
    }

    .alphabet-letter{
        width:36px;
        height:36px;
        font-size:13px;
    }

    .site-footer{
        padding:36px 18px 30px;
    }

    .footer-title{
        font-size:12px;
    }

    .footer-text{
        font-size:13px;
    }

    .welcome-modal{
        padding:28px 22px;
    }

    .welcome-title{
        font-size:19px;
    }

    .avatar-option,
    .avatar-option img{
        width:76px !important;
        height:76px !important;
    }

}

@media (max-width:380px){

    .hero-name{
        font-size:20px;
    }

    .profile-stats{
        gap:20px;
    }

    .stat-number{
        font-size:26px;
    }

    .podium{
        gap:14px;
    }

    .podium-1 img,
    .podium-2 img,
    .podium-3 img{
        width:78px;
        height:78px;
    }

    .podium-block{
        width:74px;
    }

}/* ===== RANKING DE USUARIOS (SEQUENCIA) ===== */

.user-ranking-list{

    max-width:700px;
    margin:0 auto;

}

.user-ranking-item{

    display:flex;
    align-items:center;
    gap:16px;
    padding:14px 0;
    border-bottom:1px solid rgba(255,255,255,.06);
    text-decoration:none;

}

.user-ranking-position{

    font-size:16px;
    font-weight:700;
    color:#f5a623;
    width:32px;

}

.user-ranking-avatar{

    width:44px;
    height:44px;
    border-radius:50%;
    object-fit:cover;
    border:1px solid #333;
    flex-shrink:0;

}

.user-ranking-info{

    flex:1;
    min-width:0;

}

.user-ranking-info h4{

    color:white;
    margin:0;
    font-size:14px;

}

.user-ranking-streak{

    color:#bdbdbd;
    font-size:13px;
    font-weight:600;
    white-space:nowrap;

}