:root {
  --ink: #24183f;
  --muted: #6d6288;
  --purple: #5c37cb;
  --purple-deep: #3f248f;
  --orange: #fc6b40;
  --orange-soft: #ff8f66;
  --gold: #fedeab;
  --cream: #f4efe8;
  --cream-2: #fffaf4;
  --glass: rgba(255, 250, 244, 0.72);
  --line: rgba(92, 55, 203, 0.14);
  --shadow: 0 30px 80px rgba(63, 36, 143, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: Outfit, system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
body.profile-page {
  background: #120b22;
  color: #f7f2ea;
}
.aurora {
  position: fixed; inset: -20% -10% auto -10%; height: 70vh; z-index: 0; pointer-events: none;
  background:
    radial-gradient(42% 48% at 18% 30%, rgba(252, 107, 64, 0.34), transparent 70%),
    radial-gradient(38% 46% at 82% 18%, rgba(92, 55, 203, 0.28), transparent 72%),
    radial-gradient(48% 40% at 55% 70%, rgba(254, 222, 171, 0.55), transparent 70%);
  filter: blur(8px);
  will-change: transform;
}
.profile-page .aurora {
  background:
    radial-gradient(40% 45% at 20% 20%, rgba(252, 107, 64, 0.28), transparent 70%),
    radial-gradient(45% 50% at 80% 10%, rgba(92, 55, 203, 0.45), transparent 72%),
    radial-gradient(50% 40% at 50% 80%, rgba(254, 222, 171, 0.12), transparent 70%);
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.top, main, .foot, .now-playing { position: relative; z-index: 2; }
.top { padding: 28px 20px 8px; text-align: center; }
.logos { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; }
.logos img { height: 64px; width: auto; max-width: 42vw; object-fit: contain; filter: drop-shadow(0 10px 24px rgba(63,36,143,.12)); }
.logo-quiripa { height: 78px !important; }
main { width: min(820px, calc(100% - 28px)); margin: 8px auto 56px; }
.profile-page main { width: min(480px, calc(100% - 20px)); margin-bottom: 110px; }

h1, h2, .display {
  font-family: Syne, Outfit, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0 0 10px;
}
h1 { font-size: clamp(2.4rem, 8vw, 3.6rem); color: var(--purple-deep); }
h2 { font-size: clamp(1.45rem, 4vw, 1.9rem); color: var(--purple); margin-top: 8px; }
.profile-page h1, .profile-page h2 { color: #fff; }
.lead { font-size: 1.05rem; line-height: 1.55; color: var(--muted); margin: 0 0 18px; max-width: 38ch; }
.help { color: var(--muted); font-size: 0.92rem; line-height: 1.45; margin: 6px 0 0; }
.profile-page .help { color: rgba(247,242,234,.68); }

.panel, .section-block {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: var(--radius);
  padding: clamp(18px, 4vw, 28px);
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.narrow { max-width: 420px; margin-left: auto; margin-right: auto; }

.reveal, .panel, .section-block {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.985);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.in, .panel.in, .section-block.in {
  opacity: 1;
  transform: none;
}

.callout {
  display: flex; gap: 12px; align-items: flex-start;
  background: linear-gradient(135deg, rgba(252,107,64,.12), rgba(254,222,171,.35));
  border: 1px solid rgba(252,107,64,.28);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.callout strong { display: block; color: var(--purple-deep); margin-bottom: 2px; }
.tip {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(92,55,203,.07);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0 0 14px;
}
.tip b { color: var(--purple-deep); font-weight: 600; }
.warn { background: #ffe8e4; color: #8d2a22; border-radius: 16px; padding: 12px 14px; }
.ok { background: #e8f8ef; color: #146c43; border-radius: 16px; padding: 12px 14px; }

label { display: block; font-size: 0.84rem; font-weight: 600; letter-spacing: 0.01em; margin: 14px 0 7px; }
input, select, textarea {
  width: 100%;
  border: 1.5px solid transparent;
  background: rgba(255,255,255,.88);
  color: var(--ink);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--purple), 0 0 0 6px rgba(92,55,203,.12);
  transform: translateY(-1px);
}
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  position: relative;
  margin: 0;
  cursor: pointer;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 14px; border-radius: 999px;
  background: rgba(255,255,255,.75);
  border: 1.5px solid var(--line);
  font-weight: 600; font-size: 0.92rem;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.choice:hover span { transform: translateY(-1px); border-color: rgba(92,55,203,.35); }
.choice input:checked + span {
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(92,55,203,.28);
}

.btn, .btn-line, .btn-ghost, .btn-soft {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  width: 100%; border-radius: 18px; padding: 15px 18px; font-weight: 700;
  text-decoration: none; border: 0; cursor: pointer; font: inherit;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}
.btn { background: linear-gradient(135deg, var(--orange), #e8552d); color: #fff; box-shadow: 0 16px 36px rgba(252,107,64,.35); }
.btn-ghost { background: linear-gradient(135deg, var(--purple), var(--purple-deep)); color: #fff; box-shadow: 0 16px 36px rgba(92,55,203,.28); }
.btn-line { background: transparent; color: var(--purple-deep); box-shadow: inset 0 0 0 1.5px var(--purple); }
.btn-soft { width: auto; background: rgba(92,55,203,.08); color: var(--purple-deep); padding: 10px 14px; border-radius: 999px; font-size: 0.9rem; }
.btn:hover, .btn-ghost:hover, .btn-line:hover, .btn-soft:hover { transform: translateY(-2px); }
.btn:active, .btn-ghost:active { transform: translateY(1px); }
.menu { display: grid; gap: 12px; }
.menu a { margin: 0; }

.vinyl-stage {
  display: grid; justify-items: center; gap: 14px;
  margin: 8px 0 6px; perspective: 900px;
}
.vinyl {
  width: min(240px, 68vw); aspect-ratio: 1; border-radius: 50%; position: relative;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 24%, #0f0f12 25% 26%, #23232a 27% 38%, #0f0f12 39% 41%, #2f2f38 42% 43%, #0f0f12 44% 66%, #cfcfd6 67% 68%, #0f0f12 69% 100%);
  box-shadow:
    0 28px 50px rgba(63,36,143,.28),
    inset 0 0 0 1px rgba(255,255,255,.08);
  animation: spin 12s linear infinite;
  transform-style: preserve-3d;
}
.vinyl::after {
  content: ""; position: absolute; inset: -10%; border-radius: 50%;
  background: conic-gradient(from 180deg, transparent 0 60%, rgba(252,107,64,.18), transparent 78%);
  animation: spin 8s linear infinite reverse; pointer-events: none;
}
.vinyl.is-fast { animation-duration: 2.1s; }
.vinyl-photo {
  position: absolute; inset: 25%; border-radius: 50%; overflow: hidden;
  border: 3px solid rgba(254,222,171,.85);
  background: linear-gradient(145deg, var(--gold), #f0c98a);
  display: grid; place-items: center; text-align: center;
  color: var(--purple-deep); font-weight: 700; font-size: 0.85rem; padding: 10px;
}
.vinyl-photo img { width: 100%; height: 100%; object-fit: cover; }
@keyframes spin { to { transform: rotate(360deg); } }

.file-card {
  border: 1.5px dashed rgba(92,55,203,.28);
  background: rgba(255,255,255,.55);
  border-radius: 18px;
  padding: 14px;
  margin-top: 10px;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.file-card:hover { border-color: rgba(92,55,203,.5); background: #fff; }
.file-card.has-file {
  border-style: solid;
  border-color: rgba(92,55,203,.45);
  background: linear-gradient(180deg, rgba(92,55,203,.06), rgba(255,255,255,.9));
}
.demo-slot { display: none !important; }
.demo-slot.visible { display: block !important; animation: rise .45s var(--ease); }
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.check {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(255,255,255,.7);
  border-radius: 16px; padding: 14px; border: 1px solid var(--line); margin-top: 12px;
}
.check input { width: auto; margin-top: 3px; box-shadow: none; }
.counter { text-align: right; font-size: 0.78rem; color: var(--muted); }
.hidden { display: none !important; }

/* Profile Spotify-like */
.profile-hero {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  padding: 28px 22px 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  text-align: center;
}
.profile-hero .blur-art {
  position: absolute; inset: -20%;
  background-size: cover; background-position: center;
  filter: blur(40px) saturate(1.3); opacity: .35; transform: scale(1.2);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: scale(1.15) translate3d(-2%, -1%, 0); }
  to { transform: scale(1.25) translate3d(2%, 2%, 0); }
}
.profile-hero > * { position: relative; z-index: 1; }
.profile-meta { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.chip {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(254,222,171,.16); color: var(--gold);
  border: 1px solid rgba(254,222,171,.25);
}
.bio-quote {
  font-size: 1.05rem; line-height: 1.5; color: rgba(247,242,234,.84);
  margin: 14px auto 0; max-width: 34ch;
}
.tracks-card {
  margin-top: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  padding: 10px;
}
.track-row {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center;
  padding: 12px; border-radius: 16px; cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
  opacity: 0; transform: translateY(16px);
}
.track-row.in { opacity: 1; transform: none; }
.track-row:hover, .track-row.active {
  background: rgba(252,107,64,.14);
}
.track-num {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 700;
  background: rgba(255,255,255,.06); color: var(--gold);
}
.track-row.active .track-num {
  background: linear-gradient(135deg, var(--orange), #e8552d); color: #fff;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.track-title { font-weight: 700; }
.track-sub { font-size: 0.82rem; color: rgba(247,242,234,.55); }
.play-mini {
  width: 40px; height: 40px; border-radius: 999px; border: 0; cursor: pointer;
  background: #fff; color: #120b22; font-size: 14px; font-weight: 800;
}
.social {
  display: grid; gap: 10px; margin-top: 16px;
}
.social a {
  text-decoration: none; color: #fff; border-radius: 18px; padding: 15px 16px; font-weight: 700;
  text-align: center; opacity: 0; transform: translateY(18px);
  transition: transform .2s var(--ease), filter .2s var(--ease), opacity .7s var(--ease);
}
.social a.in { opacity: 1; transform: none; }
.social a:hover { transform: translateY(-2px); filter: brightness(1.05); }
.wa { background: #1fa855; } .ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.fb { background: #1877f2; } .tt { background: #1a1a1a; } .yt { background: #e11d2e; }
.sp { background: #1db954; } .pdf { background: var(--purple); } .save { background: linear-gradient(135deg,#2a1b4d,#120b22); border: 1px solid rgba(255,255,255,.12); }

.now-playing {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20;
  display: none; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 22px;
  background: rgba(18, 11, 34, 0.88);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.now-playing.on { display: flex; animation: rise .35s var(--ease); }
.now-playing img {
  width: 48px; height: 48px; border-radius: 12px; object-fit: cover;
}
.now-playing .meta { flex: 1; min-width: 0; }
.now-playing .meta strong, .now-playing .meta span {
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.now-playing .meta span { font-size: 0.8rem; color: rgba(247,242,234,.55); }
.now-playing button {
  width: 46px; height: 46px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--orange), #e8552d); color: #fff; font-size: 16px; font-weight: 800;
}

.person { display: flex; gap: 12px; align-items: center; }
.person img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.list { display: grid; gap: 12px; }
.row { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.mini { display: flex; gap: 8px; flex-wrap: wrap; }
.mini a, .mini button { width: auto; margin: 0; padding: 10px 12px; border-radius: 12px; font-size: 0.86rem; }
.tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--purple-deep); background: var(--gold); border-radius: 999px; padding: 5px 9px;
}
.foot { text-align: center; color: var(--muted); font-size: 0.78rem; padding: 8px 16px 36px; }
.profile-page .foot { color: rgba(247,242,234,.4); }
#reader { border-radius: 16px; overflow: hidden; margin: 8px 0; }

@media (prefers-reduced-motion: reduce) {
  .vinyl, .vinyl::after, .blur-art, .track-row.active .track-num { animation: none !important; }
  .reveal, .panel, .section-block, .social a, .track-row {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}
