
@font-face{font-family:FlowFlowCaption;src:url('/subtitle-font') format('truetype');font-weight:900;font-display:swap}
.subtitle-style{border:1px solid var(--line,#d9dee5);border-radius:10px;padding:12px;margin:12px 0}
.subtitle-style>summary{cursor:pointer;font-weight:600}.subtitle-style-layout{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start;padding-top:14px}
.subtitle-style-controls{flex:1 1 220px;min-width:0}.subtitle-style-field{display:block;margin-bottom:16px}.subtitle-style-field>span:first-child{display:block;margin-bottom:8px}
.subtitle-style-inputs{display:flex;gap:12px;align-items:center}.subtitle-style-inputs input[type=range]{flex:1;min-width:50px;padding:0;width:auto;accent-color:var(--accent,#4767ee)}.subtitle-style-inputs input[type=number]{width:82px;flex:none;padding:8px;border:1px solid var(--line,#d9dee5);border-radius:6px;font:inherit;box-sizing:border-box}
.subtitle-style-preview{margin:0;flex:0 1 180px;max-width:100%}.subtitle-style-preview figcaption{font-size:11px;margin-top:6px;line-height:1.5}
[data-subtitle-canvas]{display:block;position:relative;width:180px;max-width:100%;aspect-ratio:9/16;overflow:hidden;border-radius:10px;background:linear-gradient(145deg,#bac4cd 0%,#e3e6e9 34%,#586571 35%,#263440 68%,#111c27 100%)}
[data-subtitle-sample]{position:absolute;left:50%;bottom:35.546875%;transform:translateX(-50%);white-space:nowrap;font-family:FlowFlowCaption,'Noto Sans KR Black',sans-serif;font-weight:900;line-height:1;color:white;paint-order:stroke fill;font-size:11.395px;-webkit-text-stroke:1px black}
.subtitle-style-expand{display:block;position:relative;padding:0;border:0;background:transparent;color:white;cursor:zoom-in;text-align:initial;max-width:100%}.subtitle-style-expand:focus-visible{outline:3px solid var(--accent,#4767ee);outline-offset:4px}.subtitle-style-expand-label{position:absolute;top:10px;right:10px;border-radius:6px;background:#101828c9;padding:5px 8px;font-size:12px}
dialog.subtitle-style-dialog{box-sizing:border-box;width:min(1100px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);margin:auto;padding:16px;border:1px solid #d9dee5;border-radius:14px;background:#fff;color:#17212f;overflow:auto;overscroll-behavior:contain}
.subtitle-style-dialog::backdrop{background:#0b122bd9}.subtitle-style-dialog-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.subtitle-style-dialog-header h2{font-size:18px;margin:0}.subtitle-style-dialog button{cursor:pointer}.subtitle-style-dialog-header button{padding:8px 12px;border:1px solid #d9dee5;border-radius:8px;background:#fff;color:#17212f;font:inherit}
.subtitle-style-dialog-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;align-items:center;gap:24px}.subtitle-style-dialog [data-subtitle-canvas]{width:min(720px,100%,calc((100dvh - 116px)*9/16));margin:auto}.subtitle-style-dialog .subtitle-style-controls{min-width:0}.subtitle-style-dialog .muted{color:#586571;font-size:12px;line-height:1.5}
@media(max-width:650px){dialog.subtitle-style-dialog{padding:12px}.subtitle-style-dialog-layout{grid-template-columns:minmax(0,1fr);gap:12px}.subtitle-style-dialog [data-subtitle-canvas]{width:min(100%,calc((100dvh - 340px)*9/16))}.subtitle-style-dialog .subtitle-style-field{margin-bottom:8px}.subtitle-style-dialog .subtitle-style-field>span:first-child{margin-bottom:4px}.subtitle-style-dialog .help{margin:6px 0 0}.subtitle-style-dialog-header{margin-bottom:8px}}
