:root {
  color-scheme: dark;
  --bg: #040507;
  --surface: #0c1016;
  --surface-2: #121821;
  --surface-3: #19212d;
  --text: #fffaf0;
  --muted: #aeb8c7;
  --soft: #778396;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .2);
  --gold: #ffd84d;
  --green: #1ed760;
  --teal: #21d4d9;
  --orange: #ff7a2f;
  --red: #ff4965;
  --shadow: 0 28px 80px rgba(0, 0, 0, .48);
  --radius: 26px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 2%, rgba(33, 212, 217, .22), transparent 26rem),
    radial-gradient(circle at 92% 3%, rgba(30, 215, 96, .16), transparent 24rem),
    radial-gradient(circle at 48% 44%, rgba(255, 216, 77, .07), transparent 32rem),
    linear-gradient(180deg, #050608 0%, #080a0e 48%, #040507 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 76%);
}

a { color: inherit; }
button, input, select { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.site-header {
  padding-top: 18px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 13px;
  font-weight: 1000;
}

.brand img,
.site-footer img {
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 48px rgba(33, 212, 217, .14);
}

.nav-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.button,
.open,
.copy,
#clearBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  font-weight: 900;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.button:hover,
.open:hover,
.copy:hover,
#clearBtn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 216, 77, .55);
  background: rgba(255, 216, 77, .12);
}

.button-spotify,
.open {
  border-color: rgba(30, 215, 96, .4);
  background: rgba(30, 215, 96, .14);
}

.button-ghost {
  border-color: rgba(33, 212, 217, .28);
  background: rgba(33, 212, 217, .08);
}

.hero {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  min-height: 440px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)),
    rgba(10, 14, 20, .86);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-art {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 216, 77, .2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 22%, rgba(33, 212, 217, .18), transparent 44%),
    rgba(255, 255, 255, .045);
}

.hero-art img {
  width: min(235px, 68vw);
  height: auto;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(8px, 3vw, 34px);
}

.kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 7.3vw, 94px);
  line-height: .88;
  letter-spacing: 0;
  text-transform: uppercase;
}

.subtitle {
  max-width: 650px;
  margin: 20px 0 0;
  color: #dce4ee;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.32;
  font-weight: 700;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 0;
}

.stats div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .05);
}

.stats dt {
  color: var(--soft);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.stats dd {
  margin: 7px 0 0;
  color: var(--text);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 1000;
}

.search-panel {
  margin-top: 18px;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(5, 7, 11, .82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-intro {
  text-align: center;
}

.search-intro p {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.search-intro h2 {
  margin: 0 0 20px;
  font-size: clamp(30px, 4.6vw, 52px);
  letter-spacing: 0;
}

.search-shell {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.search-shell::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 24px;
  background: linear-gradient(90deg, var(--teal), var(--green), var(--gold), var(--orange));
  opacity: .54;
  filter: blur(13px);
  transition: opacity .22s ease, transform .22s ease;
}

.search-shell:focus-within::before {
  opacity: .92;
  transform: scaleX(1.01);
}

input,
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #080b10;
  color: var(--text);
  outline: none;
}

input {
  position: relative;
  min-height: 74px;
  padding: 0 24px;
  border-radius: 21px;
  font-size: clamp(18px, 2.6vw, 25px);
  font-weight: 760;
}

input::placeholder {
  color: #748093;
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 216, 77, .18);
}

.filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  max-width: 900px;
  margin: 16px auto 0;
}

.filters label {
  display: grid;
  gap: 7px;
}

.filters span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .09em;
  text-transform: uppercase;
}

select {
  min-height: 50px;
  padding: 0 14px;
  border-radius: 16px;
}

#clearBtn {
  align-self: end;
  min-width: 98px;
}

.meta {
  margin: 18px auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.results {
  display: grid;
  gap: 14px;
}

.result-card {
  display: grid;
  grid-template-columns: 7px 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)),
    var(--surface-2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.result-card:hover {
  transform: translateY(-2px);
  border-color: rgba(30, 215, 96, .34);
  background:
    linear-gradient(135deg, rgba(30, 215, 96, .08), rgba(255, 255, 255, .025)),
    var(--surface-3);
}

.result-accent {
  background: linear-gradient(180deg, var(--green), var(--teal), var(--gold));
}

.result-body {
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
}

.result-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.date {
  color: var(--gold);
}

.status {
  padding: 4px 10px;
  border: 1px solid rgba(30, 215, 96, .28);
  border-radius: 999px;
  background: rgba(30, 215, 96, .1);
  color: #c8f9d9;
}

.result-card h2 {
  margin: 10px 0 9px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.1;
  letter-spacing: 0;
}

.title {
  color: var(--text);
  text-decoration: none;
}

.title:hover {
  color: var(--gold);
}

.description,
.snippet {
  max-width: 930px;
  margin: 9px 0;
  color: var(--muted);
  line-height: 1.6;
}

.description:empty {
  display: none;
}

.snippet {
  color: #edf2f8;
}

mark {
  border-radius: 7px;
  background: rgba(255, 216, 77, .25);
  color: #ffe99b;
  box-shadow: 0 0 0 2px rgba(255, 216, 77, .08);
  padding: 0 3px;
}

.tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #e9edf5;
  font-size: 12px;
  font-weight: 1000;
}

.tag[data-tone="gold"] {
  border-color: rgba(255, 216, 77, .34);
  background: rgba(255, 216, 77, .13);
  color: #ffe79d;
}

.tag[data-tone="green"] {
  border-color: rgba(30, 215, 96, .32);
  background: rgba(30, 215, 96, .12);
  color: #c3fbd7;
}

.tag[data-tone="blue"] {
  border-color: rgba(33, 212, 217, .32);
  background: rgba(33, 212, 217, .11);
  color: #c9fbff;
}

.tag[data-tone="rose"] {
  border-color: rgba(255, 73, 101, .3);
  background: rgba(255, 73, 101, .1);
  color: #ffd1d8;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.copy {
  padding: 0 16px;
}

.empty {
  padding: 36px 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .035);
  color: var(--muted);
  text-align: center;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 40px 0 52px;
  color: var(--muted);
  text-align: center;
}

.site-footer strong {
  color: var(--text);
  font-size: 17px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-footer p {
  max-width: 620px;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-art {
    justify-content: start;
    padding: 18px;
  }

  .hero-art img {
    width: min(180px, 52vw);
  }
}

@media (max-width: 700px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand span {
    max-width: 190px;
    line-height: 1.35;
  }

  .nav-actions,
  .button {
    width: 100%;
  }

  .hero {
    padding: 18px;
    border-radius: 28px;
  }

  .hero-art {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .hero-art img {
    width: min(142px, 46vw);
    border-radius: 20px;
  }

  .hero-copy {
    padding: 0;
  }

  .kicker {
    margin-top: 2px;
    font-size: 12px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .subtitle {
    margin-top: 14px;
    font-size: 18px;
  }

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

  .stats {
    gap: 8px;
    margin-top: 20px;
  }

  .stats div {
    padding: 14px;
  }

  .search-panel {
    border-radius: 28px;
  }

  input {
    min-height: 62px;
  }

  #clearBtn,
  .actions a,
  .actions button {
    width: 100%;
  }
}

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