:root {
  --page: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --dark: #050507;
  --dark-2: #151517;
  --blue: #3457ff;
  --blue-2: #6f7dff;
  --red: #ff3b6b;
  --cyan: #11d6c5;
  --green: #7ee787;
  --card: #fff;
  --radius: 8px;
  --shadow: 0 28px 80px rgba(0, 0, 0, .18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

button,
.primary,
.secondary,
.ghost {
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.primary {
  background: var(--blue);
  color: #fff;
}

.secondary {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.ghost {
  background: transparent;
  color: rgba(255,255,255,.82);
}

.large {
  min-height: 44px;
  padding: 0 22px;
  font-size: 17px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 max(22px, calc((100vw - 1024px) / 2));
  background: rgba(22, 22, 23, .86);
  color: #f5f5f7;
  backdrop-filter: saturate(180%) blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 112px;
}

.brand-mark {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.brand-mark svg { width: 100%; height: 100%; }
.brand-mark path:first-child { fill: #f5f5f7; }
.brand-mark path:last-child { fill: #161617; }

.brand strong {
  display: block;
  font-size: 13px;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex: 1;
  color: rgba(255,255,255,.76);
  font-size: 12px;
}

.nav a {
  padding: 15px 0;
  transition: color .18s ease;
}

.nav a:hover { color: #fff; }

.top-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.top-actions .primary {
  min-height: 28px;
  padding: 0 12px;
  font-size: 12px;
}

.top-actions .ghost {
  min-height: 28px;
  padding: 0 8px;
  font-size: 12px;
}

.product-hero {
  position: relative;
  min-height: calc(100vh - 44px);
  padding: 54px 24px 36px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 72%, rgba(52,87,255,.24), transparent 38%),
    radial-gradient(circle at 35% 86%, rgba(17,214,197,.16), transparent 28%),
    linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 45%, #ececf0 100%);
  isolation: isolate;
}

.hero-content {
  max-width: 980px;
  text-align: center;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin: 0 auto 12px;
  max-width: 960px;
  font-size: clamp(48px, 7.4vw, 96px);
  line-height: .96;
  letter-spacing: 0;
  font-weight: 700;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 700;
}

h3 {
  font-size: 24px;
  line-height: 1.12;
  margin-bottom: 12px;
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto;
  color: #424245;
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.35;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  height: clamp(320px, 46vh, 520px);
  margin-top: 22px;
}

.product-device {
  position: absolute;
  width: min(38vw, 420px);
  min-width: 270px;
  border-radius: 28px;
  padding: 12px;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.device-left {
  left: 5%;
  bottom: 14px;
  transform: rotate(-4deg);
}

.device-right {
  right: 4%;
  bottom: 0;
  transform: rotate(5deg);
}

.device-toolbar {
  display: flex;
  gap: 6px;
  padding: 6px 8px 12px;
}

.device-toolbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5f57;
}

.device-toolbar span:nth-child(2) { background: #ffbd2e; }
.device-toolbar span:nth-child(3) { background: #28c840; }

.device-screen {
  min-height: 240px;
  border-radius: 20px;
  padding: 22px;
  background: #fbfbfd;
  color: var(--ink);
  overflow: hidden;
}

.device-screen.dark {
  background: radial-gradient(circle at top, #2a2a31, #050507 70%);
  color: #fff;
}

.device-screen strong {
  display: block;
  margin-bottom: 20px;
  font-size: 22px;
}

.device-screen small {
  color: rgba(255,255,255,.62);
}

.device-track {
  height: 44px;
  border-radius: 999px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #eef0f4, #dfe3ea);
}

.device-track.active {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.device-track.short { width: 68%; }

.product-orb {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  width: min(43vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(255,255,255,.95) 0 8%, rgba(255,255,255,.14) 9% 10%, transparent 11%),
    conic-gradient(from 110deg, #050507, #343441, #fbfbfd, #09090b, #3457ff, #11d6c5, #050507);
  box-shadow: 0 48px 130px rgba(0,0,0,.32);
}

.vinyl-face {
  width: 45%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, #fff 0 13%, #111 14% 18%, #f5f5f7 19%);
}

.vinyl-face span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111;
}

.mini-chart {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 120px;
  margin: 26px 0;
}

.mini-chart i {
  width: 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue-2), var(--cyan));
}

.mini-chart i:nth-child(1) { height: 38%; }
.mini-chart i:nth-child(2) { height: 78%; }
.mini-chart i:nth-child(3) { height: 52%; }
.mini-chart i:nth-child(4) { height: 90%; }
.mini-chart i:nth-child(5) { height: 64%; }

.now-playing {
  z-index: 3;
  width: min(620px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 18px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 18px 48px rgba(0,0,0,.13);
  backdrop-filter: blur(18px);
}

.now-playing span,
.now-playing small {
  color: var(--muted);
  font-size: 13px;
}

.now-playing strong {
  grid-column: 1;
  font-size: 17px;
}

.play-feature {
  grid-column: 2;
  grid-row: 1 / span 3;
  background: var(--blue);
  color: #fff;
}

.apple-message {
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 12px 22px;
  background: #fff;
  color: #424245;
  text-align: center;
  font-size: 14px;
}

.apple-message p { margin: 0; }

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 12px;
  background: var(--page);
}

.stats-strip div {
  min-height: 132px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  background: #fff;
  border-radius: var(--radius);
  text-align: center;
}

.stats-strip strong {
  display: block;
  font-size: 38px;
}

.stats-strip span {
  color: var(--muted);
}

.product-panel,
.promo-grid-section,
.promo-tile {
  margin: 12px;
  border-radius: var(--radius);
  overflow: hidden;
}

.product-panel {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
  background: #fff;
}

.library-panel {
  background:
    linear-gradient(180deg, #fff 0%, #f6f8fc 56%, #eef3fb 100%);
}

.pricing-panel {
  background: #fbfbfd;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin: 0 auto 34px;
  max-width: 1180px;
}

.section-head .eyebrow {
  font-size: 21px;
  color: var(--muted);
}

.searchbar {
  width: min(440px, 100%);
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  padding: 0 16px;
  outline: none;
}

input:focus,
select:focus { border-color: var(--blue); }

.library-layout {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.filters,
.chart-panel,
.price-card,
.join-form,
.login-card,
.event-grid article {
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius);
}

.filters {
  padding: 18px;
  position: sticky;
  top: 58px;
}

.filters label,
.join-form label,
.login-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.checkline {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.checkline input {
  width: 18px;
  min-height: 18px;
}

.style-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.style-cloud button,
.tag {
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}

.style-cloud button.active,
.tag.hot {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.tracks {
  display: grid;
  gap: 10px;
}

.track-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 96px;
  padding: 12px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius);
}

.cover {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  overflow: hidden;
  position: relative;
}

.cover::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.45);
}

.cover span { position: relative; z-index: 1; }

.c1 { background: linear-gradient(135deg, #111, #3457ff); }
.c2 { background: linear-gradient(135deg, #fbfbfd, #ff2d55); color: #111; }
.c3 { background: linear-gradient(135deg, #30d158, #1d1d1f); }
.c4 { background: linear-gradient(135deg, #00c7be, #f5f5f7); color: #111; }
.c5 { background: linear-gradient(135deg, #ff9f0a, #111); }
.c6 { background: linear-gradient(135deg, #8e8e93, #6f7dff); }

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

.track-info h3 {
  margin: 0 0 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
}

.track-info p {
  margin-bottom: 9px;
  color: var(--muted);
}

.muted { color: var(--muted); }

.track-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.track-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.icon-btn {
  min-width: 76px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
}

.icon-btn.saved {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.promo-grid-section {
  padding: 0;
  background: transparent;
}

.chart-grid,
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.chart-panel,
.event-grid article {
  min-height: 460px;
  padding: 42px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #fff;
}

.chart-panel:nth-child(2),
.event-grid article:nth-child(2) {
  background: #000;
  color: #f5f5f7;
}

.chart-panel:nth-child(2) li,
.event-grid article:nth-child(2) p {
  color: rgba(255,255,255,.72);
}

.chart-panel ol {
  margin: 24px auto 0;
  padding-left: 24px;
  text-align: left;
  color: var(--muted);
}

.chart-panel li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.admin-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0;
  color: var(--muted);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.admin-row strong { color: var(--ink); }

.pricing-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.price-card {
  min-height: 430px;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
}

.price-card .plan {
  color: var(--muted);
  font-weight: 700;
}

.price-card strong {
  font-size: 52px;
  line-height: 1;
}

.price-card strong span {
  color: var(--muted);
  font-size: 17px;
}

.price-card p,
.event-grid p,
.split-section p,
.about-login p {
  color: var(--muted);
  line-height: 1.55;
}

.price-card ul {
  padding-left: 18px;
  color: #424245;
  line-height: 1.9;
  flex: 1;
}

.featured-plan {
  background: #000;
  color: #f5f5f7;
}

.featured-plan p,
.featured-plan ul,
.featured-plan .plan,
.featured-plan strong span {
  color: rgba(255,255,255,.72);
}

.payment-strip {
  max-width: 1180px;
  margin: 18px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.payment-strip strong {
  padding: 8px 13px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(0,0,0,.08);
}

.promo-tile {
  min-height: 600px;
  padding: clamp(48px, 7vw, 88px) clamp(22px, 5vw, 72px);
  background:
    radial-gradient(circle at 78% 70%, rgba(52,87,255,.16), transparent 30%),
    radial-gradient(circle at 18% 82%, rgba(17,214,197,.12), transparent 28%),
    #fff;
}

.split-section,
.about-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 40px;
  align-items: center;
}

.steps {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.steps span {
  padding: 10px 13px;
  border-radius: 999px;
  background: #f5f5f7;
  border: 1px solid rgba(0,0,0,.08);
  color: #424245;
}

.join-form,
.login-card {
  padding: 26px;
  box-shadow: 0 18px 50px rgba(0,0,0,.08);
}

.event-grid article {
  align-items: center;
  justify-content: center;
}

.event-grid span {
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 16px;
}

.login-card a {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue);
}

.player {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 40;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 32px));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 18px 48px rgba(0,0,0,.16);
  backdrop-filter: blur(18px);
}

.player button {
  background: var(--blue);
  color: #fff;
}

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

.player span {
  color: var(--muted);
  font-size: 13px;
}

.player-bars {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 28px;
}

.player-bars i {
  display: block;
  width: 5px;
  height: 10px;
  background: var(--blue);
  border-radius: 999px;
}

.player.playing .player-bars i:nth-child(1) { height: 18px; }
.player.playing .player-bars i:nth-child(2) { height: 28px; background: var(--red); }
.player.playing .player-bars i:nth-child(3) { height: 22px; background: var(--cyan); }
.player.playing .player-bars i:nth-child(4) { height: 26px; background: var(--green); }
.player.playing .player-bars i:nth-child(5) { height: 16px; }

@media (max-width: 1080px) {
  .topbar {
    height: auto;
    min-height: 44px;
    flex-wrap: wrap;
    padding: 8px 18px;
    gap: 12px;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .nav a { padding: 8px 0; }

  .product-hero {
    min-height: 820px;
  }

  .product-device {
    width: 330px;
  }

  .device-left { left: 0; }
  .device-right { right: 0; }

  .library-layout,
  .split-section,
  .about-login {
    grid-template-columns: 1fr;
  }

  .filters { position: static; }
}

@media (max-width: 760px) {
  .brand { flex: 1; }
  .top-actions { width: 100%; }
  .top-actions .primary,
  .top-actions .ghost { flex: 1; }

  .section-head {
    display: grid;
    align-items: start;
  }

  .stats-strip,
  .chart-grid,
  .pricing-grid,
  .event-grid {
    grid-template-columns: 1fr;
  }

  .product-hero {
    min-height: 760px;
    padding-top: 40px;
  }

  h1 {
    font-size: 44px;
  }

  .hero-copy {
    font-size: 19px;
  }

  .hero-media {
    height: 360px;
  }

  .product-orb {
    width: 320px;
  }

  .product-device {
    min-width: 0;
    width: 230px;
    border-radius: 22px;
  }

  .device-screen {
    min-height: 160px;
    padding: 16px;
  }

  .device-left {
    left: -34px;
    bottom: 42px;
  }

  .device-right {
    right: -40px;
    bottom: 28px;
  }

  .now-playing {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .play-feature {
    grid-column: 1;
    grid-row: auto;
  }

  .track-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .track-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .track-actions button { flex: 1; }

  .player {
    grid-template-columns: auto minmax(0, 1fr);
    border-radius: 18px;
  }

  .player-bars { display: none; }
}
