:root {
  color-scheme: dark;
  --bg: #08090b;
  --panel: #11151a;
  --panel-2: #151a20;
  --ink: #f4f7f8;
  --soft: #aab3b8;
  --muted: #727d84;
  --line: rgba(255, 255, 255, 0.12);
  --teal: #24d2c6;
  --red: #ff563f;
  --gold: #e3b15a;
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(36, 210, 198, 0.14), transparent 28%),
    linear-gradient(180deg, #07080a 0%, #0c0f12 52%, #07080a 100%);
  color: var(--ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.78;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.96) 0%, rgba(8, 9, 11, 0.76) 42%, rgba(8, 9, 11, 0.22) 100%),
    linear-gradient(180deg, rgba(8, 9, 11, 0.55), rgba(8, 9, 11, 0.88));
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}

.brand,
.nav-link,
.primary-link,
.ghost-link,
.download,
.filter-button {
  min-height: 42px;
  border-radius: 7px;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 34px;
  border: 1px solid rgba(36, 210, 198, 0.5);
  background: rgba(36, 210, 198, 0.11);
  color: var(--teal);
  font-size: 13px;
  letter-spacing: 0;
}

.nav-link,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--soft);
  font-size: 14px;
  font-weight: 700;
}

.nav-link {
  padding: 0 14px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 110px 24px 120px;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.05;
}

h1 {
  max-width: 720px;
  font-size: 78px;
}

h2 {
  font-size: 34px;
}

.lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--soft);
  font-size: 18px;
}

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

.primary-link,
.ghost-link,
.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 800;
}

.primary-link {
  border: 1px solid var(--teal);
  background: var(--teal);
  color: #061012;
}

.ghost-link {
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1180px;
  margin: -82px auto 0;
  padding: 0 24px 32px;
  gap: 12px;
}

.hero-stats div {
  min-height: 94px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 21, 26, 0.76);
  backdrop-filter: blur(18px);
}

.hero-stats strong {
  display: block;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

main,
.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 24px;
}

.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.intro h2 {
  font-size: 24px;
}

.intro p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--soft);
}

.text-link {
  color: var(--teal);
  font-weight: 800;
  white-space: nowrap;
}

.library {
  padding: 44px 0 60px;
}

.library-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

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

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.collection-card {
  position: relative;
  display: flex;
  min-height: 360px;
  overflow: hidden;
  flex-direction: column;
  justify-content: end;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    var(--panel);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.collection-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
  transition: transform 260ms ease, opacity 260ms ease;
}

.collection-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 9, 11, 0.05), rgba(8, 9, 11, 0.84)),
    linear-gradient(90deg, rgba(8, 9, 11, 0.66), rgba(8, 9, 11, 0.18));
}

.collection-card:hover img {
  opacity: 0.72;
  transform: scale(1.035);
}

.collection-card > :not(img) {
  position: relative;
  z-index: 1;
}

.collection-kicker {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.collection-card h3 {
  max-width: 520px;
  margin: 10px 0 0;
  font-size: 30px;
  line-height: 1.12;
}

.collection-card p {
  max-width: 520px;
  margin: 14px 0 0;
  color: var(--soft);
}

.collection-meta {
  display: inline-flex;
  width: fit-content;
  margin-top: 20px;
  padding: 7px 10px;
  border: 1px solid rgba(227, 177, 90, 0.4);
  border-radius: 999px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.collection-card.is-soon {
  justify-content: center;
  border-style: dashed;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 86, 63, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    var(--panel-2);
}

.collection-card.is-soon::after {
  display: none;
}

.filter-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.filter-button.is-active {
  border-color: rgba(255, 86, 63, 0.62);
  background: rgba(255, 86, 63, 0.14);
  color: #fff;
}

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

.track {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(280px, 500px) auto;
  align-items: center;
  gap: 18px;
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    var(--panel);
  box-shadow: var(--shadow);
}

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

.track-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-right: 12px;
  border: 1px solid rgba(227, 177, 90, 0.42);
  border-radius: 50%;
  background: rgba(227, 177, 90, 0.1);
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.track-name {
  font-size: 18px;
  font-weight: 900;
}

.track-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0 54px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(36, 210, 198, 0.1);
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

audio {
  width: 100%;
  min-width: 220px;
  accent-color: var(--teal);
}

.download {
  border: 1px solid rgba(36, 210, 198, 0.62);
  background: rgba(36, 210, 198, 0.12);
  color: #dffefa;
  white-space: nowrap;
}

.download:hover,
.primary-link:hover {
  filter: brightness(1.08);
}

.site-footer {
  padding-block: 0 38px;
  color: var(--muted);
  font-size: 13px;
}

.terms-topbar {
  border-bottom: 1px solid var(--line);
}

.terms-page {
  max-width: 900px;
  padding-block: 68px;
}

.terms-page h1 {
  font-size: 56px;
}

.terms-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.terms-section h2 {
  font-size: 22px;
}

.terms-section p,
.terms-section li {
  color: var(--soft);
}

.terms-section ul {
  margin: 14px 0 0;
  padding-left: 1.3em;
}

.terms-section code {
  color: var(--teal);
  font-family: Consolas, "Courier New", monospace;
  font-size: 15px;
}

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

  h1 {
    font-size: 52px;
  }

  .hero-content {
    padding-top: 82px;
  }

  .hero-stats,
  .track {
    grid-template-columns: 1fr;
  }

  .library-head,
  .intro {
    align-items: start;
    flex-direction: column;
  }

  .collection-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    justify-content: flex-start;
  }

  .download {
    width: 100%;
  }
}

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

  .brand span:last-child {
    display: none;
  }

  h1 {
    font-size: 40px;
  }

  .terms-page h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 28px;
  }

  .lead {
    font-size: 16px;
  }

  main,
  .site-footer,
  .hero-content,
  .hero-stats {
    padding-inline: 18px;
  }

  .track-meta {
    margin-left: 0;
  }

  .track-number {
    margin-bottom: 10px;
  }

  .track-name {
    display: block;
  }
}
