:root {
  color-scheme: dark;
  --bg: #0c1020;
  --card: #161b2e;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f6fb;
  --muted: #a7b0c5;
  --accent: #7c6cff;
  --ok: #b6f3c8;
  --err: #ffb4b4;
  font-family: "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; }

.wrap {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.narrow { width: min(460px, calc(100% - 32px)); }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.brand {
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.text-link { color: var(--muted); text-decoration: none; }
.text-link:hover { color: white; }

.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.tile {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--card);
  text-decoration: none;
  border: 1px solid var(--line);
}

.tile img, .tile-blank {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: #2a3148;
  flex: none;
}

.tile strong, .tile span { display: block; }
.tile span { color: var(--muted); margin-top: 4px; font-size: 14px; }

.empty, .panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 16px;
}

h1, h2 { margin: 0 0 8px; font-weight: 650; }
.note { color: var(--muted); line-height: 1.45; }
.disk-use { margin: -12px 0 20px; font-size: 14px; }
.error { color: var(--err); }
.ok { color: var(--ok); }
.ok a { color: white; }

form { display: grid; gap: 12px; margin-top: 16px; }

label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }

input {
  width: 100%;
  border: 1px solid var(--line);
  background: #0e1324;
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}

.button, .choice button, .row-actions button {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.button {
  width: fit-content;
  background: var(--accent);
  color: white;
  text-decoration: none;
  display: inline-block;
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button-quiet { background: transparent; color: var(--text); border: 1px solid var(--line); }

.choice { margin-top: 10px; }
.choice button {
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  background: #0e1324;
  color: var(--text);
}
.choice img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.choice small { display: block; color: var(--muted); font-weight: 400; }

.preview-cover { width: 160px; height: 160px; border-radius: 14px; object-fit: cover; margin: 12px 0; }
.link-list { padding-left: 18px; }
.link-list a { color: white; }

.saved { list-style: none; padding: 0; margin: 12px 0 0; }
.saved li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.row-actions { display: flex; gap: 8px; align-items: center; }
.presave-mark {
  margin-right: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.row-actions form { margin: 0; }
.row-actions button { background: #0e1324; color: var(--muted); }

.release-body {
  --tone: #282520;
  --tone-card: #37312a;
  --tone-inset: #423c33;
  --ink: #f6f1e8;
  --line: rgba(255, 255, 255, 0.1);
  min-height: 100vh;
  background: #1a1814;
  color: var(--ink);
  font-family: Inter, "Segoe UI", sans-serif;
}

.stage { position: relative; min-height: 100vh; }

.wash,
.wash-dim {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.wash {
  background: #1a1814 center/cover no-repeat;
  filter: blur(46px) saturate(1.2) brightness(0.6);
  transform: scale(1.08);
}

.wash-dim {
  background: color-mix(in srgb, #000 14%, transparent);
}

.card {
  position: relative;
  z-index: 1;
  width: min(28rem, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 28px 30px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background: var(--tone-card);
  box-shadow: 0 28px 100px -54px rgb(0 0 0 / 0.55);
  text-align: center;
}

.stage { display: grid; align-items: center; padding: 28px 0; }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.card-brand {
  display: inline-flex;
  align-items: center;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  text-decoration: none;
  cursor: default;
  font-family: Geist, Inter, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.copy-link {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: color-mix(in srgb, var(--ink) 78%, transparent);
  cursor: pointer;
}

.copy-link svg { width: 16px; height: 16px; }
.copy-link .copy-mark { display: none; }
.copy-link[data-copied="1"] { color: #b6f3c8; border-color: #b6f3c8; }
.copy-link[data-copied="1"] .copy-glyph { display: none; }
.copy-link[data-copied="1"] .copy-mark { display: block; }

.art-float {
  display: flex;
  justify-content: center;
  animation: art-float 5s ease-in-out infinite;
}

.art-float:hover { animation-play-state: paused; }

.art-tilt {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px -28px rgb(0 0 0 / 0.45);
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1);
  transition: transform 400ms cubic-bezier(.03, .98, .52, .99);
  will-change: transform;
}

.glare-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 16px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}

.glare {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 312px;
  height: 312px;
  transform-origin: 0 0;
  transform: rotate(0deg) translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
  transition: opacity 400ms cubic-bezier(.03, .98, .52, .99), transform 400ms cubic-bezier(.03, .98, .52, .99);
}

.art {
  display: block;
  width: 220px;
  height: 220px;
  max-width: 68vw;
  max-height: 68vw;
  object-fit: cover;
}

.card h1 {
  margin: 24px 0 0;
  font-family: Geist, Inter, sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.card .by {
  margin: 6px 0 0;
  color: color-mix(in srgb, var(--ink) 68%, transparent);
  font-size: 16px;
  font-weight: 400;
}

.listen-label {
  margin: 26px 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 46%, transparent);
}

.services { display: grid; gap: 10px; text-align: left; }

.service {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--tone-inset);
  color: var(--ink);
  text-decoration: none;
  font-family: Geist, Inter, sans-serif;
  font-weight: 600;
  font-size: 15px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.service:hover {
  background: var(--tone-card);
  box-shadow: 0 14px 32px -20px rgb(0 0 0 / 0.35);
  transform: scale(1.015);
}

.service-end {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-left: auto;
}
.presave-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: color-mix(in srgb, var(--ink) 78%, transparent);
}

.service-icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--tone-card);
}

.service-icon svg { width: 20px; height: 20px; }
.service-icon .brand-mark { width: 24px; height: 24px; object-fit: contain; }
.service-icon .brand-wide { width: 32px; height: 18px; }
.service-icon .brand-fill {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 50%;
}
.service-letter {
  font-family: Geist, Inter, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}
.service-name { flex: 1; }
.chevron {
  width: 16px;
  height: 16px;
  flex: none;
  color: color-mix(in srgb, var(--ink) 42%, transparent);
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.rise {
  animation: rise-in 0.6s cubic-bezier(.22, 1, .36, 1) both;
}
.rise-head { animation-delay: 0.02s; }
.rise-cover { animation-delay: 0.09s; }
.rise-title { animation-delay: 0.16s; }
.rise-listen { animation-delay: 0.3s; }
.rise-links { animation-delay: 0.37s; }

@keyframes art-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  .art-float { animation: none; }
  .art-tilt, .service { transition: none; }
  .service:hover { transform: none; }
}

@media (max-width: 520px) {
  .card { border-radius: 26px; padding: 18px 16px 20px; }
  .art { width: 200px; height: 200px; }
}
