/* ===== Container ===== */
.artists-container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

/* ===== Card ===== */
.artist-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 11rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 0.65rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  box-sizing: border-box;
}

.artist-card:hover {
  border-color: #111;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

/* ===== Área clicável ===== */
.artist-card .artist-main {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* ===== Imagem ===== */
.center-frame {
  width: 82px;
  height: 82px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ddd;
  display: block;
}

.no-image {
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee;
  border-radius: 50%;
  color: #888;
  font-size: 0.75rem;
  text-align: center;
  padding: 0.3rem;
  box-sizing: border-box;
}

/* ===== Nome ===== */
.artist-card h4,
.artist-card .artist-main h4 {
  margin-top: 0.35rem;
  margin-bottom: 0;
  font-size: 0.84rem;
  line-height: 1.15;
  font-weight: 700;
  color: #111;
  text-align: center;
  text-decoration: none;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ===== Botão ===== */
.artist-btn {
  display: block;
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.4rem 0.35rem;
  border: 1px solid #aaa;
  border-radius: 8px;
  background: #fafafa;
  color: #222;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: inset 0 0 3px rgba(0,0,0,0.05);
  box-sizing: border-box;
}

.artist-btn:hover {
  background: #333;
  color: #fff;
  border-color: #333;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

/* ===== Paginação ===== */
.artists-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 24px auto 32px;
}

.artists-pagination .page-link {
  display: inline-flex;
}

.artists-pagination .page-link a,
.artists-pagination .page-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  color: #1e3a5f;
  background: #fff;
  box-sizing: border-box;
}

.artists-pagination .page-link a:hover {
  background: #f5f5f5;
  border-color: #ddd;
  color: #1e3a5f;
}

.artists-pagination .page-link .current {
  background: #1e3a5f;
  color: #fff;
  border-color: #1e3a5f;
}

.artists-pagination .page-link .dots {
  border-color: transparent;
  background: transparent;
  min-width: auto;
  padding: 0 4px;
}

/* ===== Índice Alfabético ===== */
.artist-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 1rem;
  margin: .5rem auto 1.2rem;
  padding: 0 1rem;
}

.artist-index a {
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  color: #106b1f;
  padding: .2rem .35rem;
  border-radius: 4px;
  transition: transform .15s, color .15s, background .15s;
}

.artist-index a:hover {
  transform: scale(1.15);
  color: #0a0a0a;
}

.artist-index a.active {
  background: #e9f6ec;
  color: #0a0a0a;
  border: 1px solid #cfe8d3;
}

/* ===== Tablet / desktop médio ===== */
@media (max-width: 1200px) {
  .artists-container {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ===== Mobile / tablet pequeno ===== */
@media (max-width: 768px) {
  .artists-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    padding: 0.75rem;
  }

  .artist-card {
    min-height: 10.3rem;
    padding: 0.6rem;
    border-radius: 10px;
  }

  .center-frame {
    width: 76px;
    height: 76px;
  }

  .avatar,
  .no-image {
    width: 76px;
    height: 76px;
  }

  .artist-card h4,
  .artist-card .artist-main h4 {
    font-size: 0.8rem;
    line-height: 1.12;
  }

  .artist-btn {
    font-size: 0.78rem;
    padding: 0.38rem 0.3rem;
    margin-top: 0.5rem;
  }

  .artist-index {
    gap: .5rem .8rem;
  }

  .artist-index a {
    font-size: .9rem;
  }
}

/* ===== Telemóveis pequenos ===== */
@media (max-width: 480px) {
  .artists-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    padding: 0.6rem;
  }

  .artist-card {
    min-height: 9.9rem;
    padding: 0.55rem;
  }

  .center-frame {
    width: 70px;
    height: 70px;
  }

  .avatar,
  .no-image {
    width: 70px;
    height: 70px;
  }

  .artist-card h4,
  .artist-card .artist-main h4 {
    font-size: 0.76rem;
    line-height: 1.1;
  }

  .artist-btn {
    font-size: 0.74rem;
    padding: 0.36rem 0.25rem;
  }

  .artists-pagination .page-link a,
  .artists-pagination .page-link span {
    font-size: 0.8rem;
    padding: 0.32rem 0.55rem;
  }

  .artist-index {
    gap: .45rem .7rem;
  }

  .artist-index a {
    font-size: .86rem;
  }
}