/* ==========================================================================
   OXYIN RECORDS // 100% PITCH BLACK VOID (#000000)
   WebGPU 3D Spiral Galaxy + Pure Stardust Typography Engine
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000000;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}

/* Deep Obsidian Void */
.deep-void {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 1;
}

/* WebGPU 3D Spiral Galaxy Canvas Stage */
.galaxy-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 8;
  pointer-events: none;
  opacity: 1;
}

#galaxyCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Three.js Fullscreen Particles Canvas ("OXYIN" Typography) */
.monolith-canvas-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 26;
  pointer-events: none !important;
}

#monolithCanvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none !important;
}

/* ==========================================================================
   COSMIC CONSTELLATION HORIZONTAL NAVIGATION (100% PHOTO MATCH)
   ========================================================================== */
.cosmic-constellation-nav {
  position: fixed;
  left: 50%;
  top: 24px; /* Positioned elevated higher near the top edge */
  transform: translateX(-50%);
  width: 100vw;
  max-width: 980px; /* Refined compact width */
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.cosmic-constellation-nav.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Dedicated Canvas for Starry Text Particles, Blown-out Core Glow & Constellation Polyline */
.constellation-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Row of typographic hit area links matching user HTML snippet */
.constellation-items-row {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3.2vw, 44px); /* Refined compact gap */
  padding: 14px 24px 28px 24px;
  width: 100%;
  max-width: 980px;
}

/* Nav Link Hit Area (Text is drawn organically by the starry text particles canvas) */
.nav-link {
  text-decoration: none;
  color: transparent; /* Rendered 100% by star particles on canvas */
  font-family: 'Inter', 'Space Grotesk', sans-serif;
  font-size: clamp(13px, 1.35vw, 19px); /* Sleek refined compact size */
  font-weight: 300;
  letter-spacing: clamp(2.5px, 0.25vw, 4px);
  text-transform: uppercase;
  cursor: pointer;
  padding: 12px 6px;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
  display: inline-block;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover,
.nav-link.active {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .cosmic-constellation-nav {
    top: 16px;
  }
  .constellation-items-row {
    gap: 14px;
    padding: 12px 10px 24px 10px;
    flex-wrap: wrap;
  }
  .nav-link {
    font-size: 13px;
    letter-spacing: 2px;
    padding: 8px 4px;
  }
}

/* ==========================================================================
   ARTISTS CONSTELLATION EMBEDDED IN COSMIC ABYSS
   ========================================================================== */
.artists-constellation-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 45; /* Below top navigation (z:50) so navigation remains permanently accessible */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  background: transparent; /* No opaque background; integrates directly with the 3D Cosmic Abyss */
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}

.artists-constellation-stage.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Canvas for Background Stars & Circular Constellation Hologram Profiles */
.artists-constellation-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Absolute Stage Container for Dynamic Moving Artist Constellation Cards */
.artists-grid-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.artists-grid-container.is-transitioning {
  opacity: 0;
  transform: scale(0.96);
}

/* Individual Artist Slot Card (Coordinates dynamically tracked in animateArtistsConstellation) */
.artist-constellation-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 110px;
  height: 135px;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  border-radius: 50%;
  cursor: pointer;
  padding-bottom: 8px;
  user-select: none;
  -webkit-user-select: none;
  text-decoration: none;
  background: transparent;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.artists-constellation-stage.is-visible .artist-constellation-card {
  opacity: 1;
}

/* Artist Name Label - Styled in Sleek Cosmic Stardust Aesthetic */
.artist-card-label {
  position: relative;
  z-index: 2;
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: clamp(11px, 0.88vw, 13px);
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(220, 235, 255, 0.60);
  text-align: center;
  margin-top: auto;
  pointer-events: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.artist-constellation-card:hover .artist-card-label {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.95), 0 0 20px rgba(215, 235, 255, 0.7);
}

/* Bottom Pagination Bar: Styled in identical top menu constellation stardust aesthetic */
.artists-pagination-bar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 10px 20px 24px 20px;
}

/* Navigation Arrows (‹ and ›) - Shimmering stardust diamond aesthetic */
.page-nav-arrow {
  background: transparent;
  border: none;
  outline: none;
  color: rgba(220, 235, 255, 0.45);
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-select: none;
  border-radius: 50%;
  text-shadow: 0 0 6px rgba(200, 220, 255, 0.3);
}

.page-nav-arrow:hover {
  color: #ffffff;
  transform: scale(1.25);
  text-shadow: 0 0 10px #ffffff, 0 0 20px rgba(220, 180, 255, 0.95), 0 0 35px rgba(180, 100, 255, 0.7);
}

.page-nav-arrow:active {
  transform: scale(0.92);
}

.page-indicators {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Page Indicator Numbers: 1, 2, 3 - Exact sparkling stardust font matching top menu */
.page-dot-btn {
  background: transparent;
  border: none;
  outline: none;
  padding: 8px 16px;
  color: rgba(220, 235, 255, 0.50);
  font-family: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 3px;
  cursor: pointer;
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-select: none;
  text-shadow: 0 0 5px rgba(200, 225, 255, 0.25);
}

.page-dot-btn:hover {
  color: #ffffff;
  transform: translateY(-2px);
  text-shadow: 0 0 10px #ffffff, 0 0 20px rgba(210, 160, 255, 0.85);
}

.page-dot-btn.is-active {
  color: #ffffff;
  font-weight: 700;
  transform: translateY(-1px);
  text-shadow: 0 0 8px #ffffff, 0 0 18px rgba(255, 255, 255, 0.95), 0 0 28px rgba(190, 120, 255, 0.85);
  animation: stardustPageTwinkle 2.8s ease-in-out infinite alternate;
}

/* Constellation Polyline & Diamond Star Node beneath active page number */
.page-dot-btn.is-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 2px;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff, 0 0 16px rgba(210, 150, 255, 0.95), 0 0 24px rgba(160, 90, 255, 0.8);
  border-radius: 2px;
}

@keyframes stardustPageTwinkle {
  0% {
    text-shadow: 0 0 8px #ffffff, 0 0 16px rgba(255, 255, 255, 0.9), 0 0 25px rgba(190, 120, 255, 0.8);
  }
  50% {
    text-shadow: 0 0 12px #ffffff, 0 0 24px rgba(255, 255, 255, 1.0), 0 0 35px rgba(220, 160, 255, 0.95);
  }
  100% {
    text-shadow: 0 0 8px #ffffff, 0 0 16px rgba(255, 255, 255, 0.9), 0 0 25px rgba(190, 120, 255, 0.8);
  }
}

@media (max-width: 900px) {
  .artists-grid-container {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 12px;
    padding: 10px 15px;
  }
}

@media (max-width: 600px) {
  .artists-grid-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 10px;
  }
}

@media (max-width: 900px) {
  .artists-grid-container {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 12px;
    padding: 10px 20px;
  }
}

@media (max-width: 600px) {
  .artists-grid-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 10px;
  }
}

/* ==========================================================================
   CATALOG STAGE (HIGH-NEXUS CELESTIAL SHOWCASE)
   ========================================================================== */
.catalog-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 45; /* Below top nav (z:50) */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: radial-gradient(circle at 50% 30%, rgba(6, 12, 24, 0.40) 0%, rgba(2, 4, 8, 0.65) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 110px 40px 40px 40px;
  box-sizing: border-box;
}

.catalog-stage.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.catalog-header {
  width: 100%;
  max-width: 1400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.catalog-header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.catalog-subtag {
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3.5px;
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
  text-transform: uppercase;
}

.catalog-headline {
  font-family: 'Syncopate', sans-serif;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 700;
  letter-spacing: 5px;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(56, 189, 248, 0.4);
  text-transform: uppercase;
  margin: 0;
}

.catalog-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(56, 189, 248, 0.6);
  color: #ffffff;
  transform: rotate(90deg) scale(1.1);
}

/* Releases Grid */
.catalog-releases-container {
  width: 100%;
  max-width: 1400px;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  overflow-y: auto;
  padding: 10px 8px 30px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
}

.catalog-card {
  position: relative;
  background: rgba(10, 16, 28, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.catalog-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.4), transparent 60%, rgba(220, 180, 255, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.3;
  transition: opacity 0.4s ease;
}

.catalog-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(14, 24, 42, 0.75);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.25);
}

.catalog-card:hover::before {
  opacity: 1;
}

/* Holographic Vinyl Disc Graphic */
.catalog-vinyl-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-vinyl-disc {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, #1a1e28 0%, #0d1017 38%, #000000 68%, #151b26 100%);
  border: 2px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.catalog-card:hover .catalog-vinyl-disc {
  transform: rotate(180deg) scale(1.06);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.5), inset 0 0 20px rgba(220, 180, 255, 0.4);
}

.catalog-vinyl-grooves {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.14);
}

.catalog-vinyl-center {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #000000;
  border: 1.5px solid rgba(56, 189, 248, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.catalog-vinyl-center img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.catalog-track-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #ffffff;
  margin-bottom: 6px;
  text-transform: uppercase;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.catalog-card:hover .catalog-track-name {
  color: #38bdf8;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
}

.catalog-artist-name {
  font-family: 'Space Grotesk', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: rgba(220, 235, 255, 0.6);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.catalog-spotify-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(30, 215, 96, 0.12);
  border: 1px solid rgba(30, 215, 96, 0.35);
  color: #1ed760;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.catalog-card:hover .catalog-spotify-badge {
  background: #1ed760;
  color: #000000;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(30, 215, 96, 0.6);
}

@media (max-width: 1100px) {
  .catalog-releases-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .catalog-releases-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .catalog-releases-container {
    grid-template-columns: 1fr;
  }
}
