/* ── 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);
  --glow:      rgba(255,255,255,0.18);
  --discord:   #5865F2;
  --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;
  justify-content: flex-start;
  overflow-x: hidden;
  cursor: none;
}

/* ── 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, opacity 0.2s;
  mix-blend-mode: difference;
}
.cursor-trail {
  position: fixed;
  width: 32px; height: 32px;
  border: 1.5px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: left 0.12s ease, top 0.12s ease;
}

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

/* ── Fade-in Animations ───────────────────────────── */
.fade-in { opacity: 0; animation: fadeUp 0.8s ease forwards; }
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.55s; }
.delay-3 { animation-delay: 0.75s; }
.delay-4 { animation-delay: 0.9s; }

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

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

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

.avatar-glow-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow:
    0 0 12px rgba(255,255,255,0.6),
    0 0 28px rgba(255,255,255,0.35),
    0 0 55px rgba(255,255,255,0.15);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(255,255,255,0.6), 0 0 28px rgba(255,255,255,0.35), 0 0 55px rgba(255,255,255,0.15); }
  50%       { box-shadow: 0 0 20px rgba(255,255,255,0.9), 0 0 45px rgba(255,255,255,0.55), 0 0 80px rgba(255,255,255,0.25); }
}

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

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

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

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

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

.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;
}
.player-artist {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 3px;
}

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

.player-time {
  font-size: 0.65rem;
  color: var(--muted);
  min-width: 30px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

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

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

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

/* Controls */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ctrl-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  color: #fff;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.ctrl-btn:hover {
  background: rgba(255,255,255,0.2);
  box-shadow: 0 0 14px rgba(255,255,255,0.2);
}
.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: 12px; height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(255,255,255,0.5);
}
.volume-slider::-moz-range-thumb {
  width: 12px; height: 12px;
  background: #fff;
  border-radius: 50%;
  border: none;
  box-shadow: 0 0 5px 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.65rem; color: var(--muted); margin-bottom: 2px; }
.discord-user  { font-size: 0.9rem; font-weight: 600; }

.discord-badge {
  font-size: 0.62rem;
  font-weight: 600;
  color: #57F287;
  background: rgba(87,242,135,0.1);
  border: 1px solid rgba(87,242,135,0.25);
  border-radius: 999px;
  padding: 3px 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

/* ── Description ──────────────────────────────────── */
.desc-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 8px;
}
.desc-block p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  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 56px; gap: 22px; }
  .avatar-wrap { width: 110px; height: 110px; }
  .avatar-img  { width: 100px; height: 100px; }
  .player-title { font-size: 0.76rem; }
  .desc-block p { font-size: 0.9rem; }
  .volume-slider { width: 70px; }
}

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