* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --primary-pink: #F5A9B8;
  --primary-blue: #5BCFFA;
  --white: #FFFFFF;
  --dark-bg: #161618;
  --gray-blue: #A8C5DB;
  --dark-blue: #12354B;
  --dark-teal: #12404B;
  
  --card-bg: rgba(22, 22, 24, 0.85);
  --card-border: rgba(91, 207, 250, 0.15);
  --card-hover-border: rgba(245, 169, 184, 0.25);
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--dark-bg);
  color: var(--white);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

.background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  position: relative;
}

.header {
  text-align: center;
  padding: 4rem 0 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.back-button {
  position: absolute;
  top: 2rem;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(18, 53, 75, 0.3);
  border: 1px solid rgba(91, 207, 250, 0.2);
  border-radius: 12px;
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: border-color 0.2s ease;
  z-index: 10;
}

.back-button:hover {
  border-color: var(--primary-blue);
}

.logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  width: 100%;
  height: auto;
}

.logo {
  width: 360px;
  height: auto;
  object-fit: contain;
}

.page-title {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #F5A9B8, #5BCFFA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--gray-blue);
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
  line-height: 1.8;
}

.bongo {
  height: 1.5em;
  width: auto;
}

.loading {
  text-align: center;
  padding: 4rem;
  color: var(--gray-blue);
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(91, 207, 250, 0.1);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
  align-items: stretch;
}

.artist-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.image-container {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark-blue), var(--dark-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  min-height: 320px;
  max-height: 320px;
  flex-shrink: 0;
}

.image-container.horizontal {
  padding: 40px 20px;
}

.image-container.horizontal .artist-image {
  width: 100%;
  height: auto;
  max-height: 100%;
}

.image-container.vertical {
  padding: 20px 40px;
}

.image-container.vertical .artist-image {
  width: 50%;
  height: auto;
  max-height: 100%;
}

.artist-image {
  object-fit: contain;
  object-position: center;
  display: block;
}

.content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.artist-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #F5A9B8, #5BCFFA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.artist-role {
  font-size: 1rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-weight: 600;
}

.artist-description {
  color: var(--gray-blue);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  flex-grow: 1;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 53, 75, 0.4);
  transition: all 0.2s ease;
}

.social-link:hover {
  border-color: transparent;
}

.social-link.vgen:hover {
  background: #B8FF26;
  color: #0F0F16;
}

.social-link.twitter:hover {
  background: #1DA1F2;
}

.social-link.bluesky:hover {
  background: #0085FF;
}

.social-link.youtube:hover {
  background: #FF0000;
}

.social-link.twitch:hover {
  background: #9146FF;
}

.social-link.instagram:hover {
  background: linear-gradient(45deg, #405DE6, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.social-link.pixiv:hover {
  background: #0096FA;
}

.social-link.website:hover {
  background: var(--primary-blue);
  color: #161618;
}

.footer {
  text-align: center;
  padding: 3rem 0 1rem;
  border-top: 1px solid rgba(91, 207, 250, 0.1);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(135deg, #F5A9B8, #5BCFFA);
}

.footer-text {
  font-size: 1.25rem;
  color: var(--gray-blue);
  margin-bottom: 1rem;
}

.footer a {
  color: rgba(168, 197, 219, 0.6);
}

.heart {
  color: var(--primary-pink);
  display: inline-block;
  margin: 0 0.25rem;
}

.copyright {
  color: rgba(168, 197, 219, 0.6);
  font-size: 0.875rem;
}

.error {
  text-align: center;
  padding: 3rem;
  color: var(--primary-pink);
  background: rgba(245, 169, 184, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(245, 169, 184, 0.2);
}

@media (max-width: 768px) {
  .main-container {
    padding: 1rem;
  }
  
  .header {
    padding: 3rem 0 1.5rem;
  }
  
  .back-button {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 2rem;
  }
  
  .page-title {
    font-size: 2.5rem;
  }
  
  .page-subtitle {
    font-size: 1.1rem;
  }
  
  .artist-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .image-container {
    padding: 20px;
    min-height: 280px;
    max-height: 280px;
  }
  
  .image-container.horizontal {
    padding: 30px 15px;
  }
  
  .image-container.horizontal .artist-image {
    width: 100%;
    height: auto;
  }
  
  .image-container.vertical {
    padding: 15px 30px;
  }
  
  .image-container.vertical .artist-image {
    width: 60%;
    height: auto;
  }
  
  .logo {
    width: 240 px;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 2rem;
  }
  
  .logo {
    width: 200px;
    height: auto;
  }
  
  .back-button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .image-container {
    padding: 15px;
    min-height: 250px;
    max-height: 250px;
  }
  
  .image-container.horizontal {
    padding: 20px 10px;
  }
  
  .image-container.vertical {
    padding: 10px 20px;
  }
  
  .image-container.vertical .artist-image {
    width: 70%;
  }
}

.social-link.bluesky:hover {
  background: #0085FF;
}

.social-link.fiverr:hover {
  background: #1DBF73;
}

@media (prefers-reduced-motion: reduce) {
  .artist-card,
  .social-link,
  .back-button {
    transition: none !important;
  }
  
  .spinner {
    animation: spin 3s linear infinite;
  }
}