﻿:root {
  --ink: #101828;
  --muted: #667085;
  --line: #d0d7e2;
  --surface: #ffffff;
  --soft: #eef6f3;
  --accent: #138a63;
  --accent-dark: #0d533e;
  --navy: #182230;
  --warning: #9a6700;
  --shadow: 0 18px 40px rgba(16, 24, 40, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(19, 138, 99, .16), rgba(24, 34, 48, .08)),
    #f6f8fb;
}

.spotify-finder-page {
  --ink: #f7f7f7;
  --muted: #b3b3b3;
  --line: rgba(255, 255, 255, .1);
  --surface: #181818;
  --soft: #232323;
  --accent: #1ed760;
  --accent-dark: #1db954;
  --navy: #2a2a2a;
  --warning: #ffd36e;
  --shadow: 0 20px 52px rgba(0, 0, 0, .36);
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(39, 73, 58, .62) 0%, rgba(18, 18, 18, .96) 240px),
    #101010;
}

button, input, select {
  font: inherit;
}

a {
  color: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
}

.link-btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.link-btn {
  background: var(--navy);
}

.dark-btn {
  background: var(--navy);
}

.search-panel,
.artist {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-panel {
  padding: 18px;
  margin-bottom: 20px;
  overflow: hidden;
}

.spotify-finder-page .topbar {
  color: #fff;
}

.spotify-finder-page .eyebrow {
  color: var(--accent);
}

.spotify-finder-page .search-panel {
  background: rgba(24, 24, 24, .94);
  backdrop-filter: blur(10px);
}

.spotify-finder-page label {
  color: #d8d8d8;
}

.spotify-finder-page .field-note {
  color: #8f8f8f;
}

.spotify-finder-page input,
.spotify-finder-page select {
  border-color: rgba(255, 255, 255, .14);
  color: #fff;
  background: #101010;
}

.spotify-finder-page input::placeholder {
  color: #858585;
}

.spotify-finder-page button {
  color: #000;
  background: var(--accent);
}

.spotify-finder-page .dark-btn,
.spotify-finder-page .copy-btn {
  color: #fff;
  background: #2a2a2a;
}

.oauth-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.oauth-panel strong {
  display: block;
  margin-bottom: 2px;
}

.spotify-finder-page .oauth-panel strong {
  color: #fff;
}

.oauth-panel .status {
  margin: 0;
}

.oauth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) minmax(118px, .75fr) minmax(86px, .55fr) minmax(140px, .9fr) minmax(170px, 1.1fr) minmax(155px, 1fr) minmax(140px, .85fr);
  gap: 12px;
  align-items: end;
}

.search-form label:nth-child(8) {
  grid-column: 7;
  grid-row: 1;
}

.search-form .checkbox-label {
  grid-column: 6;
  grid-row: 2;
}

.search-form button[type="submit"] {
  grid-column: 7;
  grid-row: 2;
  width: 100%;
}

.playlist-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.local-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 12px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  justify-content: flex-start;
  white-space: nowrap;
}

.checkbox-label input {
  width: auto;
  min-height: auto;
}

label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.field-note {
  min-height: 15px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.category-field {
  align-self: stretch;
}

input, select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
}

.status {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--muted);
}

.status.warning {
  color: var(--warning);
}

.spotify-finder-page .status {
  color: #b3b3b3;
}

.spotify-finder-page .status.warning {
  color: #ffd36e;
}

.pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.pagination span {
  min-width: 160px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.spotify-finder-page .pagination span {
  color: #b3b3b3;
}

.results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(132px, 17vw, 178px), 1fr));
  gap: clamp(18px, 3vw, 28px) clamp(14px, 2.4vw, 22px);
  align-items: start;
}

.artist-card {
  display: grid;
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.artist-image {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.artist-photo-link {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: #dce7e2;
  color: var(--accent-dark);
  box-shadow: 0 14px 30px rgba(16, 24, 40, .16);
  font-weight: 900;
  text-decoration: none;
}

.spotify-finder-page .artist-photo-link {
  background: #242424;
  color: #d8d8d8;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .34);
}

.artist-photo-button {
  min-height: 0;
  cursor: pointer;
}

.artist-photo-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.artist-photo-link > span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 8px;
  background: rgba(16, 24, 40, .84);
  color: #fff;
  font-size: 12px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease;
}

.artist-photo-link:hover > span,
.artist-photo-link:focus-visible > span {
  opacity: 1;
  transform: translateY(0);
}

.artist-body {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 0;
}

.artist h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
  min-width: 0;
}

.artist-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
  max-width: 100%;
}

.artist-title span {
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.artist-title svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: #1db954;
}

.artist-title:hover span {
  color: var(--accent-dark);
}

.spotify-finder-page .artist-title {
  color: #fff;
}

.spotify-finder-page .artist-title:hover span {
  color: var(--accent);
}

.artist-kind,
.artist-list-stats {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.artist-list-stats {
  display: grid;
  gap: 2px;
  padding-top: 2px;
  font-size: 12px;
}

.artist-list-stats .claimed-ok {
  color: #45e084;
}

.artist-list-stats .claimed-no {
  color: #ff8a8a;
}

.artist-list-stats .claimed-unknown {
  color: #ffd36e;
}

.artist-list-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 6px;
}

.artist-info-btn,
.artist-list-actions .copy-btn,
.artist-list-actions .detail-btn,
.artist-list-actions .mark-registered-btn {
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1;
  max-width: 100%;
}

.artist-info-btn {
  background: var(--accent);
}

.spotify-finder-page .artist-info-btn,
.spotify-finder-page .artist-list-actions .detail-btn {
  color: #000 !important;
  background: var(--accent);
}

.spotify-finder-page .artist-list-actions .mark-registered-btn {
  color: #fff;
  background: #6f2b2b;
}

.meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.meta span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 6px;
  background: #f7fafc;
  color: var(--muted);
  font-size: 12px;
}

.meta strong {
  color: var(--ink);
  font-size: 15px;
}

.meta .claimed-ok {
  background: #e9f8ef;
  color: #087443;
}

.meta .claimed-ok strong {
  color: #075e36;
}

.meta .claimed-unknown {
  background: #fff7e6;
  color: #9a6700;
}

.meta .claimed-unknown strong {
  color: #7a4f00;
}

.meta .claimed-no {
  background: #fff1f3;
  color: #b42318;
}

.meta .claimed-no strong {
  color: #912018;
}

.meta .decision-save {
  background: #eafaf4;
  color: #0f766e;
}

.meta .decision-save strong {
  color: #115e59;
}

.meta .decision-exclude {
  background: #fff1f3;
  color: #b42318;
}

.meta .decision-exclude strong {
  color: #912018;
}

.meta .decision-review {
  background: #eef4ff;
  color: #175cd3;
}

.meta .decision-review strong {
  color: #1849a9;
}

.genres {
  min-height: 22px;
  color: var(--muted);
  font-size: 13px;
}

.evidence {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfe;
}

.evidence h3 {
  margin: 0;
  font-size: 13px;
  color: #344054;
}

.evidence ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.evidence li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  padding: 8px;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
}

.evidence li span {
  color: var(--ink);
  font-weight: 800;
}

.evidence li strong {
  font-size: 12px;
}

.evidence li small {
  grid-column: 1 / -1;
  color: var(--muted);
  line-height: 1.35;
}

.evidence-ok strong {
  color: #087443;
}

.evidence-no strong {
  color: #b42318;
}

.evidence-error strong {
  color: #9a6700;
}

.evidence-unknown strong {
  color: #667085;
}

.mood-panel {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.mood-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: #344054;
  font-size: 13px;
}

.mood-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mood-list li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfe;
  font-size: 12px;
}

.mood-list strong {
  font-size: 13px;
}

.mood-list span,
.mood-list em,
.empty-moods {
  color: var(--muted);
  font-size: 12px;
}

.mood-chip {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark) !important;
  font-weight: 900;
}

.remove-mood-btn {
  min-height: 30px;
  margin-left: auto;
  padding: 5px 8px;
  background: #fff1f3;
  color: #b42318;
}

.mood-form {
  display: grid;
  grid-template-columns: minmax(120px, 1.2fr) minmax(120px, 1fr) minmax(120px, .8fr);
  gap: 8px;
}

.mood-form input,
.mood-form select,
.mood-form button {
  min-height: 38px;
  font-size: 12px;
}

.mood-form input[name="note"] {
  grid-column: 1 / 3;
}

.recommend-mood-btn {
  min-height: 32px;
  padding: 6px 10px;
  background: var(--navy);
  font-size: 12px;
}

.recommendation-results {
  display: grid;
  gap: 8px;
}

.recommendation-block {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.recommendation-block p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.seed-tracks,
.recommended-tracks {
  display: grid;
  gap: 6px;
}

.seed-tracks > strong,
.recommended-tracks > strong {
  color: #344054;
  font-size: 12px;
}

.seed-tracks ul,
.recommended-tracks ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seed-tracks li,
.recommended-tracks li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.seed-tracks img,
.recommended-tracks img,
.track-image-fallback {
  width: 36px;
  height: 36px;
  border-radius: 5px;
  object-fit: cover;
  background: var(--soft);
}

.track-image-fallback {
  display: block;
}

.seed-tracks a,
.recommended-tracks a,
.seed-tracks strong,
.recommended-tracks strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.seed-tracks span,
.recommended-tracks span,
.empty-recommendations {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.recommended-playlist-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}

.recommended-playlist-form input,
.recommended-playlist-form button {
  min-height: 36px;
  font-size: 12px;
}

.recommended-playlist-form .checkbox-label {
  min-height: 36px;
  color: var(--muted);
  font-size: 12px;
}

.playlist-result {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.playlist-result a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.tracks {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.tracks h3 {
  margin: 0;
  font-size: 13px;
  color: #344054;
}

.tracks ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.tracks li {
  padding-left: 2px;
}

.tracks li::marker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tracks li a {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.tracks li span,
.empty-tracks {
  color: var(--muted);
  font-size: 12px;
}

.artist a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 8px;
}

.url-row input {
  min-height: 38px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
}

.copy-btn,
.detail-btn,
.mark-registered-btn {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 12px;
}

.copy-btn {
  background: var(--navy);
}

.detail-btn {
  background: var(--accent-dark);
  color: #fff !important;
  border-radius: 6px;
}

.mark-registered-btn {
  background: #7a2e2e;
}

body.modal-open {
  overflow: hidden;
}

.artist-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
}

.artist-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, .72);
}

.artist-modal-panel {
  position: relative;
  width: min(780px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  background: #121212;
  color: #fff;
  box-shadow: 0 28px 72px rgba(0, 0, 0, .44);
}

.artist-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  min-height: 38px;
  border-radius: 50%;
  padding: 0;
  background: rgba(0, 0, 0, .58);
  color: #fff;
  font-size: 18px;
}

.spotify-finder-page .artist-modal-close {
  background: rgba(0, 0, 0, .58);
  color: #fff;
}

.modal-hero {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  align-items: end;
  gap: 18px;
  min-height: 210px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(64, 120, 95, .95) 0%, rgba(32, 34, 34, .98) 100%),
    #232323;
}

.modal-photo {
  position: relative;
  width: 138px;
  height: 138px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #242424;
  color: #d8d8d8;
  font-size: 34px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 22px 40px rgba(0, 0, 0, .34);
}

.modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-photo > span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  font-size: 12px;
  text-align: center;
}

.modal-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding-right: 42px;
}

.modal-copy p,
.modal-copy span {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 800;
}

.modal-copy h2 {
  margin: 0;
  color: #fff;
  font-size: 44px;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.modal-body {
  display: grid;
  gap: 16px;
  padding: 20px 28px 28px;
  background:
    linear-gradient(180deg, rgba(38, 42, 40, .88) 0%, #121212 180px),
    #121212;
}

.modal-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.modal-meta span,
.modal-section {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
}

.modal-meta span {
  display: grid;
  gap: 5px;
  padding: 11px;
  color: #b3b3b3;
  font-size: 12px;
}

.modal-meta strong {
  color: #fff;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.modal-meta .claimed-ok strong,
.modal-meta .decision-save strong {
  color: #45e084;
}

.modal-meta .claimed-no strong,
.modal-meta .decision-exclude strong {
  color: #ff8a8a;
}

.modal-meta .claimed-unknown strong,
.modal-meta .decision-review strong {
  color: #ffd36e;
}

.modal-section {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.modal-section h3,
.modal-section p {
  margin: 0;
}

.modal-section h3 {
  color: #fff;
  font-size: 15px;
}

.modal-section p,
.modal-empty {
  color: #b3b3b3;
  font-size: 13px;
  line-height: 1.45;
}

.modal-platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-platform-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: #1ed760;
  color: #000;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.modal-evidence-list,
.modal-mood-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.modal-evidence-list li,
.modal-mood-list li {
  display: grid;
  gap: 4px;
  padding: 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  color: #d8d8d8;
  font-size: 12px;
}

.modal-evidence-list small,
.modal-mood-list span,
.modal-mood-list small {
  color: #b3b3b3;
  line-height: 1.35;
}

.modal-evidence-list .evidence-ok strong {
  color: #45e084;
}

.modal-evidence-list .evidence-no strong {
  color: #ff8a8a;
}

.modal-evidence-list .evidence-error strong {
  color: #ffd36e;
}

.empty {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, .72);
}

.spotify-finder-page .empty {
  border-color: rgba(255, 255, 255, .16);
  color: #b3b3b3;
  background: rgba(255, 255, 255, .05);
}

.artist-detail-topbar {
  align-items: flex-end;
}

.artist-page-actions {
  display: grid;
  grid-template-columns: auto minmax(150px, 180px) auto;
  align-items: end;
  gap: 10px;
}

.artist-profile {
  display: grid;
  gap: 16px;
}

.artist-detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.artist-detail-image {
  min-height: 260px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 42px;
  font-weight: 900;
}

.artist-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.artist-detail-main {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
}

.artist-detail-main h2,
.detail-section h2 {
  margin: 0;
}

.artist-detail-main > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.detail-meta {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.artist-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 16px;
}

.detail-section {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.detail-section-wide {
  grid-column: 1 / -1;
}

.detail-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.detail-section-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.artist-track-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.artist-track-list li {
  display: grid;
  grid-template-columns: 28px 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.track-rank {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.artist-track-list img,
.artist-track-list .track-image-fallback {
  width: 48px;
  height: 48px;
  border-radius: 5px;
}

.artist-track-list a,
.artist-track-list strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.artist-track-list small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.provider-grid span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 6px;
  background: #f7fafc;
  color: var(--muted);
  font-size: 12px;
}

.provider-grid strong {
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.artist-bio {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.artist-evidence-list,
.artist-mood-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.artist-evidence-list li,
.artist-mood-list li {
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfe;
  font-size: 12px;
}

.artist-evidence-list span,
.artist-evidence-list small,
.artist-mood-list span,
.artist-mood-list small {
  color: var(--muted);
  line-height: 1.35;
}

body.artist-page {
  color: #f7f7f7;
  background: #101010;
}

.artist-page .shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 48px;
  position: relative;
}

.artist-page .artist-detail-topbar {
  position: absolute;
  top: 18px;
  right: 0;
  z-index: 5;
  align-items: end;
  gap: 18px;
  justify-content: flex-end;
  padding: 10px 0;
  margin: 0;
  background: transparent;
  color: #fff;
}

.artist-page .artist-detail-topbar > div:first-child {
  display: none;
}

.artist-page .artist-detail-topbar h1 {
  font-size: 22px;
  line-height: 1.1;
}

.artist-page .eyebrow {
  color: #1ed760;
}

.artist-page .artist-page-actions label {
  color: #d0d0d0;
}

.artist-page .artist-page-actions select {
  border-color: rgba(255, 255, 255, .18);
  color: #fff;
  background: #181818;
}

.artist-page > .shell > .status {
  position: absolute;
  top: 78px;
  left: 0;
  right: 0;
  z-index: 4;
  max-width: none;
  margin: 0 auto;
  padding: 6px 0;
  color: #b3b3b3;
  font-size: 12px;
}

.artist-page > .shell > .status.warning {
  color: #f3c969;
}

.artist-page .artist-profile {
  gap: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #101010;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
}

.artist-spotify-hero {
  min-height: 268px;
  display: flex;
  align-items: flex-end;
  gap: 28px;
  padding: 30px 22px 32px;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 244, 189, .62), transparent 24%),
    linear-gradient(180deg, #d5b95e 0%, #8c783d 100%);
  color: #fff;
}

.artist-spotify-cover {
  width: 220px;
  height: 220px;
  flex: 0 0 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #2a2416;
  box-shadow: 0 24px 42px rgba(0, 0, 0, .38);
  color: #f6e6a3;
  font-size: 52px;
  font-weight: 900;
}

.artist-spotify-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.artist-spotify-copy {
  min-width: 0;
  display: grid;
  gap: 14px;
  padding-bottom: 4px;
}

.artist-spotify-copy > span {
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.artist-spotify-copy h2 {
  margin: 0;
  color: #fff;
  font-size: 78px;
  line-height: .96;
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.artist-hero-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.artist-hero-stats strong {
  color: #fff;
  font-size: 15px;
}

.artist-player-surface {
  display: grid;
  gap: 28px;
  padding: 24px 22px 40px;
  background:
    linear-gradient(180deg, rgba(84, 73, 38, .88) 0%, rgba(16, 16, 16, .98) 210px),
    #101010;
}

.artist-player-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(100%, 1120px);
  margin-inline: auto;
}

.artist-play-btn {
  width: 56px;
  height: 56px;
  min-height: 56px;
  flex: 0 0 56px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #1ed760;
  color: #000;
  text-decoration: none;
}

.artist-play-btn span {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #000;
}

.artist-mini-cover {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 5px;
  background: #272727;
  color: #d8d8d8;
  font-size: 12px;
  font-weight: 900;
}

.artist-mini-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-shuffle-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #b3b3b3;
}

.artist-shuffle-icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.artist-follow-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .56);
  border-radius: 999px;
  padding: 5px 17px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.artist-more-dots {
  color: #b3b3b3;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 4px;
  line-height: 1;
}

.popular-section {
  display: grid;
  gap: 16px;
  width: min(100%, 1120px);
  max-width: 1100px;
  margin-inline: auto;
}

.artist-page .detail-section-head h2,
.popular-section h2 {
  color: #fff;
  font-size: 24px;
  line-height: 1.15;
}

.artist-page .detail-section-head span {
  color: #b3b3b3;
}

.artist-note {
  margin: 0;
  color: #d8bf78;
  font-size: 12px;
  line-height: 1.45;
}

.artist-page .artist-track-list {
  gap: 0;
}

.artist-page .artist-track-list li {
  grid-template-columns: 34px 44px minmax(0, 1fr) 64px;
  min-height: 56px;
  padding: 6px 8px;
  border-top: 0;
  border-radius: 4px;
}

.artist-page .artist-track-list li:hover {
  background: rgba(255, 255, 255, .08);
}

.artist-page .track-rank {
  color: #b3b3b3;
  font-size: 16px;
  font-weight: 500;
}

.artist-page .artist-track-list img,
.artist-page .artist-track-list .track-image-fallback {
  width: 44px;
  height: 44px;
  border-radius: 3px;
}

.artist-page .artist-track-list a,
.artist-page .artist-track-list strong {
  color: #fff;
  font-size: 15px;
}

.artist-page .artist-track-list small {
  color: #b3b3b3;
}

.artist-page .artist-track-list time {
  color: #b3b3b3;
  font-size: 14px;
  text-align: right;
}

.artist-page .artist-detail-grid {
  width: min(100%, 1120px);
  max-width: 1120px;
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
}

.related-artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.related-artist-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
}

.related-artist-photo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #272727;
  color: #d8d8d8;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.related-artist-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-artist-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.related-artist-copy a,
.related-artist-copy strong {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.related-artist-copy span,
.related-artist-copy small {
  color: #b3b3b3;
  font-size: 12px;
  line-height: 1.25;
}

.related-artist-actions {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-artist-actions a {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.related-artist-actions svg {
  width: 17px;
  height: 17px;
  fill: #1ed760;
}

.artist-page .detail-section {
  border-color: rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .045);
  color: #fff;
}

.artist-page .detail-section h2 {
  color: #fff;
  font-size: 18px;
}

.artist-page .detail-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.artist-page .meta span,
.artist-page .provider-grid span,
.artist-page .artist-evidence-list li,
.artist-page .artist-mood-list li {
  border-color: rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .055);
  color: #b3b3b3;
}

.artist-page .meta strong,
.artist-page .provider-grid strong,
.artist-page .artist-evidence-list strong,
.artist-page .artist-mood-list strong {
  color: #fff;
}

.artist-page .artist-genres,
.artist-page .artist-bio,
.artist-page .artist-evidence-list span,
.artist-page .artist-evidence-list small,
.artist-page .artist-mood-list span,
.artist-page .artist-mood-list small {
  color: #b3b3b3;
}

.artist-page .artist-genres {
  margin: 0;
  font-size: 13px;
}

.artist-page .empty {
  border-color: rgba(255, 255, 255, .18);
  color: #b3b3b3;
  background: rgba(255, 255, 255, .04);
}

@media (max-width: 1120px) {
  .search-form {
    grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(120px, 1fr));
  }

  .search-form label:first-child {
    grid-column: span 2;
  }

  .search-form label:nth-child(8),
  .search-form .checkbox-label,
  .search-form button[type="submit"] {
    grid-column: auto;
    grid-row: auto;
  }

  .search-form button[type="submit"] {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .artist-page .artist-detail-topbar {
    position: static;
    padding: 0 0 12px;
    justify-content: flex-start;
  }

  .artist-page > .shell > .status {
    position: static;
    padding: 0 0 10px;
  }

  .search-form {
    grid-template-columns: 1fr 1fr;
  }

  .results {
    grid-template-columns: repeat(auto-fill, minmax(min(148px, 100%), 1fr));
  }

  .search-form label:first-child,
  .search-form button,
  .playlist-form,
  .recommended-playlist-form {
    grid-column: 1 / -1;
  }

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

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

  .playlist-form,
  .recommended-playlist-form {
    grid-template-columns: 1fr;
  }

  .artist-detail-hero,
  .artist-detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .artist-page-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .artist-spotify-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .artist-spotify-cover {
    width: 176px;
    height: 176px;
    flex-basis: 176px;
  }

  .artist-spotify-copy h2 {
    font-size: 48px;
  }

  .artist-page .detail-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-hero {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 180px;
  }

  .modal-photo {
    width: 112px;
    height: 112px;
  }

  .modal-copy h2 {
    font-size: 34px;
  }

  .modal-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 24px, 1180px);
    padding-top: 18px;
  }

  .artist-page .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 12px;
  }

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

  .search-form,
  .meta,
  .url-row,
  .mood-form,
  .recommended-playlist-form {
    grid-template-columns: 1fr;
  }

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

  .artist-title {
    align-items: flex-start;
  }

  .artist-list-actions {
    gap: 5px;
  }

  .detail-meta,
  .provider-grid,
  .modal-meta {
    grid-template-columns: 1fr;
  }

  .artist-modal {
    padding: 10px;
  }

  .artist-modal-panel {
    max-height: 92vh;
  }

  .modal-hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
    padding: 22px 18px;
  }

  .modal-copy {
    padding-right: 34px;
  }

  .modal-copy h2 {
    font-size: 30px;
  }

  .modal-body {
    padding: 16px 18px 20px;
  }

  .artist-spotify-hero {
    padding: 24px 16px 26px;
  }

  .artist-spotify-cover {
    width: 136px;
    height: 136px;
    flex-basis: 136px;
  }

  .artist-spotify-copy h2 {
    font-size: 38px;
  }

  .artist-player-surface {
    padding: 20px 14px 32px;
  }

  .artist-player-controls {
    gap: 12px;
  }

  .artist-play-btn {
    width: 48px;
    height: 48px;
    min-height: 48px;
    flex-basis: 48px;
  }

  .artist-page .artist-track-list li {
    grid-template-columns: 26px 40px minmax(0, 1fr) 48px;
    gap: 8px;
    padding-inline: 4px;
  }

  .artist-page .artist-track-list img,
  .artist-page .artist-track-list .track-image-fallback {
    width: 40px;
    height: 40px;
  }

  .artist-page .artist-track-list a,
  .artist-page .artist-track-list strong {
    font-size: 14px;
  }

  .mood-form input[name="note"] {
    grid-column: auto;
  }

  h1 {
    font-size: 28px;
  }
}




.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.login-shell {
  width: min(440px, calc(100% - 32px));
}

.login-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

.login-panel h1 {
  margin: 6px 0 22px;
  font-size: 32px;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form button {
  width: 100%;
  margin-top: 4px;
}

.topbar .dark-btn {
  min-width: 92px;
}

.search-progress {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.progress-track {
  height: 8px;
  margin: 12px 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width .28s ease;
}

.progress-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress-steps li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
  color: #aaa;
  font-size: 13px;
}

.progress-steps li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: transparent;
}

.progress-steps li.active {
  color: #fff;
}

.progress-steps li.active::before {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(30, 215, 96, .16);
}

.progress-steps li.done {
  color: #d8d8d8;
}

.progress-steps li.done::before {
  border-color: var(--green);
  background: var(--green);
}

.maintenance-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.maintenance-head,
.maintenance-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.maintenance-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.maintenance-actions {
  justify-content: flex-start;
  margin-top: 14px;
}

.maintenance-status {
  margin-top: 14px;
  color: #d8d8d8;
  font-size: 14px;
}

.maintenance-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.maintenance-stat,
.incident-item {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, .035);
}

.maintenance-stat strong {
  display: block;
  font-size: 18px;
}

.maintenance-stat span,
.incident-item span {
  color: #aaa;
  font-size: 12px;
}

.maintenance-incidents {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.incident-item.error {
  border-color: rgba(255, 99, 99, .45);
}

.incident-item.warning {
  border-color: rgba(255, 204, 102, .38);
}

.playback-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(360px, auto);
  gap: 12px;
  align-items: center;
  padding: 12px 0 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.playback-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.playback-copy strong {
  color: var(--ink);
}

.spotify-finder-page .playback-copy strong {
  color: #fff;
}

.playback-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.playback-copy p.warning {
  color: var(--warning);
}

.playback-controls {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) repeat(3, auto);
  gap: 8px;
  align-items: center;
}

.playback-controls select {
  min-width: 0;
}

.track-play-btn {
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #000;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.recommended-tracks li,
.seed-tracks li {
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

@media (max-width: 760px) {
  .playback-panel {
    grid-template-columns: 1fr;
  }

  .playback-controls {
    grid-template-columns: 1fr 1fr;
  }

  .playback-controls select {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .playback-controls {
    grid-template-columns: 1fr;
  }
}

.spotify-connect-panel {
  width: min(620px, 100%);
}

.spotify-connect-content {
  display: grid;
  gap: 16px;
  padding: 30px;
}

.spotify-connect-content h2 {
  margin: 0;
  padding-right: 42px;
  font-size: 26px;
  line-height: 1.12;
}

.spotify-connect-content > p:not(.eyebrow):not(.status) {
  margin: 0;
  color: #c8c8c8;
  line-height: 1.45;
}

.spotify-connect-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.spotify-connect-meta span,
.spotify-connect-note {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: #181818;
}

.spotify-connect-meta small {
  color: #8f8f8f;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.spotify-connect-meta strong {
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.spotify-connect-note strong {
  color: #fff;
}

.spotify-connect-note p {
  margin: 0;
  color: #b3b3b3;
  font-size: 13px;
  line-height: 1.45;
}

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

@media (max-width: 560px) {
  .spotify-connect-content {
    padding: 24px 18px;
  }

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