* {
  box-sizing: border-box;
}

:root {
  --bg: #09090d;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-solid: #12121a;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f3f4f6;
  --muted: #a7acb8;
  --accent: #ffffff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --max-width: 1120px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(90, 90, 180, 0.18), transparent 35%),
    linear-gradient(180deg, #0c0d12 0%, #08080b 100%);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--text);
}

code {
  background: rgba(255,255,255,0.08);
  padding: 0.15rem 0.35rem;
  border-radius: 8px;
}

.hero {
  min-height: 88vh;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(rgba(8, 8, 12, 0.4), rgba(8, 8, 12, 0.8)),
    url("../images/hero-placeholder.jpg") center/cover no-repeat;
}

.nav,
.hero__content,
.section,
.footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.nav__brand {
  font-weight: 800;
  letter-spacing: 0.22rem;
}

.nav__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav__links a {
  text-decoration: none;
  color: var(--muted);
}

.nav__links a:hover {
  color: var(--text);
}

.hero__content {
  padding: 5rem 0 6rem;
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14rem;
  font-size: 0.8rem;
}

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

h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 0.98;
  margin-bottom: 1rem;
}

.hero__text {
  color: var(--muted);
  max-width: 46rem;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #111;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

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

.section {
  padding: 4.5rem 0;
}

.section__header {
  margin-bottom: 1.5rem;
}

.player-card,
.content-card {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius);
}

.player-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
}

.player-card__art img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  background: #1b1d27;
}

.player-card__main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.now-playing h3 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 0.25rem;
}

.now-playing p:last-child {
  color: var(--muted);
}

audio {
  width: 100%;
}

.player-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.track-list {
  display: grid;
  gap: 0.75rem;
}

.track-list__item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.track-list__item:hover,
.track-list__item.is-active {
  background: rgba(255,255,255,0.09);
}

.track-list__meta {
  display: flex;
  flex-direction: column;
}

.track-list__title {
  font-weight: 700;
}

.track-list__artist,
.track-list__action,
.empty-state {
  color: var(--muted);
}

.content-card {
  padding: 1.5rem;
}

.footer {
  padding: 1rem 0 3rem;
  color: var(--muted);
}

@media (max-width: 840px) {
  .player-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__content {
    padding: 3rem 0 4rem;
  }

  .track-list__item {
    flex-direction: column;
    align-items: flex-start;
  }
}
