.artists-page {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}


.artists-hero {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  box-shadow: var(--glass-shadow);
}

.artists-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff, #aaa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-pfp-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  margin: 0 auto 2rem;
  flex-wrap: wrap;
}

.hero-pfp {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.16);
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  overflow: hidden;
  appearance: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

.hero-pfp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-pfp:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.48);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.36);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}


.artists-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.search-bar {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

.search-bar form {
  display: flex;
  gap: 0.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 60px;
  padding: 0.3rem;
  box-shadow: var(--glass-shadow);
}

.search-bar input {
  flex: 1;
  padding: 0.8rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
}

.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.search-bar button {
  width: 50px;
  height: 50px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  color: var(--bg-dark);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-bar button:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.filter-sort {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

#sortSelect {
  padding: 0.6rem 2rem 0.6rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  color: var(--text-primary);
  font-size: 0.95rem;
  cursor: pointer;
  outline: none;
  min-width: 150px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b0b0b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 1rem;
}

.letter-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.letter-filter span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.letter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: center;
}

.letter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.letter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.letter-btn.active {
  background: var(--accent);
  color: var(--bg-dark);
  border-color: var(--accent);
}


.artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 2.2rem 1.6rem;
  margin-bottom: 3rem;
  justify-items: center;
}

.artist-pfp-tile {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.24s ease;
  text-align: center;
  width: 100%;
  max-width: 170px;
}

.pfp-shell {
  position: relative;
  width: 148px;
  height: 148px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.pfp-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.04) 54%, rgba(0, 0, 0, 0.2) 100%);
  box-shadow: 0 22px 34px rgba(0, 0, 0, 0.42), 0 6px 10px rgba(0, 0, 0, 0.26) inset;
  transform: perspective(700px) translateZ(0);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  z-index: 0;
}

.artist-pfp-tile img {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.22);
  transition: transform 0.28s ease, filter 0.28s ease, border-color 0.28s ease;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.36);
}

.artist-pfp-tile:hover {
  transform: translateY(-8px);
}

.artist-pfp-tile:hover .pfp-shell::before {
  transform: perspective(700px) translateY(-6px) scale(1.04);
  box-shadow: 0 30px 36px rgba(0, 0, 0, 0.48), 0 8px 12px rgba(0, 0, 0, 0.28) inset;
}

.artist-pfp-tile:hover img {
  border-color: var(--accent);
  transform: translateY(-2px) scale(1.04);
  filter: saturate(1.08) contrast(1.03);
}

.artist-tooltip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  background: rgba(10, 10, 10, 0.82);
  color: #f1f1f1;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
  z-index: 2;
}

.artist-pfp-tile:hover .artist-tooltip {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.artist-name {
  display: block;
  margin-top: 0.8rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.2s ease, transform 0.2s ease;
}

.artist-pfp-tile:hover .artist-name {
  color: var(--accent);
  transform: translateY(-2px);
}


.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.pagination a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination a.active {
  background: var(--accent);
  color: var(--bg-dark);
  border-color: var(--accent);
}


.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.is-open {
  display: flex;
}

.modal-content {
  max-width: 640px;
  width: min(92vw, 640px);
  background: linear-gradient(165deg, rgba(21, 21, 26, 0.98), rgba(10, 10, 14, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.58);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
}

.close {
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.close:hover {
  color: var(--accent);
}

.modal-body {
  padding: 1.5rem 1.8rem 2rem;
  color: var(--text-secondary);
  max-height: 70vh;
  overflow-y: auto;
}

.artist-modal-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 1rem 1rem 1.15rem;
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

.modal-body img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-color);
  display: block;
  margin: 0 auto 1.5rem;
}

.modal-body p {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.artist-modal-top {
  display: flex;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.artist-modal-meta {
  display: flex;
  justify-content: center;
}

.artist-modal-chip {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.24rem 0.68rem;
}

.artist-modal-img {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.5);
}

.modal-discord {
  margin-top: 0.4rem;
  margin-bottom: 0.8rem;
  text-align: center;
}

.artist-modal-section {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  margin-bottom: 0.75rem;
}

.modal-body p i {
  width: 24px;
  color: var(--accent);
}

.modal-body h3 {
  font-size: 1.3rem;
  margin: 1rem 0 0.8rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.3rem;
}

.links-list {
  list-style: none;
  padding: 0;
}

.links-list li {
  margin-bottom: 0.8rem;
  padding: 0.58rem 0.72rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.links-list a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.links-list a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.links-list i {
  width: 20px;
  color: var(--accent);
}


@media (max-width: 768px) {
  .artists-page {
    padding: 0 1rem;
  }

  .artists-hero {
    padding: 1.5rem;
  }

  .artists-hero h1 {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .hero-pfp {
    width: 62px;
    height: 62px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .filter-sort {
    flex-direction: column;
    gap: 1rem;
  }

  #sortSelect {
    width: 100%;
  }

  .letter-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .artists-grid {
    gap: 1.5rem;
  }

  .pfp-shell {
    width: 130px;
    height: 130px;
  }

  .artist-pfp-tile img {
    width: 116px;
    height: 116px;
  }

  .modal-content {
    width: 95%;
  }

  .artist-modal-img {
    width: 138px;
    height: 138px;
  }
}