/* 音视频转文字：页面专属样式 */
.live-list { max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; }
.live-item { display: flex; gap: 10px; font-size: 13.5px; padding: 8px 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); animation: fadeUp .3s ease-out; }
.live-item time { color: var(--a1); font-variant-numeric: tabular-nums; font-size: 12px; padding-top: 1px; flex: none; }

.result-head { display: flex; gap: 12px; align-items: center; }

/* 播放器 + 时间轴 */
.player { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--grad-soft); border: 1px solid var(--border); }
.play-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 8px 22px -8px rgba(215,182,125,.9); flex: none; }
.play-btn:disabled { opacity: .4; }
.player-main { flex: 1; min-width: 0; }
.timeline { position: relative; height: 30px; border-radius: 8px; background: var(--input); border: 1px solid var(--border); cursor: pointer; overflow: hidden; touch-action: none; }
.tl-segs { position: absolute; inset: 0; }
.tl-segs i { position: absolute; top: 7px; bottom: 7px; border-radius: 3px; background: linear-gradient(180deg, rgba(213,179,121,.55), rgba(214,181,124,.55)); opacity: .55; }
.tl-segs i.on { opacity: 1; box-shadow: 0 0 10px rgba(222,195,149,.8); }
.tl-progress { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, rgba(213,179,121,.10), rgba(214,181,124,.18)); pointer-events: none; }
.tl-head { position: absolute; top: 0; bottom: 0; width: 2px; left: 0; background: #fff; box-shadow: 0 0 8px rgba(214,181,124,.9); pointer-events: none; }
[data-theme="light"] .tl-head { background: var(--a2); }
.player-time { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.player select.rate { width: 86px; flex: none; padding: 7px 26px 7px 10px; font-size: 13px; background-position: right 8px center; }

.editor-tools { display: flex; align-items: center; gap: 12px; margin: 16px 0 10px; flex-wrap: wrap; }
.search-box { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 160px; max-width: 320px; padding: 0 12px; height: 38px; border-radius: 11px; background: var(--input); border: 1px solid var(--border); color: var(--muted); }
.search-box input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--text); }
.follow { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.save-state { margin-left: auto; font-size: 12.5px; display: flex; align-items: center; gap: 6px; }

/* 逐句编辑列表 */
.seg-list { display: flex; flex-direction: column; gap: 6px; max-height: 62vh; overflow-y: auto; padding: 2px 4px 2px 2px; scroll-behavior: smooth; }
.row { display: grid; grid-template-columns: 116px 1fr auto; gap: 10px; align-items: start; padding: 8px 10px; border-radius: 12px; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.row:hover { background: var(--card); border-color: var(--border); }
.row.active { background: var(--grad-soft); border-color: rgba(222,195,149,.35); }
.row.match { border-color: rgba(251,191,36,.5); }
.row.hide { display: none; }
.r-time { display: flex; align-items: flex-start; gap: 6px; padding-top: 4px; }
.r-time .t-play { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--card); color: var(--a1); display: grid; place-items: center; flex: none; padding: 0; transition: all .15s; }
.r-time .t-play:hover, .row.active .t-play { background: var(--grad); color: #fff; border-color: transparent; }
.r-time .t-edit { display: flex; flex-direction: column; }
.r-time input { width: 78px; padding: 0 5px; height: 20px; border-radius: 6px; border: 1px solid transparent; background: none; color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; outline: none; }
.r-time input[data-f="start"] { color: var(--a1); font-weight: 650; font-size: 12.5px; }
.r-time input:hover, .r-time input:focus { border-color: var(--border-strong); background: var(--input); }
.r-time input:focus { color: var(--text); }
.r-text { width: 100%; resize: none; overflow: hidden; border: 1px solid transparent; background: none; outline: none; padding: 4px 8px; border-radius: 9px; line-height: 1.6; font-size: 15px; color: var(--text); min-height: 34px; }
.r-text:hover { border-color: var(--border); }
.r-text:focus { border-color: var(--a1); background: var(--input); box-shadow: 0 0 0 3px rgba(213,179,121,.15); }
.r-ops { display: flex; gap: 2px; opacity: 0; transition: opacity .15s; padding-top: 2px; }
.row:hover .r-ops, .row:focus-within .r-ops { opacity: 1; }
.r-ops button { width: 30px; height: 30px; border-radius: 8px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; }
.r-ops button:hover { background: var(--card-strong); color: var(--text); }
.r-ops button.del:hover { color: var(--err); }
.empty-res { text-align: center; padding: 36px 10px; color: var(--muted); }

.export-card .opt { align-items: flex-start; }
.export-card .opt .opt-t { display: flex; align-items: center; gap: 6px; }

#stepResult:not(.hidden) { display: flex; flex-direction: column; gap: 16px; }
#stepResult > .card { margin-top: 0; }

@media (max-width: 720px) {
  .export-card { order: 1; }
  .editor-card { order: 2; }
  .result-head { flex-direction: column; align-items: stretch; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { padding: 10px; }
  .stat .s-v { font-size: 15px; }
  .stat .s-l { font-size: 11px; }
  .player { gap: 10px; padding: 10px; }
  .play-btn { width: 40px; height: 40px; }
  .player select.rate { width: 72px; }
  .row { grid-template-columns: 1fr auto; gap: 4px 6px; padding: 8px 6px; }
  .r-time { align-items: center; grid-column: 1 / 2; }
  .r-time .t-edit { flex-direction: row; gap: 2px; align-items: center; }
  .r-time .t-edit::before { content: none; }
  .r-text { grid-column: 1 / -1; grid-row: 2; font-size: 15px; }
  .r-ops { opacity: 1; grid-column: 2; grid-row: 1; }
  .r-ops button { width: 28px; height: 28px; }
  .seg-list { max-height: none; }
  .save-state { margin-left: 0; width: 100%; }
  .search-box { max-width: none; }
}
