:root {
  --bg: #08080d;
  --panel: #12121a;
  --panel-soft: #181823;
  --text: #f8f8fc;
  --muted: #a3a3b3;
  --purple: #9a5cff;
  --purple-dark: #6631c7;
  --line: rgba(255, 255, 255, 0.09);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 8%, rgba(154, 92, 255, 0.17), transparent 30rem),
    radial-gradient(circle at 5% 65%, rgba(84, 54, 190, 0.10), transparent 26rem),
    var(--bg);
  padding-bottom: 112px;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  background: rgba(8, 8, 13, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo, .mini-logo {
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  box-shadow: 0 10px 28px rgba(154, 92, 255, 0.24);
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 0.78rem;
}

nav { display: flex; gap: 30px; }
nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}
nav a:hover { color: white; }

.menu-toggle {
  display: none;
  color: white;
  background: transparent;
  border: 0;
  font-size: 1.5rem;
}

main, footer {
  width: min(1180px, 88vw);
  margin: 0 auto;
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 7vw;
  align-items: center;
  padding: 72px 0 96px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--purple);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(3.8rem, 8vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: -0.072em;
}

h1 span { color: var(--purple); }

.hero-text {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
}

.button {
  border-radius: 999px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  font-weight: 750;
}

.primary {
  background: var(--purple);
  border-color: transparent;
}

.primary:hover { background: #aa73ff; }

.secondary {
  color: white;
  background: transparent;
}

.secondary:hover { background: var(--panel); }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 54px;
}

.stats div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stats strong { font-size: 1.15rem; }
.stats span { color: var(--muted); font-size: 0.78rem; }

.featured {
  transform: rotate(2.2deg);
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

.featured-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 21px;
  background:
    radial-gradient(circle at 67% 29%, rgba(255,255,255,0.38), transparent 7%),
    linear-gradient(145deg, #b47cff 0%, #5930a1 48%, #140b27 100%);
}

.featured-cover > span {
  position: relative;
  z-index: 2;
  font-size: clamp(5rem, 11vw, 8.5rem);
  font-weight: 950;
  letter-spacing: -0.1em;
}

.vinyl {
  position: absolute;
  width: 68%;
  aspect-ratio: 1;
  right: -12%;
  bottom: -12%;
  border-radius: 50%;
  opacity: 0.45;
  background:
    radial-gradient(circle, #111 0 8%, #6531bf 9% 14%, #111 15% 18%, #2e2047 19% 23%, #111 24% 100%);
}

.featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 7px 7px;
}

.featured-meta h2 { margin-bottom: 6px; font-size: 1.65rem; }
.featured-meta p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); }

.round-button {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 0;
  color: white;
  background: var(--purple);
}

.tracks-section {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.section-heading h2,
.about h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 5vw, 4rem);
  letter-spacing: -0.05em;
}

.search-box {
  width: min(340px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.search-box input {
  width: 100%;
  color: white;
  outline: 0;
  border: 0;
  background: transparent;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0;
}

.filter {
  padding: 10px 16px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
}

.filter:hover,
.filter.active {
  color: white;
  background: var(--panel-soft);
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.track-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.track-card:hover {
  transform: translateY(-5px);
  border-color: rgba(154, 92, 255, 0.48);
}

.art {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 16px;
  color: white;
}

.art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.36), transparent 55%);
}

.art-one { background: linear-gradient(135deg, #8f54ff, #251046); }
.art-two { background: linear-gradient(135deg, #ff587f, #59253f); }
.art-three { background: linear-gradient(135deg, #42bdcc, #183c4a); }

.art-label {
  position: relative;
  z-index: 2;
  text-align: left;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.84;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.play-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  transition: transform 0.2s ease;
}

.art:hover .play-badge { transform: scale(1.08); }

.track-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px 5px;
}

.track-info h3 { margin-bottom: 5px; }
.track-info p { margin-bottom: 0; color: var(--muted); font-size: 0.9rem; }

.download {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-radius: 50%;
  background: var(--panel-soft);
}

.download:hover {
  color: white;
  background: var(--purple-dark);
}

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

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10vw;
  padding: 105px 0;
  border-top: 1px solid var(--line);
}

.about-copy p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.9;
}

.contact {
  padding: 110px 20px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(154, 92, 255, 0.14), rgba(154, 92, 255, 0.03));
}

.contact > p:not(.eyebrow) {
  margin: 20px 0 32px;
  color: var(--muted);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.socials a {
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.socials a:hover { background: var(--panel-soft); }

footer {
  padding: 36px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.player {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 80;
  width: min(960px, 92vw);
  min-height: 76px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 18px;
  background: rgba(23, 23, 32, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.now-playing {
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-logo {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  font-size: 0.72rem;
}

.now-playing span {
  display: block;
  margin-bottom: 3px;
  color: var(--purple);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.controls {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.controls button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: var(--purple);
}

.controls input { flex: 1; accent-color: var(--purple); }
#currentTime { width: 42px; color: var(--muted); font-size: 0.82rem; }

@media (max-width: 820px) {
  .menu-toggle { display: block; }

  nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    padding: 22px 6vw 28px;
    background: #101017;
    border-bottom: 1px solid var(--line);
  }

  nav.open { display: flex; }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 60px;
  }

  .featured {
    width: min(520px, 100%);
    justify-self: center;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .track-grid { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; gap: 34px; }

  .player {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  main, footer { width: min(92vw, 1180px); }
  h1 { font-size: 3.5rem; }
  .hero-actions { flex-direction: column; }
  .button { text-align: center; }
  .track-grid { grid-template-columns: 1fr; }
  .now-playing { display: none; }
  .player { min-height: 64px; }
  body { padding-bottom: 92px; }
}

.login-link {
  padding: 9px 15px;
  border: 1px solid rgba(154, 92, 255, 0.55);
  border-radius: 999px;
  color: white;
}
.login-link:hover {
  background: #9a5cff;
}
