* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-1: #030814;
  --bg-2: #07111f;
  --bg-3: #0b1c32;
  --text: #eef6ff;
  --muted: #9bb4d0;
  --glass: rgba(7, 16, 31, 0.26);
  --glass-2: rgba(9, 21, 40, 0.42);
  --accent: #8fd0ff;
}

html,
body {
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(35, 77, 142, 0.22), transparent 30%),
    radial-gradient(circle at bottom, rgba(24, 60, 121, 0.18), transparent 35%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2) 45%, var(--bg-3));
}

body {
  position: relative;
}

#spaceCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.05) 55%, rgba(0, 0, 0, 0.2) 100%);
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 180px rgba(0, 0, 0, 0.85);
}

.grid-fade {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  background-image:
    linear-gradient(rgba(255,255,255,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.35) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.profile-wrap {
  width: min(92vw, 720px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar {
  width: 138px;
  height: 138px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(163, 214, 255, 0.35);
  box-shadow:
    0 0 0 8px rgba(69, 124, 199, 0.08),
    0 0 55px rgba(120, 181, 255, 0.25);
  margin-bottom: 18px;
  user-select: none;
  -webkit-user-drag: none;
}

.name {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: lowercase;
  color: #f3f9ff;
  text-shadow:
    0 0 14px rgba(127, 190, 255, 0.25),
    0 0 40px rgba(80, 145, 255, 0.16);
}

.tagline {
  margin-top: 10px;
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: 0.5px;
  text-shadow: 0 0 18px rgba(111, 179, 255, 0.18);
}

.stats {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}

.stat-box {
  min-width: 210px;
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
  border: 1px solid rgba(156, 205, 255, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.02),
    0 12px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}

.stat-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #f7fbff;
}

.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.86rem;
  color: var(--muted);
  text-transform: lowercase;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}

.action-btn {
  min-width: 190px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 22px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, rgba(17, 34, 59, 0.7), rgba(7, 17, 30, 0.88));
  border: 1px solid rgba(155, 204, 255, 0.16);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(255,255,255,0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(8px);
}

.action-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(155, 204, 255, 0.28);
  box-shadow:
    0 0 26px rgba(108, 174, 255, 0.12),
    0 14px 36px rgba(0, 0, 0, 0.28);
}

.btn-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 6px;
}

.music-player {
  width: min(92vw, 560px);
  margin-top: 28px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(8, 18, 34, 0.58), rgba(8, 20, 38, 0.76));
  border: 1px solid rgba(152, 202, 255, 0.12);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(255,255,255,0.02);
  backdrop-filter: blur(10px);
}

.compact-music {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.music-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.music-icon-wrap {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(82, 142, 255, 0.18), rgba(11, 27, 54, 0.72));
  border: 1px solid rgba(159, 208, 255, 0.14);
  box-shadow: 0 0 20px rgba(102, 168, 255, 0.10);
}

.music-icon {
  width: 24px;
  height: 24px;
  color: #f2f8ff;
}

.music-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.music-title {
  font-size: 1rem;
  font-weight: 700;
  color: #f5fbff;
}

.music-sub {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: lowercase;
}

.music-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mute-btn {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(159, 208, 255, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(82, 142, 255, 0.18), rgba(11, 27, 54, 0.72));
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(102, 168, 255, 0.10);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mute-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 28px rgba(102, 168, 255, 0.18);
}

.volume-control {
  min-width: 210px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.volume-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: lowercase;
}

#volumeSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(148, 193, 255, 0.14);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

#volumeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #dff1ff;
  box-shadow: 0 0 12px rgba(124, 183, 255, 0.35);
  border: none;
}

#volumeSlider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 50%;
  background: #dff1ff;
  box-shadow: 0 0 12px rgba(124, 183, 255, 0.35);
}

@media (max-width: 640px) {
  html,
  body {
    overflow-y: auto;
  }

  .hero {
    min-height: 100dvh;
    padding: 24px 16px 32px;
  }

  .avatar {
    width: 112px;
    height: 112px;
  }

  .buttons {
    width: 100%;
    flex-direction: column;
  }

  .action-btn {
    width: 100%;
  }

  .music-player,
  .compact-music {
    width: 100%;
  }

  .compact-music {
    flex-direction: column;
    align-items: stretch;
  }

  .music-controls {
    width: 100%;
    justify-content: space-between;
  }

  .volume-control {
    min-width: 0;
    flex: 1;
  }
}