/* =========================================================
   artist.css — overlay do artista no mesmo estilo do catálogo
========================================================= */

.artist-overlay{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;

  /* DARK GLASS como catalog-overlay */
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(10px);

  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;

  overflow: hidden; /* quem rola é o content */
}

.artist-overlay.active{
  opacity: 1;
  visibility: visible;
}

/* Container interno como “janela” */
.artist-content{
  width: min(1100px, 92vw);
  margin: 64px auto;
  padding: 22px 22px;

  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  box-shadow: 0 20px 70px rgba(0,0,0,.55);

  max-height: calc(100dvh - 128px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Header */
.artist-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;

  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.artist-title{
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,.95);
}

.artist-close{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,.9);
  font-size: 13px;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
  border-radius: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.artist-close:hover{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-1px);
}

/* Grid de tracks */
.artist-tracks-list{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.artist-track-item{
  display: flex;
  gap: 14px;
  align-items: center;

  padding: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  transition: all 0.2s ease;
  border-radius: 12px;
}

.artist-track-item:hover{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.20);
  transform: translateY(-1px);
}

.artist-track-cover{
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
}

.artist-track-cover img,
img.artist-track-cover{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Seu JS cria <img class="artist-track-cover"...> (sem wrapper),
   então este bloco acima cobre os dois casos. */

.artist-track-info{
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.artist-track-title{
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.95);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-track-artist{
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Botão play */
.artist-track-play-btn{
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,.95);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
  padding: 0;
  border-radius: 999px;
  flex-shrink: 0;
}

.artist-track-play-btn:hover{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.28);
  transform: scale(1.05);
}

.artist-empty{
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  font-style: italic;
  padding: 30px 0;
  text-align: center;
}

/* Mobile */
@media (max-width: 900px){
  .artist-content{
    width: calc(100vw - 24px);
    margin: 90px auto 16px;
    max-height: calc(100dvh - 120px);
    padding: 16px;
  }

  .artist-title{ font-size: 18px; }
  .artist-tracks-list{
    grid-template-columns: 1fr;
  }
}

/* lista do artista sem capa */
.artist-tracks-list.simple{
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

.artist-tracks-list.simple .artist-track-item{
  gap: 12px !important;
}

.artist-tracks-list.simple .artist-track-title{
  color: rgba(255,255,255,.95) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

.artist-tracks-list.simple .artist-track-artist{
  color: rgba(255,255,255,.65) !important;
  font-size: 12px !important;
}
/* =========================
   ARTIST OVERLAY - acima do catálogo
========================= */
#artistOverlay{
  z-index: 10060 !important; /* maior que o catalogOverlay */
}

/* se o seu catalogOverlay estiver com z-index alto, força ele abaixo */
#catalogOverlay{
  z-index: 10040 !important;
}

/* =========================
   ARTIST OVERLAY - mesmo estilo do catálogo
========================= */
#artistOverlay.artist-overlay{
  background: rgba(0,0,0,.62) !important;
  backdrop-filter: blur(6px);
}

#artistOverlay .artist-content{
  max-width: 980px;
  width: min(980px, 92vw);
  margin: 60px auto;
  padding: 0;
  background: rgba(20,20,20,.78);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.5);
  overflow: hidden;
}

/* header igual */
#artistOverlay .artist-header{
  margin: 0;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

#artistOverlay .artist-title{
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

#artistOverlay .artist-close{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  border-radius: 10px;
}

/* lista */
#artistOverlay #artistTracks{
  padding: 16px 18px 18px;
}

#artistOverlay .artist-track-item{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
}

#artistOverlay .artist-track-title{ color:#fff; }
#artistOverlay .artist-track-artist{ color: rgba(255,255,255,.65); }

#artistOverlay .artist-track-play-btn{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
}

/* =========================
   FIX: alturas baixas (landscape)
========================= */
@media (max-height: 520px){
  #artistOverlay .artist-content{
    margin: 12px auto;
    max-height: 92dvh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
}