:root {
  color-scheme: light;
  --vc-page: #f5f7fa;
  --vc-panel: #fff;
  --vc-ink: #202733;
  --vc-muted: #5c6878;
  --vc-line: #e1e6ee;
  --vc-accent: #474cce;
  --vc-accent-hover: #393db6;
  --vc-accent-soft: #eff0ff;
  --vc-accent-line: #d8dafb;
  --vc-success: #146145;
  --vc-error: #a2293b;
  --vc-warning: #8a4c10;
  --vc-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%235c6878' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  color: var(--vc-ink);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--vc-page); }
h1, h2, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:where(a, button, input, select, video):focus-visible { outline: 2px solid var(--vc-accent); outline-offset: 3px; }
svg { display: block; width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.vc-definitions, .vc-sr-only, .vc-preset input, .vc-style-mode input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.vc-shell { width: min(100% - 64px, 1240px); margin-inline: auto; }
.vc-top { background: var(--vc-panel); border-bottom: 1px solid var(--vc-line); }
.vc-top .vc-shell { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vc-brand, .vc-language, .vc-local { display: flex; align-items: center; }
.vc-brand { gap: 10px; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.vc-brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #18785e; color: #fff; }
.vc-language { gap: 5px; color: var(--vc-muted); }
.vc-language svg { width: 16px; height: 16px; }
.vc-language select, .vc-encoding select {
  appearance: none;
  min-width: 0;
  min-height: 34px;
  padding: 5px 18px 5px 4px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--vc-panel) var(--vc-chevron) no-repeat right 3px center;
  font-size: 12px;
  cursor: pointer;
}

main.vc-shell { padding-block: 32px 32px; }
.vc-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 22px; }
.vc-intro h1 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; letter-spacing: -.035em; font-weight: 720; }
.vc-intro-text { margin-top: 8px; color: var(--vc-muted); }
.vc-local { gap: 6px; flex: none; color: var(--vc-muted); font-size: 12px; padding-block: 2px; white-space: nowrap; }
.vc-local svg { width: 15px; height: 15px; color: var(--vc-success); }

.vc-workspace {
  display: grid;
  grid-template: "preview files" auto "preview styles" auto "preview export" 1fr / minmax(0, 1fr) minmax(300px, 342px);
  gap: 12px 16px;
  align-items: start;
}
.vc-card {
  min-width: 0;
  background: var(--vc-panel);
  border: 1px solid var(--vc-line);
  border-radius: 13px;
}
.vc-card h2 { font-size: 14px; font-weight: 680; }
.vc-files, .vc-styles, .vc-export { padding: 15px; }
.vc-files { grid-area: files; display: grid; gap: 8px; }
.vc-files h2 { margin-bottom: 1px; }

.vc-picker {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) 17px;
  align-items: center;
  gap: 10px;
  text-align: start;
  padding: 8px 10px;
  border: 1px dashed #cdd5e1;
  border-radius: 9px;
  background: #fafbfe;
}
.vc-picker:is(:hover, .is-dragging, .dragover):enabled { border-color: var(--vc-accent); background: var(--vc-accent-soft); }
.vc-picker:disabled { opacity: .62; }
.vc-file-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 8px;
  background: #eceeff;
  color: #474cbd;
}
#vc-subtitle-pick .vc-file-icon { background: #e7f3f2; color: #176962; }
.vc-file-info { min-width: 0; }
.vc-file-info strong, .vc-file-info small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.vc-file-info strong { font-weight: 650; font-size: 13px; }
.vc-file-info small { color: var(--vc-muted); font-size: 11px; margin-top: 1px; }
.vc-file-add { color: var(--vc-muted); width: 15px; height: 15px; }
.vc-encoding { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--vc-muted); font-size: 12px; }
.vc-encoding select { max-width: 100%; border-color: var(--vc-line); padding-inline-start: 8px; }

.vc-preview-card { grid-area: preview; padding: 15px; }
.vc-preview-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 22px; margin: 0 2px 11px; }
.vc-preview-meta { color: var(--vc-muted); font-size: 12px; text-align: end; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.vc-preview-meta:empty { display: none; }
.vc-preview-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 540px;
  min-height: 0;
  overflow: hidden;
  background: #111624;
  border: 1px solid #202738;
  border-radius: 9px;
  isolation: isolate;
}
#vc-preview, #vc-overlay, .vc-preview-empty { position: absolute; inset: 0; width: 100%; height: 100%; }
#vc-preview { background: #111624; object-fit: contain; }
.vc-preview-stage:not(.has-video) #vc-preview { visibility: hidden; }
#vc-overlay { pointer-events: none; }
.vc-preview-empty {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 11px;
  padding: 16px;
  color: #c2cce0;
  background: radial-gradient(ellipse at center, #252f46 0%, #171f32 48%, #111624 100%);
  text-align: center;
  font-size: 13px;
}
.vc-empty-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 15px;
  background: #303d58;
  color: #c3ccff;
}
.vc-empty-icon svg { width: 27px; height: 27px; stroke-width: 1.45; }
.vc-player-controls { display: grid; grid-template-columns: 36px auto minmax(0, 1fr) auto; align-items: center; gap: 9px; margin-top: 8px; }
.vc-preview-stage:not(.has-video) + .vc-player-controls { display: none; }
.vc-play { display: grid; place-items: center; width: 35px; height: 35px; padding: 0; border: 1px solid var(--vc-line); border-radius: 8px; background: var(--vc-panel); color: #3b426a; }
.vc-play:enabled:hover { background: var(--vc-accent-soft); }
.vc-play svg { width: 17px; height: 17px; }
.vc-time { font-size: 12px; color: var(--vc-muted); font-variant-numeric: tabular-nums; }
.vc-player-controls input { width: 100%; min-width: 0; height: 26px; margin-inline: 0; accent-color: var(--vc-accent); cursor: pointer; }
.vc-preview-hint { color: var(--vc-muted); margin: 11px 2px 0; font-size: 12px; }
.vc-preview-stage.has-video ~ .vc-preview-hint { margin-top: 6px; }

.vc-styles { grid-area: styles; }
.vc-authored-style, .vc-export-limits { margin-top: 9px; color: var(--vc-muted); font-size: 12px; }
.vc-style-fieldset {
  min-width: 0;
  padding: 0;
  margin: 9px 0 13px;
  border: 0;
}
.vc-style-modes, .vc-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.vc-style-modes {
  gap: 3px;
  padding: 3px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: #f1f3f8;
}
.vc-style-mode {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 33px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--vc-muted);
  font-size: 12px;
  text-align: center;
  cursor: pointer;
}
.vc-style-mode:has(input:checked) { border-color: var(--vc-accent-line); background: var(--vc-panel); color: var(--vc-accent-hover); font-weight: 680; }
.vc-style-mode:has(input:focus-visible) { outline: 2px solid var(--vc-accent); outline-offset: 1px; }
.vc-style-mode:has(input:disabled) { opacity: .67; cursor: default; }
.vc-presets {
  gap: 7px;
}
.vc-preset {
  position: relative;
  min-width: 0;
  min-height: 45px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  border: 1px solid var(--vc-line);
  border-radius: 8px;
  background: var(--vc-panel);
  cursor: pointer;
}
.vc-preset:not(:has(input:disabled)):hover { background: #f6f7fe; border-color: #c9cbee; }
.vc-preset:has(input:checked) { background: var(--vc-accent-soft); border-color: #a4a7ec; }
.vc-preset:has(input:focus-visible) { outline: 2px solid var(--vc-accent); outline-offset: 2px; }
.vc-preset:has(input:disabled) { opacity: .67; cursor: default; }
.vc-preset-example {
  position: relative;
  display: grid;
  place-items: end center;
  flex: 0 0 48px;
  height: 29px;
  padding: 2px 1px;
  border-radius: 4px;
  background: linear-gradient(124deg, #3e4a66, #7486a6 55%, #516280);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.12;
  white-space: nowrap;
}
.vc-preset-outline, .vc-preset-yellow, .vc-preset-serif, .vc-preset-dual {
  -webkit-text-stroke: 1.5px #0b0b0b;
  paint-order: stroke fill;
}
.vc-preset-background > span, .vc-preset-box > span { padding: 1px 3px; border-radius: 2px; background: rgb(0 0 0 / .78); }
.vc-preset-bold { font: 900 12px/1.12 "Arial Black", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; -webkit-text-stroke: 2px #0b0b0b; paint-order: stroke fill; }
.vc-preset-yellow { color: #ffe268; font-weight: 720; }
.vc-preset-highlight > span { padding: 1px 3px; border-radius: 2px; background: #ffe45e; color: #211a0a; }
.vc-preset-serif { color: #fff4db; font-family: "Songti SC", "Noto Serif CJK SC", SimSun, Georgia, serif; text-shadow: 0 1px 2px #0b0b0b; }
.vc-preset-dual > span { display: grid; justify-items: center; }
.vc-preset-dual small { color: #f4e3bd; font-size: 7px; font-weight: 500; }
.vc-preset-dual b { font-size: 9px; font-weight: 600; }
.vc-preset-split > span { align-self: stretch; align-content: space-between; }
.vc-preset-box { -webkit-text-stroke: 0; }
.vc-preset-label { color: #3c4655; font-size: 12px; line-height: 1.35; }
.vc-swap { display: flex; align-items: center; min-height: 33px; gap: 7px; margin-top: 4px; color: var(--vc-ink); font-size: 12px; }
.vc-swap input { margin: 0; width: 15px; height: 15px; accent-color: var(--vc-accent); }
.vc-style-help { color: var(--vc-muted); font-size: 11px; line-height: 1.5; }
.vc-style-range + .vc-style-range { margin-top: 7px; }
.vc-range-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #3c4655; font-size: 12px; }
.vc-range-head output { min-width: 34px; text-align: end; color: var(--vc-muted); font-variant-numeric: tabular-nums; }
.vc-style-range input { display: block; width: 100%; height: 21px; margin: 0; accent-color: var(--vc-accent); cursor: pointer; }
.vc-style-range input:disabled { cursor: default; }

.vc-export { grid-area: export; }
.vc-status { color: var(--vc-muted); font-size: 12px; overflow-wrap: anywhere; margin-bottom: 8px; }
.vc-status[data-tone="error"] { color: var(--vc-error); }
.vc-status[data-tone="warning"] { color: var(--vc-warning); }
.vc-status[data-tone="success"] { color: var(--vc-success); }
.vc-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; color: var(--vc-muted); font-size: 12px; }
.vc-progress:has(progress:not([hidden])) { margin-block: 4px 10px; }
.vc-progress progress { width: 100%; height: 8px; accent-color: var(--vc-accent); }
.vc-export-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.vc-button {
  min-height: 41px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 7px 12px;
  font-weight: 650;
  text-decoration: none;
  text-align: center;
}
.vc-button svg { width: 16px; height: 16px; }
.vc-button-primary { flex: 1 1 100%; background: var(--vc-accent); color: #fff; }
.vc-button-primary:not(:disabled):hover { background: var(--vc-accent-hover); }
.vc-button-primary:disabled { background: #e5e7f1; color: #646c80; }
.vc-button-secondary { background: var(--vc-panel); border-color: var(--vc-line); color: var(--vc-muted); font-size: 12px; }
.vc-button-secondary:enabled:hover { background: #f3f5f9; }
.vc-button-secondary:disabled { color: #646c80; background: #f5f7fa; }
.vc-stream { flex: 1 1 100%; }

.vc-related {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 19px;
  padding: 11px 14px;
  border: 1px solid var(--vc-line);
  border-radius: 10px;
  color: var(--vc-muted);
  background: #f8f9fd;
}
.vc-related-icon { display: grid; place-items: center; width: 32px; height: 32px; background: #eceeff; border-radius: 8px; color: #474cbd; }
.vc-related h2 { color: #364051; font-weight: 650; font-size: 12px; }
.vc-related p { margin-top: 1px; font-size: 12px; }
.vc-related a { display: inline-flex; align-items: center; gap: 5px; padding: 6px 3px; color: #4146ad; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.vc-related a:hover { text-decoration: underline; }
.vc-related a svg { width: 13px; height: 13px; }
.vc-no-script { margin-top: 10px; color: var(--vc-error); }

@media (max-width: 900px) {
  .vc-shell { width: min(100% - 42px, 1240px); }
  .vc-workspace { grid-template-columns: minmax(0, 1fr) minmax(270px, .68fr); }
}

@media (max-width: 680px) {
  .vc-shell { width: calc(100% - 28px); }
  .vc-top .vc-shell { min-height: 51px; }
  .vc-brand-mark { width: 27px; height: 27px; border-radius: 7px; }
  .vc-brand { gap: 7px; font-size: 14px; }
  main.vc-shell { padding-block: 20px 24px; }
  .vc-intro { align-items: start; flex-direction: column; gap: 6px; margin-bottom: 14px; }
  .vc-intro h1 { font-size: 30px; }
  .vc-intro-text { margin-top: 5px; font-size: 13px; }
  .vc-local { white-space: normal; }
  .vc-workspace { grid-template: "files" auto "preview" auto "styles" auto "export" auto / minmax(0, 1fr); gap: 10px; }
  .vc-files { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vc-files h2, .vc-files .vc-encoding { grid-column: 1 / -1; }
  .vc-picker { grid-template-columns: 28px minmax(0, 1fr); gap: 6px; padding-inline: 6px; }
  .vc-file-icon { width: 28px; height: 28px; border-radius: 6px; }
  .vc-file-icon svg { width: 16px; height: 16px; }
  .vc-file-add { display: none; }
  .vc-preview-card, .vc-files, .vc-styles, .vc-export { padding: 12px; }
  .vc-preview-stage.has-video[data-orientation="portrait"] { aspect-ratio: auto; height: min(60svh, 440px); }
  .vc-player-controls { grid-template-columns: 44px auto minmax(0, 1fr) auto; gap: 6px; }
  .vc-play { width: 44px; height: 44px; }
  .vc-style-mode, .vc-swap, .vc-button { min-height: 44px; }
  .vc-related { margin-top: 13px; grid-template-columns: 29px minmax(0, 1fr); gap: 5px 8px; }
  .vc-related-icon { width: 29px; height: 29px; }
  .vc-related a { grid-column: 2; justify-self: start; min-height: 32px; }
}

@media (max-width: 355px) {
  .vc-intro h1 { font-size: 27px; }
  .vc-picker { grid-template-columns: 24px minmax(0, 1fr); }
  .vc-file-icon { width: 24px; height: 27px; }
  .vc-file-info strong { font-size: 12px; }
  .vc-file-info small { white-space: normal; overflow-wrap: anywhere; }
}

@media (max-width: 680px) {
  .vc-top .vc-shell { flex-wrap: wrap; padding-block: 6px }
  .vc-brand { min-inline-size: 0; white-space: normal; overflow-wrap: anywhere }
  .vc-brand-mark { flex: none }
  .vc-language select { max-inline-size: 33vw; text-overflow: ellipsis }
}

@media (min-width: 681px) {
  .vc-workspace:not([data-orientation="portrait"]) {
    grid-template: "files files" auto "preview styles" auto "preview export" 1fr / minmax(0, 1fr) minmax(300px, 342px);
  }
  .vc-workspace:not([data-orientation="portrait"]) .vc-files {
    grid-template-columns: max-content repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 10px;
    padding-block: 10px;
  }
  .vc-workspace:not([data-orientation="portrait"]) .vc-files h2 { margin-inline-end: 6px; }
  .vc-workspace:not([data-orientation="portrait"]) .vc-files .vc-picker { min-height: 48px; padding-block: 6px; }
  .vc-workspace:not([data-orientation="portrait"]) .vc-encoding { grid-column: 2 / -1; }
}
@media (681px <= width <= 900px) {
  .vc-workspace:not([data-orientation="portrait"]) {
    grid-template: "files files" auto "preview preview" auto "styles export" auto / minmax(0, 1fr) minmax(230px, .58fr);
  }
}
.vc-save-unavailable { grid-column: 1 / -1; padding: 7px 10px; border-radius: 8px; background: var(--vc-accent-soft); color: #3c4260; font-size: 12px; }
.vc-save-unavailable a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; color: #393eb4; font-weight: 650; text-decoration: none; }
.vc-save-unavailable a:hover { text-decoration: underline; }
.vc-save-unavailable a svg { width: 12px; height: 12px; }
.vc-save-options { margin-top: 8px; }
.vc-save-options summary { display: flex; align-items: center; gap: 8px; min-height: 32px; list-style: none; color: #394458; font-size: 12px; cursor: pointer; }
.vc-save-options summary::-webkit-details-marker { display: none; }
.vc-save-options summary::after { content: ""; flex: none; width: 12px; height: 12px; background: var(--vc-chevron) center / contain no-repeat; }
.vc-save-options[open] summary::after { transform: rotate(180deg); }
.vc-save-current { margin-inline-start: auto; color: var(--vc-muted); text-align: end; }
.vc-save-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 94px), 1fr)); gap: 8px; margin-block: 4px 2px; }
.vc-save-fields label { display: grid; min-width: 0; gap: 4px; color: var(--vc-muted); font-size: 12px; }
.vc-save-fields select { width: 100%; min-width: 0; min-height: 35px; border: 1px solid var(--vc-line); border-radius: 7px; padding: 4px 6px; background: var(--vc-panel); font-size: 13px; }
@media (pointer: coarse) {
  .vc-save-unavailable a, .vc-save-options summary, .vc-save-fields select { min-height: 44px; }
  .vc-save-fields { grid-template-columns: repeat(auto-fit, minmax(min(100%, 104px), 1fr)); }
  .vc-save-fields select { font-size: 16px; }
}
