:root {
  --ink: #070909;
  --panel: #101516;
  --panel-2: #151b1c;
  --line: rgba(245, 231, 215, 0.16);
  --text: #f8f0e8;
  --muted: #b7aaa0;
  --cyan: #1ff8ed;
  --red: #ff4a57;
  --meat: #d64047;
  --marrow: #f5dfc5;
  --green: #8df7b5;
  --shadow: rgba(0, 0, 0, 0.52);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(7, 9, 9, 0.2), var(--ink) 620px),
    var(--ink);
  color: var(--text);
  font-family:
    ui-monospace,
    "SFMono-Regular",
    "SF Mono",
    Menlo,
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 16px;
  letter-spacing: 0;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 18px 40px;
  background: linear-gradient(180deg, rgba(7, 9, 9, 0.9), rgba(7, 9, 9, 0.45));
  border-bottom: 1px solid rgba(31, 248, 237, 0.16);
  backdrop-filter: blur(14px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 2px 0 0 rgba(31, 248, 237, 0.7), -2px 0 0 rgba(255, 74, 87, 0.55);
}

.brand-pixel {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background:
    linear-gradient(90deg, var(--cyan) 0 45%, transparent 45% 55%, var(--red) 55%),
    var(--meat);
  box-shadow:
    0 0 16px rgba(31, 248, 237, 0.58),
    0 0 22px rgba(255, 74, 87, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.nav-links a {
  min-height: 38px;
  padding: 10px 12px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.nav-links a:hover {
  border-color: rgba(31, 248, 237, 0.4);
  color: var(--text);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 92svh;
  padding: 148px 40px 74px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before,
.song-page::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: url("assets/medium-rare-code-banner.jpeg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.hero::before {
  filter: saturate(1.12) contrast(1.08);
  transform: scale(1.012);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 9, 9, 0.94), rgba(7, 9, 9, 0.52) 42%, rgba(7, 9, 9, 0.22)),
    linear-gradient(180deg, rgba(7, 9, 9, 0.15), rgba(7, 9, 9, 0.72) 78%, var(--ink));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: 5rem;
  line-height: 0.96;
  text-transform: lowercase;
  text-shadow:
    3px 0 0 rgba(31, 248, 237, 0.9),
    -3px 0 0 rgba(255, 74, 87, 0.72),
    0 0 34px rgba(31, 248, 237, 0.25);
}

.hero-title-zh {
  display: block;
  margin-top: 10px;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-transform: none;
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--marrow);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-actions,
.context-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-actions {
  margin-top: 30px;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid rgba(31, 248, 237, 0.36);
  border-radius: 6px;
  background: rgba(15, 22, 22, 0.72);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
}

.button:hover,
.platform-link:hover {
  transform: translateY(-1px);
}

.button-ghost {
  border-color: rgba(255, 74, 87, 0.5);
  color: var(--marrow);
  box-shadow: inset 0 0 22px rgba(255, 74, 87, 0.08);
}

.button-small {
  min-height: 40px;
  padding: 10px 12px;
  font-size: 0.74rem;
}

.platform-strip {
  padding: 18px 40px;
  border-top: 1px solid rgba(31, 248, 237, 0.18);
  border-bottom: 1px solid rgba(255, 74, 87, 0.18);
  background:
    linear-gradient(90deg, rgba(31, 248, 237, 0.05), rgba(255, 74, 87, 0.05)),
    rgba(7, 9, 9, 0.96);
}

.platform-strip-inner {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.section {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 88px 40px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.08;
  text-transform: lowercase;
}

.release-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.release-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(31, 248, 237, 0.06), rgba(255, 74, 87, 0.05)) padding-box,
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(135deg, rgba(31, 248, 237, 0.42), rgba(255, 74, 87, 0.36)) border-box;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.release-card:hover {
  background:
    linear-gradient(145deg, rgba(31, 248, 237, 0.09), rgba(255, 74, 87, 0.08)) padding-box,
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(135deg, rgba(31, 248, 237, 0.86), rgba(255, 74, 87, 0.78)) border-box;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.25),
    0 0 24px rgba(31, 248, 237, 0.1),
    0 0 24px rgba(255, 74, 87, 0.08);
}

.release-art {
  width: 100%;
  aspect-ratio: 1;
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--line);
}

.release-card-body {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  padding: 20px;
}

.release-type,
.release-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.release-card h3 {
  margin: 10px 0 10px;
  color: var(--text);
  font-size: 1.22rem;
  line-height: 1.12;
}

.release-description {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--marrow);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  line-height: 1.58;
}

.release-card .button-small {
  flex: 1 1 150px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.tag {
  min-height: 28px;
  padding: 7px 9px;
  border: 1px solid rgba(31, 248, 237, 0.24);
  border-radius: 4px;
  color: var(--green);
  font-size: 0.72rem;
  line-height: 1;
  text-transform: uppercase;
}

.card-actions {
  margin-top: auto;
  padding-top: 20px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.platform-strip .platform-link {
  min-height: 68px;
  background: rgba(12, 16, 17, 0.96);
}

.platform-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 76px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.platform-link:nth-child(2n) {
  border-color: rgba(255, 74, 87, 0.22);
}

.platform-name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.platform-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid rgba(245, 231, 215, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(245, 231, 215, 0.09), rgba(7, 9, 9, 0.18)),
    rgba(7, 9, 9, 0.45);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.03);
}

.platform-logo img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.platform-logo-spotify {
  border-color: rgba(29, 185, 84, 0.4);
  box-shadow: 0 0 18px rgba(29, 185, 84, 0.14);
}

.platform-logo-apple-music {
  border-color: rgba(250, 36, 60, 0.4);
  box-shadow: 0 0 18px rgba(250, 36, 60, 0.14);
}

.platform-logo-youtube-music {
  border-color: rgba(255, 0, 0, 0.4);
  box-shadow: 0 0 18px rgba(255, 0, 0, 0.14);
}

.platform-logo-netease-cloud-music {
  border-color: rgba(211, 58, 49, 0.45);
  box-shadow: 0 0 18px rgba(211, 58, 49, 0.15);
}

.platform-logo-amazon-music {
  border-color: rgba(255, 153, 0, 0.42);
  box-shadow: 0 0 18px rgba(255, 153, 0, 0.13);
}

.platform-logo-iheart {
  border-color: rgba(198, 0, 43, 0.45);
  box-shadow: 0 0 18px rgba(198, 0, 43, 0.15);
}

.platform-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.song-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.song-page::before {
  position: fixed;
  z-index: -2;
  opacity: 0.26;
  filter: saturate(1.16) contrast(1.08);
}

.song-page::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 9, 9, 0.95), rgba(7, 9, 9, 0.76)),
    linear-gradient(180deg, rgba(31, 248, 237, 0.08), rgba(255, 74, 87, 0.06), var(--ink));
}

.song-hero {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 48px;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 156px 40px 56px;
}

.song-art {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(31, 248, 237, 0.28);
  border-radius: 8px;
  background-position: center;
  background-size: cover;
  box-shadow:
    0 0 0 1px rgba(255, 74, 87, 0.18),
    0 28px 80px rgba(0, 0, 0, 0.35);
}

.song-copy {
  align-self: center;
  min-width: 0;
}

.song-copy h1 {
  font-size: 4.6rem;
  text-transform: none;
  overflow-wrap: anywhere;
}

.song-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
}

.song-meta {
  margin: 0;
  color: var(--cyan);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.song-description {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--marrow);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.04rem;
  line-height: 1.72;
  white-space: pre-line;
}

.song-description:empty {
  display: none;
}

.track-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  width: min(100%, 640px);
  margin: 24px 0 0;
}

.track-list:empty {
  display: none;
}

.track-list-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background:
    linear-gradient(rgba(15, 22, 22, 0.92), rgba(15, 22, 22, 0.92)) padding-box,
    linear-gradient(120deg, rgba(31, 248, 237, 0.7), rgba(255, 74, 87, 0.64)) border-box;
  color: var(--marrow);
  line-height: 1.3;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.track-list-item:hover {
  box-shadow: 0 0 28px rgba(31, 248, 237, 0.12);
  transform: translateY(-1px);
}

.track-number,
.track-action {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.track-number {
  color: var(--cyan);
}

.track-title {
  min-width: 0;
  color: var(--text);
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.98rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.track-action {
  color: var(--red);
  white-space: nowrap;
}

.release-track-panel,
.context-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  width: min(100%, 720px);
  margin-top: 18px;
}

.context-actions {
  align-items: center;
}

.release-track-panel {
  margin-top: 24px;
}

.release-track-panel .track-list {
  flex: 1 1 360px;
  width: auto;
  margin: 0;
}

.single-page .song-copy h1 {
  font-size: 4.1rem;
}

.single-release-link {
  min-height: 40px;
  padding: 10px 12px;
  font-size: 0.8rem;
}

.single-release-link {
  display: inline-flex;
  align-items: center;
  max-width: min(100%, 520px);
  border: 1px solid rgba(31, 248, 237, 0.24);
  border-radius: 6px;
  background: rgba(15, 22, 22, 0.66);
  color: var(--cyan);
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.single-release-link:hover {
  border-color: rgba(255, 74, 87, 0.5);
  color: var(--marrow);
}

.share-button {
  gap: 6px;
  min-height: 30px;
  padding: 6px 9px;
  border-color: rgba(31, 248, 237, 0.38);
  color: var(--marrow);
  font-size: 0.74rem;
}

button.share-button {
  min-height: 30px;
  height: 30px;
  padding: 5px 9px;
  line-height: 1;
}

.share-icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.song-links-section {
  padding-top: 46px;
}

.more-releases {
  padding-top: 30px;
}

.release-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.single-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.single-card {
  min-width: 0;
}

.single-card-link {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 98px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background:
    linear-gradient(rgba(15, 22, 22, 0.88), rgba(15, 22, 22, 0.88)) padding-box,
    linear-gradient(135deg, rgba(31, 248, 237, 0.52), rgba(255, 74, 87, 0.46)) border-box;
  color: var(--text);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.single-card-link:hover {
  box-shadow: 0 0 24px rgba(255, 74, 87, 0.12);
  transform: translateY(-1px);
}

.single-card-art {
  width: 74px;
  aspect-ratio: 1;
  border-radius: 6px;
  background-position: center;
  background-size: cover;
}

.single-card-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.single-card-title,
.single-card-release {
  overflow-wrap: anywhere;
}

.single-card-title {
  color: var(--marrow);
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.25;
}

.single-card-release {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.compact-card {
  min-height: 100%;
}

.compact-card .release-card-body {
  padding: 18px;
}

.compact-card h3 {
  font-size: 1.05rem;
}

@media (max-width: 980px) {
  h1 {
    font-size: 4rem;
  }

  .release-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .release-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .single-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .song-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .song-copy h1 {
    font-size: 4rem;
  }

  .single-page .song-copy h1 {
    font-size: 3.4rem;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 88px;
    padding: 16px 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 8px 10px;
  }

  .hero {
    min-height: 78svh;
    padding: 170px 20px 48px;
  }

  .hero::before {
    background-position: center 92px;
    background-size: min(132vw, 620px) auto;
    transform: none;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(7, 9, 9, 0.06), rgba(7, 9, 9, 0.42) 34%, rgba(7, 9, 9, 0.92) 78%, var(--ink)),
      linear-gradient(90deg, rgba(7, 9, 9, 0.88), rgba(7, 9, 9, 0.28));
  }

  h1 {
    font-size: 3rem;
  }

  .hero-copy,
  .song-description {
    font-size: 1rem;
  }

  .hero-actions,
  .context-actions,
  .release-track-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .button:not(.share-button),
  .single-release-link {
    width: 100%;
  }

  .platform-strip {
    padding: 14px 20px;
  }

  .section {
    padding: 64px 20px;
  }

  .section-heading h2 {
    font-size: 1.88rem;
  }

  .release-grid,
  .release-grid.compact,
  .single-grid {
    grid-template-columns: 1fr;
  }

  .release-card,
  .compact-card {
    min-height: 100%;
  }

  .release-art {
    border-bottom: 1px solid var(--line);
  }

  .release-card-body {
    padding: 20px;
  }

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

  .song-hero {
    padding: 142px 20px 34px;
  }

  .song-copy h1 {
    font-size: 3rem;
  }

  .single-page .song-copy h1 {
    font-size: 2.45rem;
  }

  .track-list {
    grid-template-columns: 1fr;
  }

  .track-list-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .track-action {
    grid-column: 2;
  }

  .site-footer {
    padding: 28px 20px;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 76svh;
    padding-top: 158px;
  }

  .hero::before {
    background-position: center 98px;
    background-size: 126vw auto;
  }

  h1,
  .song-copy h1 {
    font-size: 2.54rem;
  }

  .brand-mark {
    font-size: 0.8rem;
  }

  .release-card h3 {
    font-size: 1.18rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .platform-link,
  .release-card {
    transition:
      color 160ms ease,
      transform 160ms ease,
      background 160ms ease,
      box-shadow 160ms ease;
  }
}
