:root {
  --bg: #000000;
  --panel: rgba(20, 20, 20, 0.95);
  --panel-soft: rgba(25, 25, 25, 0.95);
  --panel-strong: rgba(40, 40, 40, 0.98);
  --border: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.6);
  --muted-strong: rgba(255, 255, 255, 0.8);
  --accent: #808080;
  --light: rgba(255, 255, 255, 0.9);
}

/* Splash Screen */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease, visibility 1s ease;
}

.splash-content {
  text-align: center;
}

.splash-text {
  font-family: "Inter", sans-serif;
  font-size: clamp(2rem, 8vw, 6rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  animation: textShine 2s ease-in-out infinite;
}

@keyframes textShine {
  0%, 100% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.1);
    opacity: 0.8;
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 40px rgba(255, 255, 255, 0.3);
    opacity: 1;
  }
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Entrance Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation delays */
.profile-header {
  animation: slideInUp 0.6s ease-out 0.2s both;
}

.info-row {
  animation: slideInUp 0.6s ease-out 0.5s both;
}

.social-list {
  animation: slideInUp 0.6s ease-out 0.8s both;
}

.player-box {
  animation: popIn 0.5s ease-out 1.1s both;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #000000;
  overflow: hidden;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 1.1s ease, transform 1.1s ease;
}

.page-shell.visible {
  opacity: 1;
  transform: scale(1);
}

/* Falling Stars Container */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.falling-star {
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  top: -10px;
}

@keyframes starFall {
  to {
    transform: translateY(100vh);
  }
}

.background-glow {
  position: absolute;
  width: 40rem;
  height: 40rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.08;
  z-index: 0;
}

.glow-left {
  left: -14rem;
  top: 12rem;
  background: rgba(255,255,255,0.2);
}

.glow-right {
  right: -10rem;
  top: 6rem;
  background: rgba(255,255,255,0.12);
}

.profile-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 90vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.7rem 1.4rem 1.6rem;
  border-radius: 1.7rem;
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 0 24px rgba(255,255,255,0.02), 0 18px 36px rgba(0,0,0,0.5);
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  width: 100%;
  margin-bottom: 1.4rem;
  padding: 0.45rem 0.15rem;
  border-radius: 1.1rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.avatar-cluster {
  position: relative;
  width: 118px;
  height: 118px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.28), rgba(255,255,255,0.04) 56%, rgba(255,255,255,0.08));
}

.avatar {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.23);
  box-shadow: 0 0 25px rgba(0,0,0,0.5);
}

.profile-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}

.name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 3vw, 4rem);
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 800;
  color: var(--text);
}

.verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: #606060;
  color: #fff;
  font-size: 0.74rem;
  box-shadow: none;
}

.tagline {
  font-size: 1rem;
  color: rgba(255,255,255,0.82);
  margin-top: 0.2rem;
  letter-spacing: -0.02em;
}

.join-line {
  margin-top: 0.2rem;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.52);
}

.info-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
  width: min(620px, 84vw);
  margin-bottom: 1.2rem;
}

.mini-panel {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  min-height: 72px;
  flex: 1;
  padding: 0.65rem 0.9rem;
  border-radius: 1rem;
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid var(--border);
  box-shadow: inset 0 0 18px rgba(255,255,255,0.02), 0 12px 18px rgba(0,0,0,0.25);
}

.mini-panel .mini-avatar,
.avatar-cluster,
.track-art {
  position: relative;
}

.mini-panel .mini-avatar::before,
.avatar-cluster::before,
.track-art::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.24);
  z-index: -1;
}

.track-art::before {
  border-radius: 0.9rem;
}

.mini-panel.mini-right {
  position: relative;
}

.mini-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
}

.mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-avatar {
  display: grid;
  place-items: center;
  background: #333333;
  font-size: 1.2rem;
}

.mini-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.mini-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}

.mini-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.62);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.green-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #999999;
  display: inline-block;
  box-shadow: none;
}

.join-btn {
  margin-left: auto;
  border: none;
  border-radius: 0.8rem;
  background: #555555;
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.65rem 1rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  width: min(560px, 88vw);
  margin-top: 0.5rem;
}

.social-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.3rem;
  height: 3.3rem;
  border-radius: 1rem;
  text-decoration: none;
  color: #fff;
  background: rgba(40, 40, 40, 0.8);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: inset 0 0 16px rgba(255,255,255,0.03), 0 12px 20px rgba(0,0,0,0.4);
  transition: filter 0.2s ease;
}

.social-button:hover,
.social-button:focus-visible {
  filter: brightness(1.15);
}

.social-button .icon {
  display: grid;
  place-items: center;
}

.social-button .icon img {
  width: 1.42rem;
  height: 1.42rem;
  display: block;
  filter: brightness(0) invert(1);
}

.x { background: rgba(40, 40, 40, 0.8); }
.instagram { background: rgba(40, 40, 40, 0.8); }
.tiktok { background: rgba(40, 40, 40, 0.8); }
.youtube { background: rgba(40, 40, 40, 0.8); }
.discord { background: rgba(40, 40, 40, 0.8); }
.spotify { background: rgba(40, 40, 40, 0.8); }
.reddit { background: rgba(40, 40, 40, 0.8); }
.twitch { background: rgba(40, 40, 40, 0.8); }
.telegram { background: rgba(40, 40, 40, 0.8); }
.mail { background: rgba(40, 40, 40, 0.8); }
.mail .icon img { filter: brightness(0) invert(1); }

.followers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

.followers-eye {
  font-size: 0.95rem;
  line-height: 1;
  transform: translateY(-1px);
}

.player-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: min(620px, 82vw);
  margin-top: 1.3rem;
  padding: 0.7rem 0.9rem;
  border-radius: 1rem;
  background: rgba(25, 25, 25, 0.95);
  border: 1px solid var(--border);
  box-shadow: 0 12px 20px rgba(0,0,0,0.4);
}

.track-art {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 0.8rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}

.track-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.track-title {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-progress-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.45rem;
}

.time {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  min-width: 2rem;
}

.progress-bar {
  position: relative;
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  background: rgba(255,255,255,0.9);
  border-radius: inherit;
}

.track-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0.35rem;
}

.track-controls button {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  cursor: pointer;
}

@media (max-width: 700px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-copy {
    align-items: center;
  }

  .info-row {
    flex-direction: column;
  }

  .mini-panel {
    width: 100%;
  }

  .player-box {
    flex-wrap: wrap;
  }

  .track-controls {
    margin-left: auto;
  }
}
