:root {
  --bg: #f4eadb;
  --surface: #fffaf1;
  --surface-soft: #f7eddd;
  --surface-warm: #fff4df;
  --text: #2b2119;
  --muted: #7b6a5a;
  --line: #e0cdb2;
  --line-strong: #c7a982;
  --accent: #b8462e;
  --accent-dark: #84311f;
  --accent-soft: #f8dfce;
  --ink: #2a1d17;
  --link: #7f3322;
  --shadow: 0 10px 24px rgba(74, 45, 23, 0.1);
  --shadow-soft: 0 2px 0 rgba(255, 255, 255, 0.55) inset, 0 12px 28px rgba(74, 45, 23, 0.09);
  --radius: 8px;
  --container: 1180px;
  --gap: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(117, 76, 43, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 180px),
    var(--bg);
  background-size: 28px 28px, auto, auto;
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

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

button,
input {
  font: inherit;
}

.container {
  width: min(100% - 24px, var(--container));
  margin-inline: auto;
}

.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 {
  position: sticky;
  top: 0;
  z-index: 20;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #3a251b, var(--ink));
  background-size: 18px 18px, auto;
  color: #fff;
  box-shadow: 0 3px 18px rgba(45, 25, 14, 0.2);
}

.header-bar {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 8px;
  padding-bottom: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  font-weight: 800;
  font-family: Georgia, "Times New Roman", serif;
}

.logo-image {
  width: 176px;
  height: auto;
  max-height: 50px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.logo-domain {
  margin-left: -2px;
  color: #eec09b;
  font-size: 1.28rem;
  line-height: 1;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.main-nav a {
  padding: 24px 12px 20px;
  color: #ead6bd;
  font-weight: 650;
  border-bottom: 2px solid transparent;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-active {
  color: #fff;
  border-color: var(--accent);
  background: rgba(255, 224, 186, 0.1);
  outline: none;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: #fff;
}

.search-strip {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(132, 88, 44, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, #fff7e9, #f9eddc);
  background-size: 24px 24px, auto;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

.search-layout {
  display: grid;
  grid-template-columns: minmax(290px, 1fr) minmax(280px, 520px);
  gap: 20px;
  align-items: center;
  padding: 18px 0 10px;
}

.search-layout h1 {
  margin: 0 0 2px;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.15;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.search-layout p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.search-layout p a {
  color: var(--link);
  font-weight: 800;
}

.search-layout p a:hover {
  color: var(--accent-dark);
}

.search-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: 100%;
  max-width: 520px;
  justify-self: end;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 250, 241, 0.88);
  box-shadow: var(--shadow-soft);
}

.search-form input {
  min-width: 0;
  height: 40px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 14px;
  background: #fffdf8;
  color: var(--text);
  outline: none;
}

.search-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 75, 47, 0.13);
}

.search-form button {
  height: 40px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 20px;
  background: linear-gradient(180deg, #c95335, var(--accent-dark));
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.18) inset;
  transition: transform 150ms ease, filter 150ms ease;
}

.search-form button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.search-form.needs-input input {
  border-color: var(--accent);
}

.quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 14px;
}

.quick-row button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 250, 241, 0.8);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.quick-row button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.letter-quick a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 250, 241, 0.8);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.letter-quick a:hover,
.letter-quick a.is-current,
.alphabet-nav a.is-current {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--gap);
  padding: var(--gap) 0 28px;
}

.front-alphabet {
  padding-top: var(--gap);
}

.main-column,
.sidebar {
  display: grid;
  gap: var(--gap);
  align-content: start;
}

.panel,
.side-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(127, 91, 54, 0.03) 1px, transparent 1px),
    var(--surface);
  background-size: 22px 22px, auto;
  box-shadow: var(--shadow-soft);
}

.panel-head {
  position: relative;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px 11px 18px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(132, 49, 31, 0.08), transparent 38%),
    var(--surface-soft);
}

.panel-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  bottom: 11px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
}

.panel-head h2,
.side-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.25;
  color: #3a261b;
}

.panel-head a {
  color: var(--link);
  font-size: 0.9rem;
  font-weight: 700;
}

.breadcrumbs {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.panel-head a:hover,
.song-row:hover .song-title,
.compact-list a:hover,
.artist-card:hover,
.alphabet-nav a:hover,
.side-nav a:hover,
.ranked-list a:hover,
.small-list a:hover {
  color: var(--accent-dark);
}

.song-table {
  display: grid;
}

.song-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  transition: background 150ms ease, color 150ms ease;
}

.song-row::before {
  content: "♪";
  color: rgba(132, 49, 31, 0.32);
  font-size: 0.9rem;
  margin-right: 2px;
}

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

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

.song-row:hover {
  background: #fff1df;
}

.song-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 750;
}

.song-meta {
  color: var(--muted);
  font-size: 0.88rem;
  text-align: right;
}

.compact-list {
  display: grid;
}

.compact-list.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-list a {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.28);
  transition: background 150ms ease, color 150ms ease;
}

.compact-list a:hover {
  background: #fff1df;
}

.compact-list a:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.compact-list strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #3a261b;
}

.compact-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

.favorite-list {
  display: grid;
}

.favorite-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.36);
  transition: background 150ms ease;
}

.favorite-item:last-child {
  border-bottom: 0;
}

.favorite-item:hover {
  background: #fff1df;
}

.favorite-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.favorite-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--link);
  font-weight: 850;
}

.favorite-title::before {
  content: "\266A";
  margin-right: 8px;
  color: rgba(132, 49, 31, 0.34);
  font-weight: 400;
}

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

.favorite-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.favorite-meta a {
  color: var(--link);
  font-weight: 800;
}

.favorite-remove {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff8ed;
  color: var(--link);
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.favorite-remove:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.favorite-empty {
  display: grid;
  gap: 6px;
  padding: 18px 16px;
  color: var(--muted);
}

.favorite-empty strong {
  color: #3a261b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
}

.favorite-empty p {
  margin: 0;
}

.artist-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 13px;
  background:
    linear-gradient(180deg, rgba(255, 247, 233, 0.7), rgba(255, 250, 241, 0.2));
}

.artist-card {
  position: relative;
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 8px 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffbf4;
  color: var(--link);
  font-weight: 700;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.artist-card::before,
.artist-card::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(132, 49, 31, 0.22);
  pointer-events: none;
}

.artist-card::before {
  top: 5px;
  left: 5px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.artist-card::after {
  right: 5px;
  bottom: 5px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.artist-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 24px rgba(74, 45, 23, 0.16);
  transform: translateY(-2px);
}

.artist-card img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  border: 1px solid #d6bea1;
  border-radius: 5px;
  background: var(--surface-soft);
  filter: grayscale(100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

.artist-card-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid #d6bea1;
  border-radius: 5px;
  background:
    radial-gradient(circle at 50% 36%, #737d86 0 20%, transparent 21%),
    radial-gradient(ellipse at 50% 102%, #89949c 0 42%, transparent 43%),
    var(--surface-soft);
  filter: grayscale(100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

.artist-card:hover img {
  filter: grayscale(85%);
}

.artist-card span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  line-height: 1.2;
  text-align: center;
}

.alphabet-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px;
  background: rgba(255, 250, 241, 0.35);
}

.alphabet-nav a {
  min-width: 34px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffaf1;
  color: var(--link);
  font-weight: 800;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.alphabet-nav a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.letter-page {
  align-items: start;
}

.letter-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(132, 49, 31, 0.06), transparent 40%),
    rgba(255, 250, 241, 0.54);
}

.letter-summary strong {
  width: auto;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  white-space: nowrap;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff8ed;
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.78) inset;
}

.letter-summary p {
  margin: 0;
  color: var(--muted);
}

.artist-directory {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
}

.artist-directory a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 12px 14px 12px 34px;
  background: rgba(255, 250, 241, 0.95);
  color: var(--link);
  font-weight: 750;
  transition: background 150ms ease, color 150ms ease, padding-left 150ms ease;
}

.artist-directory a::before {
  content: "♪";
  position: absolute;
  left: 14px;
  color: rgba(132, 49, 31, 0.34);
  font-weight: 400;
}

.artist-directory a:hover {
  padding-left: 38px;
  background: #fff1df;
  color: var(--accent-dark);
}

.artist-directory-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-directory-count {
  min-width: 42px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-warm);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.artist-directory-empty {
  grid-column: 1 / -1;
  padding: 18px 14px;
  background: rgba(255, 250, 241, 0.95);
  color: var(--muted);
}

.compact-alphabet {
  padding: 12px 0 0;
  background: transparent;
}

.artist-page {
  align-items: start;
}

.artist-profile {
  overflow: hidden;
}

.artist-profile-main {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(132, 49, 31, 0.08), transparent 42%),
    rgba(255, 250, 241, 0.56);
}

.artist-profile-main img {
  width: 120px;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  border: 1px solid #d6bea1;
  border-radius: var(--radius);
  filter: grayscale(100%);
  background: var(--surface-soft);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 8px 18px rgba(74, 45, 23, 0.12);
}

.artist-profile-placeholder {
  display: block;
  width: 120px;
  aspect-ratio: 1;
  border: 1px solid #d6bea1;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 36%, #717b84 0 20%, transparent 21%),
    radial-gradient(ellipse at 50% 102%, #86919a 0 42%, transparent 43%),
    var(--surface-soft);
  filter: grayscale(100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 8px 18px rgba(74, 45, 23, 0.12);
}

.artist-label {
  margin: 0 0 4px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.artist-profile h2 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1.05;
  color: #3a261b;
}

.artist-profile p {
  margin: 0;
  color: var(--muted);
}

.artist-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.artist-stats span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 248, 237, 0.86);
  color: var(--muted);
  font-size: 0.9rem;
}

.artist-stats strong {
  color: var(--accent-dark);
}

.artist-song-list {
  display: grid;
}

.artist-song-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.36);
  transition: background 150ms ease;
}

.artist-song-item:last-child {
  border-bottom: 0;
}

.artist-song-item:hover {
  background: #fff1df;
}

.artist-song-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.artist-song-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--link);
  font-weight: 800;
}

.artist-song-title::before {
  content: "♪";
  margin-right: 8px;
  color: rgba(132, 49, 31, 0.34);
  font-weight: 400;
}

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

.song-rating {
  color: #8a5a1f;
  font-weight: 800;
  white-space: nowrap;
}

.artist-song-item button {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff8ed;
  color: var(--link);
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.artist-song-item button:hover,
.artist-song-item button[aria-expanded="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.song-preview {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding: 10px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 248, 237, 0.78);
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92rem;
}

.artist-side-info {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  color: var(--muted);
}

.artist-side-info strong {
  color: #3a261b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.artist-text {
  padding-bottom: 16px;
}

.artist-text-content {
  padding: 0 16px 16px;
  color: var(--text);
}

.artist-text-content > :first-child {
  margin-top: 0;
}

.artist-text-content > :last-child {
  margin-bottom: 0;
}

.artist-sponsored-links {
  margin-top: 16px;
  color: var(--muted);
}

.song-page {
  align-items: start;
}

.song-sheet {
  overflow: visible;
}

.song-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.5);
}

.song-meta-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff8ed;
  color: var(--muted);
  font-size: 0.9rem;
}

.song-meta-strip a {
  color: var(--link);
  font-weight: 800;
}

.song-neighbors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.song-neighbors div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 250, 241, 0.78);
}

.song-neighbors strong {
  color: #3a261b;
  font-family: Georgia, "Times New Roman", serif;
}

.song-neighbors a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff8ed;
  color: var(--link);
  font-size: 0.88rem;
  font-weight: 700;
}

.song-neighbors a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.lyrics-block {
  padding: 18px 18px 10px;
  background:
    linear-gradient(90deg, rgba(127, 91, 54, 0.028) 1px, transparent 1px),
    rgba(255, 250, 241, 0.5);
  background-size: 22px 22px, auto;
}

.songControls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.72);
}

.songControls > div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 6px 4px 10px;
  background: #fff8ed;
}

.songControls label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.songControls label span {
  margin-left: 4px;
  color: var(--accent-dark);
}

.songControls a {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 26px;
  border-radius: 999px;
  background: var(--surface-warm);
  color: var(--link);
  font-size: 0.86rem;
  font-weight: 900;
}

.songControls a:hover,
.songControls a.added {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.songControls .addToFav {
  padding: 0;
  overflow: hidden;
  transition: border-color 150ms ease, background 150ms ease;
}

.songControls .addToFav:hover,
.songControls .addToFav.is-added {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.songControls .addToFav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  width: auto;
  min-width: max-content;
  padding: 0 13px;
  background: transparent;
  white-space: nowrap;
}

.songControls .addToFav a:hover,
.songControls .addToFav a.added {
  background: transparent;
}

.songControls .addToFav a::before {
  content: "\2665";
  margin-right: 5px;
}

.lyrics-block h3 {
  margin: 4px 0 8px;
  color: #3a261b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.lyrics-block p {
  margin: 0 0 18px;
  color: #3a261b;
  font-family: Consolas, "Courier New", monospace;
  font-size: 1rem;
  line-height: 1.25;
}

.lyrics-block pre.textsong {
  margin: 0;
  white-space: pre-wrap;
  color: #3a261b;
  font-family: Consolas, "Courier New", monospace;
  font-size: 1rem;
  line-height: 1.25;
}

.lyrics-block pre.textsong > span {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0 4px 0 0;
  border: 1px solid rgba(132, 49, 31, 0.24);
  border-radius: 6px;
  padding: 1px 6px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.35;
}

.lyrics-block pre.textsong span .chord-hover-preview {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 12;
  transform: translateX(-50%);
}

.lyrics-block pre.textsong span .chord-hover-preview.is-loading {
  width: 116px;
  height: 124px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fffaf1;
  box-shadow: 0 14px 28px rgba(74, 45, 23, 0.2);
}

.chord-diagram {
  width: 116px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fffaf1;
  color: #3c332c;
  font-family: Arial, sans-serif;
  box-shadow: 0 14px 28px rgba(74, 45, 23, 0.2);
}

.chord-diagram__title {
  min-height: 20px;
  margin-bottom: 2px;
  color: #4b4b4b;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.chord-diagram__markers {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  width: 80px;
  margin-left: 14px;
  color: #444;
  font-size: 12px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
}

.chord-diagram__markers span {
  min-height: 14px;
}

.chord-diagram__neck {
  --strings: 6;
  --frets: 4;
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.chord-diagram__string,
.chord-diagram__fret {
  position: absolute;
  z-index: 1;
  display: block;
  background: #8b8b8b;
  pointer-events: none;
}

.chord-diagram__string {
  top: 0;
  bottom: 0;
  left: calc((var(--string) - 1) * 100% / (var(--strings) - 1));
  width: 1px;
  transform: translateX(-0.5px);
}

.chord-diagram__fret {
  left: 0;
  right: 0;
  top: calc(var(--fret-line) * 100% / var(--frets));
  height: 1px;
  transform: translateY(-0.5px);
}

.chord-diagram__base-fret {
  position: absolute;
  right: calc(100% + 4px);
  top: calc((var(--fret, 1) - 0.5) * 100% / var(--frets));
  color: #6b625b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
}

.chord-diagram__dot,
.chord-diagram__barre {
  position: absolute;
  z-index: 2;
  background: #050505;
}

.chord-diagram__dot {
  left: calc((var(--string) - 1) * 100% / (var(--strings) - 1));
  top: calc((var(--fret) - 0.5) * 100% / var(--frets));
  width: 11px;
  height: 11px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.chord-diagram__barre {
  left: calc((var(--string-start) - 1) * 100% / (var(--strings) - 1));
  top: calc((var(--fret) - 0.5) * 100% / var(--frets));
  width: calc((var(--string-span) - 1) * 100% / (var(--strings) - 1));
  height: 11px;
  border-radius: 999px;
  transform: translateY(-50%);
}

.chord-diagram__controls {
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.chord-diagram__nav {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #3c332c;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.chord-diagram__nav:hover,
.chord-diagram__nav:focus-visible {
  background: var(--accent-soft);
  color: var(--accent-dark);
  outline: none;
}

.chord-diagram__counter {
  color: #6b625b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.chord {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0 4px 0 0;
  border: 1px solid rgba(132, 49, 31, 0.24);
  border-radius: 6px;
  padding: 1px 6px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.35;
  cursor: help;
}

.chord-popup {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 12;
  width: 116px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fffaf1;
  color: #3a261b;
  box-shadow: 0 14px 28px rgba(74, 45, 23, 0.2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.chord:hover .chord-popup,
.chord:focus .chord-popup,
.chord:focus-within .chord-popup {
  opacity: 1;
  transform: translate(-50%, 0);
}

.chord-popup svg {
  width: 82px;
  height: 104px;
  display: block;
  margin: 4px auto 0;
}

.used-chords {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 14px;
  list-style: none;
}

.used-chords:empty {
  display: none;
}

.used-chords li {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  text-align: center;
}

.used-chords li.is-loading {
  min-height: 124px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.72);
}

.used-chords figure {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.72);
  text-align: center;
}

.used-chords svg {
  width: 100%;
  max-width: 96px;
  display: block;
  margin: 0 auto;
}

.used-chords figcaption {
  margin-top: 5px;
  color: var(--accent-dark);
  font-weight: 900;
}

.chord-popup svg rect,
.chord-popup svg path,
.used-chords svg rect,
.used-chords svg path {
  fill: none;
  stroke: #7f6a55;
  stroke-width: 2;
}

.chord-popup svg circle,
.chord-popup svg rect:not(:first-child),
.used-chords svg circle,
.used-chords svg rect:not(:first-child) {
  fill: var(--accent-dark);
  stroke: none;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.rating-form {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.72);
}

.wp-rating-form #article-rating-form {
  margin: 0;
}

.wp-rating-form #article-rating-form .title {
  margin: 0 0 8px;
  color: #3a261b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 800;
}

.wp-rating-form #article-rating-form .setRating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.wp-rating-form #article-rating-form .setRating img {
  width: 24px;
  height: 24px;
}

.wp-rating-form #article-rating-form .setRating span {
  margin-left: 6px;
  color: var(--muted);
  font-weight: 700;
}

.wp-rating-form #article-rating-form input[type="submit"] {
  display: block;
  margin-top: 10px;
  border: 0;
  border-radius: var(--radius);
  padding: 8px 14px;
  background: linear-gradient(180deg, #c95335, var(--accent-dark));
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.rating-form h3 {
  margin: 0 0 8px;
  color: #3a261b;
  font-family: Georgia, "Times New Roman", serif;
}

.rating-form p {
  margin: 6px 0 0;
  color: var(--muted);
}

.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}

.star-rating input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.star-rating label {
  color: #c8ab82;
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
  transition: color 150ms ease, transform 150ms ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #b97823;
}

.star-rating label:hover {
  transform: translateY(-1px);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #2a1d17;
  box-shadow: var(--shadow-soft);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.side-panel {
  position: relative;
  padding: 13px;
}

.side-panel h2 {
  position: relative;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  padding-left: 14px;
}

.side-panel h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 7px;
  height: 14px;
  border-radius: 8px 8px 8px 2px;
  background: var(--accent);
  transform: rotate(24deg);
}

.side-nav,
.small-list {
  display: grid;
  margin-top: 9px;
}

.side-nav a,
.small-list a,
.small-list span {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--link);
  transition: color 150ms ease, padding-left 150ms ease;
}

.small-list span {
  color: var(--muted);
  font-weight: 800;
  cursor: default;
  opacity: 0.72;
}

.small-list span::before {
  content: "\2192";
  margin-right: 6px;
  color: var(--accent-dark);
}

.side-nav a:hover,
.small-list a:hover {
  padding-left: 4px;
}

.side-nav a:last-child,
.small-list a:last-child,
.small-list span:last-child {
  border-bottom: 0;
}

.ranked-list {
  margin: 10px 0 0;
  padding-left: 22px;
}

.ranked-list li {
  padding: 5px 0;
  color: var(--accent-dark);
}

.ranked-list a {
  color: var(--link);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(127, 91, 54, 0.035) 1px, transparent 1px),
    #fff7e9;
  background-size: 24px 24px, auto;
}

.footer-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-inner a {
  color: var(--link);
  font-weight: 700;
}

.footer-inner a:hover {
  color: var(--accent-dark);
}

@media (max-width: 920px) {
  .header-bar {
    min-height: 66px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 66px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: var(--ink);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 14px;
  }

  .search-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }

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

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

  .artist-song-item {
    grid-template-columns: minmax(0, 1fr) 74px auto;
  }

  .used-chords {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body {
    font-size: 14px;
  }

  .container {
    width: min(100% - 16px, var(--container));
  }

  .search-layout {
    gap: 12px;
    padding-top: 14px;
  }

  .search-form,
  .compact-list.two-col,
  .compact-list a,
  .sidebar,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .song-row {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 6px 10px;
  }

  .song-meta {
    grid-column: 2;
  }

  .search-form button {
    width: 100%;
  }

  .song-meta {
    text-align: left;
  }

  .compact-list a:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

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

  .artist-directory {
    grid-template-columns: 1fr;
  }

  .artist-profile-main,
  .artist-song-item {
    grid-template-columns: 1fr;
  }

  .artist-profile-main img,
  .artist-profile-placeholder {
    width: 96px;
  }

  .artist-song-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .artist-song-title {
    white-space: normal;
  }

  .favorite-item {
    grid-template-columns: 1fr;
  }

  .favorite-title {
    white-space: normal;
  }

  .favorite-remove {
    justify-self: start;
  }

  .song-preview {
    grid-column: auto;
  }

  .song-neighbors,
  .used-chords {
    grid-template-columns: 1fr;
  }

  .lyrics-block {
    padding: 14px 12px 6px;
  }

  .lyrics-block p {
    font-size: 0.92rem;
    line-height: 1.25;
  }

  .lyrics-block pre.textsong {
    font-size: 0.92rem;
    line-height: 1.25;
  }

  .chord-popup {
    left: 0;
    transform: translate(0, 4px);
  }

  .chord:hover .chord-popup,
  .chord:focus .chord-popup,
  .chord:focus-within .chord-popup {
    transform: translate(0, 0);
  }

  .footer-inner {
    display: grid;
    align-items: start;
    padding: 18px 0;
  }
}
