/* Woord voor Woord — a five-book study series. Paper and ink; each book carries its own colour. */
:root {
  --paper: #F4F5F7; --sheet: #FFFFFF; --sheet-2: #F8F9FB; --ink: #18202B; --muted: #5B6574; --line: #DCE1E8; --line-2: #EBEEF2;
  --ok: #1D7A4C; --ok-soft: #E1F2E9; --bad: #B42A31; --bad-soft: #F9E3E4;
  --b-orange: #E07A0B; --b-blue: #2D5BA8; --b-teal: #0F7C7A; --b-green: #2C8A4B; --b-red: #D44419;
  --bk: #2D5BA8; --bk-ink: #FFFFFF;
  --ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --nl: "Literata", Georgia, "Times New Roman", serif;
  --r: 10px; --wrap: 1080px; --gut: clamp(16px, 4vw, 28px);
  --shadow: 0 1px 0 rgba(24, 32, 43, .06), 0 10px 26px -18px rgba(24, 32, 43, .45);
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #10151C; --sheet: #171E27; --sheet-2: #1C2430; --ink: #E6EAF0; --muted: #9AA4B2; --line: #2A3442; --line-2: #222B37;
    --ok: #5BD08F; --ok-soft: #133426; --bad: #FF8A90; --bad-soft: #3A1A1E;
    --b-orange: #F59A35; --b-blue: #7FA6EA; --b-teal: #3CC0BC; --b-green: #5CC47F; --b-red: #F27650; --bk-ink: #10151C;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 12px 28px -18px rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #10151C; --sheet: #171E27; --sheet-2: #1C2430; --ink: #E6EAF0; --muted: #9AA4B2; --line: #2A3442; --line-2: #222B37;
  --ok: #5BD08F; --ok-soft: #133426; --bad: #FF8A90; --bad-soft: #3A1A1E;
  --b-orange: #F59A35; --b-blue: #7FA6EA; --b-teal: #3CC0BC; --b-green: #5CC47F; --b-red: #F27650; --bk-ink: #10151C;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 12px 28px -18px rgba(0, 0, 0, .9);
  color-scheme: dark;
}
.bk-orange { --bk: var(--b-orange); } .bk-blue { --bk: var(--b-blue); } .bk-teal { --bk: var(--b-teal); } .bk-green { --bk: var(--b-green); } .bk-red { --bk: var(--b-red); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.75 var(--ar); -webkit-font-smoothing: antialiased; padding-bottom: env(safe-area-inset-bottom, 0); }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
input { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--bk); outline-offset: 2px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nl { font-family: var(--nl); direction: ltr; unicode-bidi: isolate; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 99; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 8px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.empty { color: var(--muted); padding: 24px 0; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .logo { width: 36px; height: 36px; }
.brand span { display: grid; line-height: 1.2; }
.brand b { font: 700 1.08rem/1.15 var(--nl); }
.brand small { color: var(--muted); font-size: .8rem; }
.top-nav { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.navlink { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--muted); }
.navlink:hover, .navlink.on { color: var(--ink); background: var(--sheet); }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); }
.iconbtn:hover { background: var(--sheet); color: var(--ink); }

main { padding: 22px 0 80px; outline: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 10px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 1px solid var(--line); background: var(--sheet); transition: background-color .2s, border-color .2s, transform .12s; white-space: nowrap; }
.btn:hover { border-color: color-mix(in srgb, var(--bk) 45%, var(--line)); }
.btn:active { transform: translateY(1px); }
.btn.solid { background: var(--bk); border-color: var(--bk); color: var(--bk-ink); }
.btn.solid:hover { filter: brightness(1.06); }
.btn.sm { min-height: 36px; padding: 4px 12px; font-size: .92rem; }
.btn[aria-pressed="true"] { background: color-mix(in srgb, var(--bk) 14%, var(--sheet)); border-color: var(--bk); color: var(--ink); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn .ico { width: 18px; height: 18px; }
.tools { display: flex; flex-wrap: wrap; gap: 6px; }
.speak { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: color-mix(in srgb, var(--bk) 12%, var(--sheet)); color: var(--bk); flex: none; }
.speak .ico { width: 17px; height: 17px; }
.speak:hover { background: var(--bk); color: var(--bk-ink); }

/* ---------- library (home) ---------- */
.lib-h { display: grid; gap: 6px; max-width: 46ch; }
.lib-h h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.25; }
.lib-h p { color: var(--muted); font-size: 1.08rem; }
.shelf { margin-top: 30px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: end; padding: 0 6px 14px; border-bottom: 10px solid color-mix(in srgb, var(--ink) 12%, var(--paper)); border-radius: 0 0 4px 4px; }
.spine { --h: 300px; position: relative; display: flex; flex-direction: column; justify-content: space-between; height: var(--h); padding: 16px 12px 14px; border-radius: 6px 6px 3px 3px; background: var(--bk); color: var(--bk-ink); text-decoration: none; box-shadow: inset -6px 0 0 rgba(0, 0, 0, .12), inset 6px 0 0 rgba(255, 255, 255, .12), var(--shadow); transition: transform .35s var(--ease); overflow: hidden; }
.spine:nth-child(2) { --h: 318px; } .spine:nth-child(3) { --h: 292px; } .spine:nth-child(4) { --h: 324px; } .spine:nth-child(5) { --h: 306px; }
.spine:hover { transform: translateY(-10px); }
.spine .no { font: 700 2.6rem/1 var(--nl); }
.spine .body { display: grid; }
.spine .t { display: block; font-weight: 700; font-size: 1rem; line-height: 1.35; }
.spine .th { display: block; font-size: .82rem; opacity: .88; line-height: 1.5; margin-top: 6px; }
.spine .rib { position: absolute; inset-inline-end: 14px; top: 0; width: 12px; height: calc(8px + var(--p, 0) * 1%); max-height: 70%; background: rgba(255, 255, 255, .85); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); transition: height .8s var(--ease); }
:root[data-theme="dark"] .spine .rib { background: rgba(16, 21, 28, .7); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .spine .rib { background: rgba(16, 21, 28, .7); } }
.spine .pg { font-size: .8rem; font-weight: 600; }
@media (max-width: 720px) {
  .shelf { grid-template-columns: 1fr; border-bottom: 0; padding: 0; gap: 8px; }
  .spine, .spine:nth-child(n) { --h: auto; min-height: 92px; flex-direction: row; align-items: center; gap: 14px; justify-content: flex-start; padding: 14px 16px; border-radius: 8px; }
  .spine:hover { transform: none; }
  .spine .no { font-size: 2.1rem; width: 36px; }
  .spine .body { flex: 1; min-width: 0; }
  .spine .rib { inset-inline-end: 12px; height: 14px; width: 10px; }
}
.stats { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.stat b { display: block; font: 700 1.7rem/1.1 var(--nl); direction: ltr; text-align: start; }
.stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr 1fr; } .stats .stat:last-child { grid-column: span 2; } }
.cont { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: var(--sheet); border: 1px solid var(--line); border-inline-start: 5px solid var(--bk); border-radius: var(--r); padding: 14px 16px; }
.cont .k { color: var(--muted); font-size: .9rem; }
.cont b { display: block; font-size: 1.08rem; }
.how { margin-top: 34px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.how div { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; }
.how .ico { width: 28px; height: 28px; color: var(--muted); margin-top: 3px; }
.how b { display: block; }
.how p { color: var(--muted); font-size: .95rem; }
@media (max-width: 720px) { .how { grid-template-columns: 1fr; } }

/* ---------- book contents ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: .92rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.book-h { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.book-h .cover { width: 74px; height: 98px; border-radius: 4px 8px 8px 4px; background: var(--bk); color: var(--bk-ink); display: grid; place-items: center; font: 700 2.4rem/1 var(--nl); box-shadow: inset 6px 0 0 rgba(0, 0, 0, .14), var(--shadow); flex: none; }
.book-h h1 { font-size: clamp(1.7rem, 4.4vw, 2.2rem); }
.book-h p { color: var(--muted); }
.bar { height: 7px; border-radius: 7px; background: var(--line-2); overflow: hidden; margin-top: 8px; max-width: 320px; }
.bar i { display: block; height: 100%; background: var(--bk); border-radius: inherit; transition: width .8s var(--ease); }
.toc { margin-top: 26px; display: grid; gap: 18px; }
.theme { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.theme-h { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--bk); color: var(--bk-ink); }
.theme-h .n { font: 700 .95rem/1 var(--nl); opacity: .9; white-space: nowrap; }
.theme-h h2 { font-size: 1.12rem; }
.theme-h .nl { font-weight: 500; font-size: .92rem; opacity: .9; }
.theme-h > div { display: grid; line-height: 1.35; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows a { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line-2); text-decoration: none; }
.rows a:hover { background: var(--sheet-2); }
.rows .ln { color: var(--muted); font-size: .9rem; font-weight: 600; white-space: nowrap; }
.rows .tt { display: grid; line-height: 1.4; min-width: 0; }
.rows .tt .nl { font-weight: 600; text-align: right; }
.rows .tt .ar { color: var(--muted); font-size: .93rem; }
.rows .st { font-size: .85rem; font-weight: 600; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.rows .st.done { color: var(--ok); }
.rows .st .ico { width: 18px; height: 18px; }
.rows .soon { opacity: .55; }
.rows .rev a, .rows a.rev { background: color-mix(in srgb, var(--bk) 7%, var(--sheet)); }
.rows a.rev .ln { color: var(--bk); }

/* ---------- lesson ---------- */
.lesson { max-width: 820px; }
.lesson-h { margin-top: 10px; display: grid; gap: 4px; }
.lesson-h .ln { color: var(--bk); font-weight: 700; font-size: .95rem; }
.lesson-h h1 { font: 700 clamp(1.8rem, 5vw, 2.5rem)/1.2 var(--nl); }
.lesson-h .ar { color: var(--muted); font-size: 1.15rem; }
.steps { position: sticky; top: 61px; z-index: 5; display: flex; gap: 4px; margin: 18px calc(-1 * var(--gut)) 0; padding: 8px var(--gut); background: color-mix(in srgb, var(--paper) 92%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); overflow-x: auto; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.steps a { flex: none; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--muted); border: 1px solid var(--line); background: var(--sheet); }
.steps a:hover { color: var(--ink); border-color: var(--bk); }
.steps .ico { width: 17px; height: 17px; }
.sec { margin-top: 30px; scroll-margin-top: 120px; }
.sec-h { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r); background: color-mix(in srgb, var(--bk) 9%, var(--sheet)); border-inline-start: 5px solid var(--bk); }
.sec-h .ico { width: 26px; height: 26px; color: var(--bk); }
.sec-h h2 { font-size: 1.25rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.sec-h h2 .nl { font-size: 1rem; font-weight: 600; color: var(--muted); }
.note { margin-top: 12px; color: var(--muted); font-size: .95rem; }
.note b { color: var(--ink); }
.goals { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.goal { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 16px 10px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); }
.goal .ico { width: 30px; height: 30px; color: var(--bk); }
.goal span { font-weight: 600; font-size: .96rem; line-height: 1.5; }
@media (max-width: 520px) { .goals { grid-template-columns: 1fr; } .goal { grid-template-columns: 34px 1fr; justify-items: start; text-align: start; align-items: center; padding: 12px 14px; } }

/* vocabulary table */
.vtools { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vocab { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.vw { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; align-items: center; text-align: start; padding: 9px 14px; border-bottom: 1px solid var(--line-2); border-inline-start: 1px solid var(--line-2); min-height: 56px; transition: background-color .2s; }
.vw:nth-child(odd) { border-inline-start: 0; }
.vw:hover { background: var(--sheet-2); }
.vw .w { font: 600 1.08rem/1.35 var(--nl); direction: ltr; text-align: start; unicode-bidi: isolate; }
.vw .w i { font-style: normal; font-weight: 500; color: var(--muted); }
.vw .p { grid-column: 1; font-size: .82rem; color: var(--muted); line-height: 1.4; }
.vw .m { grid-row: 1 / span 2; grid-column: 2; font-weight: 500; text-align: end; max-width: 15ch; line-height: 1.45; }
.vw.playing { background: color-mix(in srgb, var(--bk) 13%, var(--sheet)); }
.vocab.hide-ar .vw .m { color: transparent; background: var(--line-2); border-radius: 6px; min-width: 5em; }
.vocab.hide-nl .vw .w, .vocab.hide-nl .vw .p { color: transparent; background: var(--line-2); border-radius: 6px; }
.vocab.hide-ar .vw.peek .m, .vocab.hide-nl .vw.peek .w, .vocab.hide-nl .vw.peek .p { color: inherit; background: none; }
html.no-pron .vw .p { display: none; }
@media (max-width: 620px) { .vocab { grid-template-columns: 1fr; } .vw { border-inline-start: 0; } }

/* reading passage */
.passage { margin-top: 12px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 20px; }
.passage h3 { font: 700 1.3rem/1.3 var(--nl); direction: ltr; text-align: left; }
.passage .pt-ar { color: var(--muted); text-align: left; direction: rtl; font-size: .95rem; }
.ptext { margin-top: 12px; direction: ltr; text-align: left; font: 400 1.16rem/1.95 var(--nl); }
.sn { border-radius: 4px; cursor: pointer; transition: background-color .2s; padding: 1px 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sn:hover { background: var(--line-2); }
.sn.playing { background: color-mix(in srgb, var(--bk) 20%, transparent); }
.kw { font-weight: 700; color: var(--bk); border-bottom: 1.5px dotted color-mix(in srgb, var(--bk) 55%, transparent); }
.ptext.lines .sn { display: block; padding: 6px 8px; margin: 0 -8px; }
.ptext.lines .tr { display: block; direction: rtl; text-align: right; font: 400 .98rem/1.7 var(--ar); color: var(--muted); padding: 0 8px 8px; margin: 0 -8px; border-bottom: 1px solid var(--line-2); }
.ptext:not(.lines) .tr { display: none; }
.kpop { position: fixed; z-index: 40; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 10px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; max-width: min(320px, calc(100vw - 24px)); }
.kpop .nl { font-weight: 600; }

/* activities */
.stage { margin-top: 18px; }
.stage-h { display: inline-flex; align-items: stretch; border-radius: 999px; overflow: hidden; font-weight: 700; box-shadow: var(--shadow); }
.stage-h span:first-child { background: color-mix(in srgb, var(--bk) 70%, var(--sheet)); color: var(--bk-ink); padding: 6px 14px; font-family: var(--nl); }
.stage-h span:last-child { background: var(--bk); color: var(--bk-ink); padding: 6px 16px; }
.qs { margin-top: 10px; display: grid; gap: 10px; counter-reset: q var(--start, 0); }
.q { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; counter-increment: q; }
.q-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.q-top::before { content: counter(q) "."; font: 700 1rem/1.9 var(--nl); color: var(--muted); }
.q .qt { font: 500 1.08rem/1.6 var(--nl); direction: ltr; text-align: left; }
.q .qa { color: var(--muted); font-size: .92rem; grid-column: 2; margin-top: 2px; }
.acts:not(.tr-on) .qa, .acts:not(.tr-on) .oa { display: none; }
.tf { margin-top: 10px; display: flex; gap: 8px; }
.opt { min-height: 44px; padding: 6px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--sheet-2); font-weight: 600; text-align: start; display: grid; line-height: 1.4; }
.opt .nl { font-weight: 600; }
.opt .oa { font-size: .85rem; color: var(--muted); font-weight: 400; }
.opt:hover { border-color: var(--bk); }
.opt[aria-pressed="true"] { border-color: var(--bk); background: color-mix(in srgb, var(--bk) 14%, var(--sheet)); }
.opts { margin-top: 10px; display: grid; gap: 6px; }
.q.right { border-color: var(--ok); }
.q.wrong { border-color: var(--bad); }
.opt.is-right { border-color: var(--ok); background: var(--ok-soft); }
.opt.is-wrong { border-color: var(--bad); background: var(--bad-soft); }
.fb { margin-top: 8px; font-weight: 600; font-size: .95rem; display: flex; gap: 6px; align-items: center; }
.fb.ok { color: var(--ok); } .fb.no { color: var(--bad); }
.fb .ico { width: 18px; height: 18px; }
.bank { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: var(--r); background: var(--sheet); direction: ltr; justify-content: flex-start; }
.bank .lbl { width: 100%; direction: rtl; text-align: right; color: var(--muted); font-size: .9rem; }
.chip { font: 600 1rem/1.2 var(--nl); padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--sheet-2); }
.chip.used { opacity: .35; }
.chip.sel { border-color: var(--bk); background: color-mix(in srgb, var(--bk) 14%, var(--sheet)); }
.blank { display: inline-block; min-width: 7.5em; padding: 0 8px; margin: 0 2px; border-bottom: 2px solid var(--bk); text-align: center; color: var(--bk); font-weight: 700; cursor: pointer; border-radius: 4px 4px 0 0; }
.blank:empty::before { content: "…"; color: var(--muted); font-weight: 400; }
.blank.ok { color: var(--ok); border-color: var(--ok); background: var(--ok-soft); }
.blank.no { color: var(--bad); border-color: var(--bad); background: var(--bad-soft); }
.check { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.score { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; border-radius: var(--r); background: var(--sheet); border: 1px solid var(--line); }
.score b { font: 700 2rem/1 var(--nl); direction: ltr; }
.score.good { border-color: var(--ok); background: var(--ok-soft); }
.lesson-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); }
.lesson-nav .btn { white-space: normal; text-align: center; line-height: 1.35; max-width: 48%; }

/* theme review */
.rv-card { margin-top: 18px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.rv-top { display: flex; align-items: center; gap: 12px; }
.rv-top .bar { flex: 1; max-width: none; margin: 0; }
.rv-top .n { font: 600 .95rem/1 var(--nl); color: var(--muted); direction: ltr; }
.rv-p { margin-top: 18px; font-weight: 600; color: var(--muted); }
.rv-show { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 56px; }
.rv-show .big { font: 700 clamp(1.6rem, 5vw, 2.2rem)/1.25 var(--nl); direction: ltr; }
.rv-show .big.ar { font: 700 clamp(1.4rem, 4.6vw, 1.9rem)/1.4 var(--ar); direction: rtl; }
.rv-show .sent { font: 500 1.2rem/1.7 var(--nl); direction: ltr; text-align: left; }
.rv-opts { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rv-opts .opt { text-align: center; justify-items: center; min-height: 56px; }
@media (max-width: 520px) { .rv-opts { grid-template-columns: 1fr; } }
.rv-end { text-align: center; display: grid; justify-items: center; gap: 10px; }
.rv-end .big { font: 700 3rem/1 var(--nl); direction: ltr; }
.miss { margin-top: 10px; width: 100%; text-align: start; display: grid; gap: 4px; }
.miss button { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 8px; background: var(--sheet-2); }

/* now playing, sheet, toast */
.nowplay { position: fixed; z-index: 30; inset-inline: 0; margin: 0 auto; bottom: calc(14px + env(safe-area-inset-bottom, 0)); width: max-content; max-width: calc(100vw - 24px); display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 999px; background: var(--ink); color: var(--paper); box-shadow: var(--shadow); }
.np-t { font: 500 .95rem/1.3 var(--nl); direction: ltr; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-stop { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--paper) 16%, transparent); font-weight: 600; font-size: .9rem; }
.np-stop .ico { width: 15px; height: 15px; }
.eq { display: flex; gap: 2px; align-items: end; height: 14px; }
.eq i { width: 3px; background: currentColor; border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: grid; align-items: end; justify-items: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(10, 14, 20, .5); }
.sheet { position: relative; width: min(560px, 100%); max-height: 88vh; overflow-y: auto; background: var(--paper); border-radius: 18px 18px 0 0; padding: 14px 20px calc(20px + env(safe-area-inset-bottom, 0)); animation: up .35s var(--ease); }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 18px; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.sheet-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sheet-h h2 { font-size: 1.25rem; }
.set { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.set .l { flex: 1; }
.set em { display: block; font-style: normal; color: var(--muted); font-size: .88rem; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--line-2); gap: 2px; flex-wrap: wrap; }
.seg button { padding: 5px 11px; border-radius: 8px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.seg button.on { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
input[type=range] { accent-color: var(--bk); width: 150px; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 80px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--paper); padding: 9px 16px; border-radius: 10px; font-weight: 600; transition: opacity .25s, transform .3s var(--ease); max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
