/* ============== Reset / Base ============== */
*, *::before, *::after {
  box-sizing: border-box; margin: 0; padding: 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
img { -webkit-user-drag: none; pointer-events: none; }
html, body { height: 100%; }
:root {
  --bg-0: #07000f;
  --bg-1: #11002a;
  --accent-1: #a855f7;
  --accent-2: #22d3ee;
  --accent-3: #ec4899;
  --text: #ece6ff;
  --muted: #9b8ec4;
  --glass: rgba(20, 8, 40, 0.55);
  --glass-bd: rgba(168, 85, 247, 0.25);
  --shadow: 0 20px 60px -10px rgba(168, 85, 247, 0.45),
            0 8px 30px -6px rgba(34, 211, 238, 0.25);
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 800px at 20% 10%, #1a0040 0%, transparent 60%),
              radial-gradient(1000px 700px at 80% 90%, #001a2a 0%, transparent 60%),
              linear-gradient(180deg, var(--bg-0), var(--bg-1));
  color: var(--text);
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  cursor: none;
  position: relative;
  display: flex;
  flex-direction: column;
}
@media (max-width: 720px) { body { cursor: auto; } .cursor-dot, .cursor-ring { display: none; } }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ============== Background canvas / overlays ============== */
#bgCanvas {
  position: fixed; inset: 0; z-index: -3; width: 100%; height: 100%;
  display: block;
}
.grid-overlay {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(168,85,247,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  animation: gridMove 30s linear infinite;
}
@keyframes gridMove { from { background-position: 0 0, 0 0; } to { background-position: 60px 60px, 60px 60px; } }
.vignette {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.7) 100%);
}
.spotlight {
  position: fixed; pointer-events: none; z-index: 0;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  left: 50%; top: 50%;
  transition: opacity .3s ease;
  mix-blend-mode: screen;
}

/* ============== Cursor ============== */
.cursor-dot, .cursor-ring {
  position: fixed; left: 0; top: 0; pointer-events: none; z-index: 9999;
  border-radius: 50%; transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
  transition: transform .12s ease;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(168,85,247,0.6);
  transition: transform .18s ease, width .2s ease, height .2s ease, border-color .2s ease;
}
.cursor-ring.hover {
  width: 60px; height: 60px;
  border-color: var(--accent-2);
  background: rgba(34,211,238,0.05);
}

/* ============== Intro overlay ============== */
.intro {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at center, #1a0040 0%, #07000f 70%);
  cursor: pointer;
  transition: opacity .8s ease, visibility .8s ease;
}
.intro.hidden { opacity: 0; visibility: hidden; }
.intro-inner { text-align: center; position: relative; }
.intro-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hueShift 4s ease-in-out infinite;
}
@keyframes hueShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.intro-sub {
  margin-top: 1rem; color: var(--muted); letter-spacing: 0.3em;
  text-transform: uppercase; font-size: 0.75rem;
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:.3} 50%{opacity:1} }
.intro-pulse {
  position: absolute; inset: -40px; border-radius: 50%;
  border: 2px solid rgba(168,85,247,0.4);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Glitch effect */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  background: inherit;
  -webkit-background-clip: text; background-clip: text;
}
.glitch::before { animation: glitchA 3s infinite linear alternate-reverse; color: rgba(255, 0, 100, 0.7); mix-blend-mode: screen; }
.glitch::after  { animation: glitchB 2.5s infinite linear alternate-reverse; color: rgba(0, 255, 200, 0.7); mix-blend-mode: screen; }
@keyframes glitchA {
  0%,100% { transform: translate(0,0); clip-path: inset(0 0 0 0); }
  20% { transform: translate(-2px, 1px); clip-path: inset(20% 0 60% 0); }
  40% { transform: translate(2px,-1px); clip-path: inset(50% 0 20% 0); }
  60% { transform: translate(-1px, 2px); clip-path: inset(70% 0 10% 0); }
}
@keyframes glitchB {
  0%,100% { transform: translate(0,0); }
  25% { transform: translate(2px,-1px); }
  50% { transform: translate(-2px, 1px); }
  75% { transform: translate(1px, 2px); }
}

/* ============== Topbar ============== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.4rem;
  font-size: 0.85rem;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; letter-spacing: .04em;
}
.brand-mark {
  width: 14px; height: 14px; border-radius: 4px;
  background: conic-gradient(from 0deg, var(--accent-1), var(--accent-2), var(--accent-3), var(--accent-1));
  box-shadow: 0 0 14px rgba(168,85,247,0.7);
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.brand .dot { color: var(--accent-2); }
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 10px; background: var(--glass); border: 1px solid var(--glass-bd);
  backdrop-filter: blur(10px); transition: transform .2s ease, border-color .2s ease;
}
.icon-btn:hover { transform: translateY(-2px); border-color: var(--accent-2); color: var(--accent-2); }
.time {
  font-variant-numeric: tabular-nums; color: var(--muted);
  letter-spacing: 0.1em; font-size: 0.8rem;
}

/* ============== Stage / Card ============== */
.stage {
  flex: 1;
  min-height: 0;
  display: grid; place-items: center;
  padding: 4.5rem 1.25rem .5rem;
  position: relative; z-index: 1;
  width: 100%;
  overflow: hidden;
}
.card {
  width: min(440px, 100%);
  max-height: 100%;
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid var(--glass-bd);
  border-radius: 24px;
  padding: 0 1.6rem 1.4rem;
  box-shadow: var(--shadow);
  position: relative;
  transform-style: preserve-3d;
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
  animation: cardIn 1s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.card-glow {
  position: absolute; inset: -1px; border-radius: 24px;
  background: linear-gradient(120deg, transparent 30%, rgba(168,85,247,0.5), rgba(34,211,238,0.5), transparent 70%);
  background-size: 200% 200%;
  animation: borderFlow 6s linear infinite;
  z-index: -1;
  filter: blur(8px);
  opacity: .55;
}
@keyframes borderFlow { from { background-position: 0% 0%; } to { background-position: 200% 0%; } }

.banner {
  height: 100px;
  margin: 0 -1.6rem 0;
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(168,85,247,0.6), transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(34,211,238,0.5), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(236,72,153,0.4), transparent 50%),
    linear-gradient(135deg, #1a0040, #001a2a);
  position: relative; overflow: hidden;
}
.banner-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20px 30px, white, transparent),
    radial-gradient(1px 1px at 60px 60px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 120px 40px, white, transparent),
    radial-gradient(1px 1px at 180px 70px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 240px 50px, white, transparent),
    radial-gradient(1.5px 1.5px at 300px 20px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 360px 65px, white, transparent);
  background-size: 400px 80px;
  animation: starsMove 20s linear infinite;
  opacity: .7;
}
@keyframes starsMove { from { background-position: 0 0; } to { background-position: 400px 0; } }

.avatar-wrap {
  position: relative; width: 104px; height: 104px;
  margin: -52px auto 0.5rem;
}
.avatar-ring {
  position: absolute; inset: -6px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent-1), var(--accent-2), var(--accent-3), var(--accent-1));
  animation: spin 5s linear infinite;
  filter: blur(2px);
}
.avatar {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a0060, #003a4a);
  border: 4px solid var(--bg-0);
  display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 2.75rem;
  color: white;
  box-shadow: inset 0 0 30px rgba(168,85,247,0.4);
  overflow: hidden;
}
.avatar img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 50%;
  display: block;
  animation: avatarIn .6s ease-out;
}
@keyframes avatarIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
.name {
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem; font-weight: 700;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  margin: .15rem auto 0;
  width: 100%;
}
.accent {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.verified {
  display: inline-flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 0 8px rgba(99,102,241,0.65));
  flex-shrink: 0;
  position: relative; top: 1px;
}
.verified svg { display: block; width: 22px; height: 22px; }

.role {
  text-align: center; color: var(--muted); margin-top: .2rem;
  font-size: 0.9rem; letter-spacing: 0.02em;
  min-height: 1.3em;
}
.caret { color: var(--accent-2); animation: blink 1s step-end infinite; margin-left: 2px; }

.meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem;
  margin: .8rem 0 .7rem;
}
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .6rem; font-size: .68rem;
  letter-spacing: 0.05em;
  border-radius: 999px;
  background: rgba(168,85,247,0.08);
  border: 1px solid rgba(168,85,247,0.18);
  color: var(--text);
}
.chip-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 8px #22c55e;
}

.bio {
  text-align: center; color: #cbbef0;
  font-size: .88rem; line-height: 1.55;
  margin: .15rem .25rem 1.1rem;
}
.hl {
  background: linear-gradient(120deg, rgba(168,85,247,0.4), rgba(34,211,238,0.4));
  padding: 0 .25rem; border-radius: 4px; color: white; font-weight: 500;
}

/* ============== Links ============== */
.links { display: flex; flex-direction: column; gap: .55rem; }
.link {
  display: flex; align-items: center; gap: .85rem;
  padding: .7rem .95rem;
  border-radius: 13px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  position: relative; overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s, background .25s;
}
.link::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(168,85,247,0.18), rgba(34,211,238,0.18), transparent 70%);
  background-size: 200% 100%;
  background-position: -100% 0;
  transition: background-position .6s ease;
}
.link:hover {
  transform: translateX(4px) translateY(-2px);
  border-color: rgba(168,85,247,0.6);
  background: rgba(168,85,247,0.08);
}
.link:hover::before { background-position: 100% 0; }
.link-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(34,211,238,0.15));
  border: 1px solid rgba(168,85,247,0.3);
  position: relative; z-index: 1;
  transition: transform .3s ease;
}
.link:hover .link-icon { transform: rotate(-6deg) scale(1.05); }
.link-text { display: flex; flex-direction: column; line-height: 1.2; position: relative; z-index: 1; }
.link-text strong { font-size: .9rem; font-weight: 600; }
.link-text small { color: var(--muted); font-size: .72rem; margin-top: 1px; }
.link-arrow {
  margin-left: auto; color: var(--muted);
  transition: transform .3s ease, color .3s ease;
  position: relative; z-index: 1;
  font-size: 1.1rem;
}
.link:hover .link-arrow { transform: translate(4px, -4px); color: var(--accent-2); }
.link.primary {
  background: linear-gradient(135deg, rgba(168,85,247,0.18), rgba(34,211,238,0.12));
  border-color: rgba(168,85,247,0.45);
}

/* ============== Hidden YouTube player ============== */
#ytWrap {
  position: fixed;
  left: -9999px; top: -9999px;
  width: 200px; height: 200px;
  opacity: 0; pointer-events: none;
  overflow: hidden;
  visibility: hidden;
}

/* ============== Music Player ============== */
.player {
  display: flex; align-items: center; gap: .9rem;
  margin-top: 1.1rem; padding: .7rem .85rem .7rem .7rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(168,85,247,0.12), rgba(34,211,238,0.08));
  border: 1px solid rgba(168,85,247,0.22);
  position: relative; overflow: hidden;
  backdrop-filter: blur(10px);
}
.player::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(168,85,247,0.15), transparent 70%);
  background-size: 200% 100%;
  animation: playerShine 4s linear infinite;
  pointer-events: none;
}
@keyframes playerShine { from { background-position: -100% 0; } to { background-position: 200% 0; } }

.player-cover {
  position: relative; width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(168,85,247,0.45);
}
.player-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.player-cover-glow {
  position: absolute; inset: -2px;
  background: conic-gradient(from 0deg, var(--accent-1), var(--accent-2), var(--accent-3), var(--accent-1));
  filter: blur(6px); opacity: 0; z-index: -1;
  transition: opacity .4s;
}
.player.playing .player-cover-glow { opacity: .5; }
.vinyl-shine {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), transparent 50%);
  pointer-events: none;
}

.player-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.player-info { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.player-title {
  font-size: .88rem; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: 0.01em;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  10% { transform: translateX(0); }
  90% { transform: translateX(calc(-100% + 180px)); }
  100% { transform: translateX(calc(-100% + 180px)); }
}
.player-artist {
  font-size: .72rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}

.player-progress { display: flex; flex-direction: column; gap: 3px; }
.player-progress-bar {
  height: 4px; border-radius: 999px;
  background: rgba(255,255,255,0.08);
  position: relative; cursor: pointer;
  overflow: visible;
}
.player-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(168,85,247,0.6);
  transition: width .15s linear;
}
.player-progress-thumb {
  position: absolute; top: 50%; left: 0;
  width: 10px; height: 10px; border-radius: 50%;
  background: white; box-shadow: 0 0 8px var(--accent-2);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .2s ease;
}
.player-progress-bar:hover .player-progress-thumb { transform: translate(-50%, -50%) scale(1); }
.player-times {
  display: flex; justify-content: space-between;
  font-size: .65rem; color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

.player-controls {
  display: flex; align-items: center; gap: .25rem;
  flex-shrink: 0;
  position: relative; z-index: 1;
}
.player-btn {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: white;
  box-shadow: 0 4px 16px rgba(168,85,247,0.55);
  transition: transform .2s ease, box-shadow .2s ease;
}
.player-btn:hover { transform: scale(1.08); box-shadow: 0 4px 22px rgba(34,211,238,0.7); }
.player-btn:active { transform: scale(0.95); }
.player-btn svg { margin-left: 1px; }
.player-btn svg[id="playerIconPause"] { margin-left: 0; }

.player-nav {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--muted);
  background: transparent;
  transition: color .2s ease, transform .2s ease, background .2s ease;
}
.player-nav:hover { color: var(--accent-2); background: rgba(34,211,238,0.1); transform: scale(1.1); }
.player-nav:active { transform: scale(0.92); }

/* ============== Footer ============== */
.footer {
  display: flex; justify-content: center; align-items: center; gap: .5rem;
  padding: .55rem; font-size: .68rem; color: var(--muted);
  letter-spacing: 0.05em;
  z-index: 5;
  flex-wrap: wrap;
  text-align: center;
  flex-shrink: 0;
}
.footer .sep { opacity: .5; }
.heart { color: #ec4899; display: inline-block; animation: heartbeat 1.4s ease-in-out infinite; }
@keyframes heartbeat { 0%,100%{ transform: scale(1) } 30%{ transform: scale(1.25) } 60%{ transform: scale(1) } }

/* ============== Responsive ============== */
@media (max-width: 600px) {
  .topbar { padding: .7rem .9rem; font-size: .75rem; }
  .stage { padding: 3.4rem .8rem .4rem; }
  .card { padding: 0 1rem 1rem; border-radius: 18px; }
  .banner { margin: 0 -1rem; height: 65px; }
  .avatar-wrap { width: 78px; height: 78px; margin-top: -38px; }
  .avatar { font-size: 2rem; border-width: 3px; }
  .name { font-size: 1.3rem; gap: .3rem; }
  .verified svg { width: 16px; height: 16px; }
  .role { font-size: .75rem; }
  .bio { font-size: .76rem; margin-bottom: .7rem; line-height: 1.45; }
  .meta { gap: .3rem; margin: .5rem 0 .4rem; }
  .chip { font-size: .6rem; padding: .22rem .5rem; }
  .link { padding: .5rem .7rem; gap: .65rem; }
  .link-icon { width: 30px; height: 30px; }
  .link-icon svg { width: 16px; height: 16px; }
  .link-text strong { font-size: .78rem; }
  .link-text small { font-size: .62rem; }
  .player { margin-top: .7rem; padding: .55rem .6rem .55rem .55rem; gap: .65rem; }
  .player-cover { width: 44px; height: 44px; border-radius: 10px; }
  .player-title { font-size: .76rem; }
  .player-artist { font-size: .62rem; }
  .player-times { font-size: .55rem; }
  .player-btn { width: 36px; height: 36px; }
  .player-nav { width: 22px; height: 22px; }
  .player-controls { gap: .15rem; }
  .footer { font-size: .62rem; padding: .4rem; }
  .time { display: none; }
}

@media (max-width: 360px) {
  .name { font-size: 1.15rem; }
  .link-text small { display: none; }
  .bio { display: none; }
}

/* Very short viewports - hide non-essential bits */
@media (max-height: 720px) {
  .bio { display: none; }
}
@media (max-height: 640px) {
  .meta { display: none; }
  .player-artist { display: none; }
}
