:root {
  --cor-principal: #2E51A2;
  --cor-secundaria: #F5C518;
  --cards: #fff;
  --bordas: #333;

  --texto-normal: #e9e9e9;
  --titulos: #ffffff;

  --ctexto-normal: #222;
  --ctitulos: #111
}

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

body {
    background-color: #000000;
    color: var(--titulos);
    font-family: sans-serif;
    padding-top: 64px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    height: 64px;
    border-bottom: 1px solid var(--bordas);
    overflow: visible;
    z-index: 1000;
    background-color: #000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.navbar .logo {
    width: 85px;
    height: auto;
    transform: scale(1.25);
    transform-origin: left center;
}

.logo {
    height: 95px;
    width: 120px;
    object-fit: contain;
}

.navbar-links {
    display: flex;
    gap: 2px;
    align-items: center;
}

.navbar-links a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 600
}

.rapdexpro-link {
    background-color: var(--cor-principal);
    border-radius: 6px 0 0 6px;
    padding: 8px 14px;
    color: var(--texto-normal);
    text-transform: uppercase;
}

.meu-perfil-link {
    background-color: var(--cor-principal);
    border-radius: 0;
    padding: 8px 14px;
    color: var(--texto-normal);
}

.sair-link {
    background-color: var(--cor-principal);
    border-radius: 0px 6px 6px 0px;
    padding: 8px 14px;
    color: var(--texto-normal);
}

.entrar-link {
    background-color: var(--cor-principal);
    border-radius: 0px 6px 6px 0px;
    padding: 8px 14px;
    color: var(--texto-normal);
}

.navbar > a[href*="pro"] {
    margin-left: 50px;
    font-size: 0.85rem;
    color: var(--cards);
    text-transform: uppercase;
    font-weight: 900;
    background-color: var(--cor-principal);
    border-radius: 3px;
    padding: 3px;
    text-decoration: none;
  }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ── Home ── */
.home-header {
    margin-bottom: 24px;
}

.home-header h1 {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
}

.home-subtitle {
    color: #666;
    margin-top: 4px;
}

.rankings-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 0;
}

.tab {
    padding: 10px 20px;
    text-decoration: none;
    color: #888;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.15s;
    font-size: 0.95rem;
}

.tab:hover {
    color: #e0e0e0;
}

.tab.active {
    color: var(--cor-principal);
    border-bottom-color: var(--cor-principal);
}

.empty-ranking {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}

/* ── Rankings ── */
.rankings-header {
    margin-bottom: 32px;
}

.rankings-header h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.rankings-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.filter-label {
    color: var(--titulos);
    font-size: 0.85rem;
    min-width: 30px;
}

.filter-btn {
    padding: 4px 6px;
    border-radius: 0px;
    border: 1px solid var(--bordas);
    color: var(--texto-normal);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.15s;
}

.filter-btn:hover {
    border-color: var(--cor-principal);
    color: var(--cor-principal);
}

.filter-btn.active {
    background: var(--cor-principal);
    border-color: var(--cor-principal);
    color: var(--cards);
}

.mostrarmais {
    padding: 4px 6px;
    border-radius: 0px;
    border: 1px solid var(--bordas);
    color: var(--ctexto-normal);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.15s;
}

.mostrarmais:hover {
    border-color: var(--cor-principal);
    color: var(--cor-principal);
}

.mostramais.active {
    background: var(--cor-principal);
    border-color: var(--cor-principal);
    color: var(--cards);
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.ranking-item:hover {
    background: #1a1a1a;
}

.ranking-position {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--cor-secundaria);
    min-width: 28px;
    text-align: right;
}

/* ── Ranking Grid ── */
.ranking-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    align-items: start;
}

.ranking-grid-item {
    text-decoration: none;
    color: inherit;
    display: grid;
    grid-template-rows: 1fr auto;
    position: relative;
    min-width: 0;
}

.ranking-grid-item:hover .ranking-grid-cover {
    opacity: 0.8;
    transform: scale(1.02);
    transition: all 0.2s;
}

.ranking-grid-cover {
    width: 100%;
    height: 100%; 
    aspect-ratio: unset; 
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.ranking-grid-position {
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.75);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 0px;
    position: absolute;
    z-index: 2;
}

.ranking-grid-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 5px;
    min-height: unset;
}


.ranking-grid-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.1;
    
    word-break: break-word;
    font-family:  sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--cards);
}

.ranking-grid-artist {
    font-size: 0.78rem;
    color: #e2e2e2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-cover-wrapper {
    position: relative;
    width: 100%;
}

.ranking-cover-wrapper .ranking-grid-cover {
    width: 100%;
    display: block;
}

.ranking-grid-score {
    position: absolute;
    bottom: 6px;
    left: 6px;
    font-size: 0.75rem;
    color: #fff;
    font-weight: 700;
    background: rgba(0,0,0,0.75);
    border-radius: 4px;
    padding: 2px 6px;
}


.ranking-grid-user-score {
    position: absolute;
    bottom: 6px;
    right: 6px;
    font-size: 0.75rem;
    color: #fff;
    font-weight: 700;
    background: var(--cor-principal);
    border-radius: 4px;
    padding: 2px 6px;
}


/* ── Artista ── */
.artist-header {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 3px;
}

.artist-photo {
    flex-shrink: 0;
    width: 150px;
    border-radius: 5px;
    object-fit: cover;
    border: 3px solid #2a2a2a;
    display: block;
}

.artist-info h1 {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.artist-country {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.artist-bio {
    color: #aaa;
    line-height: 1.6;
    max-width: 600px;
}

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

.album-cover-wrapper {
    position: relative;
    width: 100%;
}

.album-cover-wrapper .album-cover {
    width: 100%;
    display: block;
}

.album-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.album-card:hover .album-cover {
    opacity: 0.8;
    transform: scale(1.02);
    transition: all 0.2s;
}

.album-cover {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0px;
    border-radius: 10px;
}

.album-cover-placeholder {
    background: #2a2a2a;
    border-radius: 0px;
}

.album-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.album-title {
    font-size: 0.9rem;
    font-weight: bold;
}

.album-year {
    font-size: 0.8rem;
    color: #888;
}

.album-cover-score {
    position: absolute;
    bottom: 6px;
    left: 6px;
    font-size: 0.75rem;
    color: #fff;
    font-weight: 700;
    background: rgba(0,0,0,0.75);
    border-radius: 4px;
    padding: 2px 6px;
}

.album-cover-user-score {
    position: absolute;
    bottom: 6px;
    right: 6px;
    font-size: 0.75rem;
    color: #fff;
    font-weight: 700;
    background: var(--cor-principal);
    border-radius: 4px;
    padding: 2px 6px;
}

/* ── Página de Álbum ── */
.album-page {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.album-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 36px;
    align-items: start;
}

.album-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.album-cover-fixed {
    width: 100%;
    border-radius: 10px;
    display: block;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* ── Album Rating Card ─────────────────────────────────── */
.album-rating-card {
    display: flex;
    border-radius: 5px;
}

.arc-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 16px;
    gap: 4px;
    flex: 1;
    align-items: center;
}

.arc-col-label {
    font-size: 0.58rem;
    letter-spacing: 1px;
    color: var(--texto-normal);
    font-weight: 700;
    padding: 3px;
}

.arc-col-score {
    font-family: sans-serif;
    font-size: 1rem;
    line-height: 1;
    font-weight: 700;
    padding: 5px;
    border-radius: 10px;
    background-color: #7c97d6;
}


.arc-col-sub {
    font-size: 0.72rem;
    color: var(--texto-normal);
}

.carc-col-score {
    display: none;
}

.arc-rank-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}

.arc-rank-link:hover {
    color: var(--cor-principal);
}

/* scores */
.arc-score-community { color: var(--ctexto-normal); }
.arc-score-user      { color: var(--ctexto-normal); }

/* ── Botões ────────────────────────────────────────────── */
.btn-arc-update {
    color: var(--ctexto-normal);
    border: none;
    font-size: 0.7rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    padding: 5px;
    border-radius: 10px;
    background-color: #7c97d6;
}
.btn-arc-update:hover { background: #a93226; }

.btn-arc-share {
    background: #1e1e1e;
    color: #888;
    border: 1px solid #2a2a2a;
    border-radius: 5px;
    padding: 7px 14px;
    font-size: 0.8rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    transition: color 0.2s, border-color 0.2s;
}
.btn-arc-share:hover { color: #ccc; border-color: #444; }

/* ── Modal de atualizar nota ───────────────────────────── */
.arc-modal-inline {
    width: 100%;
}

.arc-modal-inline .arc-modal {
    max-width: 100%;
    box-sizing: border-box;
    box-shadow: none;
    padding: 10px;
}


.arc-modal {
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.arc-modal-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--titulos);
    font-weight: 700;
    text-align: center;
}

.arc-nota-label {
    font-size: 0.9rem;
    color: var(--texto-normal);
    font-weight: 600;
    text-align: center;
}

.arc-modal-stars i.active,
.arc-modal-stars i:hover {
    color: #ffffff;
}

.arc-modal-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.arc-input {
    flex: 1;
    background: #0f0f0f;
    border-radius: 10px;
    color: #fff;
    font-size: 1.4rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    padding: 6px 9px;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
    -moz-appearance: textfield;
}
.arc-input:focus { border-color: var(--cor-principal); }
.arc-input::-webkit-outer-spin-button,
.arc-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.arc-modal-form .btn {
    background: var(--cor-principal);
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    border-radius: 4px;
    padding: 12px 18px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.arc-modal-form .btn:hover { background: var(--cor-principal); }

.arc-modal-remove {
    background: none;
    border: none;
    color: #555;
    font-size: 0.75rem;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    transition: color 0.2s;
}
.arc-modal-remove:hover { color: #c0392b; }

.arc-modal-cancel {
    background: none;
    border: none;
    color: #444;
    font-size: 0.75rem;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}
.arc-modal-cancel:hover { color: #888; }

.btn-salvar {
    background: var(--cor-principal);
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    border-radius: 0px;
    padding: 6px 9px;
    transition: background 0.2s;
}
.btn-salvar:hover { background: var(--cor-principal); }

/* ── Login CTA ─────────────────────────────────────────── */
.arc-login-cta {
    color: var(--cor-principal);
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    width: 100%;
}

.arc-login-cta:hover { text-decoration: underline; }


/* header do álbum */
.album-right {
    min-width: 0;
}

.album-header {
    min-height: 160px;
    border-radius: 0px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    margin-bottom: 10px;
}

.album-header-content {
    padding: 28px 24px;
    color: white;
}

.album-artist-name {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.album-artist-name a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 600;
}

.album-artist-name a:hover {
    color: #ff4444;
}

.albumpage-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.album-extra {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.album-tracks-section {
    margin-bottom: 40px;
}

.album-reviews-full {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #2a2a2a;
}

/* tracklist */

.section-label {
    font-size: 15px;
    font-weight: 700;
    padding: 10px 0px;
}

.tracklist {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.track-item {
    background: #17181d00;
    border: 1px solid #202125;
    border-radius: 0px;
    padding: 10px 15px;
    transition: border-color 0.15s;
}

.track-item:hover {
    border-color: #3a3f4a;
}

.track-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.track-number {
    color: #f8f8f8;
    font-size: 0.85rem;
    min-width: 20px;
    text-align: right;
    flex-shrink: 0;
}

.track-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e0e0e0;
    flex: 1;
}

.track-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.track-avg {
    font-size: 0.8rem;
    color: #555;
    min-width: 36px;
    text-align: right;
}

.track-user-score {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--cor-principal);
}

.track-add-btn, .track-edit-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    color: var(--texto-normal);
    text-decoration: underline;
}

.track-add-btn:hover, .track-edit-btn:hover {
    color: var(--cor-principal);
}

.track-form-area {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.track-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.track-form-input {
    width: 80px;
    padding: 6px 8px;
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 0px;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.review-card {
    background: #1a1a1a00;
    border: 1px solid #292929;
    border-radius: 0px;
    padding: 10px;
    margin-bottom: 0px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

/* ── Avaliação ── */
.user-rating-block {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-rating-info {
    color: #aaa;
    font-size: 0.9rem;
}

.user-rating-value {
    color: var(--cor-principal);
    font-size: 1.1rem;
}

.rating-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-input {
    padding: 4px 5px;
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 3px;
    color: #e0e0e0;
    font-size: 1rem;
}

.track-form-area {
    padding: 6px;
    background: #111;
    border-top: 1px solid #1e1e1e;
}

.track-score-options {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
}

.track-score-btn {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid #2a2a2a;
    background: #1a1a1a;
    color: #888;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    font-family: 'DM Sans', sans-serif;
}

.track-score-btn:hover {
    border-color: var(--cor-principal);
    color: #fff;
}

.track-score-btn.active {
    background: var(--cor-principal);
    border-color: var(--cor-principal);
    color: #000;
}

.track-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.track-form-salvar {
    background: var(--cor-principal);
    color: #000;
    border: none;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: opacity 0.2s;
}

.track-form-salvar:hover { opacity: 0.85; }

.track-form-remover {
    background: none;
    border: none;
    color: #555;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: underline;
    font-family: 'DM Sans', sans-serif;
    transition: color 0.2s;
}

.track-form-remover:hover { color: #c0392b; }

.track-form-cancelar {
    background: none;
    border: none;
    color: #444;
    font-size: 0.75rem;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: color 0.2s;
}

.track-form-cancelar:hover { color: #888; }

/* ── Reviews ── */

.reviews-header {
    margin-bottom: 20px;
}

.review-form-block {
    background: #0f0f0f;
    border: 1px solid #1e1e1e;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 24px;
}

.review-textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #2a2a2a;
    color: #e0e0e0;
    font-size: 0.95rem;
    font-family: 'DM Sans', sans-serif;
    resize: none;
    outline: none;
    padding: 4px 0;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.review-textarea::placeholder { color: #444; }

.review-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.char-counter {
    font-size: 0.75rem;
    color: #555;
}

.review-form-block .review-submit-btn,
.review-card-own .review-submit-btn {
    background: var(--cor-principal);
    color: #000;
    border: none;
    border-radius: 4px;
    padding: 7px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: opacity 0.2s;
}

.review-submit-btn:hover { opacity: 0.85; }

.review-login-cta {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.review-login-cta a { color: var(--cor-principal); }

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

.review-card {
    padding: 16px;
}

.review-card-own {
    background: #0d0d0d;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}

.review-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.review-card-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.review-avatar-placeholder {
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #888;
}

.review-username-own {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--cor-principal);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.review-date {
    font-size: 0.75rem;
    color: #444;
    display: block;
}

.review-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-action-btn {
    background: none;
    border: none;
    font-size: 0.78rem;
    color: #555;
    cursor: pointer;
    text-decoration: underline;
    font-family: 'DM Sans', sans-serif;
    transition: color 0.2s;
    padding: 0;
}

.review-action-btn:hover { color: #aaa; }

.review-action-danger:hover { color: #c0392b; }

.username-review {
    color: var(--titulos);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}

.username-review:hover { color: var(--cor-principal); }

.review-text {
    color: var(--texto-normal);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ── Modal ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-box {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 0px;
    padding: 32px;
    max-width: 380px;
    width: 90%;
    text-align: center;
}

.modal-text {
    font-size: 1rem;
    margin-bottom: 24px;
    color: #e0e0e0;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* ── Perfil ── */
.perfil-header {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 3px;
    margin-bottom: 5px;
}

.perfil-avatar {
    flex-shrink: 0;
    width: 150px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    object-fit: cover;
    border: 3px solid #2a2a2a;
    display: block;
}

.avatar-placeholder {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 5px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: #555;
}

.perfil-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.perfil-info-top {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.perfil-info-top h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e0e0e0;
}

.perfil-stats-row {
    display: flex;
    gap: 5px;
    align-items: center;
}

.perfil-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #2a2a2a;
    padding: 5px;
    border-radius: 3px;
    border: 1px solid #333;
}

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

.perfil-stat-item strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e0e0e0;
}

.perfil-stat-item span {
    font-size: 0.8rem;
    color: #888;
}

.perfil-bio {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 400px;
}

/* autocomplete */

#user-autocomplete {
    position: absolute;
    top: auto;
    left: 0;
    right: 0;
    z-index: 100;
    margin-bottom: 4px;
}

.autocomplete-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 0px;
    margin-top: 4px;
    z-index: 999;
    max-height: 320px;
    overflow-y: auto;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 7px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.autocomplete-item:hover {
    background: #2a2a2a;
}

.autocomplete-foto {
    width: 36px;
    height: 36px;
    border-radius: 0px;
    object-fit: cover;
    flex-shrink: 0;
}

.autocomplete-foto-placeholder {
    background: #333;
}

.autocomplete-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.autocomplete-nome {
    font-size: 0.9rem;
}

.autocomplete-tipo {
    font-size: 0.75rem;
    color: #888;
}

/* botões de ação */
.perfil-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-seguir {
    background: var(--cor-principal);
    color: white;
    border: none;
    padding: 6px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-seguir:hover {
    background: var(--cor-secundaria);
}

.btn-seguindo {
    background: #2a2a2a;
    color: #aaa;
    border: 1px solid #333;
    padding: 6px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-seguindo:hover {
    background: #3a1a1a;
    color: var(--cor-principal);
    border-color: var(--ctexto-normal);
}

.btn-editar-perfil {
    background: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #333;
    padding: 6px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}

.btn-editar-perfil:hover {
    background: #333;
}

.badge-pro {
    background-color: var(--cor-principal);
    padding: 3px;
    font-weight: 700;
    font-size: 10px;
    border-radius: 50%;
}

.perfil-tabs {
    display: flex;
    border-bottom: 1px solid #1e1e1e;
    margin-bottom: 50px;
}

.perfil-tab {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.perfil-tab:hover { color: #ccc; }

.perfil-tab.active {
    color: #fff;
    border-bottom: 2px solid var(--cor-principal);
}

.perfil-favoritos {
    display: flex;
    flex-direction: row;
    gap: 12px;
    min-width: 70px;
}

.fav-card {
    position: relative;
    width: 120px;
}

.fav-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.fav-card-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.fav-card-info {
    padding: 4px 0;
}

.fav-card-title {
    font-size: 0.8rem;
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fav-card-sub {
    font-size: 0.72rem;
    color: #666;
}

.fav-card-empty {
    width: 120px;
    height: 120px;
    background: #1a1a1a;
    border: 1px dashed #2a2a2a;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fav-card-empty-label {
    font-size: 0.72rem;
    color: #444;
    text-align: center;
}

.fav-add-btn {
    background: none;
    border: none;
    color: #555;
    font-size: 0.72rem;
    cursor: pointer;
    padding: 4px 0;
    font-family: 'DM Sans', sans-serif;
    transition: color 0.2s;
}

.fav-add-btn:hover { color: var(--cor-principal); }

.fav-modal-box {
    background: #1a1a1a;
    border-radius: 6px;
    padding: 24px;
    width: 340px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fav-modal-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    font-weight: 700;
    margin: 0;
}

/* SEMANINHA */

.semaninha-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.semaninha-controls {
    display: inline;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.semaninha-controls select,
.semaninha-controls .btn {
    height: 34px !important;
    padding: 0 12px !important;
    font-size: 0.85rem !important;
    box-sizing: border-box;
    line-height: 34px;
}

.semaninha-controls select {
    padding-right: 28px !important;
}

.semaninha-controls select {
    background: #111;
    border: 1px solid #2a2a2a;
    color: #ccc;
    border-radius: 4px;
    padding: 7px 10px;
    font-size: 0.85rem;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
    transition: border-color 0.2s;
}

.semaninha-controls select:focus {
    outline: none;
    border-color: var(--cor-principal);
}

.semaninha-controls .btn {
    background: var(--cor-principal);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 7px 9px;
    font-size: 0.85rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    width: auto;
}

.semaninha-controls .btn:hover {
    opacity: 0.85;
}

.semaninha-preview {
    min-height: 60px;
}

.semaninha-img {
    max-width: 100%;
    border-radius: 6px;
    display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* álbuns avaliados */
.perfil-section {
    margin-bottom: 48px;
}

.perfil-section h2 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.ratings-carousel-cover-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.ratings-carousel-cover-wrapper .ratings-carousel-cover {
    width: 100%;
    height: 100%;
}

.ratings-carousel-score {
    position: absolute;
    bottom: 6px;
    right: 6px;
    font-size: 0.78rem;
    color: var(--titulos);
    font-weight: 700;
    background: rgba(0,0,0,0.75);
    border-radius: 4px;
    padding: 2px 6px;
}

.ratings-carousel-wrapper {
    position: relative;
}

.ratings-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 8px;
}

.ratings-carousel::-webkit-scrollbar {
    display: none;
}

.ratings-carousel-item {
    flex-shrink: 0;
    width: 140px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 6px;

}

.ratings-carousel-cover {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 4px 4px 0px 0px;
    display: block;
}

.ratings-carousel-placeholder {
    width: 140px;
    height: 140px;
    background: #2a2a2a;
    border-radius: 4px;
}

.ratings-carousel-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 5px;
}

.ratings-carousel-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ratings-carousel-artist {
    font-size: 0.75rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-arrow {
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-70%);
    background: #1a1a1a;
    border: 1px solid #333;
    color: #ccc;
    font-size: 1.8rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}

.carousel-arrow:hover {
    background: #2a2a2a;
    color: #fff;
}

.carousel-arrow-left {
    left: -16px;
    right: auto;
}


/* ── Busca ── */
.search-wrapper {
    position: relative;
    flex: 1;
    margin-right: 10px;
}

.search-form {
    display: flex;
    gap: 0;
}

.search-input {
    width: 100%;
    padding: 8px 14px;
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 6px 0 0 6px;
    color: #e0e0e0;
    font-size: 0.9rem;
    outline: none;
}

.search-input:focus {
    border-color: var(--cor-principal);
}

.search-btn {
    padding: 8px 12px;
    background: var(--cor-principal);
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 0.9rem;
}

/* resultados */
.search-results-header {
    margin-bottom: 32px;
}

.search-section {
    margin-bottom: 40px;
}

.search-section h2 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: #aaa;
}

.search-artists-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.search-artist-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    width: 100px;
}

.search-artist-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.search-artist-name {
    font-size: 0.85rem;
    text-align: center;
}

/* SEGUIDORES */
.seguidores-page {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 16px;
}

.seguidores-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 0;
    padding-bottom: 16px;
}

.seguidores-back {
    color: #888;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.2s;
}

.seguidores-back:hover { color: #fff; }

.seguidores-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.seguidores-tabs {
    display: flex;
    border-bottom: 1px solid #1e1e1e;
    margin-bottom: 8px;
}

.seguidores-tab {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.seguidores-tab:hover { color: #ccc; }

.seguidores-tab.active {
    color: #fff;
    border-bottom: 2px solid var(--cor-principal);
}

.seguidores-lista {
    display: flex;
    flex-direction: column;
}

.seguidores-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 8px;
    border-bottom: 1px solid #1a1a1a;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
    border-radius: 6px;
}

.seguidores-item:hover { background: #111; }

.seguidores-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.seguidores-avatar-placeholder {
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #888;
}

.seguidores-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.seguidores-username-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.seguidores-username {
    font-weight: 600;
    font-size: 0.95rem;
}

.seguidores-bio {
    font-size: 0.82rem;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* EDITAR PERFIL */

.auth-container {
    max-width: 420px;
    margin: 60px auto;
    background: var(--ctexto-normal);
    padding: 20px;
    border-radius: 5px;
    border: 1px solid var(--bordas);
}

.auth-container h1 {
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-input {
    padding: 10px 14px;
    background: var(--bordas);
    border: 1px solid #000000;
    border-radius: 0px;
    color: var(--texto-normal);
    font-size: 1rem;
}


.form-error {
    color: var(--cor-principal);
    font-size: 0.85rem;
}

.btns {
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 8px;
}

.btn-primary {
    background-color: var(--cor-principal);
    color: var(--texto-normal);
}

.btn-cancelar {
    padding: 10px 10px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 8px;
    color: var(--texto-normal);
    text-decoration: underline;
}

.flash-messages {
    padding: 0 32px;
}

.flash {
    padding: 12px 16px;
    margin: 8px 0;
    border-radius: 0px;
}

.flash-success { background: #1a3a1a; color: #4caf50; }
.flash-danger  { background: #3a1a1a; color: #ff4444; }
.flash-info    { background: #1a2a3a; color: #64b5f6; }

/* ── Admin ── */
.admin-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.admin-sidebar {
    width: 180px;
    flex-shrink: 0;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 0px;
    padding: 20px;
    position: sticky;
    top: 20px;
}

.admin-sidebar-title {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-nav-link {
    padding: 8px 12px;
    border-radius: 0px;
    text-decoration: none;
    color: #aaa;
    font-size: 0.9rem;
    transition: all 0.15s;
}

.admin-nav-link:hover {
    background: #2a2a2a;
    color: #e0e0e0;
}

.admin-nav-link.active {
    background: #ff4444;
    color: white;
}

.admin-content {
    flex: 1;
    min-width: 0;
}

.admin-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.admin-stat-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 0px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 100px;
}

.admin-stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--cor-principal);
}

.admin-stat-label {
    font-size: 0.8rem;
    color: #888;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th {
    text-align: left;
    padding: 10px 12px;
    color: #666;
    border-bottom: 1px solid #2a2a2a;
    font-weight: normal;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #1a1a1a;
}

.admin-table tr:hover td {
    background: #1a1a1a;
}

.badge {
    padding: 2px 8px;
    border-radius: 0px;
    font-size: 0.78rem;
}

.badge-green {
    background: #1a3a1a;
    color: #4caf50;
}

.badge-gray {
    background: #2a2a2a;
    color: #888;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}


/* ── Footer ── */
.footer {
    background: #111;
    border-top: 1px solid #2a2a2a;
    margin-top: 80px;
    padding: 48px 32px 24px;
}

.logo-footer {
    height: 120px;
    width: auto;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

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

.footer-tagline {
    color: #666;
    font-size: 0.85rem;
}

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

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

.footer-col-title {
    color: #666;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.footer-col a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s;
}

.footer-col a:hover {
    color: var(--cor-principal);
}

.footer-bottom {
    max-width: 1100px;
    margin: 32px auto 0;
    padding-top: 20px;
    
    color: #444;
    font-size: 0.8rem;
}

/* ── Legal pages ── */
.legal-content h2 {
    font-size: 1.1rem;
    margin: 28px 0 10px;
    color: #e0e0e0;
}

.legal-content p {
    color: #aaa;
    line-height: 1.7;
    margin-bottom: 8px;
}

/* ── Rating Card (html2canvas) ── */
#rating-card-source {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 1080px;
    height: 1080px;
    overflow: hidden;
    background: #000;
    border-radius: 32px;
    border: 2px solid #646464;
    padding: 60px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0px;
    font-family: 'DM Sans', sans-serif;
}

.rc-header {
    display: flex;
    align-items: center;
    gap: 24px;
    max-height: 100px;
}

.rc-logo {
    width: 400px;
    height: auto;
    flex-shrink: 0;
}

.rc-header-line {
    flex: 1;
    height: 1px;
    background: #969696;
}


.rc-body {
    display: flex;
    gap: 70px;
    flex: 1;
    align-items: center;
}

.rc-left {
    flex: 0 0 auto;
    width: 520px;
}

.rc-cover-img {
    width: 560px;
    height: 560px;
    object-fit: cover;
    border-radius: 18px;
    filter: saturate(1.2) contrast(1.05) brightness(1.02);
}

.rc-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.rc-score-area {
    padding-bottom: 40px;
}


#rc-score-text {
    font-size: 160px;
    font-weight: 800;
    color: var(--cor-principal);
    line-height: 1;
    display: block;
    letter-spacing: -6px;
}

.rc-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 35px;
}

.rc-block-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--texto-normal);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.rc-block-value {
    font-size: 36px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.1;
    word-break: break-word;
}

.rc-block-artist {
    font-size: 20px;
    font-weight: 600;
    color: #696969;
    line-height: 1.1;
    word-break: break-word;
}

/* ── Pro ── */
.pro-page {
    max-width: 700px;
    margin: 0 auto;
}

.pro-hero {
    text-align: center;
    padding: 40px 0 32px;
}

.pro-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.pro-subtitle {
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.pro-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--cor-principal);
}

.pro-price span {
    font-size: 1rem;
    color: #888;
    font-weight: normal;
}

.pro-features {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
}

.pro-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 5px 6px;
}

.pro-feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    padding: 3px;
    color: var(--cor-principal);
}

.pro-feature-card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.pro-feature-card p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
}

.pro-cta {
    text-align: center;
    
}

.pro-assinar-btn {
    width: auto;
    padding: 14px 40px;
    font-size: 1.1rem;
}

.pro-cta-note {
    color: #666;
    font-size: 0.85rem;
   
}

.pro-active-box {
    background: #004cff31;
    border: 1px solid var(--cor-principal);
    border-radius: 10px;
    padding: 24px;
    color: var(--texto-normal);
}

#profile-card-source {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 800px;
    height: 450px;
    overflow: hidden;
    background: #0a0a0a;
    border-radius: 16px;
}

/* ── Song Ratings ── */
.song-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 16px;
    border-radius: 6px;
    transition: background 0.15s;
}

.song-item:hover {
    background: #1a1a1a;
}

.song-rating-area {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.song-avg-rating {
    font-size: 0.8rem;
    color: #666;
    min-width: 32px;
    text-align: right;
}

.song-user-score {
    font-size: 0.85rem;
    color: var(--cor-principal);
    font-weight: bold;
}

.song-rating-form {
    display: flex;
    align-items: center;
    gap: 4px;
}

.song-rating-input {
    width: 56px;
    padding: 4px 6px;
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 0px;
    color: #e0e0e0;
    font-size: 0.8rem;
}

.char-counter {
    display: block;
    text-align: right;
    font-size: 0.78rem;
    color: #666;
    margin-top: 4px;
    margin-bottom: 8px;
}

/* google */

.btn-google {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: white;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.15s;
    width: 100%;
    justify-content: center;
}

.btn-google:hover {
    background: #f5f5f5;
}

/* ── Páginas de erro ── */
.error-page {
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.error-code {
    font-size: 6rem;
    font-weight: 900;
    color: #ff4444;
    line-height: 1;
    opacity: 0.8;
}

.error-page h1 {
    font-size: 1.8rem;
    color: #e0e0e0;
}

.error-page p {
    color: #888;
    font-size: 1rem;
    max-width: 400px;
}

.search-mobile { display: none; }

@media (max-width: 768px) {

    /* header */

    .navbar {
        padding: 0 16px;
    }

    .logo {
        height: 55px;
        width: auto;
    }

    .navbar-links {
        gap: 4px;
    }

    .nav-text {
        display: none;
    }

    .rapdexpro-link,
    .meu-perfil-link,
    .sair-link {
        padding: 8px 10px;
        font-size: 14px;
    }

    .rapdexpro-link { border-radius: 6px 0 0 6px; }
    .sair-link { border-radius: 0 6px 6px 0; }

    .entrar-link {
        font-size: 12px;
        padding: 8px 10px;
    }

    .search-desktop { display: none; }
    .search-mobile  { display: flex; }

    .search-btn-icon {
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background 0.2s;
    }

    .search-btn-icon:hover {
        background: rgba(255,255,255,0.08);
    }

    #search-expanded {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: #000;
        border-bottom: 1px solid #1a1a1a;
        padding: 12px 32px;
        z-index: 999;
    }

    .search-form-expanded {
        display: flex;
        align-items: center;
        gap: 8px;
        max-width: 600px;
        margin: 0 auto;
    }

    .search-input-expanded {
        flex: 1;
        background: #111;
        border: 1px solid #2a2a2a;
        border-radius: 6px;
        color: #e0e0e0;
        font-size: 0.95rem;
        padding: 10px 14px;
        outline: none;
        font-family: 'DM Sans', sans-serif;
    }

    .search-input-expanded:focus {
        border-color: #444;
    }
    
    .rapdexpro-link .meu-perfil-link .sair-link {
        font-size: 10px;
        padding: 4px 7px;
    }

  /* tabs BRASIL / GLOBAL */

    .filter-btn {
        padding: 4px 12px;
    }

  .rankings-tabs {
    gap: 0;
  }

  .tab {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  /* RANKING HOME */

  .ranking-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }

  .ranking-grid-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 5px;
    min-height: unset;
    }

    .ranking-grid-score {
        font-weight: 900;
    }

    .container {
        padding: 20px 10px;
    }

  /* ── ARTISTA ─────────────────────────────────────────────*/
  .artist-header {
    flex-direction: row;
    margin-bottom: 32px;
    padding: 3px;
  }

  .artist-photo {
    width: 130px;
    height: 130px;
  }

  .artist-info h1 {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--titulos);
  }

  .artist-country {
    display: flex;
}

.album-card {
    display: grid;
    grid-template-rows: 1fr auto;
    position: relative;
    min-width: 0;
}

.album-cover {
    aspect-ratio: unset; 
    display: block;
}

.album-card-info {
    padding: 5px;
    min-height: unset;
}

  /* ALBUM PAGE */

   .album-page {
        max-width: none;
        width: 100%;
        margin: 0 !important; 
        padding: 0 !important;
    }


  .album-layout {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
  }

   .album-left,
    .album-right {
        display: contents;
    }

  .album-cover-fixed {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    order: 1;
}

  .album-header {
    border-radius: 0;
    width: 100%;
    border-radius: 5px;
    height: auto !important;
    min-height: unset !important;
    margin-bottom: 0px;
    order: 2;
  }

  .albumpage-title {
    font-size: 26px;
  }

  .album-header-content {
    padding: 24px 16px 20px;
  }

  .album-rating-card {
    order: 3;
    width: 100%;
  }

  .arc-modal-inline {
        order: 4;
    }


.arc-col {
    padding: 10px 10px;
    gap: 2px;
}

  .arc-col-score {
    font-size: 0.8rem;
    line-height: 1;
    font-weight: 700;
    padding: 5px;
}

.btn-arc-share:hover { color: #ccc; border-color: #444; }

  /* tracklist */
    .tracklist {
        gap: 0px;
    }

  .album-tracks-section {
    padding: 0px;
    order: 5;
    width: 100%;
  }

  .track-item {
    padding: 10px 10px;
}

  .track-title {
    font-size: 0.88rem;
    font-weight: 900;
  }

  .track-number {
    font-size: 0.8rem;
    min-width: 0px;
  }


    /* perfil */

     .perfil-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px;
        gap: 16px;
    }

    .perfil-avatar {
        width: 100px;
    }

    .perfil-info {
        align-items: center;
        width: 100%;
    }

    .perfil-info-top {
        justify-content: center;
    }

    .perfil-info-top h1 {
        font-size: 1.2rem;
    }

    .perfil-stats-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    .perfil-stat-item {
        min-width: 60px;
        padding: 4px 8px;
    }

    .perfil-stat-item strong {
        font-size: 0.95rem;
    }

    .perfil-stat-item span {
        font-size: 0.7rem;
    }

    .perfil-bio {
        max-width: 100%;
        text-align: center;
        font-size: 0.85rem;
    }

    .perfil-favoritos {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }

    .fav-card {
        width: 120px;
    }

    .fav-card-img {
        width: 120px;
        height: 120px;
    }

    .fav-card-empty {
        width: 120px;
        height: 120px;
    }

    .search-wrapper {
        width: 100%;
        margin-top: 8px;
    }

    .perfil-tabs {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .perfil-tabs::-webkit-scrollbar {
        display: none;
    }

    .ratings-carousel-wrapper {
        margin: 0 -16px;
        padding: 0 16px;
    }

    .carousel-arrow .carousel-arrow-right {
        display: none;
    }

    /* busca */
    .search-artists-grid {
        gap: 12px;
    }

    .search-artist-card {
        width: 80px;
    }

    .search-artist-photo {
        width: 64px;
        height: 64px;
    }

    /* admin */
    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        position: static;
    }

    .admin-table {
        font-size: 0.8rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 8px 6px;
    }

    /* pro page */
    .pro-hero h1 {
        font-size: 1.8rem;
    }


    .pro-features {

        gap: 2px;
        margin-bottom: 10px;
    }

  .semaninha-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.semaninha-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--ctexto-normal);
}

.empty-state {
    color: var(--ctexto-normal);
    font-size: 15px;
    font-weight: 700;
}

.rating-list-title {
    color: var(--ctexto-normal);
    font-size: 15px;
    font-weight: 700;
}

.rating-list-item {
    padding: 0;
}

  /* lista de avaliações */
  .rating-list-item {
    gap: 5px;
    padding: 2px 2px;
  }

  .rating-list-cover {
    width: 40px;
    height: 40px;
  }

  .rating-list-title {
    font-size: 0.88rem;
  }

  .rating-list-score {
    font-size: 1.05rem;
  }

  /* ── BUSCA ─────────────────────────────────────────────── */
  .search-artists-grid {
    gap: 14px;
  }

  .search-artist-card {
    width: 80px;
  }

  .search-artist-photo {
    width: 64px;
    height: 64px;
  }

  /* ── ADMIN ─────────────────────────────────────────────── */
  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    position: static;
  }

  /* ── FOOTER ────────────────────────────────────────────── */
  .footer {
    padding: 32px 16px 20px;
    margin-top: 48px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer-links {
    gap: 24px;
  }
}
