:root {
  color-scheme: light;
  --ink: #17211f;
  --ink-soft: #54605d;
  --ink-faint: #7a8581;
  --paper: #f3f0e8;
  --paper-deep: #e8e3d7;
  --surface: #fffdf7;
  --surface-muted: #f8f5ed;
  --line: #dcd6c9;
  --line-strong: #c6beae;
  --pine: #142924;
  --pine-light: #1e3a33;
  --teal: #287c6d;
  --teal-soft: #dbece7;
  --gold: #d49625;
  --gold-bright: #e8b44f;
  --gold-soft: #f7e8bd;
  --coral: #b95842;
  --coral-soft: #f5ded7;
  --shadow-sm: 0 1px 2px rgb(20 41 36 / 8%), 0 4px 16px rgb(20 41 36 / 5%);
  --shadow-md: 0 16px 50px rgb(20 41 36 / 12%);
  --radius-sm: 9px;
  --radius-md: 15px;
  --radius-lg: 24px;
  --sidebar-width: 248px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow: auto;
  overscroll-behavior: auto;
  background:
    radial-gradient(circle at 78% 6%, rgb(232 180 79 / 14%), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 15px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
}

svg {
  display: block;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  color: var(--pine);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgb(40 124 109 / 32%);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 28px 18px 22px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 20% 0%, rgb(232 180 79 / 14%), transparent 18rem),
    var(--pine);
  color: #f9f5e9;
}

.brand,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  margin: 0 8px 34px;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: inset 0 0 0 6px rgb(20 41 36 / 9%);
}

.brand-mark::after {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pine);
  content: "";
}

.brand-mark span {
  width: 2px;
  border-radius: 99px;
  background: var(--pine);
}

.brand-mark span:nth-child(1),
.brand-mark span:nth-child(5) {
  height: 9px;
}

.brand-mark span:nth-child(2),
.brand-mark span:nth-child(4) {
  height: 18px;
}

.brand-mark span:nth-child(3) {
  height: 27px;
}

.brand-copy {
  display: grid;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand-copy small {
  color: rgb(249 245 233 / 60%);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.primary-nav {
  display: grid;
  gap: 7px;
}

.primary-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: rgb(249 245 233 / 72%);
  font-weight: 620;
  transition:
    color 150ms ease,
    background 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.primary-nav a:hover {
  color: #fffdf7;
  transform: translateX(2px);
}

.primary-nav a.active {
  border-color: rgb(232 180 79 / 20%);
  background: rgb(232 180 79 / 13%);
  color: #fffdf7;
}

.primary-nav svg,
.mobile-nav svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sidebar-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: auto;
  padding: 16px 12px 0;
  border-top: 1px solid rgb(249 245 233 / 10%);
}

.sidebar-note > span:last-child {
  display: grid;
  min-width: 0;
}

.sidebar-note strong {
  color: rgb(249 245 233 / 82%);
  font-size: 12px;
}

.sidebar-note small {
  overflow: hidden;
  color: rgb(249 245 233 / 48%);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 5px;
  border-radius: 50%;
  background: #75c5a7;
  box-shadow: 0 0 0 4px rgb(117 197 167 / 12%);
}

.workspace {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin-left: var(--sidebar-width);
}

.topbar {
  position: sticky;
  z-index: 15;
  top: 0;
  display: flex;
  min-height: 78px;
  align-items: center;
  padding: 14px clamp(24px, 4vw, 56px);
  border-bottom: 1px solid rgb(198 190 174 / 62%);
  background: rgb(243 240 232 / 88%);
  backdrop-filter: blur(18px);
}

.mobile-brand {
  display: none;
}

.global-search {
  position: relative;
  width: min(680px, 100%);
  margin: 0 auto;
}

.global-search > svg {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 17px;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--ink-faint);
  stroke-linecap: round;
  stroke-width: 1.8;
  transform: translateY(-50%);
  pointer-events: none;
}

.global-search input {
  width: 100%;
  height: 48px;
  padding: 0 48px 0 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: rgb(255 253 247 / 90%);
  box-shadow: 0 4px 20px rgb(20 41 36 / 4%);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.global-search input:focus {
  border-color: rgb(40 124 109 / 55%);
  box-shadow: 0 0 0 4px rgb(40 124 109 / 10%), var(--shadow-sm);
}

.global-search input::placeholder {
  color: #87918d;
}

.global-search kbd {
  position: absolute;
  top: 50%;
  right: 14px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--ink-faint);
  font: 11px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  transform: translateY(-50%);
}

.search-results {
  position: absolute;
  z-index: 50;
  top: calc(100% + 9px);
  right: 0;
  left: 0;
  max-height: min(520px, calc(100vh - 120px));
  padding: 8px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.search-result {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  transition: background 120ms ease;
}

.search-result:hover,
.search-result[aria-selected="true"] {
  background: var(--surface-muted);
}

.search-result-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: var(--teal-soft);
  color: var(--teal);
}

.search-result-icon.album {
  background: var(--gold-soft);
  color: #95630c;
}

.search-result-icon.recording {
  background: var(--coral-soft);
  color: var(--coral);
}

.search-result-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.search-result-copy {
  min-width: 0;
}

.search-result-copy strong,
.search-result-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-copy strong {
  font-size: 14px;
}

.search-result-copy small {
  color: var(--ink-faint);
  font-size: 12px;
}

main {
  width: 100%;
  max-width: 1540px;
  flex: 1;
  align-self: center;
  padding: clamp(28px, 4vw, 58px);
}

.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(24px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.statusbar .copyright {
  white-space: nowrap;
}

.mobile-nav {
  display: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 20px;
  height: 2px;
  background: currentColor;
  content: "";
}

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

h1,
.display-title {
  margin-bottom: 15px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(35px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

h2 {
  margin-bottom: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 5px;
  font-size: 16px;
}

.lede {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 2vw, 19px);
}

.overview-hero {
  position: relative;
  display: grid;
  min-height: 320px;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: clamp(30px, 5vw, 66px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 84% 50%, rgb(232 180 79 / 20%), transparent 17rem),
    linear-gradient(135deg, #142924, #1c3932);
  box-shadow: var(--shadow-md);
  color: #fffdf7;
}

.overview-hero::after {
  position: absolute;
  right: -105px;
  bottom: -125px;
  width: 350px;
  height: 350px;
  border: 1px solid rgb(255 253 247 / 8%);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgb(255 253 247 / 3%),
    0 0 0 84px rgb(255 253 247 / 2%);
  content: "";
}

.overview-hero .eyebrow {
  color: var(--gold-bright);
}

.overview-hero .lede {
  color: rgb(255 253 247 / 68%);
}

.hero-record {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(245px, 100%);
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  background:
    repeating-radial-gradient(
      circle at center,
      #19251f 0,
      #19251f 2px,
      #27352e 3px,
      #19251f 5px
    );
  box-shadow: 0 30px 70px rgb(0 0 0 / 35%);
  animation: record-in 650ms cubic-bezier(.2, .8, .2, 1) both;
}

.hero-record::before {
  display: grid;
  width: 41%;
  height: 41%;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--pine) 0 9%, transparent 10%),
    var(--gold-bright);
  color: var(--pine);
  content: "GT";
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.08em;
}

.hero-record::after {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  content: "";
}

@keyframes record-in {
  from {
    opacity: 0;
    transform: translateX(40px) rotate(15deg) scale(.9);
  }
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.stat-card {
  min-width: 0;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.stat-card strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3vw, 39px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 9px;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-block {
  margin-top: clamp(34px, 5vw, 62px);
}

.section-heading {
  display: flex;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.text-link {
  color: var(--teal);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.entity-card {
  position: relative;
  display: grid;
  min-height: 145px;
  grid-template-rows: auto 1fr auto;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.entity-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 12px 32px rgb(20 41 36 / 9%);
  transform: translateY(-2px);
}

.entity-card::after {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px var(--gold-soft);
  content: "";
}

.card-kicker {
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.entity-card h3 {
  max-width: calc(100% - 20px);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.15;
}

.card-meta,
.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  align-items: center;
  color: var(--ink-faint);
  font-size: 12px;
}

.metric-row {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.metric-row strong {
  color: var(--ink);
  font-weight: 750;
}

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

.provider-row {
  display: grid;
  grid-template-columns: minmax(130px, .8fr) minmax(120px, 1.2fr) auto 20px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition:
    border-color 140ms ease,
    transform 140ms ease;
}

.provider-row:hover {
  border-color: var(--line-strong);
  transform: translateX(2px);
}

.provider-name {
  display: grid;
  min-width: 0;
}

.provider-name strong,
.provider-name small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-name strong {
  font-weight: 700;
}

.provider-name small {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.provider-bar {
  width: 100%;
  height: 7px;
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 99px;
  background: var(--paper-deep);
}

.provider-bar::-webkit-progress-bar {
  border-radius: inherit;
  background: var(--paper-deep);
}

.provider-bar::-webkit-progress-value,
.provider-bar::-moz-progress-bar {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #55a391);
}

.provider-count {
  display: grid;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.provider-count strong {
  color: var(--ink);
  font-weight: 750;
}

.provider-count small {
  color: var(--ink-faint);
  font-size: 9px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.source-section:first-of-type {
  margin-top: 0;
}

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

.source-card {
  display: grid;
  min-height: 220px;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.source-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.source-card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal);
}

.source-card-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.source-card-copy h3 {
  margin: 5px 0 7px;
  font-size: 22px;
}

.source-card-copy p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 12px;
}

.source-card-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 750;
}

.playable-count {
  color: #865906;
}

.source-availability {
  color: var(--ink-faint);
}

.source-results {
  margin-top: 28px;
}

.source-results-heading {
  margin-bottom: 18px;
}

.source-controls {
  grid-template-columns: minmax(220px, 1fr) minmax(150px, auto);
}

.source-recording-row {
  grid-template-columns: minmax(220px, 1.5fr) minmax(100px, .55fr) minmax(45px, .25fr) minmax(80px, .45fr) minmax(66px, auto) 24px;
}

.source-row-action {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.page-heading {
  display: flex;
  gap: 28px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-heading .lede {
  max-width: 540px;
}

.result-count {
  padding-bottom: 8px;
  color: var(--ink-faint);
  font-size: 13px;
  white-space: nowrap;
}

.browse-controls {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) repeat(3, minmax(130px, auto));
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgb(255 253 247 / 66%);
}

.field {
  position: relative;
  display: grid;
  gap: 5px;
}

.field label {
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: var(--surface);
}

.field input:focus,
.field select:focus {
  border-color: rgb(40 124 109 / 55%);
  box-shadow: 0 0 0 3px rgb(40 124 109 / 9%);
}

.catalog-list {
  display: grid;
  gap: 9px;
}

.catalog-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(90px, .55fr) repeat(4, minmax(70px, .45fr)) 28px;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 12px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition:
    border-color 140ms ease,
    transform 140ms ease;
}

.catalog-row.album-row {
  grid-template-columns: minmax(220px, 1.5fr) minmax(120px, .65fr) repeat(3, minmax(70px, .45fr)) 28px;
}

.catalog-row:hover {
  border-color: var(--line-strong);
  transform: translateX(2px);
}

.row-title {
  min-width: 0;
}

.row-title strong,
.row-title small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-title strong {
  font-size: 15px;
}

.row-title small {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 11px;
}

.row-metric {
  color: var(--ink-soft);
  font-size: 12px;
  text-align: right;
}

.row-metric strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.row-arrow {
  color: var(--teal);
  font-size: 20px;
  text-align: right;
}

.badge {
  display: inline-flex;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  padding: 2px 8px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--teal-soft);
  color: #176556;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge.gold {
  background: var(--gold-soft);
  color: #865906;
}

.badge.coral,
.badge.unresolved {
  background: var(--coral-soft);
  color: #99432f;
}

.badge.neutral,
.badge.unknown,
.badge.provisional {
  background: var(--paper-deep);
  color: #625d53;
}

.pagination {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
}

.button,
.icon-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.button:hover,
.icon-button:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.button.primary {
  border-color: var(--pine);
  background: var(--pine);
  color: #fffdf7;
}

.button.primary:hover {
  border-color: var(--pine-light);
  background: var(--pine-light);
  color: #fffdf7;
}

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

.entity-header {
  position: relative;
  padding: clamp(26px, 4vw, 46px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.entity-header::after {
  position: absolute;
  top: -80px;
  right: -70px;
  width: 220px;
  height: 220px;
  border: 34px solid var(--gold-soft);
  border-radius: 50%;
  opacity: .5;
  content: "";
}

.breadcrumbs {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--ink-faint);
  font-size: 12px;
}

.breadcrumbs a {
  color: var(--teal);
  font-weight: 700;
}

.entity-title-wrap {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.entity-title-wrap h1 {
  margin-bottom: 12px;
}

.entity-subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--ink-soft);
}

.alias-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.alias {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface-muted);
  color: var(--ink-soft);
  font-size: 11px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
  margin-top: 24px;
}

.detail-main,
.detail-aside {
  display: grid;
  gap: 18px;
}

.panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

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

.panel-heading h2,
.panel-heading h3 {
  margin: 0;
}

.panel-heading h2 {
  font-size: 24px;
}

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

.mini-stat {
  padding: 13px;
  border-radius: 10px;
  background: var(--surface-muted);
}

.mini-stat strong,
.mini-stat span {
  display: block;
}

.mini-stat strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 500;
}

.mini-stat span {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.compact-list {
  display: grid;
  gap: 1px;
}

.compact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 11px 5px;
  border-bottom: 1px solid var(--line);
}

.compact-row:last-child {
  border-bottom: 0;
}

.compact-row:hover strong {
  color: var(--teal);
}

.compact-row strong {
  transition: color 120ms ease;
}

.compact-row small {
  display: block;
  margin-top: 2px;
  color: var(--ink-faint);
}

.compact-metric {
  color: var(--ink-soft);
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.provider-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.provider-chip {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface-muted);
  color: var(--ink-soft);
  font-size: 11px;
}

.provider-chip strong {
  color: var(--ink);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th,
.data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--surface-muted);
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: rgb(248 245 237 / 65%);
}

.table-link {
  color: var(--teal);
  font-weight: 700;
}

.table-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.release-block + .release-block {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.release-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.release-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 500;
}

.release-heading p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 12px;
}

.track-list {
  display: grid;
  gap: 2px;
}

.track-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(140px, .55fr) 70px 28px;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 7px 9px;
  border-radius: 8px;
}

.track-row:hover {
  background: var(--surface-muted);
}

.track-position {
  color: var(--ink-faint);
  font: 11px ui-monospace, SFMono-Regular, Consolas, monospace;
}

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

.track-title strong,
.track-title small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-title small {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 11px;
}

.track-performer {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-duration {
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.track-available {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.recording-list {
  display: grid;
  gap: 10px;
}

.recording-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 26px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  transition: border-color 130ms ease;
}

.recording-row:hover {
  border-color: var(--line-strong);
}

.recording-row strong,
.recording-row small {
  display: block;
}

.recording-row small {
  color: var(--ink-faint);
}

.recording-count {
  color: var(--ink-soft);
  font-size: 12px;
  white-space: nowrap;
}

.location-list {
  display: grid;
  gap: 10px;
}

.location-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-muted);
}

.location-copy {
  min-width: 0;
}

.location-copy strong {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.location-provider-link:hover {
  color: var(--teal);
}

.location-uri {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--ink-faint);
  font: 11px ui-monospace, SFMono-Regular, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-actions {
  display: flex;
  gap: 7px;
}

.audio-player {
  width: 100%;
  max-width: 100%;
  height: 42px;
  margin-top: 10px;
}

.soundcloud-player {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 166px;
  margin-top: 10px;
  border: 0;
  border-radius: 8px;
  background: var(--paper-deep);
}

.provenance-list {
  display: grid;
  gap: 8px;
}

.provenance-row {
  padding: 11px;
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: var(--surface-muted);
}

.provenance-row strong,
.provenance-row small {
  display: block;
}

.provenance-row small {
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--ink-faint);
}

.empty-state,
.error-view {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 40px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  text-align: center;
}

.empty-state > div,
.error-view > div {
  max-width: 500px;
}

.empty-icon,
.error-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--ink-soft);
  font-size: 25px;
}

.empty-state p,
.error-view p {
  color: var(--ink-soft);
}

.loading-view {
  display: grid;
  min-height: 55vh;
  place-items: center;
  align-content: center;
  color: var(--ink-faint);
}

.loading-record {
  position: relative;
  width: 74px;
  height: 74px;
  margin-bottom: 16px;
  border: 8px solid var(--pine);
  border-top-color: var(--gold-bright);
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
}

.loading-record::after {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: var(--gold-bright);
  content: "";
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.toast {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100vw - 44px));
  padding: 12px 16px;
  border-radius: 11px;
  background: var(--pine);
  box-shadow: var(--shadow-md);
  color: #fffdf7;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .provider-grid {
    grid-template-columns: 1fr;
  }

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

  .catalog-row {
    grid-template-columns: minmax(220px, 1.5fr) minmax(90px, .55fr) repeat(2, minmax(70px, .4fr)) 28px;
  }

  .catalog-row .row-metric.optional {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar-width: 0px;
  }

  body {
    padding-bottom: 68px;
  }

  .sidebar {
    display: none;
  }

  .workspace {
    margin-left: 0;
  }

  .topbar {
    min-height: 72px;
    gap: 18px;
    padding: 11px 20px;
  }

  .mobile-brand {
    display: flex;
    flex: 0 0 auto;
  }

  .mobile-brand .brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .mobile-brand strong {
    display: none;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
  }

  .global-search {
    margin: 0;
  }

  main {
    padding: 30px 22px;
  }

  .statusbar {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    height: 68px;
    grid-template-columns: repeat(5, 1fr);
    padding: 7px max(8px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    border-top: 1px solid rgb(198 190 174 / 75%);
    background: rgb(255 253 247 / 94%);
    box-shadow: 0 -8px 24px rgb(20 41 36 / 6%);
    backdrop-filter: blur(18px);
  }

  .mobile-nav a {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    border-radius: 9px;
    color: var(--ink-faint);
    font-size: 10px;
    font-weight: 700;
  }

  .mobile-nav a.active {
    background: var(--teal-soft);
    color: var(--teal);
  }

  .mobile-nav svg {
    width: 20px;
    height: 20px;
  }

  .overview-hero {
    grid-template-columns: 1fr .6fr;
  }

  .hero-record {
    width: 170px;
  }

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

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

  .browse-controls .field:first-child {
    grid-column: 1 / -1;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .topbar {
    padding: 10px 13px;
  }

  .mobile-brand .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .global-search input {
    height: 44px;
    padding-right: 14px;
  }

  .global-search kbd {
    display: none;
  }

  main {
    padding: 24px 14px 34px;
  }

  .overview-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 30px 24px;
  }

  .overview-hero h1 {
    font-size: 42px;
  }

  .hero-record {
    display: none;
  }

  .stat-grid {
    gap: 9px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-card strong {
    font-size: 28px;
  }

  .section-heading,
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .source-grid {
    grid-template-columns: 1fr;
  }

  .provider-row {
    grid-template-columns: minmax(0, 1fr) auto 18px;
  }

  .provider-bar {
    display: none;
  }

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

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

  .browse-controls .field:first-child {
    grid-column: auto;
  }

  .catalog-row,
  .catalog-row.album-row {
    min-height: 76px;
    grid-template-columns: minmax(0, 1fr) auto 20px;
    gap: 10px;
    padding: 12px;
  }

  .catalog-row.source-recording-row {
    grid-template-columns: minmax(0, 1fr) auto 18px;
  }

  .source-recording-row .row-metric,
  .source-recording-row .badge {
    display: none;
  }

  .source-row-action {
    font-size: 11px;
  }

  .catalog-row .badge,
  .catalog-row .row-metric.optional {
    display: none;
  }

  .catalog-row .row-metric {
    font-size: 10px;
  }

  .entity-header {
    padding: 24px 20px;
  }

  .entity-header::after {
    opacity: .27;
  }

  .entity-title-wrap h1 {
    font-size: 38px;
    overflow-wrap: anywhere;
  }

  .detail-aside {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 17px;
  }

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

  .track-performer,
  .track-duration {
    display: none;
  }

  .recording-row {
    grid-template-columns: minmax(0, 1fr) auto 18px;
  }

  .recording-row .recording-count.optional {
    display: none;
  }

  .location-card {
    grid-template-columns: 1fr;
  }

  .location-actions {
    justify-content: flex-start;
  }

  .statusbar {
    padding-right: 14px;
    padding-left: 14px;
  }
}

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