@font-face {
  font-family: Amiri;
  src: url("/002/amiri-400.woff2") format("woff2");
  font-display: swap;
}
.lesson { max-width: 52rem; margin: auto; padding: 0 clamp(1rem, 4vw, 3rem) 3rem; }
.lesson h1 { margin: 1.5rem 0 .5rem; gap: 1rem; font-size: clamp(2.25rem, 5vw, 3.5rem); }
.arabic-title { font: .78em/1.5 Amiri, serif; color: #80623b; }
.instruction { margin: 0 0 .6rem; color: #4b5a4f; line-height: 1.5; }
.controls { display: flex; flex-wrap: wrap; gap: .5rem; position: sticky; top: 0; z-index: 1; padding: .65rem 0; background: #f5f3eb; }
button { font: inherit; cursor: pointer; }
.controls button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border-radius: .65rem; padding: .55rem .9rem; font-weight: 600; }
#play-all { background: #163d33; color: #fffdf7; border: 1px solid #163d33; }
#stop { background: #fffdf7; color: #18382f; border: 1px solid #b5bdae; }
#stop:disabled { opacity: .5; cursor: default; }
.play-icon, .lines button::before { width: 0; height: 0; border-block: .34rem solid transparent; border-left: .54rem solid currentColor; }
.stop-icon { width: .62rem; height: .62rem; background: currentColor; border-radius: 1px; }
#status { margin: .25rem 0 .75rem; font-size: .92rem; color: #4b5a4f; }
#status:empty { margin: 0; }
.lines { list-style: none; margin: .5rem 0 0; padding: 0; counter-reset: phrase; }
.lines li { counter-increment: phrase; }
.lines li:nth-child(odd) { margin-top: .75rem; }
.lines button {
  width: 100%; display: grid; grid-template-columns: 1.25rem minmax(0, 1fr) 1.25rem;
  align-items: center; gap: .5rem; padding: .6rem clamp(.65rem, 2.5vw, 1.3rem);
  background: #fffdf7; color: #18382f; border: 1px solid #d6d4c5;
  scroll-margin-top: 5rem;
}
.lines li:nth-child(odd) button { border-radius: .8rem .8rem 0 0; }
.lines li:nth-child(even) button { border-radius: 0 0 .8rem .8rem; border-top: 0; }
.lines button::before { content: ""; justify-self: center; color: #537163; }
.lines button::after { content: counter(phrase, decimal-leading-zero) / ""; font-size: .85rem; color: #5a685c; font-variant-numeric: tabular-nums; }
.lines [lang="ar"] { font: clamp(1.6rem, 4.3vw, 2.3rem)/1.85 Amiri, serif; }
.lines button:hover { background: #f0f2e7; }
.lines button[aria-current="true"] { background: #e4ecdf; box-shadow: inset 3px 0 #316451; }
.lines button[aria-pressed="true"]::before { width: .6rem; height: .6rem; border: 0; border-radius: 1px; background: #316451; }
