/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #050505;
  --glass-bg:     rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.10);
  --white:        #ffffff;
  --muted:        rgba(255,255,255,0.45);
  --radius:       20px;
  --font:         'Poppins', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  cursor: none;
}

/* ── Splash Screen ────────────────────────────────── */
#splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
#splash-glow {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  animation: splashPulse 2s ease-in-out infinite;
  margin-bottom: 8px;
}
@keyframes splashPulse {
  0%, 100% { transform: scale(1);   opacity: 0.6; }
  50%       { transform: scale(1.2); opacity: 1;   }
}
#splash-sub {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
#enterBtn {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 14px 38px;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s, transform 0.2s;
}
#enterBtn:hover {
  background: rgba(255,255,255,0.13);
  box-shadow: 0 0 28px rgba(255,255,255,0.18);
  transform: scale(1.04);
}
#enterBtn:active { transform: scale(0.98); }

/* ── Canvas Background ────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Custom Cursor ────────────────────────────────── */
.cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease;
  mix-blend-mode: difference;
}
.cursor-trail {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
}

/* ── Page Wrapper ─────────────────────────────────── */
.page-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  padding: 48px 20px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* ── Fade-in animations ───────────────────────────── */
.fade-in          { opacity: 0; animation: fadeUp 0.75s ease forwards; }
.delay-1          { animation-delay: 0.15s; }
.delay-2          { animation-delay: 0.30s; }
.delay-3          { animation-delay: 0.45s; }
.delay-4          { animation-delay: 0.60s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ── Avatar ───────────────────────────────────────── */
.avatar-wrap {
  position: relative;
  width: 136px;
  height: 136px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp 0.75s ease forwards, float 5s ease-in-out 0.75s infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

.avatar-glow-ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.85);
  box-shadow:
    0 0 14px rgba(255,255,255,0.55),
    0 0 32px rgba(255,255,255,0.28),
    0 0 60px rgba(255,255,255,0.12);
  animation: glowPulse 3.5s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow:
      0 0 14px rgba(255,255,255,0.55),
      0 0 32px rgba(255,255,255,0.28),
      0 0 60px rgba(255,255,255,0.12);
  }
  50% {
    box-shadow:
      0 0 22px rgba(255,255,255,0.9),
      0 0 50px rgba(255,255,255,0.5),
      0 0 90px rgba(255,255,255,0.22);
  }
}

.avatar-img {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: #111;
}

/* ── Glass Card ───────────────────────────────────── */
.card {
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 22px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 50px rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.22);
}

/* ── Music Player ─────────────────────────────────── */
.player-card { display: flex; flex-direction: column; gap: 18px; }

.player-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.player-cover {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #111;
  box-shadow: 0 4px 20px rgba(255,255,255,0.08);
}

.player-info { flex: 1; min-width: 0; }

.player-title {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  line-height: 1.4;
}
.player-artist {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Playing indicator dots */
.player-status { display: flex; align-items: center; }
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: background 0.3s, box-shadow 0.3s;
}
.status-dot.playing {
  background: #fff;
  box-shadow: 0 0 8px rgba(255,255,255,0.7);
  animation: dotPulse 1.2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1);   opacity: 1;   }
  50%       { transform: scale(1.5); opacity: 0.5; }
}

/* Progress */
.player-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-time {
  font-size: 0.64rem;
  color: var(--muted);
  min-width: 32px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.progress-bar-bg {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
}
.progress-bar-bg:hover .progress-thumb { opacity: 1; }

.progress-bar-fill {
  height: 100%;
  background: #fff;
  border-radius: 999px;
  width: 0%;
  pointer-events: none;
  transition: width 0.2s linear;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 13px;
  height: 13px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255,255,255,0.6);
  cursor: pointer;
  opacity: 0;
  transition: left 0.2s linear, opacity 0.2s;
}

/* Controls */
.player-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ctrl-btn {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.ctrl-btn:hover {
  background: rgba(255,255,255,0.18);
  box-shadow: 0 0 18px rgba(255,255,255,0.2);
  transform: scale(1.08);
}
.ctrl-btn:active { transform: scale(0.95); }
.ctrl-btn svg { width: 20px; height: 20px; }

.volume-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
}

.vol-icon { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 90px;
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255,255,255,0.5);
}
.volume-slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  background: #fff;
  border-radius: 50%;
  border: none;
  box-shadow: 0 0 6px rgba(255,255,255,0.5);
}

/* ── Discord Card ─────────────────────────────────── */
.discord-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.discord-icon   { width: 36px; height: 28px; flex-shrink: 0; }

.discord-info   { flex: 1; }
.discord-label  { font-size: 0.64rem; color: var(--muted); margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.08em; }
.discord-user   { font-size: 0.92rem; font-weight: 600; }

.discord-badge {
  font-size: 0.6rem;
  font-weight: 600;
  color: #57F287;
  background: rgba(87,242,135,0.09);
  border: 1px solid rgba(87,242,135,0.28);
  border-radius: 999px;
  padding: 4px 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ── Divider ──────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 14px;
}
.divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}
.divider-heart {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  animation: heartbeat 2.6s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1);    }
  14%       { transform: scale(1.22); }
  28%       { transform: scale(1);    }
  42%       { transform: scale(1.14); }
  56%       { transform: scale(1);    }
}

/* ── Description ──────────────────────────────────── */
.desc-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 0 10px;
}
.desc-block p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255,255,255,0.88);
}
.desc-block strong {
  font-weight: 700;
  color: #fff;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 420px) {
  .page-wrapper  { padding: 36px 16px 60px; gap: 22px; }
  .avatar-wrap   { width: 114px; height: 114px; }
  .avatar-img    { width: 102px; height: 102px; }
  .player-title  { font-size: 0.76rem; }
  .desc-block p  { font-size: 0.9rem; }
  .volume-slider { width: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── YouTube container oculto ─────────────────────── */
#yt-container {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  left: -9999px;
  top: -9999px;
}
