/* IELTS Speaking player. Scoped under .bv-speaking, uses site tokens from styles.css. */
.bv-speaking { --bvs-ok: #0a7d72; --bvs-no: #dc3545; --bvs-warm: #b4780a; --bvs-mic: #7c3aed; }

.bv-s-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted, rgba(15,23,42,.6)); margin-bottom: .85rem; }
.bv-s-crumbs a { color: var(--muted, rgba(15,23,42,.62)); text-decoration: none; }
.bv-s-crumbs a:hover { color: var(--brand, #2f6fed); text-decoration: underline; }
.bv-s-crumbs > span { opacity: .5; }
.bv-s-crumbs__here { opacity: 1; color: var(--ink, #0f172a); font-weight: 600; }

/* ---- header ---- */
.bv-s-head { margin-bottom: 1.1rem; }
.bv-s-head__badges { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .6rem; }
.bv-s-level {
  display: inline-flex; align-items: center; font-size: .78rem; font-weight: 800; letter-spacing: .04em;
  padding: .25rem .7rem; border-radius: 999px; color: #fff;
  background: linear-gradient(135deg, var(--brand, #2f6fed), var(--brand2, #00b8a9));
}
.bv-s-band {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 800;
  padding: .25rem .7rem; border-radius: 999px; color: #fff;
  background: linear-gradient(135deg, var(--bvs-mic), #a855f7);
}
.bv-s-title { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 800; margin: 0 0 .25rem; line-height: 1.3; }
.bv-s-subtitle { color: var(--muted, rgba(15,23,42,.6)); font-size: .95rem; margin: 0; font-style: italic; }
.bv-s-focus { margin: .3rem 0 0; font-size: .9rem; font-weight: 600; color: var(--brand, #2f6fed); }

/* ---- goal + tips ---- */
.bv-s-goal {
  background: linear-gradient(120deg, rgba(124,58,237,.06), rgba(0,184,169,.05));
  border: 1px solid rgba(124,58,237,.18); border-radius: 14px; padding: 1rem 1.15rem; margin-bottom: 1.5rem;
}
.bv-s-goal__text { margin: 0 0 .6rem; font-size: .95rem; line-height: 1.55; }
.bv-s-goal__text i { color: var(--bvs-mic); }
.bv-s-tips { margin: 0; padding-left: 1.15rem; display: flex; flex-direction: column; gap: .3rem; }
.bv-s-tips li { font-size: .89rem; color: var(--muted, rgba(15,23,42,.72)); line-height: 1.5; }

/* ---- section heads ---- */
.bv-s-sec__head { display: flex; align-items: center; gap: .6rem; margin: 0 0 .9rem; padding-bottom: .55rem; border-bottom: 1px solid var(--border, rgba(15,23,42,.1)); }
.bv-s-sec__title { font-size: 1.15rem; font-weight: 800; margin: 0; }
.bv-s-sec__title i { color: var(--bvs-mic); }
.bv-s-sec__count { margin-left: auto; font-size: .8rem; font-weight: 600; color: var(--muted, rgba(15,23,42,.55)); }

/* ---- 4 tiêu chí ---- */
.bv-s-rubric { margin-bottom: 2rem; }
.bv-s-rlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .7rem; }
.bv-srub { background: #fff; border: 1px solid var(--border, rgba(15,23,42,.1)); border-top: 3px solid var(--bvs-mic); border-radius: 12px; padding: .8rem .9rem; }
.bv-srub__name { font-size: .88rem; font-weight: 800; color: var(--ink, #0f172a); }
.bv-srub__vi { font-size: .78rem; color: var(--muted, rgba(15,23,42,.55)); margin-top: .05rem; }
.bv-srub__note { margin: .5rem 0 0; font-size: .85rem; line-height: 1.55; color: var(--muted, rgba(15,23,42,.75)); }

/* ---- ngôn ngữ cần dùng ---- */
.bv-s-phrases { margin-bottom: 2rem; }
.bv-s-plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .75rem; }
.bv-spat { display: flex; gap: .75rem; background: #fff; border: 1px solid var(--border, rgba(15,23,42,.1)); border-radius: 14px; padding: .85rem .95rem; }
.bv-spat__no {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 800; background: rgba(124,58,237,.1); color: var(--bvs-mic);
}
.bv-spat__body { min-width: 0; }
.bv-spat__formula { font-weight: 800; color: var(--ink, #0f172a); font-size: .98rem; line-height: 1.35; }
.bv-spat__band {
  margin-left: .4rem; font-size: .68rem; font-weight: 800; vertical-align: middle;
  padding: .08rem .42rem; border-radius: 999px; background: rgba(124,58,237,.12); color: var(--bvs-mic);
}
.bv-spat__meaning { font-size: .86rem; color: var(--muted, rgba(15,23,42,.65)); margin-top: .1rem; }
.bv-spat__ex { margin-top: .5rem; padding-left: .65rem; border-left: 3px solid rgba(0,184,169,.4); }
.bv-spat__en { display: block; font-size: .92rem; color: var(--ink, #0f172a); }
.bv-spat__vi { display: block; font-size: .84rem; color: var(--muted, rgba(15,23,42,.55)); margin-top: .1rem; }
.bv-spat__note { margin-top: .5rem; font-size: .8rem; color: var(--muted, rgba(15,23,42,.62)); }
.bv-spat__note i { color: var(--bvs-warm); }

/* ---- phát âm ---- */
.bv-s-pron { margin-bottom: 2rem; }
.bv-spron { background: #fff; border: 1px solid var(--border, rgba(15,23,42,.1)); border-radius: 14px; padding: 1rem 1.1rem; }
.bv-spron__point { font-size: 1rem; font-weight: 800; margin: 0 0 .35rem; }
.bv-spron__ex { font-size: .89rem; line-height: 1.6; color: var(--muted, rgba(15,23,42,.75)); margin: 0 0 .75rem; }
.bv-spron__items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .45rem; }
.bv-spron__items li { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; background: var(--soft, rgba(15,23,42,.035)); border-radius: 9px; padding: .4rem .6rem; }
.bv-spron__w { font-weight: 700; font-size: .93rem; }
.bv-spron__ipa { font-size: .85rem; color: var(--bvs-mic); }
.bv-spron__n { flex: 1 1 100%; font-size: .78rem; color: var(--muted, rgba(15,23,42,.6)); }
.bv-spron__drill { margin: .8rem 0 0; font-size: .86rem; color: var(--bvs-warm); font-weight: 600; }

/* ---- nút nghe (chỉ hiện khi mục đó có audio) ---- */
.bv-splay {
  border: 0; background: rgba(124,58,237,.1); color: var(--bvs-mic); cursor: pointer;
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: .8rem;
  margin-left: .35rem; vertical-align: middle;
}
.bv-splay:hover { background: rgba(124,58,237,.2); }
.bv-splay.is-playing { background: var(--bvs-mic); color: #fff; }

/* =====================================================================
   Đề thi — ba phần
   ===================================================================== */
.bv-s-exam { margin-bottom: 2rem; }
.bv-spart { background: #fff; border: 1px solid var(--border, rgba(15,23,42,.1)); border-radius: 16px; padding: 1.1rem 1.15rem; margin-bottom: 1rem; }
.bv-spart__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; margin-bottom: .3rem; }
.bv-spart__title { font-size: 1.05rem; font-weight: 800; margin: 0; }
.bv-spart__vi { margin: 0; font-size: .85rem; color: var(--muted, rgba(15,23,42,.6)); }
.bv-spart__time {
  margin-left: auto; font-size: .75rem; font-weight: 700; white-space: nowrap;
  padding: .15rem .55rem; border-radius: 999px; background: var(--soft, rgba(15,23,42,.05)); color: var(--muted, rgba(15,23,42,.62));
}
.bv-spart__brief { font-size: .87rem; line-height: 1.55; color: var(--muted, rgba(15,23,42,.72)); margin: 0 0 .9rem; }
.bv-spart--part2 { border-left: 4px solid var(--bvs-mic); }

/* ---- câu hỏi Part 1 / Part 3 ---- */
.bv-sqlist { display: flex; flex-direction: column; gap: .7rem; }
.bv-sq { border: 1px solid var(--border, rgba(15,23,42,.1)); border-radius: 12px; padding: .75rem .85rem; background: var(--soft, rgba(15,23,42,.02)); }
.bv-sq__head { display: flex; gap: .6rem; }
.bv-sq__no {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .76rem; font-weight: 800; background: rgba(124,58,237,.12); color: var(--bvs-mic);
}
.bv-sq__text { min-width: 0; }
.bv-sq__en { margin: 0; font-size: .97rem; font-weight: 600; line-height: 1.45; }
.bv-sq__vi { margin: .1rem 0 0; font-size: .85rem; color: var(--muted, rgba(15,23,42,.58)); }
.bv-sq__tip { margin: .55rem 0 0; padding-left: 2.1rem; font-size: .83rem; color: var(--bvs-warm); line-height: 1.5; }
.bv-sq__tip i { margin-left: -1.25rem; margin-right: .25rem; }

/* ---- bài mẫu theo band ---- */
.bv-sans { margin-top: .6rem; }
.bv-sans__sum {
  cursor: pointer; list-style: none; display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem;
  font-size: .83rem; font-weight: 700; color: var(--bvs-mic);
  padding: .3rem .7rem; border-radius: 999px; background: rgba(124,58,237,.08);
}
.bv-sans__sum::-webkit-details-marker { display: none; }
.bv-sans__sum:hover { background: rgba(124,58,237,.16); }
.bv-sans__sum em { font-style: normal; font-weight: 500; font-size: .78rem; color: var(--muted, rgba(15,23,42,.55)); }
.bv-sans__box { margin-top: .6rem; }
.bv-sans__panes { display: flex; flex-direction: column; gap: .55rem; }

.bv-sans__pane {
  border-left: 3px solid rgba(124,58,237,.3); border-radius: 0 10px 10px 0;
  padding: .6rem .85rem; background: #fff;
}
.bv-sans__badge { display: flex; align-items: center; gap: .3rem; margin-bottom: .3rem; }
.bv-sband__pill {
  font-size: .7rem; font-weight: 800; padding: .1rem .5rem; border-radius: 999px;
  background: rgba(124,58,237,.12); color: var(--bvs-mic);
}
.bv-sans__en { margin: 0; font-size: .94rem; line-height: 1.7; }
.bv-sans__vi { margin: .3rem 0 0; font-size: .85rem; line-height: 1.6; color: var(--muted, rgba(15,23,42,.6)); }
.bv-sans__why { margin: .45rem 0 0; font-size: .82rem; line-height: 1.5; color: var(--muted, rgba(15,23,42,.7)); }
.bv-sans__why i { color: var(--bvs-ok); }
.bv-shl { background: rgba(255,214,0,.35); border-radius: 3px; padding: 0 .1em; color: inherit; font-weight: 600; }

/* Tab chỉ dùng cho bài mẫu DÀI (Part 2). Câu ngắn để xếp chồng vì đặt band 4
   cạnh band 7.5 chính là bài học. */
.bv-sans__tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .5rem; }
.bv-sband {
  border: 1px solid var(--border, rgba(15,23,42,.14)); background: #fff; cursor: pointer;
  border-radius: 999px; padding: .25rem .7rem; font-size: .78rem; font-weight: 700;
  color: var(--muted, rgba(15,23,42,.6));
}
.bv-sband:hover { border-color: var(--bvs-mic); color: var(--bvs-mic); }
.bv-sband.is-on { background: var(--bvs-mic); border-color: var(--bvs-mic); color: #fff; }
.bv-sans__box.is-tabbed .bv-sans__pane { display: none; }
.bv-sans__box.is-tabbed .bv-sans__pane.is-on { display: block; }

/* ---- đề thẻ Part 2 ---- */
.bv-scue { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-bottom: .9rem; }
.bv-scue__card {
  background: #fffdf5; border: 1px solid rgba(180,120,10,.3); border-radius: 12px; padding: .95rem 1.05rem;
  box-shadow: 0 2px 0 rgba(180,120,10,.12);
}
.bv-scue__task { margin: 0 0 .5rem; font-size: 1rem; font-weight: 700; line-height: 1.45; }
.bv-scue__lead { margin: 0 0 .25rem; font-size: .85rem; font-weight: 600; color: var(--muted, rgba(15,23,42,.6)); }
.bv-scue__bullets { margin: 0; padding-left: 1.15rem; display: flex; flex-direction: column; gap: .15rem; }
.bv-scue__bullets li { font-size: .92rem; line-height: 1.5; }
.bv-scue__closing { margin: .5rem 0 0; font-size: .92rem; font-weight: 600; line-height: 1.5; }
.bv-scue__vi { font-size: .86rem; line-height: 1.6; color: var(--muted, rgba(15,23,42,.62)); }
.bv-scue__vi ul { margin: .3rem 0; padding-left: 1.1rem; }
.bv-scue__task-vi { margin: 0; font-weight: 600; }

/* ---- đồng hồ phòng thi ---- */
.bv-stimer {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  background: rgba(124,58,237,.06); border: 1px solid rgba(124,58,237,.22);
  border-radius: 12px; padding: .55rem .75rem; margin-bottom: .9rem;
}
.bv-stimer__btn {
  border: 0; border-radius: 9px; cursor: pointer; padding: .4rem .85rem;
  font-size: .85rem; font-weight: 700; color: #fff; background: var(--bvs-mic);
  display: inline-flex; align-items: center; gap: .35rem;
}
.bv-stimer__btn:hover { filter: brightness(1.08); }
.bv-stimer__phase { font-size: .82rem; font-weight: 600; color: var(--muted, rgba(15,23,42,.62)); }
.bv-stimer__clock {
  margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.3rem;
  color: var(--bvs-mic); min-width: 3.4em; text-align: right;
}
.bv-stimer.is-prep { background: rgba(180,120,10,.08); border-color: rgba(180,120,10,.3); }
.bv-stimer.is-prep .bv-stimer__clock, .bv-stimer.is-prep .bv-stimer__phase { color: var(--bvs-warm); }
.bv-stimer.is-talk { background: rgba(10,125,114,.08); border-color: rgba(10,125,114,.3); }
.bv-stimer.is-talk .bv-stimer__clock, .bv-stimer.is-talk .bv-stimer__phase { color: var(--bvs-ok); }
.bv-stimer.is-done .bv-stimer__clock { color: var(--bvs-no); }
.bv-stimer__note { flex: 1 1 100%; font-size: .84rem; font-weight: 600; color: var(--bvs-mic); }

/* ---- khung 1 phút chuẩn bị ---- */
.bv-splan { background: var(--soft, rgba(15,23,42,.035)); border-radius: 12px; padding: .8rem .95rem; margin-bottom: .9rem; }
.bv-splan__h { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, rgba(15,23,42,.55)); margin-bottom: .3rem; }
.bv-splan__h i { color: var(--bvs-mic); }
.bv-splan__hint { margin: 0 0 .6rem; font-size: .82rem; line-height: 1.5; color: var(--muted, rgba(15,23,42,.65)); }
.bv-splan__list { margin: 0; padding-left: 1.15rem; display: flex; flex-direction: column; gap: .4rem; }
.bv-splan__list li { font-size: .88rem; line-height: 1.5; }
.bv-splan__lab { font-weight: 700; }
.bv-splan__hi { color: var(--muted, rgba(15,23,42,.6)); }
.bv-splan__hi::before { content: " — "; }
.bv-splan__note { display: block; margin-top: .15rem; font-size: .82rem; color: var(--bvs-ok); background: rgba(10,125,114,.07); border-radius: 6px; padding: .12rem .45rem; width: fit-content; }

/* ---- câu chốt ---- */
.bv-sround { border-top: 1px dashed var(--border, rgba(15,23,42,.16)); margin-top: .9rem; padding-top: .75rem; }
.bv-sround__lab { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, rgba(15,23,42,.5)); }
.bv-sround__en { margin: .25rem 0 0; font-size: .94rem; font-weight: 600; }
.bv-sround__vi { margin: .1rem 0 0; font-size: .84rem; color: var(--muted, rgba(15,23,42,.58)); }

/* =====================================================================
   Bài tập chấm điểm — cùng bộ luật với khoá Writing
   ===================================================================== */
.bv-s-app__lead { font-size: .88rem; line-height: 1.6; color: var(--muted, rgba(15,23,42,.7)); margin: 0 0 1rem; }
.bv-sex { background: #fff; border: 1px solid var(--border, rgba(15,23,42,.1)); border-radius: 16px; padding: 1.1rem 1.15rem; margin-bottom: 1rem; }
.bv-sex__head { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; }
.bv-sex__id {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem; background: var(--bvs-mic); color: #fff;
}
.bv-sex__title { font-size: 1.02rem; font-weight: 700; margin: 0; }
.bv-sex__kind { margin-left: auto; font-size: .72rem; font-weight: 700; padding: .18rem .55rem; border-radius: 999px; background: var(--soft, rgba(15,23,42,.05)); color: var(--muted, rgba(15,23,42,.6)); white-space: nowrap; }
.bv-sex__instr { font-size: .88rem; color: var(--muted, rgba(15,23,42,.68)); margin: 0 0 .9rem; }

.bv-sqq { list-style: none; counter-reset: bvsq; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.bv-sqi { counter-increment: bvsq; position: relative; padding: .7rem .8rem .7rem 2.4rem; border-radius: 12px; border: 1px solid transparent; background: var(--soft, rgba(15,23,42,.025)); }
.bv-sqi::before {
  content: counter(bvsq) "."; position: absolute; left: .8rem; top: .75rem;
  font-weight: 800; font-size: .85rem; color: var(--muted, rgba(15,23,42,.45));
}
.bv-sqi.is-correct { background: rgba(0,184,169,.07); border-color: rgba(0,184,169,.35); }
.bv-sqi.is-wrong { background: rgba(220,53,69,.05); border-color: rgba(220,53,69,.3); }
.bv-sqi__line { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; line-height: 2.1; }
.bv-sqi__txt { font-size: .96rem; }
.bv-sqi__prompt { font-size: .96rem; font-weight: 500; margin-bottom: .5rem; }
.bv-sqi__prompt--src { font-style: italic; color: var(--muted, rgba(15,23,42,.75)); }
.bv-sqi__cue { font-size: .82rem; color: var(--muted, rgba(15,23,42,.6)); margin-bottom: .45rem; }
.bv-sqi__cue strong { color: var(--bvs-mic); }

.bv-sinput { border: 1px solid var(--border, rgba(15,23,42,.18)); border-radius: 9px; padding: .35rem .6rem; font-size: .95rem; background: #fff; font-family: inherit; }
.bv-sinput:focus { outline: 2px solid rgba(124,58,237,.35); outline-offset: 1px; border-color: var(--bvs-mic); }
.bv-sinput--gap { min-width: 130px; width: 150px; }
.bv-sinput--sent { width: 100%; }
.bv-sinput--match { min-width: 90px; }
.is-graded .bv-sinput { background: var(--soft, rgba(15,23,42,.03)); }

.bv-sopts { display: grid; gap: .4rem; }
.bv-sopt { display: flex; align-items: flex-start; gap: .5rem; padding: .45rem .6rem; border-radius: 9px; border: 1px solid var(--border, rgba(15,23,42,.12)); background: #fff; cursor: pointer; font-size: .93rem; }
.bv-sopt:hover { border-color: var(--bvs-mic); }
.bv-sopt input { margin-top: .2rem; flex-shrink: 0; }
.bv-sopt.is-answer { background: rgba(0,184,169,.12); border-color: var(--bvs-ok); }
.bv-sopt.is-picked-wrong { background: rgba(220,53,69,.1); border-color: var(--bvs-no); }

.bv-sword__bank { display: flex; flex-wrap: wrap; gap: .35rem; min-height: 34px; }
.bv-sword__line { display: flex; flex-wrap: wrap; gap: .35rem; min-height: 44px; margin-top: .5rem; padding: .4rem; border: 1px dashed var(--border, rgba(15,23,42,.22)); border-radius: 10px; background: #fff; }
.bv-sword__tok { border: 1px solid var(--border, rgba(15,23,42,.16)); background: #fff; border-radius: 8px; padding: .3rem .6rem; font-size: .92rem; cursor: pointer; transition: background .12s ease, border-color .12s ease; }
.bv-sword__tok:hover { background: rgba(124,58,237,.08); border-color: var(--bvs-mic); }
.bv-sword__line .bv-sword__tok { background: rgba(124,58,237,.1); border-color: rgba(124,58,237,.35); }
.bv-sword__clear { margin-top: .4rem; border: 0; background: transparent; color: var(--muted, rgba(15,23,42,.55)); font-size: .8rem; cursor: pointer; padding: 0; }
.bv-sword__clear:hover { color: var(--bvs-no); }

.bv-slegend { margin-top: .8rem; padding: .7rem .85rem; background: var(--soft, rgba(15,23,42,.04)); border-radius: 10px; display: grid; gap: .3rem; }
.bv-slegend__i { font-size: .88rem; }
.bv-slegend__i b { color: var(--bvs-mic); }

.bv-sfb { margin-top: .55rem; font-size: .86rem; }
.bv-sfb__tag { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; font-size: .78rem; padding: .15rem .55rem; border-radius: 999px; }
.bv-sfb__tag.is-ok { background: rgba(0,184,169,.15); color: var(--bvs-ok); }
.bv-sfb__tag.is-no { background: rgba(220,53,69,.12); color: #b02a37; }
.bv-sfb__ans { margin-top: .3rem; }
.bv-sfb__ans b { color: var(--bvs-ok); }
.bv-sfb__ex { margin-top: .25rem; color: var(--muted, rgba(15,23,42,.68)); }
.bv-sfb__ex i { color: var(--bvs-warm); }

.bv-s-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.25rem; }
.bv-s-saved { font-size: .8rem; color: var(--bvs-ok); font-weight: 600; }
.bv-s-result { margin-top: 1.1rem; text-align: center; background: #fff; border: 1px solid var(--border, rgba(15,23,42,.1)); border-radius: 16px; padding: 1.5rem; }
.bv-s-score { display: flex; align-items: baseline; justify-content: center; gap: 1rem; }
.bv-s-score__n { font-size: 2.4rem; font-weight: 800; color: var(--bvs-mic); }
.bv-s-score__n small { font-size: 1.1rem; font-weight: 700; color: var(--muted, rgba(15,23,42,.5)); }
.bv-s-score__pct { font-size: 1.2rem; font-weight: 700; color: var(--bvs-ok); }
.bv-s-score__msg { margin: .5rem auto 0; max-width: 46ch; color: var(--muted, rgba(15,23,42,.65)); line-height: 1.6; }

/* ---- responsive ---- */
@media (max-width: 760px) {
  .bv-scue { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bv-s-plist, .bv-s-rlist { grid-template-columns: 1fr; }
  .bv-sex, .bv-spart { padding: .9rem .85rem; border-radius: 13px; }
  .bv-sqi { padding-left: 2.1rem; }
  .bv-stimer__clock { margin-left: 0; }
  .bv-s-actions { position: sticky; bottom: 0; background: #fff; padding: .6rem 0; margin-inline: -.25rem; z-index: 5; border-top: 1px solid var(--border, rgba(15,23,42,.08)); }
  .bv-s-actions .btn { flex: 1 1 0; }
  .bv-s-saved { display: none; }
}
@media (max-width: 576px) {
  .bv-s-crumbs > *:nth-last-child(-n+2) { display: none; }
  .bv-s-title { font-size: 1.15rem; }
}

/* ---- dark ---- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bv-spat,
  :root:not([data-theme="light"]) .bv-srub,
  :root:not([data-theme="light"]) .bv-spron,
  :root:not([data-theme="light"]) .bv-spart,
  :root:not([data-theme="light"]) .bv-sans__pane,
  :root:not([data-theme="light"]) .bv-sex,
  :root:not([data-theme="light"]) .bv-sopt,
  :root:not([data-theme="light"]) .bv-sword__tok,
  :root:not([data-theme="light"]) .bv-sword__line,
  :root:not([data-theme="light"]) .bv-sband,
  :root:not([data-theme="light"]) .bv-sinput,
  :root:not([data-theme="light"]) .bv-s-result,
  :root:not([data-theme="light"]) .bv-s-actions { background: rgba(255,255,255,.04); }
  :root:not([data-theme="light"]) .bv-scue__card { background: rgba(180,120,10,.12); }
  :root:not([data-theme="light"]) .bv-shl { background: rgba(255,214,0,.25); }
  :root:not([data-theme="light"]) .bv-spat__formula,
  :root:not([data-theme="light"]) .bv-spat__en,
  :root:not([data-theme="light"]) .bv-s-title { color: inherit; }
}
:root[data-theme="dark"] .bv-spat,
:root[data-theme="dark"] .bv-srub,
:root[data-theme="dark"] .bv-spron,
:root[data-theme="dark"] .bv-spart,
:root[data-theme="dark"] .bv-sans__pane,
:root[data-theme="dark"] .bv-sex,
:root[data-theme="dark"] .bv-sopt,
:root[data-theme="dark"] .bv-sword__tok,
:root[data-theme="dark"] .bv-sword__line,
:root[data-theme="dark"] .bv-sband,
:root[data-theme="dark"] .bv-sinput,
:root[data-theme="dark"] .bv-s-result,
:root[data-theme="dark"] .bv-s-actions { background: rgba(255,255,255,.04); }
:root[data-theme="dark"] .bv-scue__card { background: rgba(180,120,10,.12); }
:root[data-theme="dark"] .bv-shl { background: rgba(255,214,0,.25); }
:root[data-theme="dark"] .bv-spat__formula,
:root[data-theme="dark"] .bv-spat__en,
:root[data-theme="dark"] .bv-s-title { color: inherit; }

/* =====================================================================
   Lộ trình Speaking — dùng lại bố cục .bv-wpath của writing-player.css,
   chỉ đổi sang sắc tím của khoá nói và thêm nhãn band ở cuối mỗi bước.
   ===================================================================== */
.term-speaking .bv-tax-banner { max-width: 1060px; margin-inline: auto; }
.bv-spath .bv-wpath__chip:hover { color: var(--bvs-mic, #7c3aed); }
.bv-spath .bv-wstage__level { background: linear-gradient(135deg, #7c3aed, #a855f7); box-shadow: 0 4px 12px rgba(124,58,237,.25); }
.bv-spath .bv-wstage__kicker,
.bv-spath .bv-wstage__title i { color: #7c3aed; }
.bv-spath .bv-wpath__start { background: linear-gradient(120deg, rgba(124,58,237,.07), rgba(0,184,169,.06)); border-color: rgba(124,58,237,.2); }
.bv-spath .bv-wpath__bar > span { background: linear-gradient(90deg, #7c3aed, #a855f7); }
.bv-sstep__band {
  font-size: .72rem; font-weight: 800; white-space: nowrap;
  padding: .15rem .5rem; border-radius: 999px;
  color: #7c3aed; background: rgba(124,58,237,.1);
}
