:root {
  --bg-900: #040407;
  --bg-800: #07060a;
  --panel: rgba(255,255,255,0.03);
  --muted: rgba(255,255,255,0.5);
  --accent-a: #7c3aed;
  --accent-b: #06b6d4;
  --accent-gradient: linear-gradient(90deg,var(--accent-a),var(--accent-b));
  --glass: rgba(255,255,255,0.03);
  --radius: 16px;
  --max-width: 980px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue';
  --ease: cubic-bezier(.16,.84,.36,1);
}

:root[data-theme='light'] {
  --bg-900: #f7f8fb;
  --bg-800: #eef2ff;
  --panel: rgba(2,6,23,0.04);
  --muted: rgba(2,6,23,0.7);
  --accent-a: #5b21b6;
  --accent-b: #0891b2;
  --accent-gradient: linear-gradient(90deg,var(--accent-a),var(--accent-b));
  color-scheme: light;
  --glass: rgba(2,6,23,0.03);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: radial-gradient(1200px 600px at 10% 10%, rgba(124,58,237,0.06), transparent), var(--bg-900);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

/* Particle background & orbs */
#particles-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.orb { position: fixed; filter: blur(36px); opacity: 0.16; z-index: 0; transform: translateZ(0); }
.orb-a { width: 520px; height: 520px; border-radius: 50%; left: -12%; top: -8%; background: radial-gradient(circle at 30% 30%, var(--accent-a), transparent 40%); }
.orb-b { width: 420px; height: 420px; border-radius: 50%; right: -8%; bottom: -10%; background: radial-gradient(circle at 70% 70%, var(--accent-b), transparent 40%); }

.container { width: 100%; max-width: var(--max-width); position: relative; z-index: 1; }

/* Banner */
.banner {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 51vw; /* Full width stretch */
  height: 120px; /* Adjust as needed */
  z-index: 0; /* Below header/profile */
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
  opacity: 0.95;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
border-radius: 20px;
}

/* Header */
.header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; position: relative; z-index: 2; }
.brand { display: flex; align-items: center; gap: 12px; }
.avatar { width: 76px; height: 76px; border-radius: 18px; overflow: hidden; border: 2px solid rgba(255,255,255,0.04); box-shadow: 0 12px 48px rgba(124,58,237,0.08); transition: transform .45s var(--ease); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-meta .displayName { font-weight: 800; letter-spacing: 2px; color: var(--accent-a); font-size: 20px; text-shadow: 0 8px 36px rgba(124,58,237,0.06); }
.bio { font-size: 13px; color: var(--muted); }
.header-controls { display: flex; align-items: center; gap: 8px; }
.theme-toggle { background: linear-gradient(90deg,rgba(255,255,255,0.02),transparent); border-radius: 12px; padding: 8px; border: 1px solid rgba(255,255,255,0.04); cursor: pointer; }
.btn { padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.04); background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.btn.small { padding: 6px 8px; font-size: 13px; }

/* Layout */
.main { display: grid; grid-template-columns: 1fr; gap: 14px; }
.card { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border-radius: var(--radius); padding: 14px; border: 1px solid rgba(255,255,255,0.04); backdrop-filter: blur(8px); box-shadow: 0 12px 40px rgba(2,6,23,0.6); }

/* Profile Card */
.profile { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; transition: transform .35s var(--ease); }
.alias-row { display: flex; gap: 8px; align-items: center; justify-content: center; }
.alias { background: linear-gradient(90deg, rgba(124,58,237,0.12), rgba(6,182,212,0.06)); padding: 8px 12px; border-radius: 999px; font-weight: 800; color: var(--accent-a); }
.copy-btn { background: transparent; border: 1px solid rgba(255,255,255,0.04); padding: 6px 10px; border-radius: 10px; cursor: pointer; color: var(--muted); }
.meta { display: flex; gap: 10px; align-items: center; color: var(--muted); }

/* Music Player */
#music-player {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin-top: 1.2rem;
}
.music-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(20, 20, 30, 0.6);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 0 35px rgba(124, 58, 237, 0.25);
  transition: all 0.3s ease;
}
.music-container:hover { box-shadow: 0 0 50px rgba(124, 58, 237, 0.45); transform: translateY(-2px); }
.track-cover { width: 70px; height: 70px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 15px rgba(124, 58, 237, 0.25); }
.music-content { flex: 1; display: flex; flex-direction: column; align-items: center; }
.player-btn { background: var(--accent-a); color: white; border: none; border-radius: 50%; width: 50px; height: 50px; font-size: 1.2rem; cursor: pointer; transition: all 0.2s ease; }
.player-btn:hover { box-shadow: 0 0 20px var(--accent-a); transform: scale(1.1); }
.track-info { width: 100%; margin-top: 0.6rem; text-align: center; color: #fff; font-weight: 500; letter-spacing: 0.5px; }
#progress, #volume { width: 100%; margin-top: 0.4rem; accent-color: var(--accent-a); }
#volume { max-width: 120px; }

/* Links */
.links { padding: 6px; }
.search-row { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.input { flex: 1; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.04); background: transparent; color: #fff; font-size: 15px; }

/* Footer */
.footer { display: flex; justify-content: center; padding: 12px; }

@media (min-width: 880px) {
  .main { grid-template-columns: 320px 1fr; align-items: start; }
  .profile { position: sticky; top: 24px; }
  .avatar { width: 96px; height: 96px; border-radius: 16px; }
  #music-player { grid-column: 1; }
}

/* Enter Screen */
#enter-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, #090909 0%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 999;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}
#enter-screen.hidden { opacity: 0; visibility: hidden; }
.enter-title { font-size: 2rem; letter-spacing: 2px; color: var(--accent-a); text-shadow: 0 0 20px rgba(124, 58, 237, 0.5); }
#enter-btn { background: var(--accent-a); border: none; padding: 0.8rem 1.8rem; border-radius: 12px; font-size: 1rem; color: #fff; margin-top: 1.5rem; cursor: pointer; transition: all 0.3s ease; }
#enter-btn:hover { box-shadow: 0 0 15px var(--accent-a); transform: scale(1.05); }
/* --- Links Grid --- */
.links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
}

@media (min-width: 640px) {
  .links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 880px) {
  .links-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Link Card --- */
.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  transition: all 0.25s ease;
  box-shadow: 0 0 20px rgba(124,58,237,0.08);
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 0 30px rgba(124,58,237,0.2);
  background: linear-gradient(90deg, rgba(124,58,237,0.12), rgba(6,182,212,0.06));
}

/* Icon and text inside each link */
.link-card i {
  color: var(--accent-a);
  font-size: 1.2rem;
  margin-right: 10px;
  transition: color 0.3s ease;
}

.link-card:hover i {
  color: var(--accent-b);
}

.link-title {
  font-weight: 600;
  flex: 1;
}

.link-meta {
  font-size: 0.85rem;
  color: var(--muted);
}
