@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap");

:root {
  --bg: #070707;
  --panel: #111111;
  --panel-soft: #191919;
  --panel-line: rgba(255, 255, 255, 0.08);
  --text: #f4f4f4;
  --muted: #9f9f9f;
  --accent: #1ed760;
  --accent-dark: #0f9f42;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(circle at top right, rgba(30, 215, 96, 0.16), transparent 30%),
    linear-gradient(180deg, #0b0b0b 0%, #050505 100%);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: rgba(7, 7, 7, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--panel-line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 2rem;
  font-weight: 700;
}

.brand img {
  width: 42px;
  height: 42px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--accent);
}

.login-pill {
  padding: 10px 18px;
  border-radius: 999px;
  background: white;
  color: black;
  font-weight: 700;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  width: min(1320px, calc(100% - 32px));
  margin: 24px auto 0;
}

.sidebar,
.hero,
.track-list-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--panel-line);
  border-radius: 24px;
}

.sidebar {
  padding: 24px 20px;
}

.sidebar h2,
.sidebar h3 {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 16px;
}

.sidebar ul {
  list-style: none;
}

.sidebar li + li {
  margin-top: 10px;
}

.sidebar a,
.sidebar .playlist-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  color: #d7d7d7;
  background: transparent;
}

.sidebar a:hover,
.sidebar .playlist-chip:hover {
  background: rgba(255, 255, 255, 0.06);
}

.playlist-stack {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.playlist-chip {
  border: 1px solid var(--panel-line);
}

.playlist-chip img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}

.playlist-copy {
  display: flex;
  flex-direction: column;
}

.playlist-copy strong {
  font-size: 1rem;
}

.playlist-copy span {
  color: var(--muted);
  font-size: 0.9rem;
}

.main-column {
  display: grid;
  gap: 24px;
}

.hero {
  padding: 28px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.hero-cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.eyebrow {
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 4.8rem);
  line-height: 0.96;
  margin-bottom: 14px;
}

.hero p {
  color: #c6c6c6;
  font-size: 1.02rem;
  max-width: 640px;
  line-height: 1.6;
}

.hero-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-meta span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d7d7d7;
}

.track-list-panel {
  padding: 22px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-header h2 {
  font-size: 1.4rem;
}

.section-header p {
  color: var(--muted);
}

.track-list {
  display: grid;
  gap: 12px;
}

.track-card {
  width: 100%;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 20px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.track-card:hover {
  transform: translateY(-1px);
  border-color: rgba(30, 215, 96, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.track-cover {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
}

.track-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.track-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-duration {
  color: var(--muted);
  flex-shrink: 0;
}

.track-action {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #04150a;
  font-weight: 700;
}

.player-bar {
  background: rgba(20, 20, 20, 0.92);
  border: 1px solid var(--panel-line);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  padding: 16px 20px;
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr) minmax(180px, 0.7fr);
  gap: 18px;
  align-items: center;
}

.current-track {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.current-track img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
}

.current-copy {
  min-width: 0;
}

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

.current-copy span {
  color: var(--muted);
  margin-top: 4px;
}

.center-controls {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.transport {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
}

.icon-button.primary {
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: #04150a;
  font-size: 1.3rem;
  font-weight: 700;
}

.progress-wrap,
.volume-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.progress-wrap input,
.volume-wrap input {
  width: 100%;
}

.time-labels {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  color: var(--muted);
  font-size: 0.88rem;
}

.range-input {
  appearance: none;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.range-input::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

.volume-wrap span {
  color: var(--muted);
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .player-layout {
    grid-template-columns: 1fr;
  }

  .hero-cover {
    max-width: 260px;
  }

  .current-track,
  .center-controls,
  .volume-wrap {
    justify-self: stretch;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 16px 18px;
  }

  .brand {
    font-size: 1.6rem;
  }

  .nav-links {
    display: none;
  }

  .app-shell {
    width: calc(100% - 20px);
    margin-top: 16px;
  }

  .hero,
  .track-list-panel,
  .sidebar {
    border-radius: 20px;
  }

  .hero,
  .track-list-panel {
    padding: 18px;
  }

  .track-copy {
    gap: 10px;
  }

  .track-name {
    font-size: 0.96rem;
  }

  .player-bar {
    padding: 14px;
  }
}
