:root {
  --ink: #0a0d0f;
  --paper: #edece6;
  --muted: #858983;
  --line: rgba(237, 236, 230, 0.16);
  --acid: #d6ff4b;
  --aqua: #80f0d0;
  --coral: #ff795f;
  --panel: #121719;
  --panel-2: #181e20;
  --mono: "DM Mono", monospace;
  --sans: "Space Grotesk", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  color: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 75% -15%, rgba(128, 240, 208, 0.08), transparent 30rem),
    var(--ink);
  font-family: var(--sans);
}

button,
input {
  font: inherit;
}

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

button {
  cursor: pointer;
}

.app-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 0 5vw;
}

.topbar {
  height: 94px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 27px;
  height: 27px;
  border: 1px solid var(--acid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transform: rotate(-15deg);
}

.brand-mark i {
  width: 2px;
  border-radius: 2px;
  background: var(--acid);
  display: block;
}

.brand-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2) { height: 15px; }
.brand-mark i:nth-child(3) { height: 11px; }

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.08em;
}

.brand-name span {
  color: var(--acid);
}

.brand-type,
.source-note,
.eyebrow,
.quick-label,
.result-count,
.record-year,
.record-plays,
.media-tag,
.player-kicker,
.site-footer,
.notice {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.brand-type {
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  padding-left: 11px;
}

.source-note {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 10px;
  gap: 15px;
  letter-spacing: 0.1em;
}

.library-link {
  border-left: 1px solid var(--line);
  color: var(--acid);
  padding-left: 15px;
  text-decoration: none;
  transition: color 160ms ease;
}

.library-link:hover,
.library-link:focus-visible {
  color: var(--paper);
}

.live-dot {
  width: 6px;
  height: 6px;
  background: var(--coral);
  border-radius: 50%;
  display: inline-block;
  margin: 0 7px 1px 0;
  box-shadow: 0 0 0 4px rgba(255, 121, 95, 0.1);
}

.search-stage {
  min-height: 415px;
  padding: 79px 0 71px;
}

.eyebrow {
  color: var(--aqua);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.eyebrow span {
  color: var(--muted);
  margin-right: 12px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(48px, 7.4vw, 108px);
  font-weight: 500;
  letter-spacing: -0.085em;
  line-height: 0.9;
  margin: 25px 0 52px;
  max-width: 900px;
}

h1 em {
  color: var(--acid);
  font-style: normal;
}

.search-form {
  height: 66px;
  max-width: 810px;
  position: relative;
  display: flex;
  background: var(--paper);
  border: 1px solid var(--paper);
}

.search-icon {
  width: 17px;
  height: 17px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  margin: 23px 3px 0 22px;
  position: relative;
  flex: 0 0 auto;
}

.search-icon::after {
  content: "";
  width: 7px;
  height: 2px;
  background: var(--ink);
  position: absolute;
  right: -6px;
  bottom: -3px;
  transform: rotate(45deg);
}

.search-form input {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 16px;
  min-width: 0;
  outline: 0;
  padding: 0 20px;
  width: 100%;
}

.search-form input::placeholder {
  color: #747871;
}

.search-submit {
  align-items: center;
  background: var(--acid);
  border: 0;
  color: var(--ink);
  display: flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  gap: 25px;
  justify-content: space-between;
  min-width: 134px;
  padding: 0 19px;
  transition: background 160ms ease, color 160ms ease;
}

.search-submit:hover,
.search-submit:focus-visible {
  background: var(--coral);
}

.arrow {
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.quick-searches {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.quick-label {
  color: var(--muted);
  font-size: 10px;
  margin-right: 4px;
}

.quick-chip {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  padding: 7px 12px 6px;
  transition: border-color 160ms ease, color 160ms ease;
}

.quick-chip:hover,
.quick-chip:focus-visible {
  border-color: var(--acid);
  color: var(--acid);
}

.results-section {
  border-top: 1px solid var(--line);
  padding: 47px 0 78px;
}

.results-header {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 33px;
}

h2 {
  color: var(--paper);
  font-size: clamp(27px, 3.4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 1;
  margin-top: 14px;
}

.result-count {
  color: var(--muted);
  font-size: 10px;
  padding-bottom: 3px;
}

.results-grid {
  display: grid;
  gap: 29px 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 250px;
}

.record-card {
  min-width: 0;
  animation: rise-in 420ms both;
}

.record-card:nth-child(2) { animation-delay: 35ms; }
.record-card:nth-child(3) { animation-delay: 70ms; }
.record-card:nth-child(4) { animation-delay: 105ms; }
.record-card:nth-child(5) { animation-delay: 140ms; }
.record-card:nth-child(6) { animation-delay: 175ms; }
.record-card:nth-child(7) { animation-delay: 210ms; }
.record-card:nth-child(8) { animation-delay: 245ms; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

.cover-wrap {
  aspect-ratio: 1 / 1;
  background: var(--panel-2);
  overflow: hidden;
  position: relative;
}

.cover {
  height: 100%;
  object-fit: cover;
  position: absolute;
  width: 100%;
  z-index: 1;
}

.cover:not([src]),
.cover[src=""] {
  display: none;
}

.cover-fallback {
  align-items: center;
  background:
    linear-gradient(135deg, transparent 45%, rgba(214, 255, 75, 0.18) 46%, transparent 47%),
    radial-gradient(circle at 72% 23%, rgba(128, 240, 208, 0.72), transparent 2px),
    linear-gradient(140deg, #283337 0%, #111719 62%);
  display: flex;
  height: 100%;
  justify-content: center;
  position: absolute;
  width: 100%;
}

.record-card:nth-child(3n) .cover-fallback {
  background:
    radial-gradient(circle at 28% 63%, rgba(255, 121, 95, 0.75), transparent 3px),
    linear-gradient(33deg, transparent 48%, rgba(255, 121, 95, 0.23) 49%, transparent 50%),
    linear-gradient(140deg, #202a2c 0%, #0d1113 72%);
}

.record-card:nth-child(4n) .cover-fallback {
  background:
    radial-gradient(circle at 65% 34%, rgba(214, 255, 75, 0.9), transparent 3px),
    linear-gradient(160deg, transparent 45%, rgba(128, 240, 208, 0.22) 46%, transparent 47%),
    linear-gradient(140deg, #313328 0%, #111719 72%);
}

.fallback-number {
  color: rgba(237, 236, 230, 0.18);
  font-family: var(--mono);
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.12em;
}

.fallback-symbol {
  bottom: 18px;
  color: var(--acid);
  font-size: 13px;
  position: absolute;
  right: 18px;
}

.media-tag {
  background: var(--acid);
  color: var(--ink);
  font-size: 8px;
  left: 10px;
  padding: 5px 6px 4px;
  position: absolute;
  top: 10px;
  z-index: 2;
}

.play-button {
  align-items: center;
  background: var(--paper);
  border: 0;
  border-radius: 50%;
  bottom: 14px;
  display: flex;
  height: 42px;
  justify-content: center;
  opacity: 0;
  position: absolute;
  right: 14px;
  transform: translateY(5px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
  width: 42px;
  z-index: 3;
}

.cover-wrap:hover .play-button,
.play-button:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.play-button:hover {
  background: var(--acid);
}

.play-triangle {
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--ink);
  border-top: 6px solid transparent;
  display: block;
  margin-left: 3px;
}

.card-body {
  padding: 15px 1px 0;
}

.record-title {
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-creator {
  color: var(--aqua);
  font-size: 12px;
  line-height: 1.4;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 9px;
  gap: 7px;
  margin-top: 14px;
}

.meta-separator {
  color: var(--coral);
}

.record-link {
  color: var(--muted);
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  margin-top: 14px;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.record-link span {
  color: var(--acid);
  font-size: 14px;
  margin-left: 4px;
}

.record-link:hover,
.record-link:focus-visible {
  color: var(--paper);
}

.notice {
  border: 1px solid rgba(255, 121, 95, 0.45);
  color: var(--coral);
  font-size: 10px;
  line-height: 1.5;
  margin: -7px 0 25px;
  padding: 13px 15px;
}

.notice[hidden],
.player[hidden] {
  display: none;
}

.skeleton-card {
  animation: pulse 1.2s ease-in-out infinite alternate;
}

.skeleton-block {
  background: var(--panel);
}

.skeleton-cover {
  aspect-ratio: 1;
}

.skeleton-line {
  height: 12px;
  margin-top: 16px;
  width: 75%;
}

.skeleton-line.short {
  margin-top: 9px;
  width: 45%;
}

@keyframes pulse {
  from { opacity: 0.42; }
  to { opacity: 0.8; }
}

.results-footer {
  display: flex;
  justify-content: center;
  padding-top: 48px;
}

.load-more {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--paper);
  display: flex;
  font-family: var(--mono);
  font-size: 10px;
  gap: 26px;
  letter-spacing: 0.06em;
  padding: 13px 16px 12px;
  text-transform: uppercase;
  transition: border-color 160ms ease, color 160ms ease;
}

.load-more span:last-child {
  color: var(--acid);
  font-size: 16px;
}

.load-more:hover,
.load-more:focus-visible {
  border-color: var(--acid);
  color: var(--acid);
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 9px;
  justify-content: space-between;
  padding: 24px 0 31px;
}

.site-footer a {
  color: var(--paper);
  text-decoration: none;
  transition: color 160ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--acid);
}

.footer-line {
  background: var(--coral);
  height: 1px;
  opacity: 0.7;
  width: 34px;
}

.player {
  align-items: center;
  background: rgba(18, 23, 25, 0.97);
  border-top: 1px solid var(--acid);
  bottom: 0;
  display: flex;
  gap: 18px;
  left: 0;
  padding: 10px 5vw;
  position: fixed;
  width: 100%;
  z-index: 10;
}

.player-art {
  align-items: center;
  background: var(--panel-2);
  display: flex;
  flex: 0 0 auto;
  height: 49px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 49px;
}

.player-art.has-image {
  background-position: center;
  background-size: cover;
}

.player-bars {
  align-items: center;
  display: flex;
  gap: 3px;
  height: 19px;
}

.player-bars i {
  animation: equalize 760ms ease-in-out infinite alternate;
  background: var(--acid);
  display: block;
  height: 13px;
  width: 2px;
}

.player-bars i:nth-child(2) { animation-delay: -420ms; height: 19px; }
.player-bars i:nth-child(3) { animation-delay: -180ms; height: 10px; }
.player-bars i:nth-child(4) { animation-delay: -620ms; height: 16px; }

@keyframes equalize {
  from { transform: scaleY(0.45); }
  to { transform: scaleY(1); }
}

.player-track {
  display: flex;
  flex: 0 1 290px;
  flex-direction: column;
  min-width: 150px;
}

.player-kicker {
  color: var(--acid);
  font-size: 8px;
  margin-bottom: 5px;
}

.player-track strong {
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-track > span:last-child {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player audio {
  height: 36px;
  min-width: 210px;
  width: min(510px, 46vw);
}

.player-close {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
  margin-left: auto;
  padding: 7px;
}

.player-close:hover,
.player-close:focus-visible {
  color: var(--paper);
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 1050px) {
  .results-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .app-shell {
    padding: 0 20px;
  }

  .topbar {
    height: 75px;
  }

  .source-note {
    font-size: 0;
    gap: 9px;
  }

  .library-link {
    font-size: 8px;
    padding-left: 9px;
  }

  .brand-type {
    display: none;
  }

  .search-stage {
    min-height: 0;
    padding: 59px 0 57px;
  }

  h1 {
    font-size: clamp(46px, 15vw, 76px);
    margin-bottom: 39px;
  }

  .search-form {
    height: 60px;
  }

  .search-icon {
    margin: 20px 0 0 16px;
  }

  .search-form input {
    font-size: 14px;
    padding: 0 12px;
  }

  .search-submit {
    min-width: 54px;
    padding: 0 14px;
  }

  .search-submit span:first-child {
    display: none;
  }

  .search-submit .arrow {
    font-size: 23px;
  }

  .results-section {
    padding-top: 37px;
  }

  .results-header {
    align-items: start;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
  }

  .results-grid {
    gap: 28px 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .record-title {
    font-size: 13px;
  }

  .record-creator {
    font-size: 11px;
  }

  .card-meta {
    margin-top: 11px;
  }

  .record-link {
    font-size: 8px;
    margin-top: 11px;
  }

  .site-footer {
    font-size: 8px;
    gap: 10px;
  }

  .footer-line {
    flex: 0 0 20px;
  }

  .player {
    gap: 10px;
    padding: 9px 15px;
  }

  .player-art {
    height: 42px;
    width: 42px;
  }

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

  .player-track strong {
    font-size: 11px;
  }

  .player-track > span:last-child {
    font-size: 10px;
  }

  .player audio {
    bottom: -2px;
    left: 0;
    min-width: 0;
    position: absolute;
    width: 100%;
  }

  .player-close {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
