/* ─ Artist Card (Grid View) ─ */
.artist-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  overflow: hidden;
  /* Instant border/shadow: animated box-shadow jitters on WebKitGTK/Wayland; cover zoom stays smooth below. */
  transform: translateZ(0);
}

.artist-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--card-hover-border);
}

.artist-card-avatar {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--card-placeholder-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  contain: paint;
  isolation: isolate;
  transform: translateZ(0);
}

.artist-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  transform: translateZ(0) scale(1);
  transition: opacity 0.15s ease, transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.artist-card:hover .artist-card-avatar img {
  transform: translateZ(0) scale(1.02);
}

.artist-card-avatar-initial {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50% !important;
  border: 2px solid;
  width: calc(100% - 2 * var(--space-4));
  margin: var(--space-3) auto var(--space-3);
}

.artist-card-avatar-initial span {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-display);
  line-height: 1;
  user-select: none;
}

.artist-card-info {
  padding: var(--space-3) var(--space-3) var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform: translateZ(0);
}

.artist-card-info--center {
  text-align: center;
}

.artist-card-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--card-title);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-card-meta {
  font-size: 12px;
  color: var(--card-subtitle);
}

