:root {
  --reader-green: #173b2e;
  --reader-green-light: #245440;
  --reader-ink: #27352c;
  --reader-muted: #657168;
  --reader-line: #e4e2d8;
  --reader-paper: #faf8f1;
  --reader-card: rgba(255, 254, 250, 0.92);
  --reader-gold: #c29135;
  --reader-gold-soft: #f4e9cc;
}

[hidden] {
  display: none !important;
}

html {
  background: #f1efe5;
  scroll-behavior: smooth;
}

body.reader-app {
  color: var(--reader-ink);
  background:
    radial-gradient(ellipse at 78% 8%, rgba(213, 194, 146, 0.16), transparent 36rem),
    linear-gradient(180deg, #f9f8f2 0%, #f1efe6 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.reader-header {
  gap: clamp(0.8rem, 2.2vw, 2rem);
  min-height: 4.8rem;
  padding: 0.65rem clamp(1rem, 4.8vw, 4.5rem);
  background: rgba(250, 249, 242, 0.93);
  border-bottom-color: rgba(23, 59, 46, 0.11);
}

.reader-header .brand {
  gap: 0.55rem;
}

.reader-header .brand-icon {
  width: 2.45rem;
  height: 2.45rem;
}

.reader-header .brand-wordmark {
  width: clamp(8.5rem, 13vw, 10.8rem);
}

.reader-header nav {
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: clamp(0.45rem, 1.35vw, 1.25rem);
  color: #405047;
  font-size: 0.9rem;
  font-weight: 650;
}

.reader-header nav a {
  min-height: 2.65rem;
  padding: 0 0.28rem;
  white-space: nowrap;
}

.reader-header nav a[aria-current="page"]:not(.nav-cta) {
  color: var(--reader-green);
  text-decoration-color: var(--reader-gold);
}

.reader-header .nav-cta {
  min-height: 2.6rem;
  margin-left: 0.2rem;
  padding-inline: 1rem;
  color: #fffef8;
  background: var(--reader-green);
  border-color: var(--reader-green);
  border-radius: 999px;
  box-shadow: 0 5px 14px rgba(23, 59, 46, 0.13);
  font-size: 0.84rem;
  font-weight: 700;
}

.reader-header .nav-cta:hover {
  background: var(--reader-green-light);
  filter: none;
}

.reader-main {
  width: min(100% - 2rem, 67rem);
  margin: 0 auto;
  padding: clamp(1.2rem, 2.8vw, 2rem) 0 3rem;
  overflow: visible;
}

.workspace-heading {
  max-width: 49rem;
  margin: 0 auto 1.15rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: #8a6927;
  font-size: 0.75rem;
  font-weight: 760;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
}

.workspace-heading h1 {
  margin: 0;
  color: var(--reader-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.95rem, 3.8vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.07;
}

.workspace-heading > p:last-child {
  max-width: 42rem;
  margin: 0.55rem auto 0;
  color: var(--reader-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.app-status,
.reader-loading,
.media-status {
  min-height: 0;
  margin: 0.35rem 0 0.65rem;
  color: var(--reader-muted);
  font-size: 0.9rem;
}

.app-status:not(:empty) {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  text-align: center;
}

.app-status:empty {
  display: none;
}

.panel,
.reading-card,
.moment-card {
  border: 1px solid rgba(61, 75, 61, 0.12);
  border-radius: 1.1rem;
  background: var(--reader-card);
  box-shadow: 0 18px 50px rgba(54, 50, 35, 0.055);
}

.reader-controls {
  display: block;
  margin-bottom: 0.7rem;
  padding: 0.45rem 0.75rem;
}

.passage-tools-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem 0.7rem;
  min-height: 2.75rem;
  cursor: pointer;
  list-style: none;
  color: #425046;
  font-size: 0.84rem;
}

.passage-tools-summary::-webkit-details-marker {
  display: none;
}

.passage-tools-summary::after {
  content: "⌄";
  margin-left: auto;
  color: var(--reader-green);
  font-size: 1.15rem;
  font-weight: 700;
}

.passage-tools[open] > .passage-tools-summary::after {
  content: "⌃";
}

.passage-tools-summary:focus-visible {
  outline: 3px solid #8fb49b;
  outline-offset: 2px;
  border-radius: 0.3rem;
}

.passage-tools-label {
  font-weight: 700;
}

.passage-tools-summary strong {
  color: var(--reader-green);
}

.passage-tools-hint {
  color: var(--reader-muted);
  font-size: 0.72rem;
}

.passage-tool-fields {
  display: grid;
  grid-template-columns: minmax(16rem, 0.9fr) minmax(30rem, 1.35fr);
  align-items: end;
  gap: 1rem;
  padding: 0 0 0.35rem;
}

.reader-controls label,
.save-verse-form label {
  display: grid;
  gap: 0.48rem;
  color: #425046;
  font-size: 0.79rem;
  font-weight: 700;
}

.passage-search,
.chapter-selectors {
  min-width: 0;
}

.input-action-row {
  display: flex;
  gap: 0.55rem;
}

.input-action-row input,
.chapter-selectors select,
.save-verse-form textarea {
  width: 100%;
  min-width: 0;
  color: var(--reader-ink);
  background: #fffefa;
  border: 1px solid #d8d9ce;
  border-radius: 0.65rem;
  font: inherit;
  font-size: 0.92rem;
}

.input-action-row input,
.chapter-selectors select {
  min-height: 2.85rem;
  padding: 0.55rem 0.72rem;
}

.chapter-selectors {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) minmax(6rem, 0.58fr) minmax(6rem, 0.58fr) auto;
  align-items: end;
  gap: 0.58rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.15;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.button-dark {
  flex: 0 0 auto;
  color: #fffef9;
  background: var(--reader-green);
  border-color: var(--reader-green);
}

.button-dark:hover {
  background: var(--reader-green-light);
}

.button-outline {
  color: var(--reader-green);
  background: #fffefa;
  border-color: #cbd2c9;
}

.button-outline:hover,
.button-quiet:hover {
  background: #f1f4ee;
  border-color: #a9b9ac;
}

.button-quiet {
  min-height: 2.6rem;
  color: #415347;
  background: transparent;
  border-color: transparent;
}

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

.field-error,
.notice-error {
  color: #833d2d;
  font-size: 0.84rem;
  line-height: 1.5;
}

.field-error {
  margin: 0.45rem 0 0;
}

.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
}

.notice-error {
  color: #6d3025;
  background: #fbefeb;
  border: 1px solid #efd2c8;
}

.notice p {
  margin: 0;
}

.reading-card {
  overflow: hidden;
  border-radius: 1.35rem;
}

.reading-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.35rem, 4vw, 2.25rem) clamp(1.3rem, 5vw, 3.5rem) 1.05rem;
  border-bottom: 1px solid rgba(61, 75, 61, 0.09);
}

.translation-label {
  margin: 0 0 0.52rem;
  color: #776944;
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.reading-card-head h2,
.section-intro h2 {
  margin: 0;
  color: var(--reader-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.95rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.reading-subtitle {
  margin: 0.52rem 0 0;
  color: var(--reader-muted);
  font-size: 0.92rem;
}

.translation-badge {
  flex: 0 0 auto;
  padding: 0.4rem 0.62rem;
  color: #6c5523;
  background: #f5edda;
  border: 1px solid #eadbb7;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.07em;
}

.reading-body {
  min-height: 22rem;
  padding: clamp(1.35rem, 4vw, 2.8rem) clamp(1.4rem, 7.5vw, 5.4rem) 2.6rem;
  background:
    linear-gradient(90deg, transparent, rgba(235, 229, 210, 0.2) 50%, transparent),
    var(--reader-paper);
}

.scripture-copy {
  max-width: 48rem;
  margin: 0 auto;
  color: #343a32;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.17rem, 2vw, 1.36rem);
  font-weight: 400;
  line-height: 1.95;
}

.scripture-copy p {
  margin: 0;
  text-indent: 1.1rem;
}

.scripture-copy p + p {
  margin-top: 0.5rem;
}

.scripture-placeholder {
  color: #858779;
  text-indent: 0 !important;
}

.verse {
  display: inline;
  max-width: 100%;
  min-height: 0;
  padding: 0 0.015em 0.02em;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0.28em;
  box-shadow: none !important;
  cursor: pointer;
  font: inherit;
  line-height: inherit;
  text-align: left;
  text-decoration: none;
  text-indent: 0;
  white-space: normal;
  transition: background-color 110ms ease;
}

.verse:hover {
  background: rgba(224, 211, 174, 0.38);
}

.verse[aria-pressed="true"] {
  background: #f0dfae;
  box-shadow: none !important;
}

.verse-number {
  margin-right: 0.18em;
  color: #8a713d;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.57em;
  font-weight: 700;
  vertical-align: super;
}

.reading-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem clamp(0.8rem, 3vw, 2rem);
  border-top: 1px solid rgba(61, 75, 61, 0.1);
}

.reading-footer .button:last-child {
  justify-self: end;
}

.chapter-position {
  margin: 0;
  color: #69746a;
  font-size: 0.75rem;
  text-align: center;
}

.selected-verse-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.9fr);
  gap: 1.5rem;
  padding: 1.4rem clamp(1.3rem, 5vw, 3.5rem) 1.65rem;
  background: #f8f2df;
  border-top: 1px solid #eadcb9;
}

.selected-verse-copy h3 {
  margin: 0;
  color: var(--reader-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 500;
}

.selected-verse-copy blockquote {
  margin: 0.7rem 0 0;
  color: #43483f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.03rem;
  line-height: 1.65;
}

.save-verse-form label span {
  color: #788078;
  font-size: 0.75rem;
  font-weight: 500;
}

.save-verse-form textarea {
  resize: vertical;
  min-height: 5rem;
  padding: 0.7rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.save-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.65rem;
}

.save-status {
  margin: 0;
  color: var(--reader-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.text-credit {
  margin: 0.95rem 0 0;
  color: #73786e;
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

.text-credit a,
.site-footer a {
  color: #345c43;
  text-decoration: underline;
  text-decoration-color: rgba(52, 92, 67, 0.4);
  text-underline-offset: 0.2em;
}

.secondary-route {
  min-height: 28rem;
}

.section-intro {
  max-width: 43rem;
  margin: 0 auto 1.8rem;
  text-align: center;
}

.section-intro > p:last-child {
  margin: 0.8rem auto 0;
  color: var(--reader-muted);
  line-height: 1.65;
}

.media-panel {
  max-width: 54rem;
  margin: 0 auto;
  padding: clamp(1.1rem, 3.4vw, 2rem);
}

.media-filter {
  display: inline-flex;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  padding: 0.25rem;
  background: #f0f0e9;
  border-radius: 999px;
}

.media-search-label {
  display: grid;
  gap: 0.45rem;
  max-width: 22rem;
  margin-bottom: 0.9rem;
  color: #425046;
  font-size: 0.78rem;
  font-weight: 700;
}

.media-search-label input {
  min-height: 2.65rem;
  padding: 0.55rem 0.7rem;
  color: var(--reader-ink);
  background: #fffefa;
  border: 1px solid #d8d9ce;
  border-radius: 0.65rem;
  font: inherit;
  font-size: 0.88rem;
}

.filter-button {
  min-height: 2.35rem;
  padding: 0 0.9rem;
  color: #5a655b;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
}

.filter-button.is-selected {
  color: var(--reader-green);
  background: #fffefa;
  box-shadow: 0 1px 4px rgba(45, 56, 43, 0.12);
}

.media-status {
  margin: 0.8rem 0;
}

.media-rights-note {
  margin: 0.45rem 0 0.9rem;
  color: #82857d;
  font-size: 0.75rem;
  line-height: 1.5;
}

.app-companion-link {
  margin: 1rem 0 0;
  color: #777e74;
  font-size: 0.79rem;
}

.app-companion-link a {
  color: #345c43;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(52, 92, 67, 0.4);
  text-underline-offset: 0.2em;
}

.track-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.track-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  padding: 0.95rem 0;
  border-top: 1px solid var(--reader-line);
  flex-wrap: wrap;
}

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

.track-copy strong,
.track-copy span {
  display: block;
  overflow-wrap: anywhere;
}

.track-copy strong {
  color: #334238;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.13rem;
  font-weight: 500;
}

.track-copy span {
  margin-top: 0.25rem;
  color: var(--reader-muted);
  font-size: 0.79rem;
}

.track-row.is-playing strong {
  color: #82611e;
}

.track-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.track-transcript {
  flex: 1 0 100%;
  color: #566257;
  font-size: 0.78rem;
}

.track-transcript summary {
  width: fit-content;
  min-height: 2.15rem;
  padding: 0.5rem 0;
  color: #426349;
  cursor: pointer;
  font-weight: 650;
}

.track-transcript summary[aria-disabled="true"] {
  color: #7c8178;
  cursor: default;
  list-style: none;
}

.track-transcript summary[aria-disabled="true"]::-webkit-details-marker {
  display: none;
}

.transcript-copy {
  max-width: 64ch;
  margin: 0.2rem 0 0.4rem;
  padding: 0.8rem 0.9rem;
  color: #4c554c;
  background: #f8f7f0;
  border-left: 2px solid #d1b36d;
  border-radius: 0.15rem 0.5rem 0.5rem 0.15rem;
  line-height: 1.6;
}

.results-count {
  margin: 0 0 0.3rem;
  color: #7b8076;
  font-size: 0.73rem;
}

.load-more-button {
  display: flex;
  width: 100%;
  margin-top: 0.75rem;
}

.empty-note {
  margin: 1rem 0 0;
  padding: 1rem;
  color: #5e685e;
  background: #f7f6ee;
  border: 1px dashed #d6d9ce;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.moments-list {
  display: grid;
  gap: 0.9rem;
  max-width: 54rem;
  margin: 0 auto;
}

.moment-card {
  padding: 1.25rem 1.4rem;
}

.moment-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.moment-card h3 {
  margin: 0;
  color: var(--reader-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 500;
}

.moment-date {
  margin: 0;
  color: #82857d;
  font-size: 0.75rem;
}

.moment-scripture {
  margin: 0.65rem 0 0;
  color: #454a42;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  line-height: 1.65;
}

.moment-note {
  margin: 0.8rem 0 0;
  padding: 0.75rem 0 0 0.9rem;
  color: #666a61;
  border-left: 2px solid #d1b36d;
  line-height: 1.6;
  white-space: pre-wrap;
}

.moment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.moment-actions .button {
  min-height: 2.45rem;
  font-size: 0.78rem;
}

.shared-player {
  display: grid;
  grid-template-columns: minmax(12rem, 0.8fr) minmax(16rem, 1.2fr);
  align-items: center;
  gap: 1.6rem;
  padding: 0.75rem max(1rem, calc((100vw - 67rem) / 2));
  background: rgba(250, 249, 242, 0.96);
  border-top: 1px solid rgba(23, 59, 46, 0.13);
}

.player-context .eyebrow {
  margin-bottom: 0.22rem;
  font-size: 0.62rem;
}

.player-context p:last-child {
  margin: 0;
  color: #506055;
  font-size: 0.83rem;
}

.shared-player audio {
  width: 100%;
  min-height: 2.6rem;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem 1.2rem;
  padding: 2rem clamp(1rem, 5vw, 4.5rem) 2.4rem;
  color: #6e766d;
  background: #f7f5ec;
  border-top: 1px solid rgba(23, 59, 46, 0.08);
  font-size: 0.78rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--reader-green);
  font-weight: 750;
}

.footer-brand img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.site-footer > p {
  margin: 0;
}

.site-footer .footer-links {
  grid-column: 1 / -1;
  gap: 0.65rem 1.15rem;
}

.site-footer .footer-links a {
  min-height: 2rem;
  padding: 0.35rem 0;
}

.no-script-note {
  padding: 1rem;
  color: #68482c;
  background: #f5edda;
  border-radius: 0.7rem;
}

.app-status[hidden] {
  display: none !important;
}

.reader-app.has-active-audio {
  padding-bottom: 5.7rem;
}

.reader-app.has-active-audio .shared-player {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  box-shadow: 0 -8px 28px rgba(30, 43, 33, 0.08);
  backdrop-filter: blur(16px);
}

.media-subheading {
  margin: 1.4rem 0 0.8rem;
  color: var(--reader-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.album-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  background: #fffefa;
  border: 1px solid rgba(23, 59, 46, 0.12);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(39, 50, 38, 0.055);
}

.album-card-artwork {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #e9e7dc;
}

.album-art-placeholder {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  color: #f1e1ba;
  background: linear-gradient(145deg, #173b2e, #315945 58%, #735f35);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: 0.08em;
}

.album-card-art-placeholder {
  width: 100%;
}

.album-card-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem;
}

.album-card-copy .eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.62rem;
}

.album-card-copy h3 {
  margin: 0;
  color: #334238;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.album-card-meta,
.album-detail-artist,
.album-detail-count {
  margin: 0.45rem 0 0;
  color: var(--reader-muted);
  font-size: 0.77rem;
  line-height: 1.5;
}

.album-card-actions {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.9rem;
}

.album-card-actions .button,
.album-detail-copy .button,
.player-controls > .button {
  min-height: 2.55rem;
  padding-inline: 0.72rem;
  font-size: 0.75rem;
}

.album-back {
  margin-bottom: 1.2rem;
}

.album-detail-head {
  display: grid;
  grid-template-columns: minmax(9rem, 0.34fr) minmax(0, 0.66fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 2rem);
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--reader-line);
}

.album-detail-artwork {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.85rem;
  object-fit: cover;
  background: #e9e7dc;
  box-shadow: 0 12px 28px rgba(39, 50, 38, 0.12);
}

.album-detail-art-placeholder {
  width: 100%;
  border-radius: 0.85rem;
  box-shadow: 0 12px 28px rgba(39, 50, 38, 0.12);
}

.album-detail-copy .eyebrow {
  margin: 0 0 0.4rem;
}

.album-detail-copy h2 {
  margin: 0;
  color: var(--reader-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 4vw, 2.2rem);
  font-weight: 500;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.album-detail-copy .button {
  margin-top: 1rem;
}

.album-track-list {
  counter-reset: album-track;
}

.album-track-row {
  counter-increment: album-track;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.25rem 0.75rem;
}

.album-track-row::before {
  content: attr(data-track-index);
  color: #899087;
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.album-track-row .track-controls {
  grid-column: 3;
  grid-row: 1;
}

.player-track-context {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.player-artwork {
  display: block;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.45rem;
  object-fit: cover;
  background: #e9e7dc;
}

.player-controls {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.45rem;
}

.player-controls audio {
  flex: 1 1 auto;
  min-width: 9rem;
}

.player-controls > .button:disabled {
  color: #92968e;
  background: #eeeee7;
  border-color: #e0e1d8;
  cursor: not-allowed;
}

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

  .reader-header {
    padding-inline: 1rem;
  }

  .reader-header #primary-navigation {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.3rem;
  }

  .reader-header #primary-navigation a {
    min-width: 0;
    padding-inline: 0.35rem;
    font-size: 0.82rem;
  }

  .reader-header #primary-navigation .nav-cta {
    margin-left: 0;
  }

  .passage-tool-fields {
    grid-template-columns: 1fr;
  }

  .chapter-selectors {
    grid-template-columns: minmax(8rem, 1.25fr) minmax(5.5rem, 0.7fr) minmax(5.5rem, 0.7fr) auto;
  }
}

@media (max-width: 640px) {
  .reader-main {
    width: min(100% - 1.1rem, 42rem);
    padding-top: 1rem;
    padding-bottom: 2rem;
  }

  .workspace-heading {
    margin-bottom: 0.85rem;
  }

  .workspace-heading > p:last-child {
    margin-top: 0.4rem;
    font-size: 0.84rem;
  }

  .reader-controls {
    padding: 0.35rem 0.55rem;
    border-radius: 0.9rem;
  }

  .passage-tools-summary {
    gap: 0.2rem 0.48rem;
    font-size: 0.8rem;
  }

  .passage-tools-hint {
    margin-right: auto;
  }

  .passage-tool-fields {
    gap: 0.75rem;
    padding-top: 0.45rem;
  }

  .chapter-selectors {
    grid-template-columns: 1fr 1fr;
  }

  .chapter-selectors label:first-child {
    grid-column: 1 / -1;
  }

  .chapter-selectors .button {
    grid-column: 1 / -1;
  }

  .reading-card-head {
    padding: 1.25rem 1.15rem 0.9rem;
  }

  .reading-card-head h2 {
    font-size: 2rem;
  }

  .translation-badge {
    padding: 0.32rem 0.5rem;
    font-size: 0.63rem;
  }

  .reading-body {
    min-height: 15rem;
    padding: 1.05rem 1.15rem 1.7rem;
  }

  .scripture-copy {
    font-size: 1.15rem;
    line-height: 1.87;
  }

  .reading-footer {
    grid-template-columns: 1fr 1fr;
    padding: 0.55rem 0.6rem;
  }

  .chapter-position {
    display: none;
  }

  .reading-footer .button {
    min-height: 2.55rem;
    padding-inline: 0.55rem;
    font-size: 0.78rem;
  }

  .reading-footer .button:last-child {
    grid-column: 2;
  }

  .selected-verse-card {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 1.2rem 1rem;
  }

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

  .save-actions .button {
    width: 100%;
  }

  .section-intro {
    margin-bottom: 1.25rem;
  }

  .section-intro h2 {
    font-size: 2.05rem;
  }

  .media-panel {
    padding: 1rem;
  }

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

  .album-card {
    display: grid;
    grid-template-columns: minmax(6.4rem, 0.34fr) minmax(0, 0.66fr);
    align-items: stretch;
  }

  .album-card-artwork {
    height: 100%;
    min-height: 100%;
  }

  .album-card-copy {
    padding: 0.85rem;
  }

  .album-card-actions {
    gap: 0.35rem;
  }

  .album-card-actions .button {
    flex: 1 1 auto;
    padding-inline: 0.5rem;
    font-size: 0.7rem;
  }

  .album-detail-head {
    grid-template-columns: minmax(6.5rem, 0.37fr) minmax(0, 0.63fr);
    gap: 0.9rem;
  }

  .album-track-row {
    grid-template-columns: 1.5rem minmax(0, 1fr) auto;
    gap: 0.25rem 0.45rem;
  }

  .track-row {
    align-items: flex-start;
  }

  .track-row .button {
    flex: 0 0 auto;
    min-height: 2.55rem;
    padding-inline: 0.7rem;
  }

  .moment-card {
    padding: 1rem;
  }

  .moment-card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.32rem;
  }

  .shared-player {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0.65rem 1rem 0.75rem;
  }

  .player-track-context {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .player-controls {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.35rem;
  }

  .player-controls audio {
    min-width: 0;
  }

  .player-controls #player-clear {
    grid-column: 1 / -1;
    justify-self: end;
    min-height: 2rem;
    padding: 0 0.4rem;
  }

  .album-detail-head {
    grid-template-columns: minmax(5.8rem, 0.34fr) minmax(0, 0.66fr);
  }

  .reader-app.has-active-audio {
    padding-bottom: 8rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding: 1.5rem 1rem 2rem;
  }

  .site-footer .footer-links {
    grid-column: auto;
  }
}

@media (max-width: 360px) {
  .passage-tools-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
