:root {
  --bg: #08090d;
  --surface: #10131b;
  --surface-hover: #151a25;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --muted: #8a96a8;
  --accent: #22d3ee;
  --gold: #f5b942;
  --radius: 12px;
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at 18% 0%, #10192b 0%, var(--bg) 52%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  min-height: 100vh;
  padding-bottom: 94px;
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 22px;
}

.hidden {
  display: none !important;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.82rem;
}

.btn-primary {
  background: #f8fafc;
  color: #08090d;
  border-color: transparent;
  font-weight: 600;
}

.btn-primary:hover {
  background: #e2e8f0;
  color: #08090d;
}

.btn-ghost {
  background: transparent;
}

.btn-text {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
}

.btn-text:hover {
  text-decoration: underline;
}

.icon {
  width: 15px;
  height: 15px;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 9, 13, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  min-height: 64px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 30px;
  height: 30px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.94rem;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}

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

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  padding-top: 54px;
  padding-bottom: 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.hero-lead {
  color: var(--text-soft);
  font-size: 1rem;
  max-width: 480px;
  margin-bottom: 24px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.featured-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.featured-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.featured-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
}

.mono-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
}

.featured-info h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.visualizer {
  width: 100%;
  height: 44px;
  margin: 12px 0;
  border-radius: 8px;
  background: rgba(7, 9, 14, 0.75);
  border: 1px solid var(--border);
  display: block;
}

.featured-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Catalog */
.section {
  padding-top: 56px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin-bottom: 4px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-tab {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.14s ease;
}

.filter-tab:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.filter-tab.active {
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
  font-weight: 600;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0 12px;
  height: 36px;
  min-width: 240px;
}

.search-wrap svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.search-wrap input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.84rem;
  width: 100%;
}

/* Minimalist Track List */
.tracks-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.track-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.track-row:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.track-row.is-playing {
  border-color: var(--accent);
  background: rgba(34, 211, 238, 0.05);
}

.track-play {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #06070a;
  flex-shrink: 0;
  cursor: pointer;
}

.track-play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.track-play-mask {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 13, 0.56);
  display: grid;
  place-items: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.14s ease;
}

.track-play:hover .track-play-mask,
.track-row.is-playing .track-play-mask {
  opacity: 1;
}

.track-play-mask svg {
  width: 20px;
  height: 20px;
}

.track-main {
  flex: 1;
  min-width: 0;
}

.track-title {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-sub {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.track-note {
  font-size: 0.77rem;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
}

.track-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.track-dur {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
}

/* Collaborate */
.collab-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.collab-intro h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.15;
  margin-bottom: 10px;
}

.specs-list {
  margin-top: 22px;
  border-top: 1px solid var(--border);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
}

.spec-row a {
  color: var(--accent);
  text-decoration: none;
}

.spec-row a:hover {
  text-decoration: underline;
}

.collab-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.collab-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field span {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-hint {
  font-size: 0.79rem;
  color: var(--muted);
  line-height: 1.45;
}

.feedback {
  font-size: 0.82rem;
  color: var(--accent);
  min-height: 18px;
}

/* Footer */
.footer {
  padding-top: 48px;
  padding-bottom: 24px;
}

.footer-inner {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
}

.footer-links {
  display: flex;
  gap: 18px;
}

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

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

/* Player Bar */
.player-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(10, 12, 18, 0.94);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--border-strong);
  padding: 9px 22px;
  display: grid;
  grid-template-columns: 1fr 1.4fr 0.7fr;
  align-items: center;
  gap: 16px;
}

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

.player-track img {
  width: 44px;
  height: 44px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.player-meta {
  min-width: 0;
}

.player-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-subtitle {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

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

.icon-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.icon-btn:hover {
  color: var(--text);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.play-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #f8fafc;
  color: #08090d;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.play-btn svg {
  width: 16px;
  height: 16px;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 440px;
}

.time-code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  min-width: 34px;
  text-align: center;
}

.progress-row input[type="range"],
.volume-wrap input[type="range"] {
  accent-color: var(--accent);
  cursor: pointer;
}

.progress-row input[type="range"] {
  flex: 1;
  height: 3px;
}

.player-right {
  display: flex;
  justify-content: flex-end;
}

.volume-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume-wrap svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.volume-wrap input[type="range"] {
  width: 80px;
  height: 3px;
}

@media (max-width: 860px) {
  .hero,
  .collab-grid,
  .tracks-list {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .player-bar {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .player-right {
    display: none;
  }

  body {
    padding-bottom: 136px;
  }
}

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }

  .search-wrap {
    width: 100%;
  }
}
