:root { --ink: #2b2118; --muted: #5a4a3a; --red: #b8321c; --blue: #1f5fa8; --green: #2e6b37; --sun: #ffd24d; --paper: #fffaf0; --card: #ffffff; --line: #eadfca; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 "Nunito", "Noto Sans Armenian", "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
a { color: var(--blue); }
a:hover { color: #16467c; }
.top { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--sun); }
.brand { font-weight: 800; color: var(--red); text-decoration: none; font-size: 18px; }
.brand span { display: inline-block; margin-inline-start: 8px; padding: 2px 8px; border-radius: 99px; background: #fff; color: var(--blue); font-size: 12px; vertical-align: middle; }
.top nav { font-size: 15px; }
.wrap { max-width: 860px; margin: 0 auto; padding: 16px; }
h1 { color: var(--red); margin: 8px 0 4px; font-size: 30px; line-height: 1.2; }
h2 { color: var(--green); font-size: 21px; margin: 0 0 10px; }
.crumbs { margin: 0; font-size: 15px; }
.story { font-size: 22px; font-weight: 700; color: var(--blue); margin: 0; }
.date { color: var(--muted); font-style: italic; margin: 2px 0 0; }
.player, .words, .store, .book { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin: 16px 0; }
.pic { display: block; width: 100%; max-height: 460px; object-fit: contain; border-radius: 12px; margin-bottom: 14px; background: #f4f8fb; }
audio { width: 100%; }
.speed { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; font-size: 15px; }
.speed button { min-height: 44px; min-width: 64px; border: 2px solid var(--blue); background: #fff; color: var(--blue); border-radius: 12px; font: inherit; font-weight: 700; cursor: pointer; }
.speed button.on { background: var(--blue); color: #fff; }
.speed .dl { margin-inline-start: auto; }
.hint { color: var(--muted); font-size: 15px; }
.words ol { margin: 0; padding-inline-start: 28px; columns: 2 320px; column-gap: 32px; }
.words li { break-inside: avoid; margin: 2px 0; }
.ipa { color: #6b5f8a; font-family: "Noto Sans", "Lucida Sans Unicode", "Segoe UI", Arial, sans-serif; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin: 20px 0; }
.pager a { display: inline-block; padding: 10px 0; font-weight: 700; }
.pager a:last-child { text-align: end; }
.store { background: #fff4d6; border-color: #f3d58b; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-block; padding: 12px 18px; border-radius: 14px; font-weight: 800; text-decoration: none; min-height: 44px; }
.btn.buy { background: var(--red); color: #fff; }
.btn.color { background: var(--green); color: #fff; }
.btn.look { background: var(--blue); color: #fff; }
.btn:hover { opacity: .9; color: #fff; }
.book { display: grid; grid-template-columns: 160px 1fr; gap: 18px; align-items: start; }
.cover { width: 160px; border-radius: 10px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.lessons { margin: 0; padding-inline-start: 34px; }
.lessons li { margin: 3px 0; }
.foot { text-align: center; color: var(--muted); font-size: 14px; padding: 24px 16px 32px; }
@media (max-width: 560px) {
  h1 { font-size: 25px; }
  .book { grid-template-columns: 1fr; }
  .cover { width: 140px; }
  .speed .dl { margin-inline-start: 0; }
}

.author { margin: -.4em 0 .8em; font-weight: 600; color: #6b5f8a; }
