body, html {
  margin: 0;
  padding: 0;
  background: #0A0A0A;
  color: #f2f2f2;
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  align-items: center;
  padding: 0 20px;
  background: rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid #222;
  z-index: 9000;
  backdrop-filter: blur(6px);
}

.logo-container,
.logo-link,
.logo {
  pointer-events: auto !important;
}

.logo-link {
  display: inline-block;
  line-height: 0;
}

.logo {
  display: block;
  height: 35px;
  max-width: 100%;
  object-fit: contain;
  transition: height 0.3s ease, transform 0.3s ease;
}

.logo-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8999;
  text-align: center;
  opacity: 1;
  transition: opacity 2s ease;
}

.header-nav {
  margin-right: 2%;
  margin-left: auto;
  display: flex;
  gap: 20px;
}

.header-nav a {
  color: #E0E0E0;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s, text-shadow 0.3s;
}

.header-nav a:hover,
.header-nav a.active {
  text-shadow: 0 0 10px rgba(255, 255, 240, 0.6);
  color: #fff;
}

.page-header {
  position: relative;
  z-index: 5;
  text-align: center;
  margin-top: 90px;
  margin-bottom: 20px;
  padding: 0 20px;
}

.page-header h1 {
  font-weight: 600;
  font-size: clamp(28px, 2.1rem, 42px);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #f2f2f2;
  text-shadow: 0 0 8px rgba(255,255,255,0.1);
  word-break: break-word;
}

.artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  padding: 0 20px 80px;
  max-width: 1400px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  animation: gridFadeIn 0.8s ease forwards;
}

@keyframes gridFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.artist-card {
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.artist-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.artist-link {
  display: block;
  color: #fff;
  text-decoration: none;
}

.artist-avatar-wrapper {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.artist-avatar {
  width: 70%;
  height: 70%;
  border-radius: 50%;
  object-fit: cover;
  filter: blur(10px);
  background: #111;
  font-size: 0;
  color: transparent;
  transform: scale(1.005);
  opacity: 0.7;
  transition: filter 0.6s ease, opacity 0.6s ease, transform 0.6s ease;
}

.artist-avatar.loaded {
  filter: blur(0);
  opacity: 1;
  transform: scale(1);
}

.artist-meta {
  padding: 16px;
}

.artist-name {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #fff;
  text-align: center;
}

.artist-name {
  overflow: hidden;

  -webkit-mask-image: linear-gradient(
    to right,
    black 0%,
    black 82%,
    transparent 100%
  );

  mask-image: linear-gradient(
    to right,
    black 0%,
    black 82%,
    transparent 100%
  );
}

.artist-description {
  font-size: 14px;
  color: #ccc;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.artist-card:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 4px 10px rgba(255, 255, 255, 0.06), 
    0 0 12px rgba(255, 255, 255, 0.10), 
    0 8px 30px rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.artist-card:hover .artist-avatar {
  transform: none;
}

/* Tablet grid */
@media (max-width: 1024px) {
  .artists-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .collection-title {
    font-size: 1.8rem;
  }
}

/* Mobile grid */
@media (max-width: 768px) {
  .artists-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }

  .artist-name {
    white-space: nowrap;
    font-size: 16px;
  }

  .artist-description {
    font-size: 13px;
  }

  .page-header {
    margin-top: 90px;
    margin-bottom: 20px;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }

  .profile-info,
  .gif-container {
    display: none;
  }

  .collection-title {
    font-size: 1.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .footer-nav {
    gap: 16px;
  }

  .footer-nav a {
    font-size: clamp(11px, 3.5vw, 14px);
  }
}

/* Burger menu */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  cursor: pointer;
  z-index: 13000;
  position: relative;
  transition: all 0.3s ease;
}

.burger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background: #E0E0E0;
  border-radius: 3px;
  transition: all 0.35s ease;
}

/* Active burger → cross */
.burger-menu.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
  background: #bb86fc;
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger-menu.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
  background: #bb86fc;
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 10, 10, 1);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s ease, opacity 0.45s ease;
  z-index: 12000;
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  color: #E0E0E0;
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
  margin: 20px 0;
  transition: color 0.3s, text-shadow 0.3s;
}

.mobile-nav a:hover {
  color: #bb86fc;
  text-shadow: 0 0 10px rgba(187,134,252,0.7);
}

/* Responsive burger display */
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .burger-menu {
    display: flex;
    margin-left: auto;
  }
}

.page-header-inner {
    display:flex;
    justify-content:center;
    position:relative;
}

.page-title-group {
    position:relative;
}

.page-title-group h1 {
    font-size:32px;
    font-weight:700;
    color:#fff;
    text-align:center;
}

.artists-count {
    position:absolute;
    top:0;
    right:-40px; 
    font-family:'Orbitron', 'Rajdhani', monospace;
    font-weight:400;
    font-size:15px; 
    padding-top: 15%;
    color:#fff;
    line-height:1;
}
