Spaces:
Sleeping

File size: 26,904 Bytes
78bfc3e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
:root {
  color-scheme: light;
  --bg: #ffffff; --stage: #f2f2f4; --surface: #ffffff; --surface-2: #f6f6f8; --surface-3: #ececf0;
  --line: #e8e8ec; --line-2: #dcdce2;
  --fg: #16161a; --muted: #6e6e7a; --dim: #9b9ba6;
  --lime: #C6F24E; --lime-2: #B4E43C; --lime-ink: #14180A; --pulse-blue: #2C57E6;
  --accent: #7c3aed; --danger: #e5484d; --ok: #1f9d55; --warn: #b7791f;
  --r: 10px; --r-lg: 16px;
  font-family: Inter, system-ui, -apple-system, sans-serif; font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body, #root { margin: 0; height: 100%; background: var(--bg); color: var(--fg); }
::selection { background: rgba(124, 58, 237, .18); }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: #d6d6dd; border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; } ::-webkit-scrollbar-track { background: transparent; }

/* ---------- controls ---------- */
button, .btn {
  display: inline-flex; align-items: center; gap: 7px; background: var(--surface); color: var(--fg);
  border: 1px solid var(--line-2); border-radius: 9px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
}
button:hover, .btn:hover { background: var(--surface-2); }
button:active, .btn:active { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: default; transform: none; }
button.primary { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); font-weight: 600; }
button.primary:hover { background: var(--lime-2); border-color: var(--lime-2); }
button.ghost, .btn.ghost { background: transparent; }
button.danger { color: var(--danger); }
button.mini { padding: 4px 10px; font-size: 12px; border-radius: 999px; }
button.link { background: none; border: none; color: var(--fg); padding: 0; }
button.icon { padding: 7px; border-radius: 9px; background: transparent; border-color: transparent; color: var(--muted); }
button.icon:hover { color: var(--fg); background: var(--surface-3); }
button.icon.danger:hover { color: var(--danger); }
button.on { background: #f1ebff; border-color: #c9b5fb; color: #4c1d95; }
input, select, textarea {
  background: var(--surface); color: var(--fg); border: 1px solid var(--line-2); border-radius: 8px;
  padding: 6px 9px; font: inherit; font-size: 13px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(124, 58, 237, .12); }
select { cursor: pointer; }
input[type=range] { accent-color: #16161a; width: 110px; vertical-align: middle; padding: 0; border: none; background: none; box-shadow: none; }
input[type=checkbox] { accent-color: #16161a; width: 15px; height: 15px; }
input[type=color] { width: 30px; height: 24px; padding: 0; border: 1px solid var(--line-2); border-radius: 7px; background: none; cursor: pointer; }
input[type=color]::-webkit-color-swatch-wrapper { padding: 2px; } input[type=color]::-webkit-color-swatch { border: none; border-radius: 5px; }
.muted { color: var(--muted); font-weight: 400; } .small { font-size: 12px; } .mono { font-variant-numeric: tabular-nums; }
.warn { color: var(--warn); }
.row { display: flex; gap: 8px; align-items: center; margin: 10px 0; flex-wrap: wrap; } .row.wrap { flex-wrap: wrap; }
.row label { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.chk { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); cursor: pointer; }
h3 { margin: 0 0 14px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
h3 .muted { font-size: 12.5px; font-weight: 500; }
h4 { margin: 22px 0 10px; font-size: 13px; font-weight: 600; color: var(--fg); display: flex; align-items: center; gap: 8px; }
h4 .muted { font-size: 12px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.grid2 > label, .grid2 > button, .grid2 > span {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; min-width: 0;
  padding: 7px 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px;
  font-size: 12px; color: var(--muted);
}
.grid2 > label input[type=range] { flex: 1; min-width: 50px; width: auto; }
.grid2 > label select { max-width: 62%; min-width: 0; }

/* ---------- logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: 'Space Grotesk', Inter, sans-serif; }
.brand .pulse-mark { flex: none; display: block; }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.brand-by { font-size: 12px; font-weight: 600; color: var(--muted); align-self: flex-end; margin: 0 0 2px 1px; white-space: nowrap; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -.03em; }
.logo-mark { display: inline-block; width: 26px; height: 26px; border-radius: 8px; background: #16161a; position: relative; flex: none; }
.logo-mark::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: 7px; height: 4px; border-radius: 2px; background: var(--lime); box-shadow: 0 -6px 0 #fff; }

/* ---------- start screen (composer flow) ---------- */
.home { min-height: 100%; padding: 0 24px 72px; background:
  radial-gradient(70% 55% at 0% 0%, #f9cfae 0%, rgba(249, 207, 174, 0) 70%),
  radial-gradient(60% 50% at 100% 0%, #b9dcf6 0%, rgba(185, 220, 246, 0) 70%),
  radial-gradient(50% 40% at 50% 100%, #f3e7ff 0%, rgba(243, 231, 255, 0) 70%), #fbfaf8; }
.home::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.home > * { position: relative; }
.home-nav { max-width: 1180px; margin: 0 auto; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; top: 14px;
  background: rgba(255, 255, 255, .55); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .8); border-radius: 18px; box-shadow: 0 8px 30px -12px rgba(30, 20, 60, .15); }
.pill { font-size: 12.5px; color: #3b3b46; padding: 7px 13px; border: 1px solid rgba(0, 0, 0, .1); border-radius: 999px; background: rgba(255, 255, 255, .7); }
.hero { max-width: 880px; margin: 74px auto 0; text-align: center; }
.hero h1 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: clamp(38px, 5.6vw, 64px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 34px; color: #1c1b1f; }
.composer { max-width: 620px; margin: 0 auto; text-align: left; background: rgba(255, 255, 255, .78); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .9); border-radius: 22px; padding: 8px; box-shadow: 0 30px 60px -30px rgba(30, 20, 60, .35), 0 0 0 1px rgba(0, 0, 0, .04); transition: box-shadow .2s, transform .2s; }
.composer.over { transform: translateY(-2px); box-shadow: 0 30px 70px -26px rgba(124, 58, 237, .45), 0 0 0 2px #a78bfa; }
.composer-drop { min-height: 190px; border-radius: 16px; border: 1px dashed #d8d6de; background: #f7f7f9; display: grid; place-items: center; cursor: pointer; overflow: hidden; }
.composer-drop:hover { background: #f2f1f6; }
.empty-drop { display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 13px; font-weight: 500; color: #2b2b33; }
.stack { position: relative; width: 70px; height: 70px; }
.stack .card { position: absolute; width: 40px; height: 58px; border-radius: 6px; top: 4px; }
.stack .a { left: 4px; transform: rotate(-9deg); background: linear-gradient(160deg, #6f5b7b, #2e2a3a); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5); }
.stack .b { left: 24px; transform: rotate(5deg); background: #fff; border: 1px solid #e3e1e8; display: grid; place-items: center; color: #9b9ba6; font-size: 18px; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .35); }
.picked { display: flex; align-items: center; gap: 16px; padding: 14px; width: 100%; cursor: default; }
.picked video { width: 92px; height: 150px; object-fit: cover; border-radius: 10px; background: #000; flex: none; }
.picked > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.picked strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picked .link { color: var(--accent); font-size: 13px; text-decoration: underline; align-self: flex-start; }
.uploading { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; }
.bar { display: block; width: 260px; height: 6px; border-radius: 6px; background: #e7e5ee; overflow: hidden; } .bar span { display: block; height: 100%; background: #16161a; transition: width .2s; }
.composer-bar { display: flex; align-items: center; gap: 8px; padding: 10px 4px 4px; }
.icon.round { border: 1px solid var(--line-2); border-radius: 50%; width: 34px; height: 34px; justify-content: center; padding: 0; color: #3b3b46; background: #fff; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; background: #e7f4fd; color: #1677c8; font-size: 12.5px; font-weight: 600; }
.chip svg { width: 15px; height: 15px; }
.mode { height: 34px; border-radius: 999px; padding: 0 12px; font-size: 12.5px; background: #fff; }
.create { height: 38px; padding: 0 16px; border-radius: 12px; background: #16161a; color: #fff; border: none; font-weight: 600; }
.create:hover { background: #2a2a31; }
.create:disabled { background: #e6e5ea; color: #a3a2ad; opacity: 1; }
.create svg { width: 16px; height: 16px; }
.style-row { display: flex; gap: 12px; overflow-x: auto; width: 100vw; margin-left: calc(50% - 50vw); padding: 22px max(24px, calc(50vw - 440px)) 14px; scrollbar-width: none; }
.style-row::-webkit-scrollbar { display: none; }
.style-tile { flex: none; width: 150px; padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden; position: relative; background: #222;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .6); transition: transform .18s, border-color .18s, box-shadow .18s; }
.style-tile canvas { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; }
.style-tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 6px 9px; font-size: 11.5px; font-weight: 600; color: #fff; text-align: center; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.style-tile:hover { transform: translateY(-3px); background: #222; }
.style-tile.on { border-color: #fff; box-shadow: 0 0 0 2px #16161a, 0 18px 34px -16px rgba(0, 0, 0, .7); }
.style-more { flex: none; width: 150px; aspect-ratio: 9 / 16; border-radius: 14px; border: 1px dashed #cfcdd6; background: rgba(255, 255, 255, .6); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 12px; color: var(--muted); font-size: 12.5px; }
.style-more strong { font-size: 26px; color: var(--fg); font-family: 'DM Serif Display', serif; font-weight: 400; }
.fine { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.notice { max-width: 620px; margin: 22px auto 0; padding: 12px 16px; border-radius: var(--r); background: #fff8e6; border: 1px solid #f5d98b; color: #7a5a00; font-size: 13.5px; }
.projects-section { max-width: 1180px; margin: 70px auto 0; }
.section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.count { font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, .8); border: 1px solid var(--line); padding: 2px 9px; border-radius: 999px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.project { border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; cursor: pointer; transition: transform .18s, box-shadow .18s; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.project:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -20px rgba(30, 20, 60, .45); }
.thumb { position: relative; aspect-ratio: 4 / 5; background: #111; }
.thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.dur { position: absolute; right: 10px; bottom: 10px; font-size: 11.5px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .55); padding: 3px 7px; border-radius: 6px; }
.status { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--ok); }
.status.running { color: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
.status.error { color: var(--danger); }
@keyframes pulse { 50% { opacity: .55; } }
.meta { display: flex; align-items: center; gap: 8px; padding: 12px 10px 12px 14px; }
.meta > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.meta strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta .muted { font-size: 12px; }
.empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: rgba(255, 255, 255, .6); }

/* ---------- editor (VEED-style layout) ---------- */
.editor { display: grid; grid-template-rows: 56px 1fr 236px; height: 100vh; background: var(--bg); }
.editor-bar { display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--line); background: #fff; }
.logo-btn { padding: 4px; border: none; background: none; margin-right: 6px; display: inline-flex; }
.logo-btn:hover { background: none; }
.editor-bar .title { display: flex; flex-direction: column; min-width: 0; max-width: 420px; }
.editor-bar .title strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.editor-bar .title .muted { font-size: 11.5px; }
.saved { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); margin-right: 8px; }
.saved svg { width: 15px; height: 15px; color: var(--ok); }
.done { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); font-weight: 600; height: 36px; padding: 0 16px; }
.done:hover { background: var(--lime-2); border-color: var(--lime-2); }
.done svg { width: 16px; height: 16px; }
.body { display: grid; grid-template-columns: 76px 360px 1fr; min-height: 0; }
.tabs { display: flex; flex-direction: column; gap: 2px; padding: 10px 6px; border-right: 1px solid var(--line); background: #fff; }
.tabs button { flex-direction: column; gap: 5px; padding: 10px 2px; font-size: 11px; font-weight: 500; color: #55555f; background: transparent; border-color: transparent; border-radius: 10px; }
.tabs button svg { width: 20px; height: 20px; padding: 6px; box-sizing: content-box; border-radius: 8px; }
.tabs button:hover { background: transparent; color: var(--fg); }
.tabs button:hover svg { background: var(--surface-3); }
.tabs button.on { background: transparent; border-color: transparent; color: var(--fg); font-weight: 600; }
.tabs button.on svg { background: var(--surface-3); color: var(--fg); }
aside { overflow-y: auto; overflow-x: hidden; border-right: 1px solid var(--line); background: #fff; }
.panel { padding: 18px 16px 28px; }
main { position: relative; min-height: 0; padding: 18px 22px 14px; display: flex; flex-direction: column; align-items: center; gap: 12px; background: var(--stage); }
.preview { position: relative; flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.preview canvas { max-height: 100%; max-width: 100%; background: #000; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .5); cursor: grab; }
.stage-pill { display: flex; align-items: center; gap: 10px; padding: 5px 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 20px -12px rgba(0, 0, 0, .25); font-size: 12.5px; }
.stage-pill label { display: inline-flex; align-items: center; gap: 6px; color: var(--fg); font-weight: 500; }
.stage-pill svg { width: 16px; height: 16px; color: #55555f; }
.stage-pill select { border: none; padding: 4px 2px; font-weight: 500; background: transparent; box-shadow: none; }
.stage-pill .link { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px; font-weight: 500; font-size: 12.5px; }
.stage-pill .sep { width: 1px; height: 18px; background: var(--line); }

/* transcript */
.transcript { line-height: 2.15; font-size: 15px; outline: none; margin-top: 8px; padding: 12px 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); }
.card-group { padding-right: 8px; border-right: 1px solid var(--line-2); margin-right: 6px; }
.word { padding: 3px 4px; border-radius: 6px; cursor: pointer; transition: background .12s; }
.word:hover { background: var(--surface-3); }
.word.active { background: var(--lime); color: var(--lime-ink); }
.word.sel { outline: 1.5px solid var(--fg); }
.word.emph { text-decoration: underline; text-decoration-color: #e6a700; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.word.lowconf { color: var(--warn); }
.word.deleted { text-decoration: line-through; color: var(--danger); opacity: .7; }
.word-edit { width: 90px; }

/* style presets */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.tags .mini { background: var(--surface-2); color: #45454f; border-color: var(--line); }
.tags .mini.on { background: #16161a; border-color: #16161a; color: #fff; }
.presets { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.preset { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; background: #fff; border-radius: 11px; border: 1.5px solid var(--line); }
.preset canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.preset-name { padding: 7px 10px; font-size: 12px; font-weight: 600; text-align: left; color: var(--fg); }
.preset:hover { border-color: #b8b8c2; background: #fff; transform: translateY(-1px); }
.preset.on { border-color: #16161a; box-shadow: 0 0 0 2px #16161a; background: #fff; }
.emoji { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; } .emoji button { font-size: 20px; padding: 6px 8px; background: var(--surface-2); }
.list { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 4px; }
.list li { padding: 9px 12px; border-radius: 9px; cursor: pointer; display: flex; justify-content: space-between; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; }
.list li.on { border-color: #16161a; background: #fff; }
.list a { color: var(--fg); }

/* timeline */
.timeline { border-top: 1px solid var(--line); background: #fff; display: grid; grid-template-rows: 50px 1fr; }
.tl-tools { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 14px; font-size: 12.5px; }
.tl-left, .tl-right { display: flex; align-items: center; gap: 8px; }
.tl-right { justify-content: flex-end; } .tl-right input[type=range] { width: 90px; }
.hint { display: inline-flex; align-items: center; gap: 6px; color: #45454f; font-weight: 500; }
.hint svg { width: 16px; height: 16px; }
.tl-transport { display: flex; align-items: center; gap: 6px; }
.tl-transport .icon svg { width: 16px; height: 16px; }
.play { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--fg); }
.play:hover { background: var(--surface-2); }
.time { font-size: 13px; font-weight: 500; min-width: 120px; margin-left: 6px; }
.tl-body { display: grid; grid-template-columns: 92px 1fr; min-height: 0; border-top: 1px solid var(--line); }
.tl-labels { position: relative; border-right: 1px solid var(--line); background: #fff; }
.tl-labels span { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 6px; padding-left: 12px; font-size: 11.5px; font-weight: 600; color: #55555f; }
.tl-labels svg { width: 14px; height: 14px; }
.tl-scroll { position: relative; overflow-x: auto; overflow-y: hidden; } .tl-scroll canvas { display: block; }
.tl-edit { position: absolute; height: 38px; font-size: 13px; font-weight: 600; border: 2px solid #7c3aed; border-radius: 8px; box-shadow: 0 8px 24px -10px rgba(124, 58, 237, .5); z-index: 2; }

/* progress */
.progress { position: relative; height: 30px; background: var(--surface-2); border-radius: 9px; overflow: hidden; margin-top: 12px; border: 1px solid var(--line); }
.progress div { height: 100%; background: var(--lime); transition: width .2s; }
.progress span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }

textarea { width: 100%; }
.modal { position: fixed; inset: 0; background: rgba(20, 20, 26, .45); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 10; }
.modal-body { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; width: min(720px, 94vw); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .45); }
a.btn { text-decoration: none; display: inline-flex; }

@media (max-width: 1100px) { .body { grid-template-columns: 68px 320px 1fr; } .saved { display: none; } }

/* caption editing on the stage */
.text-toolbar { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 4px; padding: 5px 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .35); white-space: nowrap; max-width: calc(100% - 24px); overflow-x: auto; }
.text-toolbar select { border: none; max-width: 150px; font-weight: 600; }
.text-toolbar .sep { width: 1px; height: 22px; background: var(--line); margin: 0 3px; }
.text-toolbar .seg { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 8px; }
.text-toolbar .seg button { border: none; padding: 4px 8px; background: none; }
.text-toolbar .seg span { min-width: 28px; text-align: center; font-size: 12.5px; font-weight: 600; }
.tb { border: 1px solid transparent; background: none; padding: 5px 8px; min-width: 30px; justify-content: center; font-weight: 600; }
.tb:hover { background: var(--surface-2); }
.tb.on { background: #f1ebff; border-color: #c9b5fb; color: #4c1d95; }
.tb.text { font-weight: 500; font-size: 12.5px; }
.tb.danger { color: var(--danger); }
.swatch { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 11px; font-weight: 700; color: #33333b; gap: 1px; }
.swatch:hover { background: var(--surface-2); }
.swatch span { order: 2; width: 18px; height: 4px; border-radius: 2px; }
.swatch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.cap-edit { position: absolute; z-index: 4; resize: none; text-align: center; border: 2px solid #7c3aed; border-radius: 10px; background: rgba(255, 255, 255, .96); box-shadow: 0 14px 34px -12px rgba(124, 58, 237, .5); padding: 6px 10px; line-height: 1.2; }
.history { display: flex; gap: 2px; margin-right: 6px; }
.editor-bar .title .name { cursor: text; border-radius: 6px; padding: 1px 4px; margin-left: -4px; }
.editor-bar .title .name:hover { background: var(--surface-2); }
.rename { font-size: 14px; font-weight: 600; padding: 3px 6px; width: 260px; }

/* subtitles list */
.seg-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 14px 0 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; }
.seg-tabs button { border: none; background: none; justify-content: center; padding: 7px; font-weight: 600; color: var(--muted); }
.seg-tabs button.on { background: #fff; color: var(--fg); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.add-cap { display: flex; gap: 6px; margin-bottom: 10px; } .add-cap input { flex: 1; min-width: 0; }
.cap-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.cap-row { padding: 8px 10px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .12s, background .12s; }
.cap-row:hover { border-color: #c9c9d2; }
.cap-row.now { background: #fbfff0; border-color: var(--lime-2); }
.cap-row.sel { border-color: #7c3aed; box-shadow: 0 0 0 1px #7c3aed; }
.cap-head { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.cap-actions { display: flex; gap: 0; opacity: .55; } .cap-row:hover .cap-actions, .cap-row.sel .cap-actions { opacity: 1; }
.cap-actions .icon { padding: 4px; } .cap-actions svg { width: 15px; height: 15px; }
.cap-row textarea { width: 100%; border: none; padding: 2px 0; font-size: 14px; font-weight: 500; resize: none; background: transparent; box-shadow: none; field-sizing: content; min-height: 22px; }
.cap-row textarea:focus { box-shadow: none; outline: none; }
.word-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; margin-bottom: 10px; background: #f6f2ff; border: 1px solid #ddd0fd; border-radius: 10px; font-size: 13px; }
.word-bar strong { margin-right: 4px; }
.word.hidden { opacity: .45; font-style: italic; }

.keys dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.keys dl > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.keys dt { margin: 0; } .keys dd { margin: 0; color: var(--muted); text-align: right; }
kbd { font: 600 12px Inter, sans-serif; padding: 3px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line-2); border-bottom-width: 2px; white-space: nowrap; }

.tl-left select { height: 30px; padding: 0 6px; font-size: 12.5px; }
.tl-left .btn, .tl-left button { height: 30px; }
.busy { font-size: 12px; font-weight: 600; color: var(--pulse-blue); animation: pulse 1.2s ease-in-out infinite; }
.stage-busy { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: rgba(242, 242, 244, .7); backdrop-filter: blur(2px); font-weight: 600; }