:root {
  --pitch-black: #000000;
  --black-void: #050505;
  --white: #ffffff;
  --gray-light: #e0e0e0;
  --gray-muted: #888888;
  --gray-dark: #222222;
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Space Grotesk', -apple-system, sans-serif;
}

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

body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--pitch-black);
  color: var(--white);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}

a {
  text-decoration: none;
}

.space-wrapper {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  background: var(--pitch-black);
}

#bgVideo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.22) contrast(1.3) grayscale(100%);
  opacity: 0.6;
}

.celestial-body {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.planet-ringed {
  top: 12%;
  right: 14%;
  width: 80px;
  height: 80px;
  animation: driftPlanetRinged 40s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes driftPlanetRinged {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  30% { transform: translate3d(-50px, 30px, 0) rotate(4deg); }
  70% { transform: translate3d(-90px, -20px, 0) rotate(-4deg); }
  100% { transform: translate3d(-30px, -45px, 0) rotate(2deg); }
}

.planet-sphere {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #444444 60%, #000000 100%);
  position: absolute;
  top: 14px;
  left: 14px;
}

.planet-ring {
  position: absolute;
  width: 95px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
  top: 30px;
  left: -7px;
  transform: rotate(-25deg);
}

.planet-shadow-crescent {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  top: 14px;
  left: 14px;
  background: radial-gradient(circle at 75% 75%, rgba(0, 0, 0, 0.9) 0%, transparent 60%);
}

.planet-moon {
  bottom: 14%;
  left: 10%;
  width: 44px;
  height: 44px;
  animation: driftPlanetMoon 50s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes driftPlanetMoon {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  40% { transform: translate3d(60px, -45px, 0) scale(1.08); }
  80% { transform: translate3d(110px, -20px, 0) scale(0.94); }
  100% { transform: translate3d(40px, -70px, 0) scale(1); }
}

.moon-sphere {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #555555 50%, #000000 100%);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

.planet-small {
  top: 24%;
  left: 45%;
  width: 22px;
  height: 22px;
  animation: driftPlanetSmall 65s linear infinite;
  will-change: transform;
}

.small-sphere {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #333333 70%, #000000 100%);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

@keyframes driftPlanetSmall {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(70px, -35px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

#starfieldCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.space-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.92) 100%);
  pointer-events: none;
  z-index: 3;
}

.enter-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: var(--pitch-black);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

.enter-screen.fade-out {
  opacity: 0;
  transform: scale(1.05);
  visibility: hidden;
  pointer-events: none;
}

.enter-btn {
  position: relative;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  padding: 14px 52px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}

.enter-btn:hover {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 35px rgba(0,0,0,0.6);
}

.enter-btn:active {
  transform: translateY(0px);
}

.enter-btn-liquid {
  display: none;
}

.enter-btn-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}

.enter-btn-label {
  position: relative;
  z-index: 1;
  color: #ffffff;
  transition: color 0.4s ease;
  display: inline-block;
  pointer-events: none;
  mix-blend-mode: difference;
}

.enter-drip {
  display: none;
}

.main-viewport {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  position: relative;
  z-index: 10;
}

.floating-hub {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  transform: translateY(-60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

body.entered .floating-hub {
  opacity: 1;
  transform: translateY(0);
}

.profile-row-layout {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 6px;
}

.avatar-left-col {
  flex-shrink: 0;
}

.avatar-circle {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  padding: 2px;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 255, 255, 0.15);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.avatar-circle:hover {
  transform: scale(1.04);
  border-color: #ffffff;
}

.avatar-img-color {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.meta-right-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.identity-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-name {
  font-family: var(--font-sans);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.profile-domain-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gray-light);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
}

.social-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  backdrop-filter: blur(8px);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.social-icon-btn:hover {
  background: var(--white);
  color: #000000;
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.4);
}

.floating-audio-strip {
  background: rgba(8, 8, 10, 0.65);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease;
}

.floating-audio-strip:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.audio-strip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.album-thumb-wrap {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.album-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.track-meta-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.track-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.track-title {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
}

.track-artist {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gray-muted);
  letter-spacing: 0.08em;
}

.audio-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.eq-bar {
  width: 2px;
  background: var(--white);
  border-radius: 1px;
  height: 3px;
}

.audio-equalizer.playing .eq-bar:nth-child(1) { animation: barMotion 0.8s ease-in-out infinite 0.1s; }
.audio-equalizer.playing .eq-bar:nth-child(2) { animation: barMotion 0.6s ease-in-out infinite 0.25s; }
.audio-equalizer.playing .eq-bar:nth-child(3) { animation: barMotion 0.9s ease-in-out infinite 0.15s; }
.audio-equalizer.playing .eq-bar:nth-child(4) { animation: barMotion 0.7s ease-in-out infinite 0.35s; }

@keyframes barMotion {
  0%, 100% { height: 3px; opacity: 0.4; }
  50% { height: 11px; opacity: 1; }
}

.playback-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-ctrl {
  background: transparent;
  border: none;
  color: var(--gray-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: color 0.15s ease;
}

.btn-ctrl:hover {
  color: var(--white);
}

.btn-play-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.3);
  transition: opacity 0.15s ease;
}

.btn-play-circle:hover {
  opacity: 0.9;
}

.audio-strip-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--gray-muted);
  font-variant-numeric: tabular-nums;
}

.scrubber-track {
  flex: 1;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.scrubber-progress {
  height: 100%;
  background: var(--white);
  border-radius: 2px;
  position: relative;
}

.scrubber-progress::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  background: var(--white);
  border-radius: 50%;
}

.vol-pod {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 6px;
  border-radius: 14px;
}

.vol-btn-toggle {
  background: transparent;
  border: none;
  color: var(--gray-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
  transition: color 0.15s ease;
}

.vol-btn-toggle:hover {
  color: var(--white);
}

.volume-range {
  -webkit-appearance: none;
  appearance: none;
  width: 50px;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.volume-range::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  border: none;
}

.vol-text {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--gray-muted);
  width: 24px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hidden {
  display: none !important;
}

@media (max-width: 480px) {
  .profile-row-layout { gap: 14px; }
  .avatar-circle { width: 72px; height: 72px; }
  .profile-name { font-size: 1.4rem; }
}
