:root {
  --bg: #fff;
  --bg-alt: #f5f5f5;
  --border: #e0e0e0;
  --text: #333;
  --text-secondary: #666;
  --text-muted: #999;
  --link: #06c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a1a;
    --bg-alt: #252525;
    --border: #3a3a3a;
    --text: #e8e8e8;
    --text-secondary: #aaa;
    --text-muted: #777;
    --link: #5c9fd4;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  height: 100%;
  overflow-y: scroll;
}
body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
  padding: 12px 16px;
}
.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
}
.main {
  flex: 1;
  padding: 24px 0;
}
.footer {
  text-align: center;
  padding: 16px 0;
  color: var(--text-muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
}
.footer a {
  color: var(--text-secondary);
}
.logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  transform: scaleX(1.1);
  transform-origin: left;
}
.logo:hover {
  text-decoration: none;
}
.logo-main {
  color: var(--text);
}
.logo-dim {
  color: var(--text-muted);
  font-weight: 400;
}
#searchbox {
  flex: 1;
  max-width: 400px;
}
.ais-SearchBox-form {
  display: flex;
  position: relative;
}
.ais-SearchBox-input {
  width: 100%;
  padding: 8px 12px;
  padding-right: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
  font-size: 14px;
}
.ais-SearchBox-input::placeholder {
  color: var(--text-muted);
}
.ais-SearchBox-input:focus {
  outline: none;
  border-color: #999;
}
.ais-SearchBox-submit,
.ais-SearchBox-loadingIndicator {
  display: none;
}
.ais-SearchBox-reset {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
}
.ais-SearchBox-reset svg {
  width: 12px;
  height: 12px;
  fill: var(--text-muted);
}
#search-overlay {
  display: none;
}
#search-overlay.active {
  display: flex;
  flex-direction: column;
  flex: 1;
}
#search-overlay.active + .main {
  display: none;
}
#hits {
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg);
  margin-bottom: 32px;
}
#hits:empty {
  display: none;
}
.ais-Hits-list {
  list-style: none;
}
.ais-Hits-item {
  border-bottom: 1px solid var(--border);
}
.ais-Hits-item:last-child {
  border-bottom: none;
}
.hit {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  color: var(--text);
  text-decoration: none;
  align-items: center;
}
.hit:hover {
  background: var(--bg-alt);
  text-decoration: none;
}
.hit-art {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background-color: var(--bg-alt);
  background-size: cover, 40%;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 2px;
}
.hit-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.hit-title {
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hit-artist {
  color: var(--text-secondary);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hit-year {
  color: var(--text-muted);
  font-size: 12px;
}
.year {
  color: var(--text-muted);
}
.no-results {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-secondary);
}
.intro {
  text-align: center;
  margin-bottom: 24px;
}
.intro h1 {
  font-size: 32px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.intro-text {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}
.recording-header {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.recording-art-link {
  flex-shrink: 0;
  display: block;
}
.recording-art {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  background-color: var(--bg-alt);
  background-size: cover, 40%;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 4px;
}
.recording-info {
  flex: 1;
  min-width: 0;
}
.recording-info h1 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
}
.recording-info h1 a {
  color: inherit;
}
.recording-info .artist {
  font-size: 16px;
  color: var(--text-secondary);
}
.recording-info .artist a {
  color: inherit;
}
.recording-info .release {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}
.recording-info .release a {
  color: inherit;
}
.debug-listens {
  display: none;
}
.recording-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.recording-links .link-item {
  padding: 4px 8px;
}
.recording-links .link-icon {
  width: 16px;
  height: 16px;
}
.contribute {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}
.link-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
}
.link-item:hover {
  background: var(--border);
  text-decoration: none;
  color: var(--text);
}
.link-icon {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  flex-shrink: 0;
}
@media (prefers-color-scheme: dark) {
  .link-icon {
    filter: invert(1);
  }
}
.artist-header {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.artist-image {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  background-color: var(--bg-alt);
  background-size: cover;
  background-position: center;
  border-radius: 50%;
}
.artist-info {
  flex: 1;
  min-width: 0;
}
.artist-info h1 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 4px;
}
.artist-info .artist-meta {
  font-size: 13px;
  color: var(--text-muted);
}
.artist-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.artist-links .link-item {
  padding: 4px 8px;
}
.artist-links .link-icon {
  width: 16px;
  height: 16px;
}
.sample-section {
  margin-bottom: 24px;
}
.sample-section h2 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.sample-section .section-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.sample-list {
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg);
}
.sample-list .hit {
  border-bottom: 1px solid var(--border);
}
.sample-list .hit:last-child {
  border-bottom: none;
}
.sample-pair {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border);
}
.sample-pair:last-child {
  border-bottom: none;
}
a.sample-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
}
a.sample-item:hover {
  background: var(--bg-alt);
  text-decoration: none;
}
.sample-item-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.sample-item-info .hit-title,
.sample-item-info .hit-artist {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sample-arrow {
  color: var(--text-muted);
  font-size: 18px;
  flex-shrink: 0;
}
.no-samples {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 3px;
}
.error-page {
  text-align: center;
  padding: 60px 0;
}
.error-page h1 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 12px;
}
.error-page p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
}
@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .logo {
    align-self: flex-start;
  }
  #searchbox {
    max-width: none;
  }
  .recording-header {
    flex-direction: column;
    gap: 16px;
  }
  .recording-art {
    width: 120px;
    height: 120px;
  }
  .sample-pair {
    gap: 6px;
    padding: 6px 8px;
  }
  a.sample-item {
    gap: 6px;
    padding: 4px;
  }
}
