/* 跟读短文（public/read.js）。只用品牌 token，浅色 / 深色自动跟随；375 px 优先。 */
.read-page { max-width: 760px; }
.read-page nav { gap: 14px; }
.ra-lead { color: var(--text-muted); }
.ra-filters select { min-width: 0; flex: 1 1 140px; }
.ra-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.ra-item { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); }
.ra-item-title { font-weight: 600; color: var(--heading); text-decoration: none; overflow-wrap: anywhere; }
.ra-item-title:hover, .ra-item-title:focus-visible { color: var(--link); text-decoration: underline; }
.ra-back { display: inline-block; margin-bottom: 10px; }
.read-page h1 { overflow-wrap: anywhere; }

/* 控制条：贴顶，滚到哪里都能暂停 */
.ra-bar { position: sticky; top: calc(var(--header-h, 64px) + 1px); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  padding: 10px 12px; margin: 14px -12px 18px; background: var(--bg); border-bottom: 1px solid var(--border); }
.practice-page .ra-bar button { padding: 8px 12px; }
.practice-page .ra-bar .ra-play { min-width: 92px; }
.ra-speeds { display: inline-flex; gap: 4px; }
.practice-page .ra-speeds button { padding: 6px 9px; font-size: 14px; }
.practice-page .ra-speeds button[aria-pressed="true"] { background: var(--selected-bg); border-color: var(--primary); color: var(--heading); font-weight: 600; }
.ra-time { font-variant-numeric: tabular-nums; color: var(--text-muted); font-size: 14px; margin-left: auto; }
.ra-seekbar { flex: 1 1 100%; width: 100%; accent-color: var(--primary); margin: 0; }

/* 正文 */
.ra-text { position: relative; font-size: 19px; line-height: 1.85; color: var(--text); overflow-wrap: break-word; }
.ra-text p { margin: 0 0 14px; line-height: 1.85; }
.ra-s { cursor: pointer; border-radius: 4px; transition: background-color .2s; }
.ra-s:hover { background: var(--surface); }
.ra-s.ra-now { background: var(--tint); }
.ra-s.ra-target { outline: 2px solid var(--focus); outline-offset: 2px; }
.ra-w { border-radius: 3px; }
.ra-w.ra-on { background: var(--selected-bg); color: var(--heading); box-shadow: 0 0 0 1px var(--primary); }
.ra-speaker { color: var(--text-muted); font-size: 15px; font-weight: 600; margin-right: 2px; }
.ra-cursor { position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--primary); border-radius: 2px;
  opacity: 0; pointer-events: none; will-change: transform, width; }
.ra-hint { margin-top: 18px; }

@media (max-width: 599px) {
  .ra-text { font-size: 18px; }
  .ra-bar { margin-left: -8px; margin-right: -8px; padding: 8px; }
}
@media (prefers-reduced-motion: reduce) { .ra-s { transition: none; } }
