:root {
  --bg: #080909;
  --panel: rgba(14, 15, 15, 0.72);
  --panel-strong: rgba(20, 22, 22, 0.9);
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f4f7f2;
  --muted: #aeb7ae;
  --subtle: #737c73;
  --accent: #ff3d57;
  --accent-2: #ffd166;
  --accent-3: #61f4de;
  --danger: #ff5d5d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --radius: 8px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(125deg, rgba(255, 61, 87, 0.13), transparent 28%),
    linear-gradient(215deg, rgba(255, 209, 102, 0.10), transparent 32%),
    linear-gradient(0deg, rgba(97, 244, 222, 0.08), transparent 46%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 18%, rgba(255, 255, 255, 0.025) 50%, transparent 82%),
    #080909;
  color: var(--text);
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  z-index: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 78%);
}

body::after {
  z-index: 1;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.profile-stage {
  width: min(100%, 820px);
}

.profile-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(22px);
  isolation: isolate;
}

.profile-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3), var(--accent-2));
  content: "";
}

.profile-card::after {
  position: absolute;
  inset: 4px 0 auto;
  height: 150px;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.085) 0 1px, transparent 1px 22px),
    linear-gradient(90deg, rgba(255, 61, 87, 0.16), rgba(255, 209, 102, 0.09), rgba(97, 244, 222, 0.12));
  opacity: 0.82;
  content: "";
  pointer-events: none;
}

.profile-topline,
.identity,
.music-panel,
.social-grid,
.featured,
.profile-footer {
  position: relative;
  z-index: 1;
}

.profile-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(156, 255, 56, 0.28);
  border-radius: 999px;
  background: rgba(7, 10, 7, 0.62);
  color: #defec3;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.status-dot {
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}

.profile-actions,
.music-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.play-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.icon-button:hover,
.play-button:hover,
.social-link:hover,
.featured-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.34);
}

.icon-button.ghost {
  opacity: 0.72;
}

.identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 30px);
  min-width: 0;
}

.avatar-wrap {
  position: relative;
  width: clamp(96px, 18vw, 132px);
  aspect-ratio: 1;
  flex: 0 0 auto;
}

.avatar {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  object-fit: cover;
  background: #111;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

.avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(156, 255, 56, 0.4);
  border-top-color: rgba(255, 79, 216, 0.62);
  border-right-color: rgba(46, 230, 255, 0.62);
  animation: ring-spin 9s linear infinite;
  pointer-events: none;
}

@keyframes ring-spin {
  to {
    rotate: 360deg;
  }
}

.identity-copy {
  min-width: 0;
}

.name-row {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(2.1rem, 7vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: 0;
  color: transparent;
  background: linear-gradient(90deg, #fff, var(--accent), var(--accent-3));
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.38);
}

h2 {
  font-size: 1.1rem;
  line-height: 1.1;
}

.badge {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.badge.verified {
  color: var(--accent-3);
  background: rgba(46, 230, 255, 0.1);
}

.badge.premium {
  color: var(--accent-2);
  background: rgba(255, 79, 216, 0.1);
}

.handle {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: 8px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--accent);
  font-weight: 800;
}

.bio {
  max-width: 58ch;
  margin-top: 12px;
  color: #d7ded3;
  line-height: 1.55;
}

.typing {
  min-height: 1.35em;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.typing-caret {
  display: inline-block;
  width: 8px;
  height: 1em;
  margin-left: 4px;
  translate: 0 2px;
  background: var(--accent);
  animation: caret 900ms steps(1) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.music-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(46, 230, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 44%),
    linear-gradient(120deg, rgba(255, 61, 87, 0.13), transparent 42%),
    linear-gradient(280deg, rgba(255, 209, 102, 0.1), transparent 36%),
    rgba(0, 0, 0, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    0 18px 52px rgba(0, 0, 0, 0.28);
}

.track-art {
  position: relative;
  width: 92px;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 61, 87, 0.15), rgba(97, 244, 222, 0.12)),
    #111;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
}

.track-symbol,
#visualizer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.track-symbol {
  display: grid;
  place-items: center;
  color: var(--accent);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 61, 87, 0.22), transparent 46%),
    rgba(255, 255, 255, 0.04);
}

.track-symbol .lucide {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 12px rgba(255, 61, 87, 0.58));
}

.track-main {
  min-width: 0;
}

.track-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.section-kicker {
  color: var(--accent-3);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.track-copy strong,
.track-copy span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-copy strong {
  font-size: 1.08rem;
}

.track-copy span:last-child {
  color: var(--muted);
  font-size: 0.9rem;
}

.audio-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  margin-top: 8px;
  padding: 0 9px;
  border: 1px solid rgba(255, 209, 102, 0.24);
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.09);
  color: #ffe6a8;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.music-controls {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  margin-top: 14px;
  align-items: center;
  gap: 12px;
}

.play-button {
  width: 46px;
  height: 46px;
  border-color: rgba(255, 209, 102, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.22), rgba(97, 244, 222, 0.10)),
    rgba(255, 255, 255, 0.06);
  color: #f8ffe9;
  box-shadow: 0 0 24px rgba(255, 209, 102, 0.16);
}

.timeline {
  min-width: 0;
}

.progress-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-3), var(--accent-2));
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 118px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
}

.time-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
  color: var(--subtle);
  font-size: 0.76rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  width: 86px;
  accent-color: var(--accent);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.social-link,
.featured-link {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.2);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.social-link {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  gap: 10px;
  min-height: 138px;
  padding: 18px 12px 14px;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--brand, var(--accent)) 28%, rgba(255, 255, 255, 0.09));
  text-align: center;
}

.social-link::before,
.featured-link::before {
  position: absolute;
  inset: 12px auto 12px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--brand, var(--accent));
  box-shadow: 0 0 22px var(--brand, var(--accent));
  content: "";
}

.social-link:hover,
.featured-link:hover {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand, var(--accent)) 18%, transparent), rgba(255, 255, 255, 0.045)),
    rgba(0, 0, 0, 0.2);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--brand, var(--accent)) 22%, transparent);
}

.social-icon,
.featured-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  background: color-mix(in srgb, var(--brand, var(--accent)) 18%, rgba(255, 255, 255, 0.06));
  color: var(--brand, var(--accent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand, var(--accent)) 32%, transparent);
}

.brand-logo {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--brand, var(--accent)) 55%, transparent));
}

.external-cue {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.social-link .external-cue {
  position: absolute;
  top: 12px;
  right: 12px;
  opacity: 0.72;
}

.social-link .external-cue .lucide {
  width: 15px;
  height: 15px;
}

.social-copy,
.featured-copy {
  min-width: 0;
}

.social-copy strong,
.social-copy span,
.featured-copy strong,
.featured-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-copy strong,
.featured-copy strong {
  font-size: 0.95rem;
}

.social-copy span,
.featured-copy span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.84rem;
}

.featured {
  margin-top: 20px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.mini-line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(46, 230, 255, 0.34), transparent);
}

.featured-list {
  display: grid;
  gap: 10px;
}

.featured-link {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 12px;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--brand, var(--accent)) 24%, rgba(255, 255, 255, 0.09));
}

.profile-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: var(--subtle);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.footer-separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line);
}

.enter-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(156, 255, 56, 0.16), transparent 34%),
    linear-gradient(315deg, rgba(255, 79, 216, 0.14), transparent 34%),
    rgba(5, 6, 6, 0.88);
  backdrop-filter: blur(18px);
  transition: opacity 240ms ease, visibility 240ms ease;
}

.enter-screen.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.enter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(156, 255, 56, 0.4);
  border-radius: var(--radius);
  background: rgba(156, 255, 56, 0.12);
  cursor: pointer;
}

.enter-button {
  min-width: min(100%, 260px);
  min-height: 58px;
  padding: 0 22px;
  color: #f7fff1;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.enter-icon {
  color: var(--accent);
}

.lucide {
  width: 18px;
  height: 18px;
  stroke-width: 2.15;
}

@media (max-width: 680px) {
  .page-shell {
    align-items: start;
    padding: 18px 12px;
  }

  .profile-topline {
    margin-bottom: 22px;
  }

  .identity {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .name-row {
    justify-content: center;
    flex-wrap: wrap;
  }

  .bio {
    margin-inline: auto;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .music-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .track-main {
    width: 100%;
  }

  .music-controls {
    grid-template-columns: 46px minmax(0, 1fr);
    justify-content: stretch;
  }

  .volume-control {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
  }

  .audio-status {
    margin-inline: auto;
  }

  .featured-link,
  .social-link {
    grid-template-columns: 42px minmax(0, 1fr) 20px;
    grid-template-rows: auto;
    justify-items: stretch;
    min-height: 72px;
    padding: 12px;
    text-align: left;
  }

  .social-link .external-cue {
    position: static;
  }

  .social-link .external-cue .lucide {
    width: 18px;
    height: 18px;
  }

  .social-icon,
  .featured-icon {
    width: 42px;
    height: 42px;
  }

  .brand-logo {
    width: 22px;
    height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .fx-canvas {
    display: none;
  }
}
