@import "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap";
:root {
  color-scheme: dark;
  font-family:
    DM Sans,
    system-ui,
    sans-serif;
  color: #f7f7f8;
  background: #09090b;
  font-synthesis: none;
  --bg: #09090b;
  --panel: rgba(24, 24, 29, 0.76);
  --panel-solid: #17171c;
  --line: rgba(255, 255, 255, 0.09);
  --muted: #9b9ba7;
  --purple: #a66cff;
  --pink: #ff6bb5;
  --green: #1ed760;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 80% 5%,
      rgba(120, 65, 220, 0.2),
      transparent 34rem
    ),
    radial-gradient(
      circle at 10% 38%,
      rgba(255, 67, 153, 0.09),
      transparent 28rem
    ),
    var(--bg);
}
button,
a {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
.hidden {
  display: none !important;
}
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  z-index: 20;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font:
    700 17px Space Grotesk,
    sans-serif;
  letter-spacing: 0.09em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #08080a;
  background: linear-gradient(135deg, #e8d9ff, var(--purple) 55%, var(--pink));
  box-shadow: 0 0 30px #a66cff59;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.creator-tag {
  color: #666671;
  font-size: 10px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.creator-tag strong {
  color: #aaaab5;
  font-weight: 700;
}
.ghost-button {
  border: 1px solid var(--line);
  color: #dddde5;
  background: #ffffff08;
  padding: 10px 16px;
  border-radius: 999px;
}
.ghost-button:hover {
  background: #ffffff14;
}
main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}
.hero {
  min-height: 660px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 70px;
  padding: 40px 0 90px;
}
.eyebrow {
  margin: 0 0 15px;
  color: #c7a7ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.hero h1,
.dashboard-hero h1,
.loading-state h1 {
  margin: 0;
  font:
    700 clamp(50px, 7.2vw, 92px) / 0.98 "Space Grotesk",
    sans-serif;
  letter-spacing: -0.055em;
}
.hero h1 span {
  color: transparent;
  background: linear-gradient(110deg, #dcc7ff, var(--purple) 47%, var(--pink));
  background-clip: text;
  -webkit-background-clip: text;
}
.hero-description {
  max-width: 630px;
  margin: 28px 0 34px;
  color: #b8b8c1;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.spotify-button,
.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  padding: 15px 24px;
  font-weight: 800;
  transition:
    transform 0.2s,
    filter 0.2s,
    background 0.2s;
}
.spotify-button {
  border: 0;
  color: #07150c;
  background: var(--green);
  box-shadow: 0 14px 45px #1ed7602e;
}
.spotify-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.upload-button {
  border: 1px solid rgba(199, 167, 255, 0.32);
  color: #e9dcff;
  background: #a66cff17;
}
.upload-button:hover {
  transform: translateY(-2px);
  background: #a66cff29;
}
.compact-upload {
  flex: 0 0 auto;
}
.spotify-dot {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: var(--green);
  background: #07150c;
}
.privacy-note {
  color: #71717c;
  font-size: 12px;
  margin: 14px 0 0;
}
.history-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
  color: #c9aaff;
  font-size: 13px;
  font-weight: 700;
}
.history-link:hover {
  color: #eadfff;
}
.notice {
  max-width: 620px;
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.notice.error {
  background: #ff52771a;
  border: 1px solid rgba(255, 82, 119, 0.25);
  color: #ffabbc;
}
.notice.match {
  background: #a66cff1a;
  border: 1px solid rgba(199, 167, 255, 0.25);
  color: #ddd0f4;
}
.notice.match strong {
  color: #f3ebff;
}
.dna-card {
  position: relative;
  aspect-ratio: 1;
  max-width: 470px;
  width: 100%;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 42px;
  background: linear-gradient(145deg, #ffffff0e, #ffffff03);
  overflow: hidden;
  box-shadow: 0 50px 100px #00000059;
}
.dna-card:before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, #a66cff47, #a66cff00 65%);
  filter: blur(8px);
}
.orbit {
  position: absolute;
  inset: 22%;
  border: 1px solid rgba(198, 166, 255, 0.32);
  border-radius: 50%;
  animation: spin 12s linear infinite;
}
.orbit:after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  top: -5px;
  left: 50%;
  border-radius: 50%;
  background: #d5b9ff;
  box-shadow: 0 0 22px #b77cff;
}
.orbit-two {
  inset: 34%;
  animation-direction: reverse;
  animation-duration: 8s;
  border-color: #ff6bb540;
}
.orbit-two:after {
  background: var(--pink);
  box-shadow: 0 0 20px var(--pink);
}
.dna-center {
  position: absolute;
  inset: 41%;
  display: grid;
  place-items: center;
  border-radius: 34%;
  color: #08080a;
  background: linear-gradient(135deg, #eee4ff, #a66cff 55%, #ff6bb5);
  font: 700 58px Space Grotesk;
  transform: rotate(-8deg);
  box-shadow: 0 15px 50px #a66cff61;
}
.preview-stat {
  position: absolute;
  display: flex;
  flex-direction: column;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0d0d11c7;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 30px #00000038;
}
.preview-stat strong {
  font: 700 15px Space Grotesk;
}
.preview-stat span {
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.preview-one {
  top: 14%;
  left: 8%;
}
.preview-two {
  right: 6%;
  top: 42%;
}
.preview-three {
  left: 9%;
  bottom: 11%;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 80px;
}
.feature-strip article {
  position: relative;
  padding: 30px;
  border-right: 1px solid var(--line);
}
.feature-strip article:last-child {
  border-right: 0;
}
.feature-strip article > span {
  color: var(--purple);
  font: 600 11px Space Grotesk;
}
.feature-strip h2 {
  margin: 15px 0 7px;
  font: 600 20px Space Grotesk;
}
.feature-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.loading-state {
  min-height: 650px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.loading-state h1 {
  margin-top: 28px;
  font-size: clamp(34px, 5vw, 60px);
}
.loading-state p {
  color: var(--muted);
}
.loader {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 50px;
}
.loader span {
  width: 7px;
  border-radius: 10px;
  background: linear-gradient(var(--purple), var(--pink));
  animation: bounce 0.75s ease-in-out infinite alternate;
}
.loader span:nth-child(2) {
  animation-delay: 0.15s;
}
.loader span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes bounce {
  0% {
    height: 14px;
  }
  to {
    height: 50px;
  }
}
.dashboard-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 50px 0 52px;
}
.profile-row {
  display: flex;
  align-items: center;
  gap: 22px;
}
.avatar {
  width: 86px;
  height: 86px;
  border-radius: 28px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.avatar-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #09090b;
  font: 700 32px Space Grotesk;
}
.dashboard-hero h1 {
  font-size: clamp(42px, 6vw, 72px);
}
.dashboard-hero .profile-row p:last-child {
  color: var(--muted);
  margin: 8px 0 0;
}
.dashboard-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
}
.dashboard-actions small {
  color: #696973;
  font-size: 10px;
  text-align: center;
}
.range-tabs {
  display: flex;
  padding: 4px;
  background: #ffffff0a;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.range-button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}
.range-button.active {
  background: #f3edf9;
  color: #111015;
  font-weight: 700;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.stat-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.stat-card {
  min-height: 170px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.stat-card p {
  margin: 0 auto auto 0;
  color: var(--muted);
  font-size: 13px;
}
.stat-card strong {
  font: 700 clamp(27px, 3vw, 40px) "Space Grotesk";
  letter-spacing: -0.04em;
}
.stat-card strong.compact-stat {
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-card span {
  color: #a8a8b2;
  font-size: 12px;
  margin-top: 5px;
}
.accent-card {
  background: linear-gradient(145deg, #a66cffeb, #6d37bfbd);
}
.accent-card p,
.accent-card span {
  color: #ffffffc4;
}
.panel {
  padding: 28px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}
.section-heading.compact {
  margin-bottom: 14px;
}
.section-heading h2 {
  margin: 0;
  font: 600 clamp(25px, 3vw, 36px) "Space Grotesk";
  letter-spacing: -0.035em;
}
.section-heading > p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.listening-clock {
  margin-bottom: 14px;
}
.hour-chart {
  height: 190px;
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  align-items: end;
  gap: 5px;
  padding: 14px 0 0;
  border-bottom: 1px solid var(--line);
}
.hour-column {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr 18px;
  align-items: end;
  gap: 6px;
}
.hour-bar {
  width: 100%;
  min-height: 6px;
  border-radius: 6px 6px 2px 2px;
  background: #ffffff1a;
  transition: height 0.4s;
}
.hour-bar.peak {
  background: linear-gradient(var(--pink), var(--purple));
  box-shadow: 0 0 18px #a66cff4d;
}
.hour-column span {
  color: #6f6f79;
  font-size: 9px;
  text-align: center;
}
.chart-legend {
  display: none;
}
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rank-list li {
  display: grid;
  grid-template-columns: 28px 44px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}
.rank-list li:last-child {
  border-bottom: 0;
}
.rank-list img,
.mini-fallback {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}
.artist-list img {
  border-radius: 50%;
}
.mini-fallback {
  display: grid;
  place-items: center;
  background: #ffffff0f;
  color: var(--purple);
}
.rank-number {
  color: #6f6f79;
  font: 500 11px Space Grotesk;
}
.item-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.item-copy strong,
.item-copy span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.item-copy strong {
  font-size: 13px;
}
.item-copy span {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.rank-list a {
  color: #797985;
}
.rank-list a:hover {
  color: #fff;
}
.recent-panel {
  margin-bottom: 14px;
}
.recent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.recent-card {
  min-width: 0;
  padding: 10px;
  display: flex;
  gap: 11px;
  align-items: center;
  background: #ffffff06;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.recent-card:hover {
  background: #ffffff0f;
  transform: translateY(-2px);
}
.recent-card img,
.cover-fallback {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
}
.cover-fallback {
  display: grid;
  place-items: center;
  background: #ffffff0f;
}
.recent-card div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.recent-card strong,
.recent-card span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.recent-card strong {
  font-size: 12px;
}
.recent-card span,
.recent-card small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.recent-card small {
  color: #6d6d77;
}
.sample-warning {
  margin: 18px auto 70px;
  max-width: 720px;
  color: #757580;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}
.history-cta {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 50px;
  padding: 40px;
  border: 1px solid rgba(190, 151, 255, 0.22);
  border-radius: 28px;
  background: linear-gradient(135deg, #a66cff24, #ff6bb50f);
}
.history-cta h2,
.match-cta h2 {
  max-width: 700px;
  margin: 0;
  font: 600 clamp(28px, 4vw, 46px) / 1.07 "Space Grotesk";
  letter-spacing: -0.045em;
}
.history-cta p:not(.eyebrow) {
  max-width: 700px;
  margin: 18px 0 0;
  color: #aaaab4;
  line-height: 1.55;
}
.history-cta p strong {
  color: #ded1f4;
}
.history-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.history-primary,
.history-upload {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 800;
  text-align: center;
}
.history-primary {
  color: #110b18;
  background: linear-gradient(110deg, #d9c3ff, var(--purple), var(--pink));
}
.history-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.history-upload {
  border: 1px solid rgba(213, 185, 255, 0.34);
  color: #eadfff;
  background: #09090b5c;
  cursor: pointer;
}
.history-upload:hover {
  background: #ffffff12;
}
.history-actions span {
  color: #777782;
  font-size: 11px;
  line-height: 1.45;
}
.local-data-note {
  margin: 0 0 18px;
  padding: 13px 16px;
  border: 1px solid rgba(30, 215, 96, 0.2);
  border-radius: 14px;
  color: #a3a3ad;
  background: #1ed7600e;
  font-size: 12px;
  line-height: 1.5;
}
.local-data-note strong {
  color: #baf0cd;
}
.history-mini-stats {
  margin-top: 0;
}
.imported-complete {
  margin: 14px 0 70px;
}
.match-cta {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 50px;
  margin: 14px 0;
  padding: 40px;
  border: 1px solid rgba(30, 215, 96, 0.18);
  border-radius: 28px;
  background: linear-gradient(135deg, #1ed76017, #a66cff13);
}
.match-cta p:not(.eyebrow) {
  max-width: 700px;
  margin: 18px 0 0;
  color: #aaaab4;
  line-height: 1.55;
}
.match-primary {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  color: #07150c;
  background: var(--green);
  font-weight: 800;
  cursor: pointer;
}
.match-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.story-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 17px;
  border: 1px solid rgba(255, 107, 181, 0.3);
  border-radius: 999px;
  color: #ffe1f1;
  background: linear-gradient(110deg, #a66cff24, #ff6bb51f);
  font-weight: 700;
  cursor: pointer;
}
.story-button:hover {
  border-color: #ff6bb57a;
  background: linear-gradient(110deg, #a66cff38, #ff6bb533);
  transform: translateY(-1px);
}
.story-button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}
.match-result {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  gap: 34px;
  margin: 14px 0;
  padding: 34px;
  border: 1px solid rgba(199, 167, 255, 0.24);
  border-radius: 28px;
  background: linear-gradient(135deg, #a66cff2e, #ff6bb514);
}
.match-score {
  display: flex;
  aspect-ratio: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: radial-gradient(circle, #a66cff57, #09090b33);
}
.match-score strong {
  font: 700 48px Space Grotesk;
  letter-spacing: -0.06em;
}
.match-score span {
  color: #aaaab4;
  font-size: 11px;
}
.match-result h2 {
  margin: 0;
  font: 600 clamp(28px, 4vw, 46px) / 1.05 "Space Grotesk";
}
.match-result p:not(.eyebrow) {
  margin: 15px 0 0;
  color: #aaaab4;
  line-height: 1.55;
}
.match-result p strong {
  color: #e9dcff;
}
.match-clear {
  margin-top: 18px;
  padding: 0;
  border: 0;
  color: #8d8d98;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}
.match-clear:hover {
  color: #fff;
}
.match-result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}
.match-result-actions .match-clear {
  margin-top: 0;
}
footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid var(--line);
  padding: 28px 0 38px;
  color: #666671;
  font-size: 11px;
}
footer p {
  margin: 0;
}
footer a:hover {
  color: #aaaab3;
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 70px;
    gap: 55px;
  }
  .dna-card {
    justify-self: center;
    max-width: 520px;
  }
  .stat-grid,
  .recent-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .dashboard-actions {
    width: 100%;
  }
}
@media (max-width: 640px) {
  .site-header,
  main,
  footer {
    width: min(100% - 26px, 1180px);
  }
  .site-header {
    height: 72px;
  }
  .header-actions {
    gap: 8px;
  }
  .creator-tag {
    font-size: 9px;
  }
  .hero {
    min-height: auto;
    padding: 50px 0 70px;
  }
  .hero h1 {
    font-size: 50px;
  }
  .hero-actions > * {
    width: 100%;
  }
  .dna-card {
    border-radius: 28px;
  }
  .feature-strip {
    grid-template-columns: 1fr;
  }
  .feature-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .feature-strip article:last-child {
    border-bottom: 0;
  }
  .profile-row {
    align-items: flex-start;
  }
  .avatar {
    width: 66px;
    height: 66px;
    border-radius: 20px;
  }
  .dashboard-hero h1 {
    font-size: 42px;
  }
  .range-tabs {
    width: 100%;
  }
  .range-button {
    flex: 1;
    padding-inline: 7px;
  }
  .stat-grid,
  .two-column,
  .recent-grid {
    grid-template-columns: 1fr;
  }
  .history-cta,
  .match-cta {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 26px;
  }
  .match-result {
    grid-template-columns: 1fr;
    padding: 26px;
  }
  .match-score {
    width: 150px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .panel {
    padding: 20px;
    border-radius: 20px;
  }
  .hour-chart {
    gap: 2px;
    height: 150px;
  }
  .hour-column span {
    font-size: 7px;
  }
  footer {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.history-profile-photo {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  color: #8d8d98;
  background: transparent;
  cursor: pointer;
}
.history-profile-photo .avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
}
.history-profile-photo small {
  font-size: 9px;
  white-space: nowrap;
}
.history-profile-photo:hover small {
  color: #e9dcff;
}
.history-profile-photo:focus-visible {
  outline: 2px solid #b47cff;
  outline-offset: 6px;
  border-radius: 18px;
}

.dna-insight {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.45fr);
  gap: 14px;
  margin-bottom: 14px;
}
.personality-card,
.records-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
}
.personality-card {
  min-height: 520px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 76% 16%, #b078ff5c, transparent 34%),
    radial-gradient(circle at 10% 92%, #ff6bb529, transparent 42%),
    linear-gradient(145deg, #15111d, #0d0c11);
}
.personality-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 190px;
  height: 190px;
  margin: 0 0 44px auto;
  border: 1px solid #dac4ff42;
  border-radius: 50%;
  box-shadow: inset 0 0 70px #a66cff1c, 0 0 80px #a66cff16;
}
.personality-orbit:before,
.personality-orbit:after,
.personality-orbit span {
  content: "";
  position: absolute;
  border: 1px solid #f1e8ff38;
  border-radius: 50%;
}
.personality-orbit:before {
  inset: 25px;
}
.personality-orbit:after {
  inset: 54px;
}
.personality-orbit span:first-child {
  width: 12px;
  height: 12px;
  top: 16px;
  right: 31px;
  border: 0;
  background: var(--pink);
  box-shadow: 0 0 24px var(--pink);
}
.personality-orbit span:nth-child(2) {
  width: 9px;
  height: 9px;
  bottom: 27px;
  left: 20px;
  border: 0;
  background: #c8a9ff;
  box-shadow: 0 0 22px #a66cff;
}
.personality-orbit strong {
  font: 700 27px "Space Grotesk";
  letter-spacing: 0.08em;
  color: #f6efff;
}
.personality-copy h2 {
  max-width: 430px;
  margin: 6px 0 12px;
  font: 650 clamp(35px, 4vw, 58px) "Space Grotesk";
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.personality-copy > p:not(.eyebrow) {
  margin: 0;
  color: #b4b2bc;
  font-size: 14px;
  line-height: 1.65;
}
.personality-traits {
  list-style: none;
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
}
.personality-traits li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #ddd9e2;
  font-size: 12px;
  line-height: 1.45;
}
.personality-traits li span {
  color: var(--pink);
}
.records-panel {
  padding: 32px;
}
.records-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.records-heading h2 {
  max-width: 510px;
  margin: 5px 0 0;
  font: 600 clamp(28px, 3vw, 42px) "Space Grotesk";
  line-height: 1.03;
  letter-spacing: -0.045em;
}
.records-badge {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid #a66cff59;
  border-radius: 999px;
  color: #cdb5f4;
  background: #a66cff12;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.records-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.record-card {
  min-height: 166px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
}
.record-number {
  margin: 0 0 20px auto;
  color: #67636d;
  font: 600 11px "Space Grotesk";
  letter-spacing: 0.12em;
}
.record-card p {
  margin: 0 0 6px;
  color: #918e98;
  font-size: 11px;
}
.record-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: #f8f6fa;
  font: 650 clamp(20px, 2.2vw, 30px) "Space Grotesk";
  line-height: 1.02;
  letter-spacing: -0.04em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.record-card small {
  margin-top: auto;
  padding-top: 12px;
  color: #77747e;
  font-size: 10px;
  line-height: 1.4;
}
.records-share {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}
.records-share small {
  color: #6f6c76;
  font-size: 10px;
  line-height: 1.4;
}
.records-story-button {
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .dna-insight {
    grid-template-columns: 1fr;
  }
  .personality-card {
    min-height: 0;
  }
}
@media (max-width: 620px) {
  .personality-card,
  .records-panel {
    padding: 23px;
    border-radius: 22px;
  }
  .personality-orbit {
    width: 145px;
    height: 145px;
    margin-bottom: 30px;
  }
  .records-heading,
  .records-share {
    align-items: stretch;
    flex-direction: column;
  }
  .records-badge {
    align-self: flex-start;
  }
  .records-grid {
    grid-template-columns: 1fr;
  }
  .record-card {
    min-height: 148px;
  }
  .records-story-button {
    width: 100%;
  }
}


/* REPLAYDNA activity card upgrade */
.latest-heading {
  margin-bottom: 18px;
}
.latest-activity-card {
  position: relative;
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 190px;
  margin-bottom: 30px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(202, 157, 255, 0.2);
  border-radius: 22px;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 82, 181, 0.19), transparent 43%),
    linear-gradient(120deg, rgba(166, 108, 255, 0.17), rgba(255, 255, 255, 0.035));
}
.latest-activity-card.is-playing {
  border-color: rgba(67, 230, 141, 0.3);
  box-shadow: inset 0 0 44px rgba(67, 230, 141, 0.035);
}
.latest-cover-wrap {
  position: relative;
  width: 152px;
  height: 152px;
}
.latest-cover-wrap img,
.latest-cover-fallback {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.latest-cover-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--pink), var(--purple));
  color: #12091c;
  font-size: 52px;
}
.playing-pulse {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 17px;
  height: 17px;
  border: 4px solid #101015;
  border-radius: 50%;
  background: #45e38b;
  box-shadow: 0 0 0 0 rgba(69, 227, 139, 0.65);
  animation: replaydna-pulse 1.8s infinite;
}
@keyframes replaydna-pulse {
  70% { box-shadow: 0 0 0 14px rgba(69, 227, 139, 0); }
  100% { box-shadow: 0 0 0 0 rgba(69, 227, 139, 0); }
}
.latest-copy {
  min-width: 0;
}
.latest-status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 10px;
}
.latest-status {
  color: #cf9cff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.is-playing .latest-status {
  color: #64e7a0;
}
.cached-label {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #8f8b97;
  font-size: 9px;
}
.latest-copy h3 {
  margin: 0;
  overflow: hidden;
  color: #fff;
  font: 700 clamp(25px, 3vw, 40px) "Space Grotesk";
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.latest-copy > p:not(.activity-notice) {
  margin: 7px 0 0;
  overflow: hidden;
  color: #ded9e4;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.latest-album,
.latest-copy small {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: #8f8998;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.latest-copy small {
  color: #bbb4c3;
}
.latest-open {
  align-self: end;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  color: #f4eff8;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.latest-open:hover {
  border-color: rgba(214, 176, 255, 0.42);
  background: rgba(255, 255, 255, 0.07);
}
.activity-notice {
  margin: 12px 0 0;
  color: #d6b3ff;
  font-size: 11px;
  line-height: 1.45;
}
.latest-activity-empty {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: #d9d4df;
}
.latest-empty-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 26px;
}
.latest-activity-empty strong,
.latest-activity-empty span {
  display: block;
}
.latest-activity-empty span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}
.latest-activity-empty .activity-notice {
  grid-column: 1 / -1;
}
.recent-history-heading {
  margin-top: 4px;
  margin-bottom: 14px;
}
.recent-history-heading h2 {
  font-size: clamp(20px, 2.2vw, 28px);
}
.recent-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 720px) {
  .latest-activity-card {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
    min-height: 0;
    padding: 14px;
  }
  .latest-cover-wrap {
    width: 104px;
    height: 104px;
  }
  .latest-copy h3 {
    font-size: 23px;
  }
  .latest-open {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
  }
}

@media (max-width: 440px) {
  .latest-activity-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }
  .latest-cover-wrap {
    width: 82px;
    height: 82px;
  }
  .latest-copy h3 {
    font-size: 19px;
  }
  .latest-copy > p:not(.activity-notice) {
    font-size: 13px;
  }
}


/* REPLAYDNA V7 — artist-adaptive palette, consent and playlists */
:root {
  --artist-primary: #7a4bd2;
  --artist-secondary: #ec4ca5;
  --artist-primary-rgb: 122, 75, 210;
  --artist-secondary-rgb: 236, 76, 165;
}
body {
  background:
    radial-gradient(circle at 82% 4%, rgba(var(--artist-primary-rgb), .30), transparent 35rem),
    radial-gradient(circle at 8% 40%, rgba(var(--artist-secondary-rgb), .16), transparent 31rem),
    var(--bg);
  transition: background .8s ease;
}
.artist-aura {
  position: fixed;
  inset: -25%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 18%, rgba(var(--artist-primary-rgb), .20), transparent 30%),
    radial-gradient(circle at 24% 72%, rgba(var(--artist-secondary-rgb), .14), transparent 28%);
  filter: blur(45px);
  transition: background .8s ease;
}
.spotify-button:disabled {
  cursor: not-allowed;
  opacity: .42;
  filter: grayscale(.35);
  transform: none;
}
.admin-consent-card {
  max-width: 690px;
  margin-top: 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px 17px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 16px;
  color: #bdbdc7;
  background: rgba(255,255,255,.045);
  font-size: 12px;
  line-height: 1.55;
}
.admin-consent-card input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green);
  flex: 0 0 auto;
}
.spotlight-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  margin-top: 22px;
}
.top-track-panel,
.playlist-panel {
  min-height: 390px;
}
.top-track-card {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(var(--artist-primary-rgb), .23), rgba(var(--artist-secondary-rgb), .08));
}
.top-track-card img,
.top-track-fallback {
  width: 160px;
  height: 160px;
  border-radius: 24px;
  object-fit: contain;
  background: #0e0e13;
  box-shadow: 0 25px 55px rgba(0,0,0,.35);
}
.top-track-fallback { display:grid; place-items:center; font-size:60px; }
.top-track-card h3 { margin: 9px 0 5px; font: 700 30px/1.05 Space Grotesk,sans-serif; }
.top-track-card p { margin:0 0 7px; color:#c9c9d2; }
.top-track-card small { color:#82828d; }
.top-track-card > a { align-self:end; color:#d7bbff; font-weight:700; font-size:13px; }
.top-track-count { color:rgb(var(--artist-secondary-rgb)); font-size:12px; font-weight:800; letter-spacing:.08em; }
.playlist-ranking { margin:0; padding:0; display:grid; gap:12px; list-style:none; }
.playlist-ranking li {
  display:grid;
  grid-template-columns:58px 34px 1fr 24px;
  gap:12px;
  align-items:center;
  padding:12px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:18px;
  background:rgba(255,255,255,.035);
}
.playlist-ranking img,
.playlist-fallback { width:58px; height:58px; border-radius:13px; object-fit:contain; background:#101016; }
.playlist-fallback { display:grid; place-items:center; }
.playlist-position { color:#686873; font:700 12px Space Grotesk,sans-serif; }
.playlist-ranking h3 { margin:0 0 5px; font-size:15px; }
.playlist-ranking p { margin:0; color:#8e8e99; font-size:12px; }
.playlist-ranking a { color:#cdb1ff; font-size:19px; }
.accent-card,
.brand-mark {
  background: linear-gradient(135deg, rgba(var(--artist-primary-rgb), 1), rgba(var(--artist-secondary-rgb), 1));
}
.story-button {
  border-color: rgba(var(--artist-secondary-rgb), .36);
  background: rgba(var(--artist-primary-rgb), .15);
}
@media (max-width: 880px) {
  .spotlight-layout { grid-template-columns:1fr; }
}
@media (max-width: 620px) {
  .top-track-card { grid-template-columns:90px 1fr; }
  .top-track-card img,.top-track-fallback { width:90px; height:90px; border-radius:18px; }
  .top-track-card > a { grid-column:1/-1; }
  .top-track-card h3 { font-size:24px; }
  .admin-consent-card { font-size:11px; }
}
