/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:    #c084fc;
  --accent2:   #34d9c3;
  --accent3:   #e879f9;
  --bg-dark:   #06040e;
  --bg-card:   rgba(10, 7, 20, 0.80);
  --text-main: #ede8ff;
  --text-dim:  #7260a8;
  --font-main: 'Orbitron', monospace;
  --font-body: 'Rajdhani', sans-serif;
}

html, body {
  width: 100%; height: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 16px;
}

/* ===== BLOTTER CANVAS ===== */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
}

/* ===== PLAYER WRAP ===== */
.player-wrap {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 100;
}

/* ===== AUDIO BUTTON ===== */
.audio-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 7, 20, 0.80);
  border: 1px solid rgba(192, 132, 252, 0.45);
  color: var(--accent);
  font-family: var(--font-main);
  font-size: 10px;
  letter-spacing: 2px;
  padding: 8px 14px;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
  width: 100%;
}

.audio-btn:hover,
.player-wrap.open .audio-btn {
  background: rgba(192, 132, 252, 0.12);
  border-color: rgba(192, 132, 252, 0.75);
}

.audio-btn.muted {
  border-color: rgba(114, 96, 168, 0.3);
  color: var(--text-dim);
}

.audio-icon {
  font-size: 14px;
  animation: pulse 2s ease-in-out infinite;
}

.audio-btn.muted .audio-icon { animation: none; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ===== PLAYER DROPDOWN ===== */
.player-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: rgba(10, 7, 22, 0.92);
  border: 1px solid rgba(192, 132, 252, 0.28);
  border-radius: 16px;
  padding: 16px;
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);

  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-wrap.open .player-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* song title */
.player-title {
  font-family: var(--font-main);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--text-main);
  text-transform: uppercase;
  margin-bottom: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* progress bar */
.player-progress {
  position: relative;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 6px;
}

.player-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--accent);
  border-radius: 4px;
  pointer-events: none;
  transition: width 0.1s linear;
}

.player-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(192,132,252,0.8);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s, left 0.1s linear;
}

.player-progress:hover .player-thumb { opacity: 1; }

/* times */
.player-times {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-main);
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 14px;
}

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

.pctrl {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.18s, background 0.18s;
  line-height: 1;
}

.pctrl:hover {
  color: var(--accent);
  background: rgba(192,132,252,0.1);
}

.pctrl-play {
  font-size: 20px;
  color: var(--accent);
  border: 1px solid rgba(192,132,252,0.4);
  padding: 7px 10px;
  border-radius: 50%;
}

.pctrl-play:hover {
  background: rgba(192,132,252,0.18);
  border-color: var(--accent);
}

/* ===== CONTAINER ===== */
.container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
}

/* ===== CARD ===== */
.card {
  position: relative;
  background: rgba(10, 7, 20, 0.56);
  border: 1px solid rgba(192, 132, 252, 0.18);
  border-radius: 20px;
  padding: 0;
  text-align: center;
  backdrop-filter: blur(14px);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

/* subtle corner accents */
.card::before, .card::after {
  content: '';
  position: absolute;
  width: 48px; height: 48px;
  border-color: rgba(192, 132, 252, 0.3);
  border-style: solid;
  z-index: 2;
  pointer-events: none;
}
.card::before {
  top: 12px; left: 12px;
  border-width: 1px 0 0 1px;
  border-radius: 5px 0 0 0;
}
.card::after {
  bottom: 12px; right: 12px;
  border-width: 0 1px 1px 0;
  border-radius: 0 0 5px 0;
}

/* ===== CARD INNER ===== */
.card-inner {
  position: relative;
  z-index: 1;
  padding: 40px 32px 32px;
}

/* ===== AVATAR ===== */
.avatar-wrap {
  position: relative;
  width: 96px; height: 96px;
  margin: 0 auto 20px;
}

.avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(#c084fc, #34d9c3, #e879f9, #818cf8, #c084fc);
  animation: spinEl 3.5s linear infinite;
  opacity: 0.85;
  filter: blur(1px);
}

@keyframes spinEl { to { transform: rotate(360deg); } }

.avatar {
  position: relative;
  z-index: 2;
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-dark);
  display: block;
}

.avatar-placeholder {
  position: absolute;
  inset: 0; z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a0a38, #0a0a1a);
  border: 3px solid var(--bg-dark);
  font-size: 38px;
  color: var(--accent);
}

/* ===== NAME ===== */
.name {
  font-family: var(--font-main);
  font-size: clamp(20px, 5vw, 27px);
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3), var(--accent));
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.35));
}

@keyframes shimmer { to { background-position: 250% center; } }

/* ===== BIO ===== */
.bio {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 24px;
  letter-spacing: 0.4px;
}

/* ===== DIVIDER ===== */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192, 132, 252, 0.3), transparent);
}

.divider-icon {
  color: var(--accent);
  font-size: 11px;
  opacity: 0.65;
  animation: rotate 7s linear infinite;
  display: inline-block;
}

@keyframes rotate { to { transform: rotate(360deg); } }

/* ===== LINK BUTTONS ===== */
.links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 28px;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.8px;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

.link-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: left 0.4s ease;
}

.link-btn:hover::before { left: 100%; }

.link-btn:hover {
  transform: translateX(3px);
  border-color: var(--hover-color, var(--accent));
  box-shadow:
    0 0 18px color-mix(in srgb, var(--hover-color, var(--accent)) 35%, transparent),
    inset 0 0 10px color-mix(in srgb, var(--hover-color, var(--accent)) 6%, transparent);
  color: var(--hover-color, var(--accent));
}

.link-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
  transition: filter 0.22s;
}

.link-btn:hover .link-icon {
  filter: drop-shadow(0 0 5px var(--hover-color, var(--accent)));
}

.link-text { flex: 1; text-align: center; }

.link-arrow {
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.22s ease;
  font-size: 15px;
}

.link-btn:hover .link-arrow {
  opacity: 0.55;
  transform: translateX(0);
}

/* ===== FOOTER ===== */
.footer {
  font-family: var(--font-main);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
  opacity: 0.35;
}
