/* 逐句精听（js/core/blind-mode.js）：沿用学习页布局，只替换字幕区内容；字幕本身用原 .line.cur 样式，不在这里改字号、颜色或金线 */
.st-top .sl-toggle{min-height:36px;padding:0 12px;font-size:13px;flex:none}
.st-top .sl-toggle[aria-pressed="true"]{background:var(--accent-soft);color:var(--accent-ink)}
.st-top .sl-toggle:disabled{opacity:.45;cursor:not-allowed}

/* 精听中暂收起：字幕模式、单句循环、沉浸切换、回到当前句；字幕区只留精听面板和播放权提示 */
.st.listen [data-mode],.st.listen [data-loop],.st.listen .st-top .imm,.st.listen .pill{display:none!important}
/* 精听字幕区：.ly 本身不滚动；上方历史 .sl-hist 与下方当前组 .sl-cur 各自滚动，当前组贴着底部操作栏、展开时向上增长 */
.st.listen .ly{-webkit-mask-image:none;mask-image:none;overflow:hidden;display:flex;flex-direction:column;padding-bottom:8px}
.st.listen .ly::after{display:none}
.st.listen .ly>:not(.sl):not([data-leasebar]){display:none!important}
.st.listen .ly>[data-leasebar]{flex:none}

.sl{flex:1;min-height:0;display:flex;flex-direction:column;gap:6px}
.sl-hist{flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;position:relative}
/* 历史不足一屏时贴近当前组（像连续的字幕记录），超过时正常滚动 */
.sl-hist>:first-child{margin-top:auto}
/* 历史：原字幕 .line 结构，中英都显示；比原来的非当前句（.42）更清楚，保证金线可辨，但低于当前组 */
.sl-hist .line{opacity:.72;cursor:default}
.sl-hist .line:hover{opacity:.9}
/* 当前组：隐藏答案时只剩按钮行；展开后字幕在按钮行上方，超过上限在 .sl-lines 内部滚动，不缩字号 */
.sl-cur{flex:none;display:flex;flex-direction:column;max-height:55%;min-height:0}
.sl-lines{min-height:0;overflow-y:auto;overscroll-behavior:contain}
.sl-lines .line{cursor:default}
.sl-head{flex:none;display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;min-height:36px;padding-top:4px}
.sl-no{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.sl-no b{color:var(--fg);font-weight:600}
/* 两个固定槽位：[隐藏答案][主按钮] 靠右；按钮不显示时用 visibility 保留占位，主按钮位置在四种状态下不变 */
.sl-acts{margin-left:auto;display:flex;gap:8px}
.sl-acts .btn{min-height:36px;padding:0 14px;font-size:13px;gap:5px;white-space:nowrap}
.sl-bad{margin:8px 0 0;font-size:13px;color:var(--danger)}
.g-main .btn:disabled{opacity:.35;cursor:not-allowed}
.g-main .btn:disabled:active{transform:none}

/* 隐藏画面：只模糊 <video>，放大裁掉模糊后发虚的边缘；叠加字幕、按钮在其上保持清晰 */
.fv{--veil-blur:max(18px,4.2vw)}
.fv.veiled video{filter:blur(var(--veil-blur)) brightness(.55) saturate(1.15);transform:scale(1.2)}
.fv.veil-solid video{filter:none;transform:none}
.sl-shade{position:absolute;inset:0;background:#0b0c10}
.sl-center{position:absolute;left:50%;top:50%;z-index:3;width:64px;height:64px;margin:-32px 0 0 -32px;display:grid;place-items:center;border-radius:50%;border:1px solid rgba(255,255,255,.28);background:rgba(0,0,0,.42);color:#fff;cursor:pointer}
.sl-center .ic{width:30px;height:30px}
.sl-center:active{transform:scale(.95)}
.sl-unveil{position:absolute;right:10px;top:calc(54px + env(safe-area-inset-top));z-index:3;min-height:34px;padding:0 12px;font-size:13px;background:rgba(0,0,0,.45);border-color:rgba(255,255,255,.25);color:#fff}

@media (orientation:landscape) and (min-width:900px){
  .fv{--veil-blur:max(26px,2.8vw)}
  .sl-cur{max-height:60%}
}
@media (orientation:landscape) and (max-height:500px){
  .fv{--veil-blur:max(16px,3vw)}
  .sl-cur{max-height:68%}
  .st.listen .ly{padding-top:8px}
  .sl-center{width:52px;height:52px;margin:-26px 0 0 -26px}
  .sl-unveil{top:calc(44px + env(safe-area-inset-top))}
}
@media (max-width:599px){
  .st-top .sl-toggle{padding:0 10px;font-size:12px}
}
