:root {
  color-scheme: light;
  --paper: #f5f4f0;
  --ink: #1d172b;
  --muted: #625e69;
  --line: #dedbe2;
  --lime: #defa5b;
  --violet: #5129d8;
  --night: #19142a;
  --cover-art: url("covers.webp");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  padding-bottom: 88px;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #8e67ff; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(1190px, calc(100% - 72px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 20; background: white; padding: 10px 16px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  min-height: 73px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.brand, .collection-link { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; width: fit-content; }
.brand { font-size: 1.1rem; font-weight: 850; letter-spacing: -.05em; }
.brand b { color: var(--violet); }
.brand-mark {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  width: 34px;
  height: 34px;
  padding-bottom: 9px;
  border-radius: 9px;
  background: var(--lime);
  color: var(--night);
}
.brand-mark i { width: 3px; border-radius: 1px; background: currentColor; height: 8px; }
.brand-mark i:nth-child(2) { height: 15px; }
.brand-mark i:nth-child(3) { height: 11px; }
nav { display: flex; gap: 32px; font-size: .9rem; font-weight: 650; }
nav a:hover, .collection-link:hover, .site-footer a:hover { color: var(--violet); }
.collection-link { justify-self: end; gap: 6px; font-size: .875rem; font-weight: 650; }
.collection-link > span:first-child { font-size: 1.3rem; line-height: 1; }
.hero {
  position: relative;
  isolation: isolate;
  min-height: 465px;
  display: flex;
  align-items: center;
  margin-top: 24px;
  border-radius: 15px;
  overflow: hidden;
  background: #211737 url("hero.webp") 58% 55% / cover no-repeat;
  color: white;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #171025 0%, #171025e8 21%, #17102580 45%, transparent 76%);
}
.hero-content { padding: 60px clamp(32px, 6vw, 76px); }
.hero-kicker, .card-meta, .detail-meta {
  font-size: .8125rem;
  font-weight: 780;
  letter-spacing: .095em;
  text-transform: uppercase;
}
.hero-kicker { color: var(--lime); margin-bottom: 17px; }
.hero h1 {
  max-width: 760px;
  font-size: clamp(3rem, 6.25vw, 5.65rem);
  font-weight: 850;
  letter-spacing: -.075em;
  line-height: .98;
}
.hero-copy { max-width: 27rem; margin-top: 20px; color: #e5dfef; font-size: clamp(1rem, 1.6vw, 1.16rem); }
.hero-actions, .detail-actions { display: flex; align-items: center; gap: 12px; margin-top: 27px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 45px;
  border: 1px solid transparent;
  padding: 10px 19px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 760;
}
.button-lime { background: var(--lime); color: var(--night); }
.button-lime:hover, .main-play:hover { background: #ecff91; }
.button-outline { color: white; background: #1e163b7d; border-color: #b6a7cd99; }
.button-outline:hover { background: #433352; }
.releases { padding-top: 40px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 17px; }
.section-heading h2 {
  font-size: clamp(2.15rem, 4vw, 3.2rem);
  line-height: 1.03;
  letter-spacing: -.065em;
  font-weight: 850;
}
.section-heading p { color: var(--muted); margin-top: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 19px; }
.filter {
  padding: 7px 13px;
  min-height: 38px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: .875rem;
  font-weight: 650;
  white-space: nowrap;
}
.filter:hover { border-color: var(--violet); }
.filter[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: white; }
.saved-filter span { font-size: 1.07rem; line-height: 1; }
.release-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.release-card { overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.card-media { position: relative; }
.cover {
  display: block;
  background-image: var(--cover-art);
  background-size: 200% 200%;
  background-repeat: no-repeat;
  background-color: var(--art-color, #372569);
}
.cover-pink { --art-color: #711c83; background-position: left top; }
.cover-green { --art-color: #4a651a; background-position: right top; }
.cover-blue { --art-color: #292a90; background-position: left bottom; }
.cover-orange { --art-color: #963924; background-position: right bottom; }
.card-media > .cover { aspect-ratio: 1.23; }
.card-play, .save-button, .icon-button, .main-play {
  border: 0;
  display: inline-grid;
  place-items: center;
}
.card-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: white;
  color: var(--ink);
  box-shadow: 0 2px 10px #1c102858;
}
.card-play:hover, .card-play[aria-pressed="true"] { background: var(--lime); }
.card-content { padding: 14px 15px 19px; position: relative; }
.card-meta { display: flex; gap: 8px; min-height: 18px; letter-spacing: .045em; }
.card-meta span:first-child { color: #4c2aa2; }
.card-meta span:last-child { color: var(--muted); }
.card-content h3 { font-weight: 800; font-size: 1.12rem; margin: 8px 26px 4px 0; line-height: 1.13; letter-spacing: -.035em; }
.card-content h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-content p { font-size: .9rem; color: var(--muted); }
.card-content .track-artist { color: #5129ac; font-weight: 650; margin-bottom: 4px; }
.save-button { width: 36px; height: 36px; border-radius: 6px; background: transparent; color: var(--ink); font-size: 1.48rem; line-height: 1; }
.save-button:hover, .save-button[aria-pressed="true"] { background: #ede8fd; color: #542dc8; }
.card-content .save-button { position: absolute; top: 32px; right: 8px; }
.empty-state { padding: 22px; color: var(--muted); border: 1px dashed #bbb4ca; border-radius: 10px; }
.site-footer {
  margin-top: 45px;
  min-height: 71px;
  padding-block: 15px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: .875rem;
}
.site-footer a:last-child { margin-left: auto; }
.footer-brand { color: var(--ink); font-weight: 760; }
.player {
  position: fixed;
  z-index: 5;
  bottom: 0;
  width: 100%;
  background: var(--night);
  color: white;
  border-top: 1px solid #50416c;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.player-inner {
  width: min(1190px, calc(100% - 72px));
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 3vw, 42px);
  min-height: 68px;
}
.now-playing { display: flex; min-width: 0; align-items: center; gap: 11px; }
.mini-cover { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 5px; }
.now-copy { min-width: 0; display: grid; gap: 2px; font-size: .875rem; line-height: 1.15; }
.now-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-copy span { color: #c1b6d2; font-size: .8125rem; }
.transport { display: flex; align-items: center; justify-content: center; gap: 8px; }
.icon-button { min-width: 34px; min-height: 39px; color: white; border-radius: 7px; background: transparent; }
.icon-button:hover { background: #3d3155; }
.main-play { background: var(--lime); border-radius: 50%; width: 43px; height: 43px; color: var(--ink); }
.timeline { display: flex; align-items: center; justify-self: end; gap: 7px; width: min(100%, 290px); color: #ddd4eb; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.timeline input { flex: 1; min-width: 48px; margin: 0; accent-color: var(--lime); }
.timeline input:disabled { opacity: .7; }
.queue-toggle, .queue-repeat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid #625477;
  border-radius: 6px;
  background: #2c2240;
  color: #f3edfb;
  font-size: .8125rem;
  font-weight: 700;
}
.queue-toggle:hover, .queue-repeat:hover { border-color: var(--lime); }
.queue-toggle[aria-expanded="true"], .queue-repeat[aria-pressed="true"] { background: var(--lime); color: var(--night); border-color: var(--lime); }
.queue {
  position: absolute;
  right: max(36px, calc((100% - 1190px) / 2));
  bottom: calc(100% + 10px);
  width: min(390px, calc(100% - 36px));
  padding: 14px;
  background: #231b36;
  color: white;
  border: 1px solid #56496d;
  border-radius: 11px;
  box-shadow: 0 7px 26px #1c10284d;
}
.queue-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.queue-header h2 { font-size: 1.16rem; }
.queue ol { list-style: none; max-height: min(45vh, 360px); overflow: auto; margin: 8px 0 0; padding: 0; }
.queue li + li { margin-top: 3px; }
.queue li button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  text-align: left;
  background: transparent;
  color: inherit;
  border: 0;
  border-radius: 6px;
  font-size: .875rem;
}
.queue li button:hover { background: #3a2f50; }
.queue li button[aria-current="true"] { background: #3b3151; color: var(--lime); }
.queue li button span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.player-message:not(.sr-only) { position: absolute; bottom: calc(100% + 10px); left: 18px; padding: 10px 14px; border-radius: 8px; background: var(--night); }
.back-link { display: inline-block; margin: 26px 0 18px; color: #502cb0; font-size: .9rem; font-weight: 750; }
.back-link:hover { text-decoration: underline; }
.release-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(22px, 6vw, 86px); align-items: start; }
.detail-cover { aspect-ratio: 1; border-radius: 12px; }
.detail-copy { padding-top: 8px; }
.detail-meta { color: #5129ac; margin-bottom: 8px; }
.detail-copy h1, .about h1 { font-size: clamp(2.55rem, 6vw, 4.65rem); line-height: 1; font-weight: 850; letter-spacing: -.072em; }
.detail-copy .detail-summary, .about-intro { margin-top: 14px; font-size: 1.12rem; color: var(--muted); }
.detail-copy h2, .about h2 { margin: 28px 0 5px; font-size: 1.24rem; letter-spacing: -.025em; }
.detail-copy > p:not(.detail-summary, .detail-meta), .about p:not(.about-intro) { max-width: 62ch; }
.detail-actions { margin-top: 19px; }
.detail-actions .save-button { border: 1px solid var(--line); height: 45px; width: 45px; }
.about { padding: clamp(24px, 6vw, 61px); border: 1px solid var(--line); background: #fff; border-radius: 12px; max-width: 800px; }
.about .button { margin-top: 24px; }
.detail-copy p a, .search-credit a { color: #5129ac; text-decoration: underline; text-underline-offset: 3px; }
.discover { max-width: 860px; }
.music-search { display: flex; gap: 9px; margin-top: 23px; }
.music-search input {
  min-width: 0;
  flex: 1;
  padding: 10px 12px;
  height: 45px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.music-search .button { margin-top: 0; }
.music-search button:disabled { opacity: .65; cursor: wait; }
.search-results { list-style: none; padding: 0; margin: 13px 0 0; }
.search-results li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.search-results li div { display: grid; min-width: 0; }
.search-results li strong { overflow-wrap: anywhere; }
.search-results li span, .search-results li a, .search-credit { color: var(--muted); font-size: .875rem; }
.search-results li a:hover { color: var(--violet); }
.search-status:not(:empty), .search-credit { margin-top: 13px; }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 48px); }
  .player-inner { width: calc(100% - 48px); }
  .hero { min-height: 410px; }
  .release-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .queue { right: 24px; }
}
@media (max-width: 620px) {
  .shell, .player-inner { width: calc(100% - 28px); }
  .header-inner { min-height: 63px; grid-template-columns: 1fr auto; gap: 10px; }
  nav { display: none; }
  .brand { font-size: 1rem; }
  .collection-link { font-size: .8125rem; }
  .hero { min-height: 410px; margin-top: 12px; align-items: end; background-position: 64% center; }
  .hero::before { background: linear-gradient(0deg,#171025f5 4%,#171025be 48%,#17102527 100%); }
  .hero-content { padding: 28px 17px; }
  .hero h1 { font-size: clamp(2.85rem, 11vw, 4.2rem); }
  .hero-kicker { margin-bottom: 10px; }
  .hero-copy { margin-top: 12px; }
  .hero-actions { margin-top: 18px; }
  .section-heading { align-items: start; gap: 8px; }
  .section-heading p { font-size: .9rem; }
  .releases { padding-top: 26px; }
  .release-grid { gap: 10px; }
  .card-content { padding: 10px; }
  .card-meta { font-size: .75rem; letter-spacing: 0; gap: 4px; flex-wrap: wrap; }
  .card-content h3 { font-size: 1rem; margin-right: 20px; }
  .card-content .save-button { width: 29px; height: 29px; top: 29px; right: 3px; }
  .card-content p { font-size: .82rem; }
  .card-play { width: 36px; height: 36px; right: 7px; bottom: 7px; }
  .release-detail { grid-template-columns: 1fr; }
  .detail-cover { width: 100%; max-height: 350px; }
  .player-inner { gap: 4px 10px; padding-block: 7px; grid-template-columns: minmax(0, 1fr) auto auto; }
  .timeline { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .queue-toggle { grid-column: 3; grid-row: 1; padding-inline: 8px; }
  .queue { right: 14px; width: min(390px, calc(100% - 28px)); }
  .now-copy { font-size: .8125rem; }
  .transport { gap: 2px; }
  .icon-button { min-width: 30px; }
  .main-play { width: 36px; height: 36px; }
  .site-footer { margin-top: 28px; gap: 7px 17px; }
  .site-footer a:last-child { margin-left: 0; }
  body { padding-bottom: 102px; }
}
@media (max-width: 410px) {
  .search-results li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 9px; }
  .search-results li a { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
