@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Noto+Kufi+Arabic:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap");

:root {
  --paper: #f5f1e8;
  --paper-card: #fcfaf5;
  --ink: #233d35;
  --muted: #68736c;
  --line: #ddd5c7;
  --copper: #e69502;
  --copper-soft: #faedcf;
  --pine: #29463c;
  --cream: #fffaf0;
  --sans: "DM Sans", "Noto Kufi Arabic", sans-serif;
  --serif: "Fraunces", "Noto Kufi Arabic", serif;
  --mono: "Space Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.is-auto-scrolling { scroll-behavior: auto; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(#b9a98c22 .7px, transparent .7px);
  background-size: 7px 7px;
  font-family: var(--sans);
}
a { color: inherit; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
::selection { background: #e6950235; }

.app-shell { width: 100%; min-height: 100vh; overflow-x: clip; }
.site-header {
  border-bottom: 1px solid var(--line);
  background: #f5f1e8e8;
  backdrop-filter: blur(16px);
}
.header-inner {
  min-height: 76px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}
.brand-logo { display: block; width: 181px; height: auto; max-height: 40px; object-fit: contain; }
.brand-mark {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--cream);
  background: var(--copper);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
  box-shadow: inset 0 0 0 5px #ffffff22;
}
.brand-name { font: 700 21px var(--serif); letter-spacing: -.02em; }
.main-nav { display: flex; align-items: center; gap: 25px; margin-left: auto; }
.nav-link {
  position: relative;
  padding: 8px 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.nav-link:hover { color: var(--copper); }
.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: transparent;
}
.nav-link.is-active { color: var(--copper); }
.nav-link.is-active::after { background: var(--copper); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.language-button, .outline-button, .tool-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fcfaf58c;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.language-button:hover, .outline-button:hover, .tool-button:hover {
  border-color: #e6950280;
  background: #ece4d5;
}
.page-main {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px 80px;
}
.hero {
  position: relative;
  padding: 58px 0 28px;
  display: flex;
  flex-direction: row;
  gap: 58px;
  align-items: center;
}
.hero.pt-\[12px\].pb-\[12px\] { padding-top: 12px; padding-bottom: 12px; }
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: -14vw;
  right: -14vw;
  border-top: 1px solid #e6950230;
}
.eyebrow {
  color: var(--copper);
  font: 700 10px var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.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;
}
.hero-title {
  max-width: 730px;
  margin: 15px 0 17px;
  font: 700 clamp(48px, 7vw, 88px)/.98 var(--serif);
  letter-spacing: -.055em;
}
.hero-title em { color: var(--copper); font-style: normal; }
.home-page-title,
.index-page-title {
  margin: 0 0 18px;
  color: var(--pine);
  font: 600 clamp(32px, 4vw, 50px)/1.05 var(--serif);
  letter-spacing: -.045em;
}
.home-page-title { font-size: clamp(28px, 3.2vw, 42px); }
.hero-copy {
  max-width: 410px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.025em;
}
.hero-copy em { color: var(--copper); font-style: normal; }
.search-wrap { max-width: 610px; margin-top: 28px; position: relative; }
.search-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  color: var(--copper);
  font-size: 25px;
  line-height: 1;
  transform: translateY(-55%);
  pointer-events: none;
}
.search-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  padding: 17px 18px 17px 49px;
  color: var(--ink);
  background: var(--paper-card);
  box-shadow: 0 10px 24px #80694e0d;
  font-size: 14px;
}
.search-input:focus { border-color: var(--copper); box-shadow: 0 0 0 4px #e6950220; }
.search-input::placeholder { color: var(--muted); }
.library-search .search-input::placeholder { color: #a9a399; opacity: 1; }
.verified-filter { display: inline-flex; flex: 0 1 auto; align-items: center; gap: 8px; min-width: 0; margin-top: 0; color: var(--muted); font-size: 12px; cursor: pointer; }
.verified-filter input { width: 16px; height: 16px; margin: 0; accent-color: var(--copper); }
.search-loading {
  display: none;
  position: absolute;
  top: 20px;
  inset-inline-end: 18px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--line);
  border-top-color: var(--copper);
  border-radius: 50%;
  transform: translateY(-50%);
  animation: search-spin .7s linear infinite;
  pointer-events: none;
}
.song-search-box.is-loading .search-loading { display: block; }
.artist-search-box.is-loading .search-loading { display: block; }
@keyframes search-spin { to { transform: translateY(-50%) rotate(360deg); } }
.hero-note { margin-top: 14px; color: var(--muted); font-size: 12px; }
kbd {
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--ink);
  background: #ece4d5;
  font: 10px var(--mono);
}
.hero-visual {
  min-height: 0;
  aspect-ratio: 594 / 308;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--pine);
  box-shadow: 0 16px 40px #80694e1c;
}
.hero > div { min-width: 0; }
.hero > div:first-child { flex: 0 1 33%; }
.hero-visual { flex: 1 1 67%; width: auto; }
.hero-visual img { width: 100%; height: 100%; display: block; object-fit: contain; background: #fff; }
.index-content { padding-top: 38px; }
.index-content .section-heading { border-top: 0; padding-top: 0; }
.songs-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.songs-page-heading .index-page-title { margin: 0; }
.songs-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.songs-toolbar .library-search { width: 100%; max-width: 820px; flex: 1 1 auto; margin: 0; }
.artist-index-content .library-search { width: 50%; max-width: none; margin: 0; }
.songs-list-heading { margin-bottom: 18px; }
.songs-list-heading .result-count { margin: 0; }
.song-results-list { width: 100%; max-width: 820px; }
.questions-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.questions-heading .section-kicker { margin: 0 0 8px; }
.questions-heading { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 24px; direction: ltr; }
.questions-heading-title { grid-column: 2; grid-row: 1; min-width: 0; }
html[dir="rtl"] .questions-heading-title { direction: rtl; text-align: right; }
html[dir="ltr"] .questions-heading-title { direction: ltr; text-align: left; }
html[dir="rtl"] .questions-heading .question-form-shell,
html[dir="rtl"] .questions-heading .question-form-shell .community-form-panel,
html[dir="rtl"] .questions-heading .question-form-shell .community-form { direction: rtl; text-align: right; }
html[dir="rtl"] .questions-heading .question-form-shell input,
html[dir="rtl"] .questions-heading .question-form-shell textarea { text-align: right; }
.questions-heading .index-page-title { margin-bottom: 0; }
.questions-heading .question-form-shell { display: contents; }
.questions-heading .question-form-shell:has(.community-form-panel[hidden]) { border: 0; border-radius: 0; padding: 0; background: transparent; }
 .questions-heading .question-form-shell .community-form-toggle { grid-column: 1; grid-row: 1; align-self: center; }
.questions-heading .question-form-shell .community-form-panel:not([hidden]) { grid-column: 1 / -1; grid-row: 2; width: 100%; margin: 0; box-sizing: border-box; border: 1px solid var(--line); border-radius: 13px; padding: 20px; background: var(--paper-card); }
html[dir="ltr"] .questions-heading { grid-template-columns: minmax(0, 1fr) auto; }
html[dir="ltr"] .questions-heading-title { grid-column: 1; }
html[dir="ltr"] .questions-heading .question-form-shell .community-form-toggle { grid-column: 2; }
.questions-result-count { margin: 0 0 5px; color: var(--muted); font-size: 13px; }
.questions-results-count { margin: 0 0 12px; color: var(--ink); font-size: 20px; font-weight: 600; }
.questions-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.question-search-box { display: flex; flex: 1 1 360px; gap: 8px; min-width: 260px; }
.question-search-box .search-input { min-width: 0; width: 100%; }
.question-search-button { flex: 0 0 auto; border: 1px solid var(--copper); border-radius: 10px; padding: 0 18px; color: var(--cream); background: var(--copper); font-size: 12px; font-weight: 700; cursor: pointer; }
.question-search-button:hover { background: var(--pine); border-color: var(--pine); }
.question-selects { display: flex; align-items: center; gap: 10px; }
.question-select { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.question-select > span { white-space: nowrap; }
.question-select select { width: 160px; height: 54px; border: 1px solid var(--line); border-radius: 12px; outline: none; padding: 16px 38px 16px 14px; color: var(--ink); background: var(--paper-card); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2356625b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px; font: inherit; cursor: pointer; appearance: none; -webkit-appearance: none; }
html[dir="rtl"] .question-select select { padding-right: 14px; padding-left: 38px; background-position: left 14px center; }
html[dir="rtl"] .questions-heading .question-form-shell .community-form-toggle { direction: rtl; }
.question-select select:focus { border-color: var(--copper); box-shadow: 0 0 0 4px #e6950220; }
.question-list { display: grid; gap: 12px; width: 100%; max-width: none; }
.question-card { min-width: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--paper-card); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.question-card:hover { border-color: #e6950266; transform: translateY(-2px); box-shadow: 0 12px 30px #80694e18; }
.question-card-link { display: block; min-width: 0; min-height: 60px; padding: 8px 16px; color: inherit; text-decoration: none; }
.question-card > .community-delete-form { margin: 0 16px 13px; }
.question-card-topline { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.question-card-topline h2 { min-width: 0; margin: 0; color: var(--ink); font: 600 21px/1.35 var(--serif); overflow-wrap: anywhere; }
.question-answer-count { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; border: 1px solid #e6950254; border-radius: 999px; padding: 7px 11px; color: var(--copper); background: var(--copper-soft); font-size: 13px; font-weight: 700; white-space: nowrap; }
.question-answer-count.is-empty { border-color: var(--line); color: var(--muted); background: #eee9df; }
.question-accepted-tick { display: inline-grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; color: #fff; background: #3f8f5b; font-size: 12px; font-weight: 800; line-height: 1; }
.question-excerpt { display: -webkit-box; margin: 5px 0 7px; color: var(--muted); font-size: 13px; line-height: 1.45; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.question-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 18px; color: var(--muted); font-size: 13px; line-height: 1.25; }
.question-card-meta time { align-self: center; white-space: nowrap; line-height: 1.25; }
.question-card-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 0 16px 14px; color: var(--muted); font-size: 14px; }
.question-view-count { display: inline-flex; align-items: center; gap: 7px; color: var(--copper); font-weight: 700; }
.question-card-stats .metric-icon { width: 20px; height: 20px; flex-basis: 20px; }
.question-upvote-button { display: inline-flex; align-items: center; gap: 7px; border: 0; padding: 3px 0; color: var(--muted); background: transparent; cursor: pointer; font: 700 14px/1.2 var(--sans); }
.question-upvote-button:hover, .question-upvote-button:focus-visible, .question-upvote-button.is-active { color: var(--copper); }
.question-upvote-button:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 4px; }
.question-upvote-button:disabled { cursor: wait; opacity: .55; }
.question-like-icon { width: 22px; height: 22px; flex: 0 0 22px; fill: transparent; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: fill .16s ease, transform .16s ease; }
.question-upvote-button:hover .question-like-icon, .question-upvote-button:focus-visible .question-like-icon, .question-upvote-button.is-active .question-like-icon { fill: currentColor; transform: translateY(-1px); }
.question-author { display: inline-flex; align-items: center; gap: 9px; min-height: 38px; }
.question-author > span { display: inline-flex; align-items: center; min-height: 38px; }
.user-avatar { flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; background: var(--cream); }
.question-author-link { display: inline-flex; align-items: center; color: var(--copper); font-size: 13px; font-weight: 700; line-height: 1.25; text-decoration: none; }
.question-author-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.question-detail-wrap { width: 100%; max-width: 960px; margin: 0 auto; padding-top: 28px; }
.question-back-link { margin-bottom: 22px; }
.question-detail-card { border: 1px solid var(--line); border-radius: 14px; background: var(--paper-card); }
.question-detail-header { padding: 25px 28px 19px; border-bottom: 1px solid var(--line); }
.question-detail-header h1 { margin: 0 0 15px; color: var(--ink); font: 600 clamp(29px, 4vw, 46px)/1.12 var(--serif); letter-spacing: -.045em; overflow-wrap: anywhere; }
.question-detail-header .question-card-meta { align-items: center; font-size: 14px; }
.question-detail-header .question-author { min-height: 44px; gap: 10px; }
.question-detail-header .question-author .user-avatar { width: 44px; height: 44px; }
.question-detail-header .question-author-link { font-size: 15px; }
.question-detail-header time { font-size: 14px; }
.question-detail-header > .question-card-stats { padding: 16px 0 0; font-size: 15px; }
.question-rich-content { color: var(--ink); font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; word-break: break-word; }
.question-rich-content p { margin: 0 0 12px; }
.question-rich-content p:last-child { margin-bottom: 0; }
.question-rich-content img { max-width: 100%; height: auto; }
.question-rich-content a { color: var(--copper); text-underline-offset: 3px; }
.question-body { padding: 25px 28px 29px; }
.question-answers { margin-top: 34px; }
.question-answers-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.question-answers-heading h2 { margin: 0; font: 600 clamp(28px, 4vw, 42px)/1.1 var(--serif); letter-spacing: -.04em; }
.question-answers-heading > span { color: var(--muted); font-size: 12px; }
.question-answers-heading > span { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 700; }
.question-answer-list { display: grid; gap: 12px; }
.question-answer { border: 1px solid var(--line); border-radius: 11px; padding: 18px 20px; background: #fcfaf580; }
.question-answer-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; color: var(--ink); }
.question-answer-heading strong { font-size: 14px; }
.question-answer-heading time { color: var(--muted); font-size: 11px; white-space: nowrap; }
.question-answer.is-accepted { border-color: #e6950266; background: var(--copper-soft); }
.question-accepted-badge { display: inline-block; margin-inline-start: 8px; border-radius: 999px; padding: 4px 7px; color: var(--copper); background: #fff8e8; font-size: 10px; font-weight: 700; vertical-align: middle; }
.question-answer-author { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.question-answer .question-rich-content { margin-top: 12px; }
.question-accept-form { margin-top: 16px; }
.question-accept-button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #5eaa73; border-radius: 999px; padding: 9px 14px; color: #2e7749; background: #edf8ef; cursor: pointer; font: 700 13px/1.2 var(--sans); box-shadow: 0 3px 10px #3f8f5b18; }
.question-accept-button:hover, .question-accept-button:focus-visible { border-color: #2f7d4a; color: #fff; background: #2f7d4a; box-shadow: 0 7px 16px #3f8f5b30; transform: translateY(-1px); }
.question-accept-button:focus-visible { outline: 2px solid #2f7d4a; outline-offset: 3px; }
.question-accept-icon { display: inline-grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; color: #fff; background: #3f8f5b; font-size: 12px; font-weight: 800; line-height: 1; }
.question-accept-button:hover .question-accept-icon, .question-accept-button:focus-visible .question-accept-icon { color: #2f7d4a; background: #fff; }
.question-accept-button.is-remove { border-color: #c47d72; color: #9b3c30; background: #fff4f1; box-shadow: 0 3px 10px #9b3c3018; }
.question-accept-button.is-remove:hover, .question-accept-button.is-remove:focus-visible { border-color: #9b3c30; color: #fff; background: #9b3c30; box-shadow: 0 7px 16px #9b3c3030; }
.question-accept-button.is-remove .question-accept-icon { background: #b95547; }
.question-accept-button.is-remove:hover .question-accept-icon, .question-accept-button.is-remove:focus-visible .question-accept-icon { color: #9b3c30; background: #fff; }
.questions-empty { margin: 0; border: 1px dashed var(--line); border-radius: 11px; padding: 25px; color: var(--muted); text-align: center; }

.lessons-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.lessons-heading .section-kicker { max-width: 650px; margin: 0 0 8px; }
.lessons-heading .index-page-title { margin-bottom: 0; }
.lessons-controls { display: flex; align-items: start; gap: 22px; margin-bottom: 25px; }
.lessons-search-group { display: flex; flex: 0 1 620px; align-items: center; gap: 18px; min-width: 0; }
.lessons-search-desktop { flex: 0 1 620px; min-width: 0; }
.lessons-search-toggle { display: none; }
.lessons-search-trigger { display: none; }
.lessons-search-trigger::-webkit-details-marker { display: none; }
.lessons-toolbar { display: flex; flex: 0 1 620px; align-items: center; gap: 8px; width: auto; margin-bottom: 0; }
.lesson-search-box { flex: 0 1 430px; width: min(100%, 430px); min-width: 0; }
.lesson-search-box .search-input { width: 100%; }
.lessons-toolbar .search-input, .lessons-toolbar .question-search-button { height: 54px; box-sizing: border-box; }
.lessons-result-count { flex: 0 0 auto; width: auto; margin: 0; color: var(--muted); font-size: 13px; white-space: nowrap; }
.lesson-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
.lesson-filter { display: inline-flex; align-items: center; height: 54px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; color: var(--muted); background: var(--paper-card); font-size: 12px; font-weight: 700; text-decoration: none; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.lesson-filter-label-short { display: none; }
.lesson-filter:hover, .lesson-filter.is-active { border-color: var(--copper); color: var(--copper); background: var(--copper-soft); }
.lesson-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.lesson-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-card); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.lesson-card:hover { border-color: #e6950266; transform: translateY(-3px); box-shadow: 0 16px 36px #80694e1c; }
.lesson-card-link { display: block; height: 100%; color: inherit; text-decoration: none; }
.lesson-card-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 3px solid var(--copper); background: linear-gradient(135deg, #254e45, #132d2b); }
.lesson-card-thumb img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.lesson-card-thumb.has-local-thumb { background: #fff; }
.lesson-card-thumb.has-local-thumb .lesson-thumb-fallback { visibility: hidden; }
.lesson-thumb-fallback { display: flex; position: absolute; inset: 0; z-index: 0; flex-direction: column; justify-content: space-between; padding: 18px; color: #fff; background: radial-gradient(circle at 88% 15%, #e6950266, transparent 35%), linear-gradient(135deg, #315e53, #172f2c); }
.lesson-thumb-fallback::after { content: "♪"; position: absolute; right: 15px; bottom: 3px; color: #ffffff22; font: 130px/1 var(--serif); }
.lesson-thumb-fallback span { color: #f3c978; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lesson-thumb-fallback strong { position: relative; z-index: 1; max-width: 85%; font: 600 18px/1.2 var(--serif); }
.lesson-card-body { display: flex; min-height: 166px; flex-direction: column; padding: 17px 18px 18px; }
.lesson-category { color: var(--copper); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.lesson-card h2 { margin: 8px 0 8px; color: var(--ink); font: 600 22px/1.16 var(--serif); letter-spacing: -.025em; }
.lessons-page .lesson-card h2 { font-size: 18px; line-height: 1.25; }
.lesson-card p { display: -webkit-box; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.lesson-read { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 15px; color: var(--copper); font-size: 11px; font-weight: 800; }
.lessons-empty { grid-column: 1 / -1; margin: 0; border: 1px dashed var(--line); border-radius: 11px; padding: 25px; color: var(--muted); text-align: center; }
.lesson-detail-wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-top: 28px; }
.lesson-back-link { margin-bottom: 22px; }
.lesson-detail-card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--paper-card); }
.lesson-detail-header { padding: 28px 32px 24px; border-bottom: 1px solid var(--line); background: linear-gradient(120deg, #fcfaf5, #f5efe4); }
.lesson-detail-header h1 { max-width: 880px; margin: 9px 0 14px; color: var(--ink); font: 600 clamp(32px, 4.2vw, 52px)/1.08 var(--serif); letter-spacing: -.05em; overflow-wrap: anywhere; }
.lesson-detail-meta { color: var(--muted); font-size: 12px; }
.lesson-rich-content { padding: 30px 32px 38px; color: var(--ink); font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; word-break: break-word; }
.lesson-rich-content p { margin: 0 0 16px; }
.lesson-rich-content h1, .lesson-rich-content h2, .lesson-rich-content h3, .lesson-rich-content h4 { margin: 26px 0 12px; color: var(--pine); font-family: var(--serif); line-height: 1.2; }
.lesson-rich-content h1 { font-size: 34px; }
.lesson-rich-content h2 { font-size: 29px; }
.lesson-rich-content h3 { font-size: 24px; }
.lesson-rich-content img { max-width: 100%; height: auto; border-radius: 8px; }
.lesson-rich-content iframe { display: block; width: min(100%, 720px); min-height: 405px; margin: 24px auto; border: 0; border-radius: 10px; background: #132d2b; }
.lesson-rich-content a { color: var(--copper); text-underline-offset: 3px; }
.lesson-rich-content ul, .lesson-rich-content ol { padding-inline-start: 25px; }
.lesson-rich-content blockquote { margin: 20px 0; border-inline-start: 3px solid var(--copper); padding-inline-start: 18px; color: var(--muted); }
.lesson-neighbor-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0 32px 32px; }
.lesson-neighbor { display: flex; min-width: 0; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 11px; padding: 15px 17px; color: inherit; background: #fcfaf580; text-decoration: none; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.lesson-neighbor:hover { border-color: var(--copper); background: var(--copper-soft); transform: translateY(-2px); }
.lesson-neighbor-label { color: var(--copper); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.lesson-neighbor strong { color: var(--ink); font: 600 19px/1.2 var(--serif); overflow-wrap: anywhere; }
.lesson-neighbor.is-disabled { border-color: transparent; background: transparent; pointer-events: none; }
html[dir="rtl"] .lesson-card h2, html[dir="rtl"] .lesson-thumb-fallback strong { letter-spacing: 0; }

@media (max-width: 800px) {
  .lesson-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .lesson-card h2 { font-size: 20px; }
  .lesson-card-body { min-height: 158px; padding: 14px; }
  .lesson-detail-header, .lesson-rich-content { padding-inline: 20px; }
  .lesson-neighbor-nav { padding-inline: 20px; }
}

@media (max-width: 520px) {
  .index-page-title { font-size: clamp(28px, 8vw, 34px); line-height: 1.08; letter-spacing: -.035em; }
  .lessons-heading { align-items: start; flex-direction: column; gap: 7px; margin-bottom: 18px; }
  .lessons-controls { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 42px; align-items: start; gap: 6px; margin-bottom: 18px; }
  .lessons-search-group { display: contents; }
  .lessons-search-desktop { display: none; }
  .lesson-filters { grid-column: 1; grid-row: 1; width: auto; min-width: 0; margin: 0; }
  .lessons-search-toggle { display: block; grid-column: 2; grid-row: 1; width: 42px; }
  .lessons-search-trigger { display: flex; width: 42px; height: 42px; box-sizing: border-box; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; color: var(--copper); background: var(--paper-card); cursor: pointer; font-size: 25px; line-height: 1; list-style: none; }
  .lessons-search-toggle[open] .lessons-search-trigger { border-color: var(--copper); background: var(--copper-soft); }
  .lessons-search-toggle[open] { display: contents; }
  .lessons-search-toggle[open] .lessons-search-trigger { grid-column: 2; grid-row: 1; }
  .lessons-search-toggle .lessons-toolbar { display: none; }
  .lessons-search-toggle[open] .lessons-toolbar { display: flex; grid-column: 1 / -1; grid-row: 2; width: 100%; margin-top: 10px; }
  .lessons-toolbar { align-items: stretch; width: 100%; }
  .lesson-search-box { flex: 1 1 auto; width: auto; }
  .lessons-toolbar .question-search-button { padding-inline: 14px; }
  .lessons-result-count { grid-column: 1 / -1; grid-row: 2; width: 100%; margin: 3px 0 0; text-align: start; }
  .lessons-controls:has(.lessons-search-toggle[open]) .lessons-result-count { grid-row: 3; }
  .lesson-filters { flex-wrap: nowrap; gap: 4px; }
  .lesson-filter { min-width: 0; flex: 1 1 0; justify-content: center; height: 42px; padding-inline: 5px; overflow: hidden; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
  .lesson-filter-label-full:not(.is-all) { display: none; }
  .lesson-filter-label-short { display: inline; }
  .lesson-grid { grid-template-columns: 1fr; }
  .lesson-card-body { min-height: 145px; }
  .lesson-detail-wrap { padding-top: 20px; }
  .lesson-detail-header h1 { font-size: 34px; }
  .lesson-rich-content { font-size: 14px; }
  .lesson-rich-content iframe { min-height: 220px; }
  .lesson-neighbor-nav { grid-template-columns: 1fr; }
  .home-artists-heading { align-items: center; flex-direction: row; justify-content: space-between; gap: 12px; }
  .home-artists-heading h2 { min-width: 0; }
  .home-artists-heading .home-artists-see-all { flex: 0 0 auto; white-space: nowrap; }
  .home-artists { margin-top: 42px; }
  .home-artists-slider { gap: 10px; }
  .home-artist-slide { flex-basis: min(165px, calc(100vw - 58px)); }
  .home-questions-heading { align-items: center; flex-direction: row; justify-content: space-between; gap: 12px; }
  .home-questions-heading h2 { min-width: 0; }
  .home-questions-heading .home-artists-see-all { flex: 0 0 auto; white-space: nowrap; }
  .home-questions { margin-top: 42px; }
  .home-questions-slider { gap: 10px; }
  .home-question-slide { flex-basis: min(290px, calc(100vw - 58px)); }
  .home-comments { margin-top: 42px; }
  .home-comments-slider { gap: 10px; }
  .home-comment-slide { flex-basis: min(290px, calc(100vw - 58px)); }
  .home-lessons-heading { align-items: center; flex-direction: row; justify-content: space-between; gap: 12px; }
  .home-lessons-heading h2 { min-width: 0; }
  .home-lessons-heading .home-artists-see-all { flex: 0 0 auto; white-space: nowrap; }
  .home-lessons { margin-top: 42px; }
  .home-lessons-slider { gap: 10px; }
  .home-lessons-slider .lesson-card { flex-basis: min(260px, calc(100vw - 58px)); }
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-bottom: 18px;
}
.section-heading h2 { margin: 0; font: 600 28px var(--serif); letter-spacing: -.03em; }
.section-heading p { margin: 0 0 3px; color: var(--muted); font-size: 12px; }
.section-heading .result-count { margin-bottom: 0; color: var(--ink); font-size: 20px; font-weight: 600; }
.library-search { max-width: 820px; margin: 0 0 22px; position: relative; }
.song-toolbar-controls { display: flex; align-items: center; gap: 10px; width: 100%; }
.song-search-box { position: relative; flex: 1 1 auto; min-width: 0; }
.song-search-box .search-input { width: 100%; }
.library-search > .result-count { margin: 8px 0 0; color: var(--ink); font-size: 20px; font-weight: 600; white-space: nowrap; }
.search-summary-number { color: var(--copper); }
.song-sort { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; min-width: 184px; color: var(--muted); font-size: 11px; }
.song-sort > span { white-space: nowrap; }
.song-sort select { width: 124px; flex: 0 0 124px; }
.song-toolbar-controls > .verified-filter { white-space: nowrap; }
.song-sort select,
.artist-sort select {
  height: 54px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  padding-block: 16px;
  padding-inline: 14px 38px;
  color: var(--ink);
  background-color: var(--paper-card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2356625b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  font: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
html[dir="rtl"] .song-sort select,
html[dir="rtl"] .artist-sort select { background-position: left 14px center; }
.song-sort select:focus { border-color: var(--copper); box-shadow: 0 0 0 4px #e6950220; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.pagination-link { display: inline-flex; align-items: center; justify-content: center; min-width: 94px; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; color: var(--ink); background: var(--paper-card); font-size: 12px; font-weight: 700; text-decoration: none; }
.pagination-link:hover { border-color: #e6950280; color: var(--copper); background: #fcfaf5; }
.pagination-link.is-disabled { color: var(--muted); opacity: .5; pointer-events: none; }
.pagination-status { color: var(--muted); font-size: 12px; white-space: nowrap; }
.artist-search-fields { display: flex; align-items: center; gap: 10px; width: 100%; }
.artist-search-box { position: relative; flex: 1 1 auto; min-width: 0; }
.artist-sort { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; min-width: 184px; color: var(--muted); font-size: 11px; }
.artist-sort > span { white-space: nowrap; }
.artist-sort select { width: 124px; flex: 0 0 124px; }
.artist-sort select:focus { border-color: var(--copper); box-shadow: 0 0 0 4px #e6950220; }
.artist-song-sort { margin: 0; }
.artist-song-sort .song-sort { min-width: 0; }
.artist-index-content .library-search { margin-bottom: 12px; }
.artist-results-heading { margin-bottom: 12px; text-align: right; }
html[lang="en"] .artist-results-heading { text-align: left; }
.artist-results-heading p { margin: 0; color: var(--ink); font-size: 20px; font-weight: 600; }
.artist-result-count-number { color: var(--copper); }
@media (min-width: 801px) {
  .songs-toolbar .library-search,
  .song-results-list {
    max-width: none;
  }
  .song-results-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }
  .song-sort {
    min-width: 280px;
  }
  .song-sort select {
    width: 220px;
    flex-basis: 220px;
  }
  .songs-toolbar .song-search-box {
    flex: 0 0 clamp(260px, 26vw, 320px);
    max-width: clamp(260px, 26vw, 320px);
  }
}
.library-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 30px; align-items: start; }
.song-list { display: grid; gap: 9px; }
.song-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid #ddd5c7;
  border-radius: 11px;
  padding: 15px 17px;
  color: inherit;
  background: #fcfaf5b8;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.song-row.song-row-no-number { grid-template-columns: minmax(0, 1fr) auto; }
.song-row.song-row-no-arrow { grid-template-columns: minmax(0, 1fr); }
.song-list .song-row[hidden] { display: none; }
.song-row:hover { border-color: #e6950266; transform: translateY(-3px); box-shadow: 0 16px 40px #80694e1c; }
.song-row[data-detail-href] { cursor: pointer; }
.song-row[data-detail-href]:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.song-number { color: var(--muted); font: 11px var(--mono); }
.song-title-link { color: inherit; text-decoration: none; }
.song-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font: 600 19px/1.2 var(--serif); }
.song-title-link:hover { color: var(--copper); }
.card-favorite-indicator { display: inline-flex; align-items: center; justify-content: center; color: var(--copper); }
.card-favorite-indicator-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.card-favorite-indicator-icon path { stroke: currentColor; stroke-width: 1.8; }
.song-row:hover .card-favorite-indicator-icon path,
.artist-item:hover .card-favorite-indicator-icon path,
.home-artist-slide:hover .card-favorite-indicator-icon path { fill: none; }
.song-version-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e695025e;
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--copper);
  background: #e6950212;
  font: 700 10px/1.2 var(--sans);
  letter-spacing: .01em;
  white-space: nowrap;
  text-decoration: none;
}
.song-version-toggle { gap: 4px; cursor: pointer; }
.version-toggle-arrow {
  display: inline-grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0;
  line-height: 1;
  transition: transform .2s ease;
}
.version-toggle-arrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
}
.song-version-toggle[aria-expanded="true"] .version-toggle-arrow { transform: rotate(180deg); }
.song-version-tag:hover { border-color: var(--copper); background: #e6950224; }
.song-version-tag:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.song-versions[hidden] { display: none; }
.song-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; color: var(--muted); font-size: 14px; }
.song-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; color: var(--muted); font: 13px/1.4 var(--sans); }
.song-stat { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.song-stat-link { color: inherit; text-decoration: none; cursor: pointer; }
.song-stat-link:hover { color: var(--copper); }
.song-stat-link:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 3px; }
.song-stat + .song-stat { position: relative; }
.song-stat + .song-stat::before { content: "·"; position: absolute; inset-inline-start: -8px; color: var(--line); }
.song-stat-rating { display: inline-flex; align-items: center; gap: 5px; }
.rating-average, .rating-count { white-space: nowrap; }
.rating-separator { color: var(--line); }
.rating-stars { color: var(--copper); font-size: 14px; letter-spacing: 1px; line-height: 1; }
.song-rating-stat { flex-wrap: wrap; }
.song-rating-summary { display: inline-flex; align-items: center; gap: 5px; }
.song-rating-control { display: inline-flex; align-items: center; gap: 7px; }
.song-rating-trigger { border: 0; padding: 0; color: var(--copper); background: transparent; cursor: pointer; font: 700 12px/1.4 var(--sans); text-decoration: underline; text-underline-offset: 3px; }
.song-rating-trigger:hover { color: var(--ink); }
.song-rating-trigger:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 3px; }
.song-rating-picker { display: inline-flex; align-items: center; gap: 1px; border: 1px solid #e6950254; border-radius: 999px; padding: 3px 6px; background: var(--copper-soft); }
.song-rating-picker[hidden], .song-rating-remove[hidden] { display: none; }
.song-rating-star-button { border: 0; padding: 0 2px; color: #b9aa96; background: transparent; cursor: pointer; font: 700 16px/1 var(--sans); }
.song-rating-star-button:hover, .song-rating-star-button:focus-visible, .song-rating-star-button.is-selected { color: var(--copper); }
.song-rating-star-button:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; border-radius: 3px; }
.song-rating-star-button:disabled { cursor: default; opacity: .6; }
.song-rating-remove { border: 0; border-inline-start: 1px solid #e6950254; margin-inline-start: 4px; padding: 4px 0 4px 8px; color: #9b3c30; background: transparent; cursor: pointer; font: 700 11px/1.2 var(--sans); }
.song-rating-remove:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.song-rating-remove:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; border-radius: 3px; }
.song-rating-remove:disabled { cursor: default; opacity: .6; }
.metric-icon { width: 16px; height: 16px; flex: 0 0 16px; color: var(--copper); }
.song-artist-link { color: var(--copper); text-decoration: none; }
.song-artist-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-song-artist { display: inline-flex; align-items: center; gap: 7px; }
.home-song-artist .artist-mark { width: 24px; height: 24px; flex-basis: 24px; font-size: 10px; }
.font-arabic { font-family: "Noto Kufi Arabic", var(--sans); }
.capo-pill {
  border: 1px solid #e6950247;
  border-radius: 4px;
  padding: 3px 7px;
  color: var(--copper);
  background: #e6950212;
  font: 10px var(--mono);
  white-space: nowrap;
}
.row-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #c7780038;
  border-radius: 50%;
  color: #fff;
  background: var(--copper);
  box-shadow: 0 5px 14px #e6950233;
  text-decoration: none;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.row-arrow svg { color: currentColor; stroke: currentColor; }
.row-arrow-icon { display: inline-grid; place-items: center; }
.view-icon { width: 16px; height: 16px; }
.row-arrow:hover {
  color: #fff;
  background: #c97800;
  box-shadow: 0 7px 18px #e6950252;
  text-decoration: none;
}
.song-row-linked { cursor: pointer; }
.song-row-linked { cursor: pointer; }
.row-arrow-label {
  unicode-bidi: isolate;
}
.row-arrow-icon {
  direction: ltr;
  unicode-bidi: isolate;
}
.artist-item .row-arrow { flex: 0 0 auto; margin-inline-start: auto; }
.artists-card .row-arrow { color: var(--pine); background: var(--copper); }
.artists-card .row-arrow:hover { color: var(--pine); background: #f1aa18; }
.artists-card { position: relative; overflow: hidden; border-radius: 14px; padding: 22px; color: #fffaf0; background: var(--pine); }
.artists-card::before { content: "A"; position: absolute; right: -10px; bottom: -40px; color: #fffaf00e; font: 170px/1 var(--serif); }
.artists-card h3 { position: relative; margin: 0 0 4px; font: 600 22px var(--serif); }
.artists-card > p { position: relative; margin: 0 0 19px; color: #fffaf09e; font-size: 12px; }
.artist-stack { position: relative; display: grid; gap: 4px; }
.artist-item { display: flex; align-items: center; gap: 10px; border-top: 1px solid #fffaf01f; padding: 9px 0; color: inherit; text-decoration: none; }
.artist-item:hover .artist-item-name { color: #e5c477; }
.artist-item-name { display: block; font-size: 13px; font-weight: 600; }
.artist-item-count { display: block; margin-top: 2px; color: #fffaf08c; font-size: 10px; }
.artist-item > .card-favorite-indicator { margin-inline-start: auto; }
.artist-directory .card-favorite-indicator-icon { width: 24px; height: 24px; flex-basis: 24px; }
.artist-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.artist-directory .artist-item { border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 11px; padding: 15px 17px; color: var(--ink); background: var(--paper-card); }
.artist-directory .artist-item[hidden] { display: none; }
.artist-directory .artist-item:hover { border-color: #e6950266; transform: translateY(-2px); }
.artist-directory .artist-item-count { color: var(--copper); font-size: 14px; font-weight: 700; }
.artist-directory .artist-mark { width: 42px; height: 42px; flex-basis: 42px; }
@media (min-width: 801px) and (max-width: 999px) {
  .artist-directory { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .artist-directory { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.artist-mark { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: var(--cream); background: var(--copper); font: 700 14px var(--serif); }
.artist-mark img { width: 100%; height: 100%; object-fit: cover; }
.artist-mark-large { width: 88px; height: 88px; flex-basis: 88px; font-size: 30px; }
.stats-band { display: flex; align-items: baseline; gap: 0; margin-top: 26px; }
.stat { padding: 0 34px 0 0; background: transparent; }
.stat + .stat { border-inline-start: 1px solid var(--line); padding-inline-start: 34px; }
.stat-value { display: block; color: var(--copper); font: 600 40px var(--serif); }
.stat-label { color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.home-library { border-top: 1px solid var(--line); margin-top: 38px; padding-top: 28px; }
.home-library-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.home-library-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 18px; }
.home-library-heading h2 { margin: 0; font: 600 clamp(24px, 2.7vw, 34px)/1 var(--serif); letter-spacing: -.045em; }
.home-library-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.home-library-counts { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.home-library-count { display: inline-flex; align-items: baseline; gap: 5px; color: var(--muted); font-size: 12px; text-decoration: none; }
.home-library-count strong { color: var(--copper); font: 600 22px/1 var(--serif); }
.home-library-count:hover span { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.home-link-icon { width: 14px; height: 14px; flex: 0 0 14px; }
.home-library-see-all { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; color: var(--copper); font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.home-library-see-all:hover { color: var(--ink); }
.home-song-list { width: 100%; max-width: none; margin-top: 25px; }
.home-song-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 30px; }
.home-song-list .song-row { border-right: 0; border-bottom: 0; border-left: 0; border-radius: 0; padding: 16px 4px; background: transparent; }
.home-song-list .song-meta { margin-top: 7px; color: #56625b; font-size: 14px; }
.home-song-list .song-meta > span { color: #56625b; font-size: 14px; }
.home-song-list .song-artist-link { color: var(--copper); font-size: 14px; }
.home-song-list .song-row:first-child { border-top-color: var(--copper); }
.home-song-list .song-row:hover { border-color: var(--line); background: #fcfaf580; box-shadow: none; transform: none; }
.home-library-title-link { color: inherit; text-decoration: none; }
.home-library-title-link:hover { color: var(--copper); }
.home-questions { border-top: 1px solid var(--line); margin-top: 58px; padding-top: 28px; }
.home-questions-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.home-questions-heading h2 { margin: 0; font: 600 clamp(24px, 2.7vw, 34px)/1 var(--serif); letter-spacing: -.045em; }
.home-questions-slider { display: flex; gap: 14px; overflow-x: auto; padding: 3px 2px 14px; scroll-snap-type: x proximity; scrollbar-color: var(--copper-soft) transparent; }
.home-question-slide { display: flex; flex: 0 0 clamp(270px, 29vw, 360px); min-width: 0; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 16px; color: var(--ink); background: var(--paper-card); text-decoration: none; scroll-snap-align: start; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.home-question-slide:hover { border-color: #e6950266; box-shadow: 0 14px 30px #80694e18; transform: translateY(-3px); }
.home-question-slide-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.home-question-slide h3 { display: -webkit-box; min-width: 0; margin: 0; overflow: hidden; color: var(--ink); font: 600 19px/1.2 var(--serif); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-question-slide .question-answer-count { padding: 5px 8px; font-size: 11px; }
.home-question-slide .question-accepted-tick { width: 16px; height: 16px; font-size: 11px; }
.home-question-slide > p { display: -webkit-box; min-height: 44px; margin: 10px 0 16px; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-question-slide-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; color: var(--muted); font-size: 12px; }
.home-question-slide-meta .question-author { min-width: 0; min-height: 32px; gap: 7px; }
.home-question-slide-meta .question-author > span { min-width: 0; min-height: 32px; }
.home-question-slide-meta .user-avatar { width: 32px; height: 32px; }
.home-question-slide-meta .question-author-link { max-width: 150px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.home-question-slide-meta time { flex: 0 0 auto; white-space: nowrap; }
.home-comments { border-top: 1px solid var(--line); margin-top: 58px; padding-top: 28px; }
.home-comments-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.home-comments-heading h2 { margin: 0; font: 600 clamp(24px, 2.7vw, 34px)/1 var(--serif); letter-spacing: -.045em; }
.home-comments-slider { display: flex; gap: 14px; overflow-x: auto; padding: 3px 2px 14px; scroll-snap-type: x proximity; scrollbar-color: var(--copper-soft) transparent; }
.home-comment-slide { position: relative; display: flex; flex: 0 0 clamp(270px, 29vw, 360px); min-width: 0; min-height: 190px; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; padding: 27px 19px 17px; color: var(--ink); background: var(--paper-card); text-decoration: none; scroll-snap-align: start; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.home-comment-slide::before { position: absolute; top: 4px; inset-inline-start: 15px; z-index: 0; color: var(--copper); content: "“"; font: 800 56px/.9 var(--serif); opacity: .3; }
.home-comment-slide:hover { border-color: #e6950266; box-shadow: 0 14px 30px #80694e18; transform: translateY(-3px); }
.home-comment-quote { position: relative; z-index: 1; display: -webkit-box; min-height: 0; margin: 0 0 10px; padding-top: 18px; overflow: hidden; color: var(--ink); font: 600 17px/1.6 var(--serif); -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.home-comment-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 0; color: var(--muted); font-size: 12px; }
.home-comment-user { display: inline-flex; min-width: 0; align-items: center; gap: 8px; }
.home-comment-user .user-avatar { width: 36px; height: 36px; flex: 0 0 36px; }
.home-comment-author { min-width: 0; overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.home-comment-meta time { flex: 0 0 auto; white-space: nowrap; }
.home-comment-song { display: block; margin: 0 0 12px; overflow: hidden; color: var(--copper); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.home-artists { border-top: 1px solid var(--line); margin-top: 58px; padding-top: 28px; }
.home-artists-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.home-artists-heading h2 { margin: 0; font: 600 clamp(24px, 2.7vw, 34px)/1 var(--serif); letter-spacing: -.045em; }
.home-artists-see-all { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; color: var(--copper); font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.home-artists-see-all:hover { color: var(--ink); }
.home-artists-slider { display: flex; gap: 14px; overflow-x: auto; padding: 3px 2px 14px; scroll-snap-type: x proximity; scrollbar-color: var(--copper-soft) transparent; }
.home-artist-slide { position: relative; display: flex; flex: 0 0 clamp(155px, 16vw, 190px); min-width: 0; flex-direction: column; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 14px; padding: 22px 14px 18px; color: var(--ink); background: var(--paper-card); text-align: center; text-decoration: none; scroll-snap-align: start; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.home-artist-slide:hover { border-color: #e6950266; box-shadow: 0 14px 30px #80694e18; transform: translateY(-3px); }
.home-artist-slide > .card-favorite-indicator { position: absolute; top: 12px; inset-inline-end: 12px; }
.home-artist-slide .artist-mark-large { width: 100px; height: 100px; flex-basis: 100px; }
.home-artist-name { width: 100%; overflow: hidden; font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.home-artist-count { color: var(--copper); font-size: 12px; font-weight: 700; }
.home-lessons { border-top: 1px solid var(--line); margin-top: 58px; padding-top: 28px; }
.home-lessons-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.home-lessons-heading h2 { margin: 0; font: 600 clamp(24px, 2.7vw, 34px)/1 var(--serif); letter-spacing: -.045em; }
.home-lessons-slider { display: flex; gap: 14px; overflow-x: auto; padding: 3px 2px 14px; scroll-snap-type: x proximity; scrollbar-color: var(--copper-soft) transparent; }
.home-lessons-slider .lesson-card { flex: 0 0 clamp(240px, 24vw, 300px); scroll-snap-align: start; }
.home-lessons-slider .lesson-card-body { min-height: 166px; }
@media (min-width: 801px) {
  .home-lessons-slider .lesson-card { flex-basis: clamp(220px, 20vw, 260px); }
  .home-lessons-slider .lesson-card-body { min-height: 148px; padding: 14px 15px 15px; }
  .home-lessons-slider .lesson-card h2 { margin: 7px 0 6px; font-size: 18px; line-height: 1.2; }
  .home-lessons-slider .lesson-card p { font-size: 11px; line-height: 1.5; -webkit-line-clamp: 2; }
}
.community-intro {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 45px;
  border-top: 1px solid var(--line);
  margin-top: 66px;
  padding-top: 54px;
}
.community-copy { max-width: 500px; }
.community-copy h2 { margin: 13px 0 14px; font: 600 clamp(31px, 4vw, 48px)/1.05 var(--serif); letter-spacing: -.04em; }
.community-copy p { margin: 0 0 22px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.community-intro img { width: 100%; max-height: 220px; border: 1px solid var(--line); border-radius: 12px; object-fit: contain; background: #fff; box-shadow: 0 5px 16px #80694e14; }
.footer { max-width: 1240px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); margin: 0 auto; padding: 25px 28px 40px; color: var(--muted); font-size: 11px; }
.footer-links { display: flex; align-items: center; gap: 9px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--copper); }

.detail-wrap { padding-top: 32px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 600; text-decoration: none; }
.back-link:hover, .detail-artist:hover { color: var(--copper); }
.detail-header { display: flex; align-items: end; justify-content: space-between; gap: 25px; border-bottom: 0; padding: 34px 0 28px; }
.detail-header.pt-\[6px\].pb-\[6px\] { padding-top: 6px; padding-bottom: 6px; }
.detail-header h1 { margin: 13px 0 8px; font: 600 clamp(42px, 6vw, 70px)/1 var(--serif); letter-spacing: -.055em; }
.artist-hero h1 span { display: block; margin-top: 10px; color: var(--muted); font: 400 .34em/1.7 "Noto Kufi Arabic", var(--sans); letter-spacing: -.03em; }
.detail-header h1 .detail-song-title { display: inline; }
.detail-header h1 .song-version-tag { vertical-align: middle; margin-inline-start: 9px; transform: translateY(-.12em); font-size: .2em; letter-spacing: 0; }
.detail-artist { display: inline-flex; align-items: center; gap: 8px; color: var(--copper); font-size: 14px; font-weight: 700; text-decoration: none; }
.detail-artist.mt-\[24px\].mb-\[24px\].text-\[18px\] { margin-top: 8px; margin-bottom: 10px; font-size: 18px; }
.detail-artist .artist-mark { width: 24px; height: 24px; flex-basis: 24px; font-size: 10px; }
.detail-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 18px; margin-top: 13px; color: var(--muted); font-size: 11px; }
.text-\[14px\] { font-size: 14px; }
.text-\[13px\] { font-size: 13px; }
.detail-meta .song-added-date { font-size: 14px; }
.detail-meta span + span { position: relative; }
.detail-meta span + span::before { content: "•"; position: absolute; left: -12px; color: var(--line); }
.detail-song-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.detail-song-stats .song-stats { margin-top: 0; }
.detail-tools { display: flex; gap: 8px; }
.tool-button, .language-tab { border-radius: 8px; display: inline-flex; align-items: center; gap: 7px; }
.favorite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
   border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 13px;
   color: var(--ink);
   background: #fcfaf58c;
  cursor: pointer;
  font: 700 12px var(--sans);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.favorite-button:hover { border-color: #e6950280; background: #ece4d5; transform: translateY(-1px); }
.favorite-button:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.favorite-button.is-active { color: var(--copper); border-color: var(--copper); background: #e6950224; }
.favorite-button:disabled { cursor: wait; opacity: .65; transform: none; }
.favorite-button-icon { width: 15px; height: 15px; flex: 0 0 auto; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.artist-hero .favorite-button, .user-profile-personal-content .favorite-button { margin-top: 16px; }
.share-icon { width: 14px; height: 14px; flex: 0 0 auto; }
.language-tab { border: 1px solid #e695025e; padding: 10px 13px; color: var(--copper); background: #e6950212; font-size: 12px; font-weight: 700; text-decoration: none; }
.language-tab:hover { background: #e6950224; }
.song-versions { margin-top: 28px; border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: #fcfaf580; scroll-margin-top: 24px; }
.versions-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.versions-heading h2 { margin: 5px 0 0; font: 600 clamp(27px, 4vw, 40px)/1.05 var(--serif); letter-spacing: -.04em; }
.versions-heading > span { max-width: 300px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.section-kicker { margin: 0; color: var(--copper); font: 700 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.version-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.version-card { display: flex; flex-direction: column; gap: 8px; border: 1px solid #ddd5c7; border-radius: 10px; padding: 14px; color: inherit; background: var(--paper-card); text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.version-card:hover { border-color: #e6950266; transform: translateY(-2px); box-shadow: 0 10px 24px #80694e12; }
.version-card.is-current { border-color: #e6950280; box-shadow: inset 0 0 0 1px #e6950224; }
.version-card:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.version-card-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.version-card-title { font: 600 18px/1.25 var(--serif); }
.version-current { color: var(--muted); font: 600 10px var(--sans); }
.version-card-meta { color: var(--muted); font-size: 12px; }
.version-card-rating { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.version-rating-score { color: var(--ink); font-weight: 700; }
.version-card-rating .rating-stars { font-size: 12px; }
.version-rating-count, .version-rating-empty { color: var(--muted); }
.song-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 45px; align-items: start; padding-top: 34px; }
.song-layout.pt-\[10px\] { padding-top: 10px; }
.tab-paper {
  position: relative;
  min-width: 0;
  overflow: visible;
  border: 1px solid #ddd5c7;
  border-top: 3px solid var(--copper);
  border-radius: 3px 3px 12px 12px;
  padding: clamp(24px, 4vw, 49px);
  background-color: var(--paper-card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='170' viewBox='0 0 280 170'%3E%3Cg transform='rotate(-28 140 85)'%3E%3Ctext x='-8' y='98' fill='%23283f3a' fill-opacity='.065' font-family='Arial,sans-serif' font-size='20' font-weight='700' letter-spacing='3'%3Eguitarabia.com%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-size: 280px 170px;
  box-shadow: 0 5px 16px #80694e14;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
 .tab-paper { padding-top: 22px; }
 .tab-paper-toolbar { position: sticky; top: 0; z-index: 20; display: flex; width: 100%; min-width: 0; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; padding: 8px 0; background: var(--paper-card); box-shadow: 0 5px 12px #80694e18; }
 .song-paper-controls { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 10px; }
 .tab-kicker { margin-bottom: 0; color: var(--muted); font: 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
 .song-zoom-control { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; border: 1px solid #ddd5c7; border-radius: 8px; padding: 3px; background: #fffdf8b8; }
 .song-zoom-button { width: 25px; height: 25px; border: 0; border-radius: 5px; color: var(--ink); background: transparent; cursor: pointer; font: 700 16px/1 var(--sans); }
 .song-zoom-button:hover { color: var(--copper); background: #e6950217; }
 .song-zoom-value { min-width: 38px; color: var(--muted); font: 10px var(--mono); text-align: center; }
 .song-autoscroll-control { display: inline-flex; align-items: center; gap: 9px; flex-wrap: wrap; border: 1px solid #ddd5c7; border-radius: 8px; padding: 3px 7px 3px 3px; background: #fffdf8b8; }
 .song-autoscroll-button { display: inline-flex; align-items: center; gap: 6px; min-height: 31px; border: 0; border-radius: 5px; padding: 5px 8px; color: var(--ink); background: transparent; cursor: pointer; font: 700 11px/1 var(--sans); }
 .song-autoscroll-button:hover, .song-autoscroll-button[aria-pressed="true"] { color: var(--copper); background: #e6950217; }
 .song-autoscroll-button:focus-visible, .song-autoscroll-speed input:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
 .song-autoscroll-speed { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; white-space: nowrap; }
 .song-autoscroll-speed input { width: 76px; accent-color: var(--copper); cursor: pointer; }
 .song-autoscroll-speed output { min-width: 22px; color: var(--copper); font: 700 10px var(--mono); }
  .song-chords { min-width: 0; margin: -8px 0 25px; border-top: 1px solid #ddd5c7; padding-top: 14px; }
   .song-chords-heading { margin-bottom: 9px; }
  .song-chords-heading h2 { margin: 0; color: var(--ink); font: 600 18px/1.25 var(--serif); }
   .song-chords-count { color: var(--muted); white-space: nowrap; }
   .song-chords-hint { margin: 3px 0 0; color: var(--muted); font: 10px/1.4 var(--sans); }
  .song-chords-rail { display: flex; gap: 9px; min-width: 0; overflow-x: auto; overflow-y: hidden; padding: 3px 2px 10px; scrollbar-color: var(--copper-soft) transparent; overscroll-behavior-inline: contain; }
  .song-chord-item { display: grid; flex: 0 0 auto; min-width: 58px; min-height: 40px; place-items: center; border: 1px solid #ddd5c7; border-radius: 8px; background: #fffdf8b8; }
  .song-chord-item .chord-diagram-trigger { display: flex; width: 100%; min-height: 40px; box-sizing: border-box; align-items: center; justify-content: center; padding: 7px 10px; }
  .song-chord-item .chord { padding: 0; background: transparent; }
  .song-chord-item .chord-diagram-popover { padding: 9px; }
.tab-content { font: 16px/1.7 "Courier New", var(--mono); }
.tab-content:not(.raw-tab-content) { direction: ltr; }
.tab-phrase { margin: 0 0 17px; }
.tab-line { min-height: 1.5em; white-space: pre; }
.tab-chord-line { direction: ltr; color: var(--copper); text-align: left; }
.tab-chord-line .chord { border-radius: 0; padding: 0; color: var(--copper); background: transparent; font-weight: 700; }
.tab-lyric-line { color: var(--ink); direction: rtl; font: 17px/1.95 "Courier New", "Noto Kufi Arabic", monospace; text-align: right; }
.tab-plain { min-height: 1.7em; white-space: pre-wrap; }
.raw-tab-content {
   width: 100%;
   max-width: none;
   margin: 0;
   font-size: var(--song-content-font-size, 15px) !important;
   line-height: 1.2 !important;
  overflow-x: auto;
   color: #000000;
   direction: ltr;
   font: 15px/1.2 "Courier New", Courier, monospace;
   text-align: left;
   white-space: normal;
}
 .raw-tab-content * { font-size: inherit !important; line-height: inherit !important; }
.plain-tab-content { white-space: pre-wrap; }
.raw-tab-content p { margin: 0; padding: 1px 0; unicode-bidi: normal; }
.raw-tab-content p.tab-blank { min-height: 1.2em; margin: 0; }
.raw-tab-content span { white-space: inherit; }
.raw-tab-content::selection { background: #e6950235; }
.chord { border-radius: 3px; padding: 2px 4px; color: var(--copper); background: #e6950217; direction: ltr; font: 700 .85em "Courier New", var(--mono); }
.chord-diagram-trigger {
  position: relative;
  display: inline-block;
  cursor: help;
  outline: none;
}
.chord-diagram-trigger:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.chord-diagram-popover {
  position: fixed;
  z-index: 30;
  top: var(--chord-popover-top, 8px);
  left: var(--chord-popover-left, 8px);
  display: none;
  width: 170px;
  transform: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid #d9ccb9;
  border-radius: 10px;
  padding: 9px;
  color: var(--ink);
  background: #fffdf8;
  box-shadow: 0 12px 28px #283f3a26;
  cursor: default;
  font: 400 12px/1 var(--sans);
  white-space: normal;
}
.chord-diagram-popover::before {
  position: absolute;
  top: -10px;
  right: 0;
  left: 0;
  height: 10px;
  content: "";
}
.chord-diagram-trigger.is-ready:hover .chord-diagram-popover,
.chord-diagram-trigger.is-open .chord-diagram-popover { display: flex; }
.chord-diagram-image-frame {
  position: relative;
  display: grid;
  width: 150px;
  height: 165px;
  place-items: center;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
.chord-diagram-image-frame img {
  display: block;
  width: 150px;
  height: 165px;
  object-fit: contain;
}
.chord-diagram-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #fff;
}
.chord-diagram-loading[hidden] { display: none; }
.chord-diagram-spinner {
  width: 25px;
  height: 25px;
  border: 3px solid #e6950240;
  border-top-color: var(--copper);
  border-radius: 50%;
  animation: chord-diagram-spin .75s linear infinite;
}
@keyframes chord-diagram-spin {
  to { transform: rotate(360deg); }
}
.chord-diagram-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  color: var(--muted);
  direction: ltr;
}
html[dir="rtl"] .chord-diagram-controls { direction: rtl; }
.chord-diagram-controls button {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper-card);
  cursor: pointer;
  font: 700 18px/1 var(--sans);
}
.chord-diagram-controls button[hidden] { display: none; }
.chord-diagram-controls button:hover { border-color: var(--copper); color: var(--copper); }
.chord-diagram-controls button:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.pattern { color: var(--copper); direction: ltr; font: 15px var(--mono); }
.comments-section { min-width: 0; margin-top: 45px; border-top: 1px solid var(--line); padding-top: 28px; scroll-margin-top: 24px; }
.comments-heading { display: flex; align-items: baseline; gap: 10px; margin-bottom: 17px; }
.comments-heading h2 { margin: 0; font: 600 clamp(28px, 4vw, 42px)/1 var(--serif); letter-spacing: -.04em; }
.comments-count { color: var(--muted); font: 500 13px/1 var(--sans); letter-spacing: 0; white-space: nowrap; }
.comments-list { display: grid; min-width: 0; gap: 12px; margin: 0; padding: 0; list-style: none; }
.comment-thread { min-width: 0; margin: 0; padding: 0; list-style: none; }
.comment-replies { display: grid; min-width: 0; gap: 12px; margin: 12px 0 0; border-inline-start: 2px solid #e6950240; padding: 0; padding-inline-start: 32px; list-style: none; }
.comment-card { min-width: 0; max-width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 17px 19px; background: #fcfaf580; }
.comment-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.comment-author { display: inline-flex; min-width: 0; align-items: center; gap: 8px; }
.comment-author strong { min-width: 0; overflow-wrap: anywhere; }
.comment-heading strong { color: var(--ink); font-size: 14px; }
.comment-heading time { color: var(--muted); font-size: 11px; white-space: nowrap; }
.comment-card p, .comments-empty { min-width: 0; max-width: 100%; margin: 10px 0 0; color: var(--ink); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; word-break: break-word; white-space: pre-wrap; }
.comment-actions { display: grid; gap: 10px; margin-top: 12px; }
.comment-owner-actions { display: inline-flex; align-items: center; gap: 8px; }
.community-delete-form { display: inline-flex; }
.community-delete-button { display: inline-grid; width: 32px; height: 32px; place-items: center; border: 1px solid #e6950266; border-radius: 7px; padding: 0; color: var(--copper); background: #e6950212; cursor: pointer; }
.community-delete-button:hover { border-color: #9b3c3080; color: #9b3c30; background: #9b3c3020; }
.community-delete-button:focus-visible { outline: 2px solid #9b3c30; outline-offset: 2px; }
.community-edit-button { display: inline-grid; width: 32px; height: 32px; place-items: center; border: 1px solid #e6950266; border-radius: 7px; padding: 0; color: var(--copper); background: #e6950212; cursor: pointer; }
.community-edit-button:hover { border-color: #557b9b80; color: #315f80; background: #557b9b18; }
.community-edit-button:focus-visible { outline: 2px solid #315f80; outline-offset: 2px; }
.community-edit-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.comment-edit-form { display: grid; grid-column: 1 / -1; gap: 12px; width: 100%; margin-top: 4px; }
.comment-edit-form .community-field textarea { width: 100%; min-height: 132px; box-sizing: border-box; }
.comment-edit-form-actions { display: inline-flex; align-items: center; gap: 9px; }
.comment-edit-cancel { border: 0; padding: 0; color: var(--muted); background: transparent; cursor: pointer; font: 700 12px/1.4 var(--sans); }
.comment-edit-cancel:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.comment-edit-cancel:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 3px; }
.community-delete-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.question-detail-header > .community-delete-form { margin-top: 14px; }
.question-answer > .community-delete-form { margin-top: 14px; }
.comment-reply-button { justify-self: start; border: 0; padding: 0; color: var(--copper); background: transparent; cursor: pointer; font: 700 12px/1.4 var(--sans); }
.comment-reply-button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.comment-reply-form { margin-top: 0; border: 0; padding: 0; background: transparent; }
.comments-empty { color: var(--muted); }
.community-form-shell { margin-top: 22px; border: 1px solid var(--line); border-radius: 13px; padding: 20px; background: var(--paper-card); }
.community-form-collapsed { padding: 14px 18px; }
.community-form-toggle { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #e695025e; border-radius: 999px; padding: 10px 15px; color: var(--copper); background: var(--copper-soft); cursor: pointer; font: 700 13px/1.2 var(--sans); }
.community-form-toggle-icon { font: 700 18px/1 var(--sans); }
.community-form-toggle:hover { color: var(--cream); background: var(--copper); }
.answer-form-shell.community-form-collapsed { border: 0; padding: 0; background: transparent; }
.answer-form-shell .community-form-toggle { direction: ltr; }
html[dir="rtl"] .answer-form-shell .community-form-toggle { direction: rtl; }
.answer-form-shell .community-form-panel { margin-top: 14px; border: 1px solid var(--line); border-radius: 13px; padding: 20px; background: var(--paper-card); }
.community-form-panel[hidden] { display: none; }
.community-form-panel { margin-top: 17px; }
.community-captcha-field strong { color: var(--copper); font-family: var(--mono); }
.community-form-shell h2, .community-form-shell h3 { margin: 0 0 13px; color: var(--ink); font: 600 24px/1.1 var(--serif); letter-spacing: -.03em; }
.community-form { display: grid; gap: 14px; }
.community-form[hidden] { display: none; }
.community-field { display: grid; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 700; }
.community-field input, .community-field textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; color: var(--ink); background: #fffdf9; font: inherit; font-size: 14px; font-weight: 400; outline: none; }
.community-field textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.community-field input:focus, .community-field textarea:focus { border-color: var(--copper); box-shadow: 0 0 0 4px #e6950220; }
.community-field input::placeholder, .community-field textarea::placeholder { color: var(--muted); opacity: .75; }
.community-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.community-form-footer .primary-button { border: 0; cursor: pointer; }
.community-form-status { margin: 0 0 13px; border-radius: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.5; }
.community-form-status.is-error { color: #8b3028; background: #f8e8e4; }
.community-form-status.is-limit { color: #7b5b1f; background: #fbf1d9; }
.community-form textarea:disabled { cursor: not-allowed; opacity: .65; }
.community-form button:disabled { cursor: not-allowed; opacity: .55; }
.community-auth-prompt { border: 0; padding: 0; color: var(--copper); background: transparent; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.community-auth-prompt:hover { color: var(--ink); }
.question-form-shell { margin: 25px 0 18px; }
.question-form-shell .community-form-footer { margin-top: 2px; }
.auth-community-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.auth-community-tab { display: inline-flex; align-items: center; gap: 7px; border-bottom: 2px solid transparent; padding: 10px 12px; color: var(--muted); font-size: 12px; font-weight: 700; text-decoration: none; }
.auth-community-tab strong { display: inline-grid; min-width: 23px; height: 23px; place-items: center; border-radius: 999px; color: var(--cream); background: var(--copper); font: 700 10px/1 var(--sans); letter-spacing: 0; }
.auth-community-tab:hover, .auth-community-tab.is-active { border-color: var(--copper); color: var(--copper); }
.auth-community-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.auth-account-community { margin-top: 42px; scroll-margin-top: 24px; }
.auth-community-group { min-width: 0; border-top: 1px solid var(--line); padding-top: 15px; }
.auth-community-group h3 { margin: 0 0 13px; color: var(--ink); font: 600 22px/1.1 var(--serif); }
.auth-community-list { display: grid; gap: 10px; }
.auth-community-list-comments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auth-community-list-comments .empty-state { grid-column: 1 / -1; }
.auth-community-list-ratings { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.auth-community-list-ratings .empty-state { grid-column: 1 / -1; }
.auth-community-list-comments .auth-community-item p { display: -webkit-box; max-height: 4.8em; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.auth-community-item { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; background: #fcfaf580; }
.auth-community-item-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.auth-community-item-heading a { min-width: 0; color: var(--ink); text-decoration: none; }
.auth-community-item-heading a:hover { color: var(--copper); }
.auth-community-item-heading strong { overflow-wrap: anywhere; }
.auth-community-item time { flex: 0 0 auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.auth-community-item-context { display: block; margin-top: 4px; color: var(--copper); font-size: 11px; font-weight: 700; }
.auth-community-item-uploader { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.auth-community-item-uploader-link { color: var(--copper); font-weight: 700; text-decoration: none; }
.auth-community-item-uploader-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-community-item p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.auth-community-rating { display: flex; align-items: center; gap: 9px; color: var(--copper); font-weight: 700; }
.auth-community-rating > span { font-size: 17px; letter-spacing: 1px; line-height: 1; }
.auth-community-item { position: relative; padding-bottom: 52px; }
.auth-community-item .community-delete-form { position: absolute; inset-inline-end: 10px; bottom: 10px; }
.auth-community-pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; font-size: 11px; }
.auth-community-page-link { color: var(--copper); text-decoration: none; }
.auth-community-page-link:hover { text-decoration: underline; }
.auth-community-page-link.is-disabled { color: var(--muted); opacity: .55; }
.auth-community-page-status { color: var(--muted); }
.artist-back-link { margin-top: 28px; }
.artist-hero { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); padding: 28px 0 38px; }
.artist-hero h1 { margin: 0 0 7px; font: 600 clamp(40px, 6vw, 68px)/1 var(--serif); letter-spacing: -.05em; }
.artist-count { color: var(--copper); font-size: 12px; font-weight: 700; }
.artist-count.text-\[14px\] { font-size: 14px; }
.artist-songs { max-width: 820px; padding-top: 30px; }
.artist-songs .section-heading { margin-bottom: 15px; border-top: 0; padding-top: 0; }
.artist-song-list .song-number { display: none; }
.song-uploader-link { color: var(--copper); text-decoration: none; }
.song-uploader-link:hover { color: var(--copper); text-decoration: underline; }
.user-profile-page { padding-top: 35px; }
.user-profile-personal { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 24px; border-bottom: 1px solid var(--line); padding: 12px 0 38px; }
.user-profile-photo { display: grid; width: 128px; height: 128px; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; background: var(--cream); }
.user-profile-avatar { display: block; width: 100%; height: 100%; object-fit: cover; }
.user-profile-personal-content h1 { margin: 0 0 9px; color: var(--ink); font: 600 clamp(30px, 4vw, 48px)/1.1 var(--serif); letter-spacing: -.04em; }
.user-profile-name { margin: 0 0 9px; color: var(--copper); font-size: 18px; font-weight: 700; }
.user-profile-member { display: flex; align-items: baseline; gap: 7px; margin: 0; color: var(--muted); font-size: 13px; }
.user-profile-member time { color: var(--ink); font-family: var(--mono); }
.user-profile-contributions { max-width: 820px; padding-top: 30px; }
.user-profile-contributions-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 15px; }
.user-profile-contributions-heading .section-kicker { margin: 0 0 7px; }
.user-profile-contributions-heading h2 { margin: 0; color: var(--ink); font: 600 clamp(28px, 4vw, 40px)/1 var(--serif); letter-spacing: -.045em; }
.user-song-sort { flex: 0 0 auto; }
.user-song-list { width: 100%; }
.user-profile-favorites { max-width: 820px; padding-top: 42px; }
.user-profile-favorites-heading { margin-bottom: 15px; }
.user-profile-favorites-heading .section-kicker { margin: 0 0 7px; }
.user-profile-favorites-heading h2 { margin: 0; color: var(--ink); font: 600 clamp(28px, 4vw, 40px)/1 var(--serif); letter-spacing: -.045em; }
.user-favorite-song-list { width: 100%; }
.related-songs { width: 100%; margin-top: 42px; }
.related-songs-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.related-songs-heading h2 { margin: 0; font: 600 clamp(28px, 4vw, 42px)/1.1 var(--serif); letter-spacing: -.04em; }
.related-songs-see-all { flex: 0 0 auto; color: var(--copper); font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.related-songs-see-all:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.related-songs-slider { display: flex; gap: 12px; overflow-x: auto; padding: 3px 2px 14px; scroll-snap-type: x proximity; scrollbar-color: var(--copper-soft) transparent; }
.related-songs-slider > .song-row { flex: 0 0 min(370px, calc(100vw - 56px)); min-width: 0; scroll-snap-align: start; }
.related-songs-slider > .song-row-no-arrow .song-title { margin-bottom: 7px; }
.related-songs-slider > .song-row-no-arrow .song-stats { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
.contact-page { min-height: 70vh; }
.contact-hero { max-width: 800px; margin: 0 auto; padding: 76px 0 55px; }
.contact-hero h1 { margin: 13px 0 25px; font: 600 clamp(42px, 6vw, 70px)/1 var(--serif); letter-spacing: -.05em; }
.contact-intro { max-width: 620px; margin: 0 0 32px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.contact-body { color: var(--muted); font-size: 16px; line-height: 1.85; }
.contact-body p { margin: 0 0 22px; }
.contact-form { display: grid; gap: 17px; margin-top: 30px; border: 1px solid var(--line); border-radius: 15px; padding: 25px; background: var(--paper-card); box-shadow: 0 14px 35px #80694e0d; }
.contact-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.contact-field { display: grid; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 700; }
.contact-field input, .contact-field textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 9px; padding: 12px 13px; color: var(--ink); background: #fffdf9; font: inherit; font-size: 14px; font-weight: 400; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.contact-field textarea { min-height: 170px; resize: vertical; line-height: 1.6; }
.contact-field input:focus, .contact-field textarea:focus { border-color: var(--copper); box-shadow: 0 0 0 4px #e6950220; }
.contact-field input::placeholder, .contact-field textarea::placeholder { color: var(--muted); opacity: .75; }
.contact-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.contact-form-footer p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.contact-form-status { margin: 0; border-radius: 8px; padding: 11px 13px; color: var(--ink); background: var(--copper-soft); font-size: 13px; line-height: 1.5; }
.contact-form-status:empty { display: none; }
.contact-form-status.is-success { color: #216b3a; background: #e7f4e9; border: 1px solid #b9dfc0; }
.contact-form-status.is-error { color: #8b3028; background: #f8e8e4; }
.contact-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.auth-links { display: flex; align-items: center; gap: 10px; margin-inline-end: 12px; }
.auth-links a { color: var(--muted); font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.auth-links a:hover { color: var(--copper); }
.auth-links .header-account-link { display: inline-flex; align-items: center; gap: 7px; }
.auth-links .header-admin-link { color: var(--copper); }
.header-account-avatar { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; }
.favorite-auth-modal[hidden] { display: none; }
.favorite-auth-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #1d302dcc;
}
.favorite-auth-dialog {
  position: relative;
  width: min(100%, 430px);
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 31px;
  color: var(--ink);
  background: var(--paper-card);
  box-shadow: 0 22px 70px #1d302d42;
}
.favorite-auth-dialog h2 { margin: 0 35px 10px 0; font: 600 30px/1.12 var(--serif); letter-spacing: -.035em; }
.favorite-auth-dialog p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.favorite-auth-close {
  position: absolute;
  top: 13px;
  right: 15px;
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: 400 21px/1 var(--sans);
}
.favorite-auth-close:hover { border-color: var(--copper); color: var(--copper); }
.favorite-auth-close:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.favorite-auth-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.auth-page { min-height: 70vh; }
.auth-hero { width: min(100% - 34px, 520px); margin: 0 auto; padding: 76px 0 64px; }
.auth-account-page { width: min(100% - 34px, 1060px); padding-top: 24px; }
.auth-hero h1 { margin: 13px 0 17px; color: var(--ink); font: 600 clamp(40px, 6vw, 64px)/1.05 var(--serif); letter-spacing: -.05em; white-space: nowrap; }
.auth-login-page h1,
.auth-register-page h1 { font-size: 32px; line-height: 1.1; }
.auth-hero .eyebrow:empty { display: none; }
.auth-intro:empty { display: none; }
.auth-account-page h1 { max-width: 700px; margin-bottom: 13px; white-space: normal; }
.auth-intro { margin: 0 0 25px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.auth-form { display: grid; gap: 16px; border: 1px solid var(--line); border-radius: 15px; padding: 25px; background: var(--paper-card); box-shadow: 0 14px 35px #80694e0d; }
.auth-field { display: grid; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 700; }
.auth-field input { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 9px; padding: 12px 13px; color: var(--ink); background: #fffdf9; font: inherit; font-size: 14px; font-weight: 400; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.auth-field input:focus { border-color: var(--copper); box-shadow: 0 0 0 4px #e6950220; }
.auth-field input::placeholder { color: var(--muted); opacity: .75; }
.auth-form .primary-button { justify-content: center; border: 0; cursor: pointer; }
.auth-forgot-link { color: var(--copper); font-size: 12px; font-weight: 700; text-align: center; text-decoration: none; }
.auth-forgot-link:hover, .auth-secondary a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-hint { margin: -5px 0 0; color: var(--muted); font-size: 11px; }
.auth-client-error { margin: -4px 0 0; color: #8b3028; font-size: 12px; line-height: 1.5; }
.auth-client-error[hidden] { display: none; }
.auth-status { margin: 0 0 17px; border-radius: 8px; padding: 11px 13px; color: #8b3028; background: #f8e8e4; font-size: 13px; line-height: 1.5; }
.auth-status.is-success { color: #216b3a; background: #e7f4e9; border: 1px solid #b9dfc0; }
.auth-secondary { margin-top: 19px; color: var(--muted); font-size: 12px; text-align: center; }
.auth-secondary:empty { display: none; }
.auth-secondary a { color: var(--copper); font-weight: 700; text-decoration: none; }
.auth-account-card { display: grid; gap: 28px; }
.auth-account-page > .eyebrow,
.auth-account-page > h1,
.auth-account-page > .auth-intro { display: none; }
.auth-account-profile-hero { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 12px 0 20px; }
.auth-account-profile-hero .auth-account-identity { gap: 20px; }
.auth-account-profile-hero .auth-account-avatar { width: 112px; height: 112px; }
.auth-account-avatar-stack { display: grid; justify-items: center; gap: 6px; flex: 0 0 auto; }
.auth-account-identity-copy h1 { margin: 0 0 8px; color: var(--ink); font: 600 clamp(34px, 5vw, 58px)/1.05 var(--serif); letter-spacing: -.045em; overflow-wrap: anywhere; }
.auth-account-identity-copy span { margin-top: 0; font: 13px var(--mono); letter-spacing: 0; text-transform: none; }
.auth-account-profile-actions { display: flex; align-self: flex-start; align-items: flex-start; flex-direction: column; gap: 11px; }
.auth-account-avatar-form { display: flex; align-items: center; gap: 10px; margin: 0; border: 0; padding: 0; }
.auth-account-avatar-button { color: var(--copper); cursor: pointer; font-size: 11px; font-weight: 700; text-decoration: none; }
.auth-account-avatar-form input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.auth-account-avatar-form .auth-field-hint { display: none; }
.auth-account-avatar-form [data-account-avatar-status]:not(:empty) { display: inline; }
.auth-account-logout-form { margin: 0; }
.auth-account-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 3px 0 6px; }
.auth-account-detail { display: grid; gap: 6px; border: 0; padding: 0; }
.auth-account-detail:first-child { padding-top: 0; }
.auth-account-detail dt { font-size: 11px; }
.auth-account-detail dd { font-size: 13px; }
.auth-account-password-detail { display: grid; align-content: start; justify-items: start; gap: 6px; min-width: 0; }
.auth-account-password-actions { display: flex; align-items: center; gap: 8px; }
.auth-account-password-toggle { cursor: pointer; }
.auth-account-security-form { width: min(100%, 530px); }
.auth-account-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}
.auth-account-intro-copy { max-width: 650px; }
.auth-account-intro-copy p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.auth-account-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.auth-account-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid #e6950266;
  border-radius: 50%;
  color: var(--cream);
  background: var(--pine);
  font: 700 28px/1 var(--serif);
  box-shadow: inset 0 0 0 5px #ffffff14;
}
.auth-account-avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.auth-account-identity-copy { min-width: 0; }
.auth-account-identity-copy strong { display: block; color: var(--ink); font: 600 21px/1.2 var(--serif); overflow-wrap: anywhere; }
.auth-account-identity-copy span { display: block; margin-top: 4px; color: var(--muted); font: 600 15px/1.4 var(--sans); letter-spacing: 0; text-transform: none; }
.auth-account-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 18px; align-items: start; }
.auth-account-section { min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: #fcfaf580; }
.auth-account-section h2 { margin: 0; color: var(--ink); font: 600 26px/1.1 var(--serif); letter-spacing: -.035em; }
.auth-account-section > p { margin: 7px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.auth-account-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 3px 0 6px; }
.auth-account-detail { display: grid; gap: 6px; border: 0; padding: 0; }
.auth-account-detail:first-child { padding-top: 0; }
.auth-account-detail dt { color: var(--muted); font-size: 11px; font-weight: 700; }
.auth-account-detail dd { min-width: 0; margin: 0; color: var(--ink); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.auth-account-email-value { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.auth-account-readonly { color: var(--muted); font-weight: 400; }
.auth-account-status { display: inline-flex; align-items: center; gap: 7px; }
.auth-account-status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4d9a69; }
.auth-account-status.is-pending::before { background: var(--copper); }
.auth-account-avatar-form { display: flex; align-items: center; gap: 10px; margin: 0; border: 0; padding: 0; }
.auth-account-avatar-form label { color: var(--copper); font-size: 11px; font-weight: 700; text-decoration: none; }
.auth-account-avatar-form input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.auth-account-avatar-form input[type="file"]::file-selector-button { border: 1px solid var(--line); border-radius: 999px; margin-inline-end: 9px; padding: 8px 11px; color: var(--ink); background: var(--cream); font: 700 11px var(--sans); cursor: pointer; }
.auth-account-avatar-form input[type="file"]::file-selector-button:hover { border-color: var(--copper); }
.auth-field-hint { color: var(--muted); font-size: 11px; line-height: 1.5; }
.auth-account-avatar-form [data-account-avatar-status]:empty { display: none; }
.auth-account-security-form { display: grid; gap: 13px; }
.auth-account-password-toggle { cursor: pointer; }
.auth-account-security-form[hidden] { display: none; }
.auth-account-security-form .auth-field { gap: 6px; }
.auth-account-security-form .auth-field input { background: var(--cream); }
.auth-account-submit { justify-self: start; margin-top: 3px; }
.auth-account-contributions { padding-top: 8px; }
.auth-account-contributions-heading { margin-bottom: 17px; }
.auth-account-contributions-heading h2 { margin: 0; color: var(--ink); font: 600 clamp(28px, 4vw, 40px)/1 var(--serif); letter-spacing: -.045em; }
.auth-account-contribution-count { display: inline-grid; min-width: 23px; height: 23px; place-items: center; border-radius: 999px; padding-inline: 7px; color: var(--cream); background: var(--copper); font: 700 10px/1 var(--sans); letter-spacing: 0; }
.auth-account-public-profile-link { display: block; width: fit-content; margin-top: 7px; color: var(--copper); font-size: 12px; font-weight: 700; text-decoration: none; }
.auth-account-public-profile-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.auth-account-contribution-list { width: 100%; }
.account-contribution-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--line); border-radius: 10px; padding: 15px 17px; background: var(--paper-card); }
.account-contribution-row.is-unpublished { background: #fff8e9; }
.account-contribution-copy { display: grid; min-width: 0; gap: 4px; }
.account-contribution-row[data-detail-href] { cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.account-contribution-row[data-detail-href]:hover { border-color: #e6950266; box-shadow: 0 12px 28px #80694e1c; transform: translateY(-2px); }
.account-contribution-row[data-detail-href]:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.account-contribution-title { overflow: hidden; color: var(--ink); font: 600 20px/1.2 var(--serif); text-overflow: ellipsis; white-space: nowrap; }
.account-contribution-artist { overflow: hidden; color: var(--copper); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.account-contribution-note { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.account-contribution-meta { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.account-contribution-status { border-radius: 999px; padding: 6px 9px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.account-contribution-status.is-published { color: #286a3e; background: #e8f5eb; }
.account-contribution-status.is-pending { color: #8a5b00; background: #fcebc4; }
.account-contribution-status.is-draft { color: #7f4438; background: #f7ddd5; }
.account-contribution-view,
.account-contribution-edit { color: var(--copper); font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.account-contribution-view:hover,
.account-contribution-edit:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.account-contribution-delete-form { margin: 0; }
.account-contribution-delete,
.danger-button { border: 1px solid #c88679; border-radius: 999px; padding: 8px 11px; color: #8a3d31; background: transparent; font: 800 11px var(--sans); cursor: pointer; }
.account-contribution-delete:hover,
.danger-button:hover { color: #fff; background: #a84d3f; }
.auth-account-favorites { border-top: 1px solid var(--line); padding-top: 27px; }
.auth-account-favorites-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.auth-account-favorites-heading h2 { margin: 0; color: var(--ink); font: 600 clamp(28px, 4vw, 40px)/1 var(--serif); letter-spacing: -.045em; }
.auth-account-favorites-heading p { max-width: 340px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.auth-account-favorites.is-loading { opacity: .62; transition: opacity .15s ease; }
.auth-favorites-tabs { display: flex; gap: 7px; overflow-x: auto; margin-bottom: 10px; border-bottom: 1px solid var(--line); padding-bottom: 8px; scrollbar-width: thin; }
.auth-favorite-tab { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 9px 13px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.auth-favorite-tab:hover { color: var(--ink); background: var(--cream); }
.auth-favorite-tab.is-active { border-color: var(--copper-soft); color: var(--ink); background: #fff8e9; }
.auth-favorite-tab strong { display: inline-grid; min-width: 23px; height: 23px; place-items: center; border-radius: 999px; color: var(--cream); background: var(--copper); font-size: 10px; line-height: 1; }
.auth-favorites-panel { height: 610px; }
.auth-favorites-panel.is-compact { width: fit-content; max-width: 100%; height: auto; }
.auth-favorites-group { height: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 17px; background: var(--paper-card); }
.auth-favorites-panel.is-compact .auth-favorites-group { height: auto; }
.auth-favorites-empty { display: grid; min-height: 78px; place-items: center; border: 1px dashed #cfc4b2; border-radius: 8px; padding: 12px; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: center; }
.auth-favorite-list { display: grid; height: 500px; align-content: start; gap: 9px; overflow-y: auto; padding-inline-end: 4px; scrollbar-color: var(--copper-soft) transparent; }
.auth-favorites-panel.is-compact .auth-favorite-list { height: auto; max-height: none; overflow: visible; }
.auth-favorite-list-songs { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 340px)); justify-content: start; }
.auth-favorite-list-artists,
.auth-favorite-list-users { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.auth-favorite-song-card { display: flex; min-width: 0; min-height: 112px; flex-direction: column; align-items: stretch; gap: 5px; border: 1px solid #ded4c5; border-radius: 10px; padding: 13px 14px 11px; background: #fffdf9; }
.auth-favorite-song-card[data-detail-href] { cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.auth-favorite-song-card[data-detail-href]:hover { border-color: #e6950266; box-shadow: 0 16px 40px #80694e1c; transform: translateY(-3px); }
.auth-favorite-song-card[data-detail-href]:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.auth-favorite-song-link { display: block; min-width: 0; color: var(--ink); text-decoration: none; }
.auth-favorite-song-link:hover strong { color: var(--copper); }
.auth-favorite-song-link strong { display: block; overflow: hidden; color: var(--ink); font: 600 19px/1.2 var(--serif); text-overflow: ellipsis; white-space: nowrap; }
.auth-favorite-song-artist { display: block; overflow: hidden; color: var(--copper); font-size: 14px; font-weight: 700; text-overflow: ellipsis; text-decoration: none; white-space: nowrap; }
.auth-favorite-song-artist:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.auth-favorite-song-stats { overflow: hidden; margin-top: auto; padding-top: 5px; }
.auth-favorite-song-stats .song-stats { gap: 8px 14px; margin: 0; color: var(--muted); font: 13px/1.4 var(--sans); }
.auth-favorite-song-stats .song-stat { white-space: nowrap; }
.auth-favorite-song-uploader { overflow: hidden; color: var(--muted); font-size: 14px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.auth-favorite-uploader-link { color: var(--copper); font-weight: 700; text-decoration: none; }
.auth-favorite-uploader-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-favorite-artist-card,
.auth-favorite-user-card { display: flex; align-items: center; gap: 10px; min-width: 0; border: 1px solid #ded4c5; border-radius: 10px; padding: 10px; color: var(--ink); background: #fffdf9; text-decoration: none; }
.auth-favorite-artist-card:hover strong,
.auth-favorite-user-card:hover strong { color: var(--copper); }
.auth-favorite-artist-card .artist-mark { width: 42px; height: 42px; flex: 0 0 42px; }
.auth-favorite-artist-copy { display: grid; min-width: 0; gap: 3px; }
.auth-favorite-artist-card strong,
.auth-favorite-user-card strong { overflow: hidden; font-size: 15px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.auth-favorite-artist-song-count { overflow: hidden; color: var(--copper); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.auth-favorite-user-card img { width: 46px; height: 46px; flex: 0 0 46px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; }
.auth-favorite-user-card > span { display: grid; min-width: 0; gap: 3px; }
.auth-favorite-user-card small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.auth-favorite-user-card .auth-favorite-contribution-count { color: var(--copper); font-weight: 700; }
.auth-favorites-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.auth-favorites-page-link { color: var(--copper); font-size: 11px; font-weight: 700; text-decoration: none; }
.auth-favorites-page-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.auth-favorites-page-link.is-disabled { color: #b8ad9d; }
.auth-favorites-page-status { color: var(--muted); font-family: var(--mono); font-size: 10px; }
.auth-account-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; }
.auth-account-footer p { margin: 0; color: var(--muted); font-size: 11px; }
.auth-account-card .outline-button { cursor: pointer; }
.about-inline-link { color: var(--copper); font-weight: 700; text-decoration: underline; text-decoration-color: #e6950266; text-underline-offset: 3px; }
.about-inline-link:hover { color: var(--ink); text-decoration-color: currentColor; }
.contact-closing { margin: 35px 0 4px; color: var(--copper); font: 600 24px var(--serif); }
.contact-team { margin: 0; font-weight: 700; }
.legal-page { min-height: 70vh; }
.legal-hero { max-width: 820px; margin: 0 auto; padding: 76px 0 64px; }
.legal-hero h1 { margin: 13px 0 30px; font: 600 clamp(42px, 6vw, 70px)/1 var(--serif); letter-spacing: -.05em; }
.legal-body { color: var(--muted); font-size: 16px; line-height: 1.85; }
.legal-body p { margin: 0 0 22px; }
.not-found { min-height: 70vh; display: grid; place-items: center; padding: 30px; text-align: center; }
.not-found h1 { margin: 0 0 8px; font: 600 54px var(--serif); }
.not-found p { margin: 0 0 20px; color: var(--muted); }
.state-icon { margin-bottom: 9px; color: var(--copper); font-size: 26px; }
.primary-button { display: inline-flex; border-radius: 999px; padding: 11px 18px; color: var(--cream); background: var(--copper); font-size: 12px; font-weight: 700; text-decoration: none; }
.primary-button:hover { box-shadow: 0 7px 18px #e6950233; transform: translateY(-2px); }

@media (min-width: 801px) {
  .home-song-list .row-arrow,
  .song-results-list .row-arrow,
  .artist-song-list .row-arrow,
  .artist-directory .row-arrow { display: none; }
  .auth-favorite-list-artists,
  .auth-favorite-list-users { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .auth-favorites-panel.is-two-column-songs .auth-favorite-list-songs { grid-template-columns: repeat(2, minmax(220px, 340px)); }
  .user-song-list,
  .auth-account-contribution-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-song-list .song-row,
  .auth-account-contribution-list .song-row { grid-template-columns: minmax(0, 1fr); }
  .user-song-list .song-row .row-arrow,
  .auth-account-contribution-list .song-row .row-arrow { display: none; }
  .auth-favorite-list > * { min-width: 0; }
  .home-song-list .song-meta { align-items: center; }
  .detail-song-stats { flex-wrap: nowrap; }
  .detail-song-stats .song-stats,
  .detail-song-stats .song-rating-stat { flex-wrap: nowrap; }
}

@media (max-width: 800px) {
  .header-inner, .page-main { padding-right: 18px; padding-left: 18px; }
  .header-inner { padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; row-gap: 13px; }
  .main-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    gap: 12px;
  }
  .nav-link { font-size: 12px; }
  .hero { flex-direction: column; gap: 34px; padding-top: 50px; }
  .hero > div:first-child, .hero-visual { flex: auto; width: 100%; }
  .hero-visual { min-height: 230px; }
  .home-page-title { font-size: 32px; }
  .index-page-title { font-size: clamp(30px, 7vw, 40px); line-height: 1.08; }
  .home-artists-heading h2,
  .home-lessons-heading h2 { font-size: 28px; }
  html[dir="rtl"] .hero,
  html[dir="rtl"] .community-intro .community-copy,
  html[dir="rtl"] .community-intro img { grid-column: auto; }
  html[dir="rtl"] .hero { flex-direction: column; }
  .library-grid, .song-layout { grid-template-columns: 1fr; }
  .home-song-list { grid-template-columns: 1fr; }
  .community-intro { grid-template-columns: 1fr; gap: 28px; }
  .artist-directory { grid-template-columns: 1fr; }
  .songs-toolbar .library-search,
  .artist-index-content .library-search { width: 100%; max-width: none; }
  .questions-heading { align-items: start; gap: 12px; }
  .questions-result-count { margin-bottom: 0; }
  .questions-toolbar { align-items: stretch; }
  .question-search-box { flex-basis: 100%; }
  .question-selects { width: 100%; }
  .question-select { flex: 1 1 0; min-width: 0; }
  .question-select select { flex: 1 1 auto; min-width: 0; }
  .question-detail-wrap { padding-top: 20px; }
  .question-detail-header,
  .question-body { padding-inline: 20px; }
  .contact-hero { padding-top: 52px; }
  .song-toolbar-controls { flex-wrap: wrap; }
  .song-toolbar-controls > .song-search-box { flex: 1 1 0; flex-basis: 0; }
  .song-toolbar-controls > .song-sort { flex: 0 1 220px; min-width: 0; }
  .song-toolbar-controls > .verified-filter { flex: 1 1 220px; min-width: 0; }
  .song-results-list { max-width: none; }
  .stats-band { margin-top: 24px; }
  .song-row { gap: 13px; padding: 16px 14px; }
  .song-title { font-size: 20px; }
  .song-meta { font-size: 12px; gap: 8px 12px; }
  .song-number { font-size: 12px; }
  .view-icon { width: 17px; height: 17px; }
  .artist-directory .artist-item { padding: 16px 15px; }
  .artist-directory .artist-item-name { font-size: 16px; }
  .artist-directory .artist-item-count { font-size: 13px; }
  .artist-directory .artist-mark { width: 48px; height: 48px; flex-basis: 48px; }
  .search-input { font-size: 16px; }
  .section-heading p { font-size: 13px; }
  .section-heading .result-count { font-size: 21px; }
  .account-contribution-row { align-items: stretch; flex-direction: column; gap: 12px; }
  .account-contribution-meta { justify-content: space-between; }
  .song-editor-submit-row { align-items: stretch; flex-direction: column; }
  .song-editor-actions { justify-content: stretch; }
  .song-editor-actions > * { flex: 1 1 0; justify-content: center; }
}
@media (max-width: 520px) {
  .brand-logo { width: 132px; }
  .header-actions .outline-button { display: none; }
  .language-button { padding: 8px 10px; font-size: 11px; }
  .main-nav { gap: 8px; }
  .nav-link { font-size: 11px; }
  .questions-toolbar { gap: 9px; }
  .questions-heading { grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
  .questions-heading-title { grid-column: 2; grid-row: 1; }
  .question-search-box { gap: 6px; }
  .question-search-button { padding-inline: 14px; }
  .question-selects { width: 100%; align-items: stretch; flex-direction: row; gap: 8px; }
  .question-select { min-width: 0; flex: 1 1 0; gap: 4px; }
  .question-select select { width: auto; min-width: 0; flex: 1 1 auto; padding-inline: 10px 28px; }
  html[dir="rtl"] .question-select select { padding-right: 10px; padding-left: 28px; background-position: left 10px center; }
  .question-card-link { min-height: 0; padding: 13px 14px; }
  .question-card-topline { align-items: stretch; flex-direction: column; gap: 10px; }
  .question-card-topline h2 { font-size: 20px; }
  .question-answer-count { align-self: flex-start; }
   .question-detail-header h1 { font-size: 32px; }
  .question-detail-header,
  .question-body { padding-inline: 17px; }
  .contact-hero { padding-top: 38px; }
  .contact-hero h1 { font-size: 40px; }
  .contact-form { padding: 17px; }
  .contact-form-grid { grid-template-columns: 1fr; gap: 17px; }
  .contact-form-footer { align-items: stretch; flex-direction: column; }
  .contact-form-footer .primary-button { justify-content: center; }
  .auth-links { gap: 6px; margin-inline-end: 5px; }
  .auth-links a { font-size: 10px; }
  .auth-links a + a:last-child { display: none; }
  .auth-hero { padding-top: 38px; }
  .auth-hero h1, .auth-account-page h1 { white-space: normal; }
  .auth-form { padding: 17px; }
  .auth-account-page { padding-top: 16px; }
  .auth-account-profile-hero { align-items: stretch; flex-direction: column; gap: 12px; padding-bottom: 12px; }
  .auth-account-profile-hero .auth-account-identity { align-items: center; gap: 12px; }
  .auth-account-profile-actions { align-items: flex-start; }
  .auth-account-avatar-form { justify-content: space-between; flex-wrap: wrap; }
  .auth-account-details { grid-template-columns: 1fr; gap: 10px; }
  .auth-account-detail { grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; gap: 10px; }
  .auth-account-detail dt { white-space: nowrap; }
  .auth-account-password-detail { justify-items: start; }
  .auth-account-contributions-heading { align-items: start; flex-direction: column; gap: 9px; }
  .auth-favorite-list-songs,
  .auth-favorite-list-artists,
  .auth-favorite-list-users { grid-template-columns: 1fr; }
  .auth-account-intro { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .auth-account-layout { grid-template-columns: 1fr; }
  .auth-account-section { padding: 18px; }
  .auth-favorites-panel { height: auto; }
  .auth-favorites-group { height: auto; padding: 14px; }
  .auth-favorite-list { height: auto; max-height: none; overflow: visible; padding-inline-end: 0; }
  .auth-favorite-song-card { min-height: 0; gap: 7px; padding: 14px; }
  .auth-favorite-song-link strong,
  .auth-favorite-song-artist,
  .auth-favorite-song-uploader { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
  .auth-favorite-song-stats { overflow: visible; margin-top: 0; }
  .auth-account-favorites-heading { align-items: start; flex-direction: column; gap: 8px; }
  .auth-account-footer { align-items: stretch; flex-direction: column; }
  .auth-account-footer .outline-button { width: 100%; justify-content: center; }
  .question-answer { padding: 15px; }
  .question-answer-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .detail-wrap { padding-top: 8px; }
  .detail-header { align-items: start; gap: 20px; padding: 12px 0 22px; }
  .detail-header h1 { margin: 4px 0 6px; font-size: clamp(34px, 11vw, 48px); line-height: 1.08; }
  .detail-artist { font-size: 15px; }
  .detail-meta { margin-top: 11px; font-size: 11px; line-height: 1.6; }
  .detail-meta span + span::before { display: none; }
   .detail-song-stats { gap: 7px 11px; margin-top: 9px; font-size: 12px; }
   .detail-song-stats .song-stats { gap: 7px 11px; font-size: inherit; }
  .detail-tools { gap: 7px; }
  .tool-button { padding: 10px 11px; font-size: 11px; }
  .song-layout { gap: 16px; padding-top: 18px; }
   .tab-paper { border-radius: 3px 3px 10px 10px; padding: 20px 17px 24px 25px; touch-action: pan-x pan-y; }
    .tab-paper-toolbar { align-items: flex-start; margin-top: -20px; margin-bottom: 18px; }
    .song-paper-controls { width: 100%; flex-wrap: nowrap; gap: 6px; }
   .song-chords { margin-top: -2px; margin-bottom: 20px; }
   .song-chords-heading h2 { font-size: 16px; }
   .tab-kicker { font-size: 9px; line-height: 1.5; }
    .song-zoom-control { gap: 2px; padding: 3px; }
    .song-zoom-button { width: 32px; height: 36px; border-radius: 6px; font-size: 20px; }
   .song-zoom-value { min-width: 38px; font-size: 10px; }
    .song-autoscroll-control { min-width: 0; flex: 1 1 auto; flex-wrap: nowrap; gap: 4px; padding: 3px 4px 3px 3px; }
    .song-autoscroll-button { min-width: 0; flex: 1 1 auto; padding-inline: 4px; font-size: 10px; }
    .song-autoscroll-button [data-auto-scroll-label] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .song-autoscroll-speed { flex: 0 0 auto; gap: 3px; }
    .song-autoscroll-speed input { width: 52px; }
   .song-sort > span { display: none; }
    .song-toolbar-controls > .song-sort select { width: 140px; flex-basis: 140px; }
    .song-toolbar-controls > .song-sort { flex: 0 1 130px; flex-basis: 130px; width: 135px; }
   .song-toolbar-controls > .verified-filter { flex-basis: 100%; width: 100%; }
  .tab-content { font-size: 12.5px; line-height: 1.55; }
    .raw-tab-content { width: 100%; min-width: 100%; max-width: none; margin-left: 0; overflow-x: auto; touch-action: pan-x pan-y; }
   .raw-tab-content span { white-space: inherit; }
  .tab-phrase { margin-bottom: 13px; }
  .tab-lyric-line { font-size: 14px; line-height: 1.8; }
  .hero-title { font-size: 51px; }
  .hero { padding-bottom: 24px; }
  .section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .songs-toolbar .library-search,
  .artist-index-content .library-search { width: 100%; max-width: none; }
  .song-toolbar-controls { gap: 8px; }
  .song-sort { min-width: 0; gap: 6px; }
   .song-sort select { width: 150px; flex-basis: 150px; }
  .song-sort select { padding-block: 12px; padding-inline: 12px 34px; border-radius: 9px; }
  .pagination { gap: 10px; margin-top: 22px; }
  .pagination-link { min-width: 82px; padding: 10px 11px; font-size: 11px; }
  .artist-search-fields { gap: 8px; }
  .artist-sort > span { display: none; }
  .artist-sort { min-width: 0; gap: 6px; }
  .artist-sort select { width: 124px; flex-basis: 124px; padding-block: 12px; padding-inline: 12px 34px; border-radius: 9px; }
  .song-row { grid-template-columns: 27px minmax(0, 1fr) auto; gap: 10px; padding: 15px 11px; }
  .song-title { font-size: 19px; }
  .song-meta { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 13px; }
  .song-stats { align-items: flex-start; gap: 7px 11px; margin-top: 9px; font-size: 12px; }
  .song-stat + .song-stat::before { inset-inline-start: -7px; }
  .home-song-list .song-meta,
  .home-song-list .song-meta > span { font-size: 13px; }
  .home-song-list .song-artist-link { font-size: 13px; }
  .home-song-artist { gap: 6px; }
  .home-song-artist .artist-mark { width: 23px; height: 23px; flex-basis: 23px; }
  .home-song-list .song-row.song-row-no-number {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 10px;
    padding: 17px 3px;
  }
  .home-song-list .song-row.song-row-no-number > span:first-child {
    display: block;
    min-width: 0;
  }
  .home-song-list .song-row.song-row-no-number > .row-arrow {
    position: static;
    transform: none;
  }
  .home-song-list .song-stats {
    flex-wrap: nowrap;
    gap: 7px 9px;
    white-space: nowrap;
  }
  .home-library-heading h2 { font-size: 28px; }
  .home-library-count { font-size: 13px; }
  .home-library-count strong { font-size: 24px; }
  .home-library-see-all { font-size: 13px; }
  .home-library-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px;
  }
  .home-library-title { display: contents; }
  .home-library-heading h2 { grid-column: 1; grid-row: 1; align-self: start; }
  .home-library-counts { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .home-library-see-all { grid-column: 2; grid-row: 1; align-self: start; }
  .home-song-list { margin-top: 24px; }
  .stats-band { display: grid; grid-template-columns: 1fr; gap: 16px; }
  .stat { padding: 0; }
  .stat + .stat { border-inline-start: 0; border-top: 1px solid var(--line); padding: 16px 0 0; }
  .stat { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 20px; }
  .stat-value { font-size: 26px; }
  .detail-header { align-items: start; flex-direction: column; }
  .detail-header h1 .song-version-tag { margin-inline-start: 5px; }
  .detail-tools { width: 100%; }
  .tool-button, .favorite-button { flex: 1; justify-content: center; }
  .song-layout { gap: 20px; padding-top: 22px; }
  .detail-aside { grid-template-columns: 1fr 1fr; }
  .tab-paper { padding: 25px 18px 25px 26px; }
   .tab-paper-toolbar { margin-top: 4px; margin-bottom: 10px; }
  .tab-content { font-size: 14px; }
  .comments-section { margin-top: 28px; padding-top: 22px; }
  .comments-heading h2 { font-size: 32px; }
  .comment-card { padding: 15px; }
  .song-versions { margin-top: 20px; padding: 17px; }
  .versions-heading { align-items: start; flex-direction: column; gap: 7px; }
  .versions-heading > span { max-width: none; }
  .version-list { grid-template-columns: 1fr; }
  .comment-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
   .community-form-shell { padding: 17px; }
   .community-form-footer { align-items: flex-start; flex-direction: column; }
   .community-form-footer .primary-button { width: 100%; justify-content: center; }
   .auth-community-grid { grid-template-columns: 1fr; }
   .auth-community-tabs { flex-wrap: nowrap; gap: 0; }
   .auth-community-tab { flex: 1 1 0; min-width: 0; justify-content: center; gap: 4px; padding: 10px 4px; font-size: 11px; white-space: nowrap; }
   .auth-community-tab strong { min-width: 19px; height: 19px; font-size: 9px; }
   .auth-community-list-comments { grid-template-columns: 1fr; }
   .auth-community-list-ratings { grid-template-columns: 1fr; }
   .auth-community-item-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .artist-back-link { margin-top: 20px; }
  .artist-hero { padding-top: 25px; }
  .artist-mark-large { width: 66px; height: 66px; flex-basis: 66px; }
  .user-profile-page { padding-top: 20px; }
  .user-profile-personal { align-items: start; gap: 16px; padding-bottom: 28px; }
  .user-profile-photo { width: 92px; height: 92px; }
  .user-profile-personal-content h1 { font-size: 32px; }
  .user-profile-name { font-size: 16px; }
  .user-profile-contributions { padding-top: 24px; }
  .user-profile-contributions-heading { align-items: start; flex-direction: column; gap: 12px; }
  .user-profile-favorites { padding-top: 32px; }
  .user-song-sort { width: 100%; }
  .user-song-sort .song-sort { justify-content: space-between; }
  .user-song-sort .song-sort select { width: 170px; flex-basis: 170px; }
  .footer { align-items: flex-start; flex-direction: column; padding-right: 18px; padding-left: 18px; }
}

html[dir="rtl"] .search-icon { right: 18px; left: auto; }
html[dir="rtl"] .search-input { padding-right: 49px; padding-left: 18px; }
html[dir="rtl"] .hero,
html[dir="rtl"] .library-grid,
html[dir="rtl"] .song-layout { direction: ltr; }
html[dir="rtl"] .hero { flex-direction: row-reverse; align-items: center; }
html[dir="rtl"] .hero > div:first-child,
html[dir="rtl"] .library-section,
html[dir="rtl"] .library-grid > div,
html[dir="rtl"] .artists-card,
html[dir="rtl"] .detail-header,
html[dir="rtl"] .artist-hero,
html[dir="rtl"] .artist-songs { direction: rtl; text-align: right; }
html[dir="rtl"] .hero > div:first-child { grid-column: 2; }
html[dir="rtl"] .hero-visual { grid-column: 1; }
html[dir="rtl"] .hero-visual { direction: ltr; }
html[dir="rtl"] .community-intro { direction: ltr; }
html[dir="rtl"] .community-intro .community-copy { grid-column: 2; direction: rtl; text-align: right; }
html[dir="rtl"] .community-intro img { grid-column: 1; }

@media (max-width: 800px) {
  html[dir="rtl"] .hero { flex-direction: column; align-items: stretch; }
}
html[dir="rtl"] .song-row { direction: rtl; }
html[dir="rtl"] .row-arrow { direction: rtl; }
html[dir="rtl"] .row-arrow-label { direction: rtl; }
html[dir="rtl"] .tab-chords { direction: ltr; justify-content: flex-start; }
html[dir="rtl"] .song-layout { direction: rtl; }
html[dir="rtl"] .tab-paper { direction: rtl; }
html[dir="rtl"] .tab-content:not(.raw-tab-content),
html[dir="rtl"] .tab-phrase,
html[dir="rtl"] .tab-lyrics,
html[dir="rtl"] .tab-plain { direction: rtl; text-align: right; }
html[dir="rtl"] .back-link { direction: rtl; }
html[dir="rtl"] .comment-replies { padding-right: 32px; padding-left: 0; }
html[dir="ltr"] .comment-replies { padding-left: 32px; padding-right: 0; }

.songs-toolbar { align-items: end; }
.songs-add-button { flex: 0 0 auto; align-items: center; gap: 9px; white-space: nowrap; background: var(--copper); color: #fff; box-shadow: 0 7px 18px #c8755e33; font-weight: 800; }
.songs-add-button:hover { background: #a94f3e; color: #fff; box-shadow: 0 9px 22px #c8755e55; transform: translateY(-1px); }
.songs-add-button-icon { display: inline-grid; place-items: center; width: 21px; height: 21px; border: 1px solid #ffffff99; border-radius: 50%; color: #fff; font-size: 18px; font-weight: 500; line-height: 1; }
.song-editor-page,
.admin-song-page { max-width: 1240px; padding-top: 34px; padding-bottom: 80px; }
.song-editor-hero { max-width: 760px; margin-bottom: 24px; }
.song-editor-hero h1 { margin: 8px 0 10px; color: var(--ink); font: 600 clamp(34px, 5vw, 58px)/1.02 var(--serif); letter-spacing: -.045em; }
.song-editor-hero > p:last-child { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.song-editor-status { margin: 0 0 20px; border: 1px solid var(--copper-soft); border-radius: 10px; padding: 13px 16px; color: var(--ink); background: #fff8e9; font-size: 13px; line-height: 1.6; }
.song-editor-status.is-success { border-color: #94c9a5; background: #f1fbf3; }
.song-editor-review-note { margin: 0 0 20px; border: 1px solid #d79b8e; border-radius: 10px; padding: 13px 16px; color: var(--ink); background: #fff4f1; font-size: 13px; line-height: 1.6; }
.song-editor-review-note p { margin: 6px 0 0; white-space: pre-wrap; }
.song-editor-status.is-error { border-color: #d79b8e; background: #fff4f1; }
.song-instructions-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 24px; }
.song-instructions-card { border: 1px solid var(--line); border-radius: 13px; padding: 20px; background: var(--paper-card); }
.song-instructions-card h2 { margin: 0 0 9px; color: var(--ink); font: 600 24px/1.15 var(--serif); }
.song-instructions-card p { margin: 0 0 11px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.song-instructions-card ul { display: grid; gap: 8px; margin: 0 0 13px; padding-inline-start: 20px; color: var(--ink); font-size: 13px; line-height: 1.7; }
.song-instructions-template { margin-bottom: 0 !important; }
.song-instructions-template a { color: var(--copper); font-weight: 700; text-decoration: none; }
.song-instructions-template a:hover { text-decoration: underline; text-underline-offset: 3px; }
.song-submission-form { display: grid; gap: 22px; }
.song-editor-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; border: 1px solid var(--line); border-radius: 13px; padding: 20px; background: #fcfaf580; }
.song-editor-field { display: grid; gap: 7px; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.song-editor-field input:not([type="checkbox"]),
.song-editor-field select { width: 100%; min-height: 43px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--ink); background: var(--cream); font: 14px var(--sans); }
.song-editor-field select.is-new-artist,
.song-editor-field select option[value="new"] { color: var(--copper); font-weight: 800; }
.song-editor-field input:focus,
.song-editor-field select:focus,
.song-editor-surface:focus { border-color: var(--copper); outline: 2px solid #e6950233; outline-offset: 1px; }
.song-new-artist-fields { display: contents; }
.song-new-artist-fields[hidden] { display: none; }
.song-new-artist-hint { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.5; }
.song-type-field { max-width: none; border: 0; margin: 0; padding: 0; }
.song-type-field legend { padding: 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.song-type-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 7px; }
.song-type-options label { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 12px; cursor: pointer; }
.song-type-options label:hover { color: var(--copper); }
.song-type-options input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 3px; accent-color: var(--copper); }
.song-editor-language-tabs { display: flex; gap: 7px; margin-bottom: 9px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.song-editor-language-tab { border: 1px solid transparent; border-radius: 999px; padding: 9px 15px; color: var(--muted); background: transparent; font: 700 12px var(--sans); cursor: pointer; }
.song-editor-language-tab:hover { color: var(--ink); background: var(--cream); }
.song-editor-language-tab.is-active { border-color: var(--copper-soft); color: var(--ink); background: #fff8e9; }
.song-editor-language-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.song-editor-panel { min-width: 0; border: 1px solid var(--line); border-radius: 13px; padding: 17px; background: var(--paper-card); }
.song-editor-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.song-editor-panel-heading h2 { margin: 0; color: var(--ink); font: 600 22px/1.2 var(--serif); }
.song-editor-copy-button { flex: 0 0 auto; font-size: 11px; }
.song-editor-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: var(--cream); }
.song-editor-toolbar button,
.song-editor-toolbar select { min-height: 31px; border: 1px solid #d8cdbd; border-radius: 5px; padding: 4px 8px; color: var(--ink); background: var(--paper-card); font: 700 12px var(--sans); cursor: pointer; }
.song-editor-toolbar button:hover,
.song-editor-toolbar select:hover { border-color: var(--copper); }
.song-editor-toolbar select { font-weight: 500; }
.song-editor-toolbar-divider { width: 1px; height: 20px; margin: 0 2px; background: var(--line); }
.song-editor-alignment-controls { display: inline-flex; align-items: center; gap: 5px; direction: ltr; }
.song-editor-align-left { order: 1; }
.song-editor-align-center { order: 2; }
.song-editor-align-right { order: 3; }
.song-editor-surface { min-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 16px; color: var(--ink); background: #fffdf9; font: 15px/1.65 "Courier New", Courier, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.song-editor-surface p,
.song-editor-surface div { margin: 0; min-height: 1.65em; }
.song-editor-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.song-editor-submit-row p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.song-editor-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: end; gap: 9px; }
.song-editor-actions .primary-button:disabled { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; }
.song-editor-delete-form { margin: 0; }
.admin-song-review-list { display: grid; gap: 18px; }
.admin-song-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.admin-song-tabs a { display: inline-flex; align-items: center; gap: 7px; border: 1px solid transparent; border-radius: 999px; padding: 9px 14px; color: var(--muted); font-size: 12px; font-weight: 700; text-decoration: none; }
.admin-song-tabs a:hover { color: var(--ink); background: var(--cream); }
.admin-song-tabs a.is-active { border-color: var(--copper-soft); color: var(--ink); background: #fff8e9; }
.admin-song-tabs span { min-width: 20px; border-radius: 999px; padding: 2px 6px; color: var(--copper); background: #fff1cf; text-align: center; font-size: 10px; }
.admin-song-review-card { border: 1px solid var(--line); border-radius: 13px; padding: 20px; background: var(--paper-card); }
.admin-song-review-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 15px; }
.admin-song-review-heading h2 { margin: 5px 0; color: var(--ink); font: 600 27px/1.15 var(--serif); }
.admin-song-review-english-name { margin: 0 0 6px; color: var(--ink); font-size: 15px; }
.admin-song-review-name-label { color: var(--muted); font-size: 11px; font-weight: 700; }
.admin-song-review-heading p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.admin-song-review-heading .admin-song-review-type { margin-top: 6px; color: var(--copper); font-weight: 700; }
.admin-song-review-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-song-review-actions form { margin: 0; }
.admin-song-review-state { color: #8b3028; font-size: 12px; font-weight: 700; }
.admin-song-reject-form { display: grid; min-width: min(100%, 280px); gap: 7px; }
.admin-song-reject-form label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }
.admin-song-reject-form textarea { min-height: 68px; resize: vertical; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; color: var(--ink); background: #fffdf9; font: 12px/1.5 var(--sans); }
.admin-song-reject-form textarea:focus { border-color: var(--copper); outline: 2px solid #e6950233; outline-offset: 1px; }
.admin-song-review-note { margin: 16px 0 0; border-inline-start: 3px solid #c8755e; padding: 11px 13px; color: var(--ink); background: #fff4f1; }
.admin-song-review-note strong { font-size: 11px; }
.admin-song-review-note p { margin: 5px 0 0; white-space: pre-wrap; font-size: 13px; line-height: 1.6; }
.admin-song-review-language-tabs { display: flex; gap: 7px; margin-top: 17px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.admin-song-review-language-tab { border: 1px solid transparent; border-radius: 999px; padding: 8px 14px; color: var(--muted); background: transparent; font: 700 12px var(--sans); cursor: pointer; }
.admin-song-review-language-tab:hover { color: var(--ink); background: var(--cream); }
.admin-song-review-language-tab.is-active { border-color: var(--copper-soft); color: var(--ink); background: #fff8e9; }
.admin-song-review-content { display: block; padding-top: 16px; }
.admin-song-review-content section { min-width: 0; }
.admin-song-review-content h3 { margin: 0 0 7px; color: var(--muted); font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: .08em; }
.admin-song-review-paper { min-height: 180px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; padding: 15px; background: #fffdf9; font: 14px/1.65 "Courier New", Courier, monospace; white-space: pre-wrap; }
.admin-song-review-paper p,
.admin-song-review-paper div { margin: 0; min-height: 1.65em; }
.user-profile-admin-link { display: block; width: fit-content; margin-top: 12px; color: var(--copper); font-size: 12px; font-weight: 700; text-decoration: none; }
.user-profile-admin-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 800px) {
  .songs-page-heading { align-items: stretch; flex-direction: column; gap: 14px; }
  .songs-toolbar { align-items: stretch; flex-direction: column; }
  .songs-add-button { width: 100%; justify-content: center; }
  .song-instructions-grid,
  .song-editor-language-grid,
  .admin-song-review-content { grid-template-columns: 1fr; }
  .song-editor-details { grid-template-columns: 1fr; }
  .song-type-field { max-width: none; }
  .admin-song-review-heading { flex-direction: column; }
  .admin-song-review-actions { width: 100%; }
  .admin-song-review-actions form,
  .admin-song-review-actions button { flex: 1; }
  .song-editor-submit-row { align-items: stretch; flex-direction: column; }
  .song-editor-submit-row .primary-button { justify-content: center; }
}

@media (max-width: 520px) {
  html[dir="rtl"] .tab-paper { padding-right: 25px; padding-left: 17px; }
  html[dir="rtl"] .detail-meta span + span::before { display: none; }
  .songs-page-heading { align-items: center; flex-direction: row; gap: 12px; }
  .songs-page-heading .index-page-title { min-width: 0; flex: 1 1 auto; }
  .songs-page-heading .songs-add-button { width: auto; flex: 0 0 auto; justify-content: center; padding-inline: 12px; white-space: nowrap; }
}

@media (hover: none), (pointer: coarse) {
  .song-row:hover {
    border-color: #ddd5c7;
    transform: none;
    box-shadow: none;
  }
  .home-song-list .song-row:hover {
    border-color: var(--line);
    background: transparent;
  }
  .artist-directory .artist-item:hover {
    border-color: var(--line);
    transform: none;
  }
  .artist-item:hover .artist-item-name { color: inherit; }
  .home-artist-slide:hover {
    border-color: var(--line);
    box-shadow: none;
    transform: none;
  }
  .song-row:hover .card-favorite-indicator-icon path,
  .artist-item:hover .card-favorite-indicator-icon path,
  .home-artist-slide:hover .card-favorite-indicator-icon path { fill: currentColor; }
}