:root {
  --paper: #f7f2ea;
  --card: #fffdf9;
  --ink: #2b2620;
  --muted: #8d8476;
  --line: #e7ded0;
  --accent: #d9552e;
  --accent-deep: #bf3f1d;
  --accent-soft: #fce7d2;
  --seg-future: #ece1cf;
  --seg-past: #f2c08f;
  --seg-active: #d9552e;
  --lyric-fs: 19px;
  --shadow: 0 10px 30px rgba(90, 60, 20, .12);
  --radius: 16px;
  --top-h: 54px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 85% -10%, #ffe9cf 0%, transparent 60%),
    radial-gradient(900px 420px at -10% 110%, #efe6d4 0%, transparent 55%),
    var(--paper);
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  overscroll-behavior: none;
}
button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
}
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
svg { width: 1.3em; height: 1.3em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }
[hidden] { display: none !important; }
.hidden { display: none !important; }

/* ============ 网格骨架 ============ */
.app {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "top" "main" "dock";
}
.topbar { grid-area: top; }
.col { grid-area: main; position: relative; min-height: 0; }
.dock { grid-area: dock; }

/* ============ 顶栏 ============ */
.topbar {
  height: calc(var(--top-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.brand-mark {
  background: linear-gradient(135deg, var(--accent), #ef8f4c);
  color: #fff; font-family: Georgia, serif; font-weight: 700;
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; font-size: 15px;
  box-shadow: 0 4px 10px rgba(217, 85, 46, .35);
  flex: none;
}
.brand-text { font-weight: 700; font-size: 15px; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; gap: 4px; align-items: center; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  position: relative;
  color: #6f6557;
  background: rgba(255, 253, 249, .7);
  border: 1px solid rgba(231, 222, 208, .9);
}
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn .badge {
  position: absolute; top: -4px; right: -5px;
  background: var(--accent); color: #fff;
  font-size: 10px; line-height: 1; padding: 3px 5px;
  border-radius: 20px; font-style: normal; font-weight: 700;
}
.follow-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 34px; padding: 0 12px 0 10px; border-radius: 20px;
  background: var(--accent-soft); color: var(--accent-deep);
  font-size: 12px; font-weight: 700; border: 1px solid #f5cda6;
}
.follow-btn svg { width: 15px; height: 15px; }
.follow-btn span { font-size: 12px; }

/* ============ 主列：字幕区 ============ */
.col { display: flex; flex-direction: column; padding: 4px max(10px, env(safe-area-inset-left, 0px)) 6px max(10px, env(safe-area-inset-right, 0px)); }
.subtitle-panel {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  background: rgba(255, 253, 249, .72);
  border: 1px solid rgba(231, 222, 208, .85);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(90, 60, 20, .05);
}
.panel-toolbar {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 10px 5px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, .6);
}
.now {
  flex: 1; min-width: 0;
  font-size: 13px; font-weight: 700; color: #5a5147;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.now b { color: var(--accent-deep); font-family: Georgia, serif; margin-right: 4px; }
.tool { display: flex; gap: 4px; align-items: center; }
.icon-btn.sm { width: 31px; height: 31px; border-radius: 9px; }
.icon-btn.sm svg { width: 16px; height: 16px; }
.icon-btn.sm span { position: absolute; right: 3px; bottom: 1px; font-size: 9px; color: var(--accent); font-weight: 800; }

.lyric-box {
  flex: 1; min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 6px 18px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.lyrics {
  list-style: none; margin: 0; padding: 24px 4px;
  display: flex; flex-direction: column; gap: 2px;
  min-height: 100%;
  justify-content: center;
}
.lyric-item {
  padding: 4px 14px;
  border-radius: 12px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: var(--lyric-fs);
  line-height: 1.6;
  color: #7a6f60;
  cursor: pointer;
  transition: color .18s, background .18s, transform .18s, opacity .18s;
  user-select: none;
  -webkit-user-select: none;
  word-break: break-word;
}
.lyric-item.done { color: #5a5247; opacity: .9; }
.lyric-item.on {
  color: var(--ink);
  background: linear-gradient(90deg, var(--accent-soft), #fff6ea 75%);
  border-left: 4px solid var(--accent);
  padding-left: 10px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #f6d9b8;
}
.lyric-item.tapped { animation: tap 1.1s ease; }
@keyframes tap { 0%, 60% { transform: scale(1.02); } 100% { transform: scale(1); } }

.lyric-hint {
  height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  color: var(--muted); font-size: 13px;
}
.hint-spin {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid var(--seg-future);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.page-hint {
  text-align: center; color: #c2b6a0;
  font-size: 11px; padding: 5px 12px 7px;
  border-top: 1px dashed var(--line);
}

/* ============ 当前句操作条（悬浮于字幕区底部） ============ */
.sentence-bar {
  position: absolute; z-index: 8;
  left: 50%; bottom: 112px;
  transform: translateX(-50%);
  width: min(94%, 720px);
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 253, 249, .96);
  border: 1px solid #ecd9bd;
  border-radius: 15px;
  padding: 7px 8px 7px 6px;
  box-shadow: var(--shadow);
}
.sentence-bar .chip {
  width: 38px; height: 38px; flex: none;
  border-radius: 11px;
  display: grid; place-items: center;
  color: #6f5a3c;
  background: #f6ecdb;
}
.sentence-bar .chip svg { width: 19px; height: 19px; }
.sentence-bar .chip:active { transform: scale(.93); }
.sentence-bar .chip.chip-play { background: var(--accent); color: #fff; border-radius: 50%; }
.sentence-bar .chip.chip-play svg { fill: currentColor; }
.sentence-bar .chip.looping { background: var(--accent-soft); color: var(--accent-deep); }
.chip i { position: relative; font-style: normal; }
.sb-main { display: flex; gap: 4px; flex: none; }
.sb-text {
  flex: 1; min-width: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px; line-height: 1.45; color: #5c5345;
  max-height: 63px; overflow: hidden;
  padding: 2px 2px;
}
.sb-nav { display: flex; gap: 4px; flex: none; }

/* ============ 播放坞 ============ */
.dock {
  margin: 0 auto;
  width: calc(100% - 12px);
  max-width: 940px;
  background: rgba(255, 253, 249, .92);
  border: 1px solid rgba(231, 222, 208, .95);
  border-radius: 20px;
  padding: 8px 12px
           calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 8px 30px rgba(90, 60, 20, .12);
  backdrop-filter: blur(6px);
}

/* 字幕时间条（可拖动/点击定位） */
.scrub-row {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 2px 2px 0;
}
.scrub-row .t {
  font-size: 11px; font-weight: 600; color: #7a705f;
  font-variant-numeric: tabular-nums;
  min-width: 34px; flex: none;
  padding-bottom: 4px;
}
.scrub-row .t.dim { text-align: right; }
.scrub {
  flex: 1; height: 36px; position: relative;
  display: flex; align-items: stretch;
  touch-action: none;
  cursor: pointer;
}
.scrub-segs { display: flex; width: 100%; gap: 2px; align-items: stretch; }
.seg {
  flex: 1 1 0; min-width: 5px;
  background: var(--seg-future);
  border-radius: 6px;
  transition: background .25s;
  position: relative;
}
.seg.past { background: var(--seg-past); }
.seg.on {
  background: linear-gradient(180deg, #f5b27a, var(--seg-active));
  box-shadow: 0 0 6px rgba(217, 85, 46, .5);
  min-width: 9px;
}
.seg.sel { outline: 2px solid #fff; outline-offset: -1px; }
.scrub-thumb {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--accent);
  box-shadow: 0 1px 6px rgba(0,0,0,.28);
  pointer-events: none; left: 0;
}
.scrub-tip {
  position: absolute; bottom: 34px;
  transform: translateX(-50%);
  background: rgba(43, 38, 32, .94); color: #fff;
  border-radius: 9px; padding: 5px 9px;
  font-size: 12px; line-height: 1.35;
  max-width: 70vw; white-space: normal;
  pointer-events: none;
  box-shadow: var(--shadow);
}
.scrub-tip::after {
  content: ""; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: rgba(43,38,32,.94);
}
.scrub-tip time {
  display: block; font-size: 10px; opacity: .75;
  font-variant-numeric: tabular-nums; margin-bottom: 1px;
}

/* 控制按钮 */
.controls {
  margin-top: 2px;
  display: flex; align-items: center; justify-content: space-between;
}
.ctl { display: flex; align-items: center; }
.ctl-btn {
  position: relative;
  min-width: 46px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  gap: 3px; flex-direction: column;
  color: #6b6153;
  border-radius: 12px;
}
.ctl-btn svg { width: 21px; height: 21px; }
.ctl-btn:active { background: #f3ead9; }
.ctl-btn .mode-tag {
  font-size: 9px; font-weight: 700; color: #fff;
  background: #b7ab94; border-radius: 8px;
  padding: 1px 5px; position: absolute; top: 0; right: 0;
  transform: translate(4px, -3px);
}
.ctl-btn .one {
  position: absolute; top: -3px; right: 4px;
  font-size: 10px; font-style: normal; font-weight: 800;
  color: #fff; background: var(--accent);
  border-radius: 10px; padding: 1px 5px;
}
#btnSpeed { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 52px; }

.ctl-center { gap: 8px; }
.ctl-prev, .ctl-next { width: 40px; min-width: 40px; }
.ctl-play {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  color: #fff;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(217, 85, 46, .4);
}
.ctl-play:active { transform: scale(.95); }
.ctl-play svg { width: 27px; height: 27px; }
.ctl-play svg#icoPlay { fill: currentColor; stroke: none; }
.ctl-play svg#icoPause { fill: currentColor; stroke: none; }
.ctl-play.paused svg#icoPause { display: none; }
.ctl-play.paused svg#icoPlay { display: block; }
.ctl-play:not(.paused) svg#icoPlay { display: none; }
.ctl-play:not(.paused) svg#icoPause { display: block; }

/* ============ 课程侧栏 ============ */
.side {
  grid-area: side;
  display: flex; flex-direction: column;
  min-height: 0;
}
.side-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px 4px 16px;
}
.side-title { font-weight: 800; font-size: 15px; }
.side-sub { color: var(--muted); font-size: 12px; font-weight: 500; margin-left: 6px; }
.side-close { display: none; }
.side-search {
  display: flex; align-items: center; gap: 6px;
  margin: 6px 12px 8px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 11px; padding: 0 10px;
}
.side-search svg { width: 16px; height: 16px; color: var(--muted); }
.side-search input {
  border: 0; outline: 0; background: none;
  width: 100%; padding: 9px 0; font-size: 16px; color: var(--ink);
  font-family: inherit;
}
.side-list {
  flex: 1; overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 8px 14px;
  display: flex; flex-direction: column; gap: 2px;
}
.lesson-item {
  display: flex; align-items: baseline; gap: 10px;
  padding: 9px 10px;
  border-radius: 11px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background .15s;
  user-select: none;
}
.lesson-item:hover { background: rgba(255, 253, 249, .8); }
.lesson-item .no {
  font-family: Georgia, serif; font-weight: 700;
  color: var(--accent-deep); font-size: 12px;
  flex: none; width: 22px; text-align: right;
}
.lesson-item .tt {
  font-size: 13.5px; color: #6c6254;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lesson-item .tt.en { font-family: Georgia, serif; }
.lesson-item.current {
  background: var(--accent-soft);
  border-left-color: var(--accent);
}
.lesson-item.current .tt { color: var(--ink); font-weight: 700; }
.lesson-item .dur {
  margin-left: auto; font-size: 10.5px; color: #b5a992;
  font-variant-numeric: tabular-nums; flex: none;
}

/* 遮罩/抽屉（手机） */
.backdrop {
  position: fixed; inset: 0;
  background: rgba(40, 30, 15, .4);
  z-index: 30;
  animation: fadein .2s ease;
}
@keyframes fadein { from { opacity: 0; } }

/* 更多菜单 */
.menu {
  position: fixed; z-index: 60;
  top: calc(var(--top-h) + 8px + env(safe-area-inset-top, 0px));
  right: 12px;
  min-width: 190px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: flex; flex-direction: column;
}
.menu button {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 14px; text-align: left;
}
.menu button:hover { background: #f6eee0; }
.menu svg { width: 18px; height: 18px; color: var(--accent-deep); }

/* 底部弹层 */
.sheet-mask {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(40, 30, 15, .45);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadein .2s ease;
}
.sheet {
  background: var(--card);
  width: 100%; max-width: 760px;
  max-height: 86dvh;
  border-radius: 20px 20px 0 0;
  display: flex; flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  animation: rise .24s cubic-bezier(.2,.9,.3,1);
}
@keyframes rise { from { transform: translateY(40px); opacity: .5; } }
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px 8px;
}
.sheet-head h2 { margin: 0; font-size: 16px; display: flex; align-items: baseline; gap: 8px; }
.sheet-head-actions { display: flex; gap: 4px; }
.sheet-body { overflow-y: auto; padding: 4px 18px 20px; }
.dim { color: var(--muted); font-size: 12px; font-weight: 500; }

.help-body ul { margin: 6px 0 0; padding-left: 18px; }
.help-body li { font-size: 14px; line-height: 1.9; color: #5c5345; }
.help-body b { color: var(--accent-deep); }

.wb-empty { color: var(--muted); text-align: center; padding: 40px 0; font-size: 14px; }
.wb-list { display: flex; flex-direction: column; gap: 8px; }
.wb-item {
  border: 1px solid var(--line); border-radius: 13px;
  padding: 10px 12px; background: #fff;
}
.wb-item .w {
  font-family: Georgia, serif; font-weight: 700; font-size: 16px;
  color: var(--accent-deep); margin-right: 8px;
}
.wb-item .meta { color: var(--muted); font-size: 12px; margin-top: 5px; }
.wb-item .note { font-size: 13px; color: #5c5345; margin-top: 4px; white-space: pre-wrap; }
.wb-item .rm {
  float: right; width: 32px; height: 32px; color: #c4b8a6;
  display: grid; place-items: center; border-radius: 8px;
  touch-action: manipulation;
}
.wb-item .rm:hover { background: #f6eee0; color: var(--accent-deep); }
.wb-item .rm svg { width: 15px; height: 15px; }

.sent-full {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px; line-height: 1.65; color: var(--ink);
  margin: 6px 0 4px;
}
.ss-time { font-size: 12px; color: var(--muted); }
.words {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin: 12px 0 16px;
}
.word-chip {
  background: #f6ecdb;
  border: 1px solid #ecd9bd;
  color: #5c5345;
  padding: 7px 11px;
  border-radius: 10px;
  font-family: Georgia, serif;
  font-size: 15px;
}
.word-chip.on {
  background: var(--accent); border-color: var(--accent);
  color: #fff;
}
.word-chip .apos { color: #cbb89b; }
.word-chip:active { transform: scale(.94); }

.word-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 14px;
  background: #fff;
}
.wc-head { display: flex; align-items: center; gap: 10px; }
.wc-word { font-family: Georgia, serif; font-size: 26px; font-weight: 700; }
.wc-phon { color: var(--muted); font-size: 14px; }
.wc-head .chip {
  margin-left: auto; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-deep);
}
.wc-head .chip svg { width: 20px; height: 20px; }
.wc-mean { margin-top: 10px; font-size: 14px; color: #4c443a; line-height: 1.7; }
.wc-mean .pos { color: var(--accent-deep); font-weight: 700; margin-right: 6px; }
.wc-mean .def { display: block; padding-left: 8px; }
.wc-mean .eg { color: #8d8476; font-family: Georgia, serif; display: block; font-size: 13px; }
.wc-loading, .wc-fail { color: var(--muted); font-size: 13px; padding: 8px 0; }
.wc-note { margin-top: 12px; }
.wc-note label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 4px; }
.wc-note textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 10px; font-family: inherit; font-size: 14px;
  resize: vertical; background: #fbf7f0;
}
.wc-note textarea:focus { outline: 1.5px solid var(--accent); }
.wc-actions { margin-top: 12px; display: flex; justify-content: flex-end; }
.wc-actions .chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent-deep);
  font-size: 14px; font-weight: 700;
  padding: 9px 16px; border-radius: 12px;
}
.wc-actions .chip.saved { background: #e8f0e4; color: #3a7d4e; }
.wc-actions svg { width: 17px; height: 17px; }

/* Toast */
.toast {
  position: fixed; z-index: 99;
  left: 50%; bottom: 30%;
  transform: translateX(-50%);
  background: rgba(43, 38, 32, .92); color: #fff;
  padding: 9px 16px; border-radius: 22px;
  font-size: 13px;
  box-shadow: var(--shadow);
  max-width: 80vw; text-align: center;
}

/* ============ 桌面 / 平板（>=1000px） ============ */
@media (min-width: 1000px) {
  .app {
    grid-template-columns: 320px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "top top" "side main" "dock dock";
  }
  .side {
    margin: 4px 0 6px 14px;
    background: rgba(255, 253, 249, .55);
    border: 1px solid rgba(231, 222, 208, .8);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .side-close { display: none; }
  .col { padding: 4px 18px 6px 14px; }
  .dock { max-width: 1080px; }
  .lyric-item { padding: 5px 16px; }
  .lyrics { padding: 30px 8px; }
  .sentence-bar { bottom: 96px; }
}

/* 手机(<1000px) 侧栏变抽屉 */
@media (max-width: 999.98px) {
  .side {
    position: fixed; z-index: 40;
    top: 0; left: 0; bottom: 0;
    width: min(86vw, 340px);
    background: var(--card);
    box-shadow: 12px 0 40px rgba(0,0,0,.18);
    transform: translateX(-105%);
    transition: transform .26s cubic-bezier(.2,.9,.3,1);
    border-radius: 0 18px 18px 0;
  }
  body.side-open .side { transform: translateX(0); }
  .side-close { display: grid; }
  .side-list { padding-top: 2px; }
  .panel-toolbar .tool .icon-btn { width: 38px; height: 38px; }
  #btnFontDec, #btnFontInc { display: none; }
  .now { font-size: 12.5px; }
  .brand-text { font-size: 13px; }
  .follow-btn span { display: none; }
  .follow-btn { padding: 0 10px; width: 34px; }
  /* 工具栏更紧凑、触控更舒适 */
  .switch { transform: scale(.92); transform-origin: right center; margin-left: 0; }
  .dock .ctl-btn { min-width: 42px; }
  /* 字幕行点击区更大 */
  .lyric-item { padding: 7px 14px; }
  .lyrics { gap: 1px; }
  /* 当前句操作条贴底且更窄 */
  .sentence-bar { width: 94%; bottom: 108px; }
  .sb-text { font-size: 13px; }
  /* 精听按钮两列排布，避免溢出 */
  .study-actions .sbtn { min-width: 46%; }
  .study-sheet { width: 94vw; }
}

/* 很窄的手机：压缩控制 */
@media (max-width: 380px) {
  .brand-text { display: none; }
  .ctl-btn { min-width: 38px; }
  .ctl-btn .mode-tag { font-size: 8px; }
  .ctl-center { gap: 4px; }
  .ctl-play { width: 52px; height: 52px; }
  .study-actions .sbtn { min-width: 100%; }
  .panel-toolbar { gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
}

/* ---- 中文翻译 ---- */
.icon-btn.sm.on,
#btnZh.on {
  color: var(--accent, #ff6f3c);
  background: rgba(255, 111, 60, .12);
  border-color: rgba(255, 111, 60, .35);
}
.icon-btn.sm span {
  font-size: 12px; margin-left: 4px; font-weight: 600;
}
.lyric-item .zh-trans {
  margin: 4px 0 0;
  font-size: .86em;
  color: var(--muted, #6b6358);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  pointer-events: none;
}
.sent-zh {
  margin: 6px 0 4px;
  font-size: 1.02em;
  color: var(--ink, #2a2118);
  font-weight: 600;
  line-height: 1.55;
}
.sent-note {
  margin: 10px 0 14px;
  padding: 12px 14px;
  background: rgba(255, 111, 60, .08);
  border-left: 3px solid var(--accent, #ff6f3c);
  border-radius: 8px;
}
.sent-note h4 {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--accent, #ff6f3c);
  font-weight: 700;
}
.sent-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink, #2a2118);
}

/* ============ 单句精听开关 ============ */
.switch {
  display: inline-flex; align-items: center; gap: 5px;
  cursor: pointer; user-select: none; padding: 0 2px; margin-left: 2px;
}
.switch input { display: none; }
.sw-track {
  width: 38px; height: 22px; border-radius: 20px;
  background: #d9cfbd; position: relative; display: inline-block;
  transition: background .2s;
}
.sw-thumb {
  position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .2s;
}
.switch.on .sw-track { background: var(--accent); }
.switch.on .sw-thumb { transform: translateX(16px); }
.sw-text { font-size: 11px; font-weight: 700; color: #8d8476; }
.switch.on .sw-text { color: var(--accent-deep); }

/* ============ 单句精听卡片（居中弹窗） ============ */
#studyMask { align-items: center; }
.study-sheet {
  left: 50%; top: 50%; right: auto; bottom: auto;
  transform: translate(-50%, -50%);
  width: min(680px, 92vw);
  max-height: 86dvh;
  margin: 0;
  border-radius: 16px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
}
.study-body { padding: 6px 18px 22px; }
.study-en {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px; line-height: 1.6; color: var(--ink);
  margin: 8px 0 4px; word-break: break-word;
}
.study-zh {
  margin: 4px 0 8px; font-size: 16px; line-height: 1.6;
  color: var(--accent-deep); font-weight: 600;
}
.study-actions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.sbtn {
  flex: 1 1 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-width: 110px; height: 46px;
  background: #f6ecdb; color: #5c5345;
  border: 1px solid #ecd9bd; border-radius: 12px;
  font-size: 14px; font-weight: 700;
}
.sbtn svg { width: 18px; height: 18px; }
.sbtn:active { transform: scale(.97); }
.sbtn.disabled, .sbtn[disabled] { opacity: .42; pointer-events: none; }
.sheet-head-actions .icon-btn.looping { background: var(--accent-soft); color: var(--accent-deep); }
#studyLoopOn {
  position: absolute; top: -3px; right: -3px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
}
