:root {
  --bg-1: #010101;
  --bg-2: #050505;
  --bg-3: #0a0a0a;
  --text: rgba(255, 255, 255, 0.97);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.24);
  --card-hover: rgba(255, 255, 255, 0.09);
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.58);

  --video-opacity: 0.72;
  --video-brightness: 0.68;

  --light-x: 50%;
  --light-y: 50%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05), transparent 22%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.035), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.02), transparent 30%),
    linear-gradient(145deg, var(--bg-1), var(--bg-2) 45%, var(--bg-3));
  overflow: hidden;
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      circle at var(--light-x) var(--light-y),
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.03) 18%,
      rgba(0, 0, 0, 0.10) 42%,
      rgba(0, 0, 0, 0.34) 100%
    );
  transition: background 0.08s linear;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: var(--video-opacity);
  filter: brightness(var(--video-brightness)) contrast(1.05);
  pointer-events: none;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.22;
  z-index: 0;
}

.orb-1 {
  width: 360px;
  height: 360px;
  left: -90px;
  top: -90px;
  background: rgba(255, 255, 255, 0.08);
  animation: drift1 14s ease-in-out infinite alternate;
}

.orb-2 {
  width: 320px;
  height: 320px;
  right: -80px;
  bottom: -60px;
  background: rgba(255, 255, 255, 0.05);
  animation: drift2 16s ease-in-out infinite alternate;
}

@keyframes drift1 {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(45px, 35px) scale(1.15);
  }
}

@keyframes drift2 {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-35px, -30px) scale(1.18);
  }
}

.noise {
  position: fixed;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 3px 3px, 3px 3px;
  mix-blend-mode: soft-light;
  z-index: 0;
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.38) 100%);
  z-index: 0;
}

.mouse-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.04) 30%,
    transparent 72%
  );
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
}

.overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.04), transparent 24%),
    rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: opacity 0.85s ease, visibility 0.85s ease;
}

.overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

.enter-btn {
  border: none;
  background: transparent;
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  text-transform: lowercase;
  letter-spacing: 0.22em;
  cursor: pointer;
  padding: 1rem 1.4rem;
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.9),
    0 0 36px rgba(255, 255, 255, 0.22);
  transition: transform 0.22s ease, opacity 0.22s ease, text-shadow 0.22s ease;
}

.enter-btn:hover {
  transform: scale(1.06);
  opacity: 0.94;
  text-shadow:
    0 0 16px rgba(255, 255, 255, 1),
    0 0 44px rgba(255, 255, 255, 0.28);
}

.main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.main.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hidden {
  visibility: hidden;
  pointer-events: none;
}

.profile-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  padding: 1.9rem 1.25rem 1.25rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.045));
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  animation: cardFloat 4.5s ease-in-out infinite;
}

.card-tilt {
  transform-style: preserve-3d;
  transition: transform 0.12s ease;
  will-change: transform;
}

@keyframes cardFloat {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0px);
  }
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.09),
    transparent 24%,
    transparent 72%,
    rgba(255, 255, 255, 0.045)
  );
  pointer-events: none;
}

.profile-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 26px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.12)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.85;
}

.profile-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.62);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.05));
}

.avatar-wrap,
.username,
.mini-status,
.music-list {
  transform: translateZ(18px);
}

.avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.025),
    0 0 40px rgba(255, 255, 255, 0.12);
}

.username {
  font-size: 2.35rem;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.18),
    0 0 24px rgba(255, 255, 255, 0.08);
  animation: usernameGlow 2.8s ease-in-out infinite alternate;
}

.username::after {
  content: "|";
  margin-left: 4px;
  opacity: 1;
  animation: blink 0.9s infinite;
}

@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

@keyframes usernameGlow {
  0% {
    text-shadow:
      0 0 8px rgba(255, 255, 255, 0.14),
      0 0 18px rgba(255, 255, 255, 0.05);
  }
  100% {
    text-shadow:
      0 0 16px rgba(255, 255, 255, 0.26),
      0 0 34px rgba(255, 255, 255, 0.13);
  }
}

.mini-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-dot {
  width: 7px;
  height: 7px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
  animation: dotPulse 1.8s ease-in-out infinite;
}

@keyframes dotPulse {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
}

.music-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.music-card {
  width: 100%;
  margin: 0;
  padding: 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: left;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  color: white;
}

.music-card:hover {
  transform: scale(1.03);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.music-card.active {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.music-card.active .music-label {
  opacity: 0.9;
}

.music-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.music-cover {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
}

.music-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.music-meta {
  min-width: 0;
}

.music-label {
  font-size: 0.72rem;
  opacity: 0.65;
  margin-bottom: 0.18rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.music-meta h2 {
  font-size: 1rem;
  line-height: 1.15;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-meta p {
  font-size: 0.85rem;
  opacity: 0.72;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-progress-wrap {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 0.55rem;
}

.music-progress-wrap span {
  font-size: 0.75rem;
  opacity: 0.72;
}

.music-progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.music-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.55));
  transition: width 0.15s linear;
}

@media (max-width: 520px) {
  .profile-card {
    max-width: 100%;
    padding: 1.5rem 1rem 1rem;
    border-radius: 22px;
  }

  .avatar {
    width: 92px;
    height: 92px;
  }

  .username {
    font-size: 2rem;
  }

  .mouse-glow {
    width: 280px;
    height: 280px;
  }
  .music-card iframe {
    border-radius: 12px;
    pointer-events: none; /* zodat jouw hover effect blijft werken */
  }
  
  .music-card.active iframe {
    pointer-events: auto; /* alleen actieve track klikbaar */
  }
}