/* Burn Subtitles: video preview with the subtitle overlay, and the style panel. Components: _shared/media/vh-media.css. */
.tool-burn-subtitles { display: flex; flex-direction: column; gap: 14px; }
.tool-burn-subtitles .bs-drop { min-height: 180px; }
.tool-burn-subtitles .bs-drop.vhm-has-compact { min-height: 0; }
.tool-burn-subtitles .bs-editor { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 960px) {
  .tool-burn-subtitles .bs-editor { grid-template-columns: minmax(0, 1fr) 330px; }
  .tool-burn-subtitles .bs-main { position: sticky; top: 12px; }
}
.tool-burn-subtitles .bs-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tool-burn-subtitles .bs-stage { display: flex; justify-content: center; background: var(--vhm-bg-2, #f1f3f8); border-radius: var(--vhm-radius-sm, 8px); padding: 8px; }
/* The frame shrinks to the video's own box, so the overlay canvas lies exactly on the picture. */
.tool-burn-subtitles .bs-frame { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.tool-burn-subtitles .bs-frame video { display: block; max-width: 100%; max-height: 62vh; width: auto; height: auto; background: #000; border-radius: 6px; }
.tool-burn-subtitles .bs-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tool-burn-subtitles .bs-subs { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.tool-burn-subtitles .bs-subinfo { margin: 0; font-size: .92rem; overflow-wrap: anywhere; }
.tool-burn-subtitles .bs-subinfo:empty { display: none; }
.tool-burn-subtitles .bs-settings { display: flex; flex-direction: column; gap: 10px; }
.tool-burn-subtitles .bs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; }
.tool-burn-subtitles .bs-three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; align-items: end; }
.tool-burn-subtitles input[type="range"] { width: 100%; accent-color: var(--vhm-accent, #2b59ff); min-height: 32px; }
.tool-burn-subtitles input[type="color"] { width: 100%; min-height: 36px; }
.tool-burn-subtitles .bs-plan { margin: 0; font-size: .9rem; background: var(--vhm-bg-2, #f1f3f8); border-radius: 10px; padding: 8px 10px; }
.tool-burn-subtitles .bs-plan:empty { display: none; }
/* BS-3: own play controls under the video, so bottom subtitles never sit on a control bar in the preview. */
.tool-burn-subtitles .bs-row { display: flex; align-items: center; gap: 10px; }
.tool-burn-subtitles .bs-seek { flex: 1; min-width: 0; accent-color: var(--vhm-accent, #2b59ff); min-height: 32px; }
.tool-burn-subtitles .bs-time { font-variant-numeric: tabular-nums; font-size: .9rem; min-width: 7ch; text-align: right; }
