:root {
  --bg: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --primary: #2563ff;
  --primary-dark: #1d4ed8;
  --accent: #00c2a8;
  --accent-dark: #059b8c;
  --danger: #dc2626;
  --success: #0f9f6e;
  --warning: #b7791f;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.09);
  --shadow-soft: 0 14px 36px rgba(15, 23, 42, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(37, 99, 255, 0.08), transparent 34%),
    linear-gradient(225deg, rgba(0, 194, 168, 0.08), transparent 28%),
    linear-gradient(180deg, #f5f7fb 0%, #f8fafc 52%, #eef3fb 100%);
  font-family: "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.11) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(15, 23, 42, 0.14), transparent 72%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 58px;
}

.topbar,
.page-intro,
.tool-card,
.panel,
.upload-zone,
.result-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 14px 18px;
  border-radius: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 16px 30px rgba(37, 99, 255, 0.2);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.nav a:hover {
  color: var(--primary);
}

.page-intro {
  margin-top: 30px;
  padding: clamp(28px, 4.6vw, 50px);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 22px 0 -10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span::before {
  content: ">";
  margin-right: 8px;
  color: rgba(100, 116, 139, 0.7);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(0, 194, 168, 0.12);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
}

.lead {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.78;
}

.section-head {
  margin: 38px 0 18px;
}

.section-head h2 {
  margin-bottom: 8px;
  font-size: clamp(26px, 3vw, 36px);
}

.section-head p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 22px;
  border-radius: 26px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

a.tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 255, 0.18);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.1);
}

.tool-card.disabled {
  color: var(--text-soft);
  cursor: default;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: var(--primary);
  background: rgba(37, 99, 255, 0.1);
}

.card-icon.accent {
  color: var(--accent-dark);
  background: rgba(0, 194, 168, 0.12);
}

.card-icon.warning {
  color: var(--warning);
  background: rgba(245, 158, 11, 0.13);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-card h3 {
  margin: 18px 0 8px;
  font-size: 18px;
}

.tool-card p {
  flex: 1;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.card-link,
.badge {
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  margin-top: 14px;
  padding: 0 10px;
  border-radius: 999px;
  color: #a16207;
  background: rgba(245, 158, 11, 0.14);
  font-size: 12px;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
  gap: 18px;
  margin-top: 28px;
}

.panel {
  border-radius: 28px;
  padding: 22px;
}

.panel h2 {
  margin-bottom: 12px;
  font-size: 22px;
}

.upload-zone {
  display: grid;
  place-items: center;
  min-height: 230px;
  padding: 26px;
  border-style: dashed;
  border-radius: 26px;
  text-align: center;
  background: rgba(255, 255, 255, 0.74);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.upload-zone.is-previewing {
  display: block;
  padding: 0;
  overflow: hidden;
  border-style: solid;
  background: #0f172a;
}

.upload-zone.dragging {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 255, 0.45);
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 38px rgba(37, 99, 255, 0.2);
}

.upload-zone strong {
  display: block;
  font-size: 20px;
}

.upload-zone p {
  max-width: 430px;
  margin: 10px auto 0;
  color: var(--muted);
  line-height: 1.65;
}

.upload-preview-panel {
  width: 100%;
  color: #fff;
}

.upload-video-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: #0f172a;
}

.upload-video-frame video {
  display: block;
  width: 100%;
  max-height: 430px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #0f172a;
}

.watermark-preview-overlay {
  position: absolute;
  z-index: 2;
  max-width: min(72%, calc(100% - 40px));
  padding: 8px 10px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: anywhere;
  pointer-events: none;
}

.watermark-preview-left-top {
  top: 20px;
  left: 20px;
}

.watermark-preview-right-top {
  top: 20px;
  right: 20px;
}

.watermark-preview-left-bottom {
  bottom: 64px;
  left: 20px;
}

.watermark-preview-right-bottom {
  right: 20px;
  bottom: 64px;
}

.watermark-preview-center {
  top: 50%;
  left: 50%;
  text-align: center;
  transform: translate(-50%, -50%);
}

.watermark-preview-small {
  font-size: 18px;
}

.watermark-preview-medium {
  font-size: 24px;
}

.watermark-preview-large {
  font-size: 32px;
}

.subtitle-preview-overlay {
  position: absolute;
  left: 50%;
  z-index: 2;
  max-width: 86%;
  padding: 6px 10px;
  color: rgba(255, 255, 255, 0.98);
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  pointer-events: none;
  transform: translateX(-50%);
}

.subtitle-preview-outline {
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, 0.86),
    1px -1px 0 rgba(0, 0, 0, 0.86),
    -1px 1px 0 rgba(0, 0, 0, 0.86),
    1px 1px 0 rgba(0, 0, 0, 0.86),
    0 2px 8px rgba(0, 0, 0, 0.5);
}

.subtitle-preview-box {
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.56);
}

.subtitle-preview-bottom {
  bottom: 72px;
}

.subtitle-preview-middle {
  top: 50%;
  transform: translate(-50%, -50%);
}

.subtitle-preview-top {
  top: 28px;
}

.subtitle-preview-small {
  font-size: 22px;
}

.subtitle-preview-medium {
  font-size: 30px;
}

.subtitle-preview-large {
  font-size: 40px;
}

.crop-preview-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.crop-mask {
  position: absolute;
  background: rgba(0, 0, 0, 0.58);
}

.crop-preview-box {
  position: absolute;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.58),
    0 0 28px rgba(0, 0, 0, 0.24);
}

.crop-preview-box span {
  padding: 4px 8px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(15, 23, 42, 0.52);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}

.preview-unavailable {
  padding: 14px 16px;
  color: #fde68a;
  background: rgba(180, 83, 9, 0.22);
  font-size: 14px;
  line-height: 1.6;
}

.upload-preview-meta {
  display: grid;
  gap: 5px;
  padding: 14px 16px 0;
}

.upload-preview-meta strong {
  overflow-wrap: anywhere;
  font-size: 16px;
}

.upload-preview-meta span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.upload-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px 16px;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  font-weight: 850;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  box-shadow: 0 16px 30px rgba(37, 99, 255, 0.2);
}

.button.secondary {
  color: var(--primary);
  border: 1px solid rgba(37, 99, 255, 0.16);
  background: rgba(255, 255, 255, 0.84);
}

.button.danger {
  color: var(--danger);
  border: 1px solid rgba(220, 38, 38, 0.16);
  background: rgba(255, 255, 255, 0.84);
}

.button.wide {
  width: 100%;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.meta-item {
  min-height: 70px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.meta-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.meta-item strong {
  display: block;
  margin-top: 5px;
  word-break: break-word;
}

.preview-wrap {
  display: none;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 22px;
  background: #0f172a;
}

video {
  display: block;
  width: 100%;
  max-height: 420px;
  background: #0f172a;
}

.empty-preview {
  display: grid;
  place-items: center;
  min-height: 260px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.empty-preview strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
}

.settings {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
.field legend {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 850;
}

.field select,
.field input[type="text"],
.field input[type="number"] {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  outline: none;
  background: #fff;
}

.field select:focus,
.field input[type="text"]:focus,
.field input[type="number"]:focus {
  border-color: rgba(37, 99, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(37, 99, 255, 0.1);
}

.radio-grid,
.segment-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.radio-card {
  display: flex;
  gap: 9px;
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.radio-card strong,
.radio-card small {
  display: block;
}

.radio-card small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.45;
}

.segment-list {
  display: grid;
  gap: 10px;
}

.merge-file-list,
.subtitle-list {
  display: grid;
  gap: 10px;
}

.merge-summary {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 850;
}

.merge-empty {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.merge-file-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.merge-file-index {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(37, 99, 255, 0.1);
  font-size: 13px;
  font-weight: 900;
}

.merge-file-row strong,
.merge-file-row span {
  display: block;
}

.merge-file-row strong {
  overflow-wrap: anywhere;
}

.merge-file-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.merge-file-row em {
  font-style: normal;
}

.merge-file-actions,
.quick-actions,
.subtitle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.audio-summary {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.asr-box {
  padding: 14px;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 18px;
  background: rgba(37, 99, 255, 0.05);
}

.asr-status {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}

.subtitle-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.subtitle-text-field,
.subtitle-actions {
  grid-column: 1 / -1;
}

.segment-row {
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gif-time-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.gif-time-actions {
  justify-content: flex-start;
}

.gif-time-actions .button {
  min-height: 40px;
  padding-inline: 14px;
}

.crop-summary {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(37, 99, 255, 0.06);
}

.advanced-settings {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.advanced-settings summary {
  min-height: 48px;
  padding: 13px 14px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.advanced-settings > .hint,
.advanced-settings > .dimension-grid {
  padding: 0 14px 14px;
}

.frames-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.frames-preview figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.04);
}

.frames-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0f172a;
}

.frames-preview figcaption {
  padding: 7px 8px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-box {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(37, 99, 255, 0.07);
}

.progress {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.09);
}

.progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.25s ease;
}

.notice {
  display: none;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
}

.notice.show {
  display: block;
}

.notice.error {
  color: #991b1b;
  background: rgba(220, 38, 38, 0.1);
}

.notice.success {
  color: #047857;
  background: rgba(16, 185, 129, 0.11);
}

.result-card {
  display: none;
  gap: 10px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
}

.result-card.show {
  display: grid;
}

.result-card strong {
  color: var(--success);
}

.result-image {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 16px;
  background: #0f172a;
}

.content-stack {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.content-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.content-card h2 {
  margin-bottom: 14px;
  font-size: 22px;
}

.content-card h3 {
  margin: 18px 0 8px;
  font-size: 17px;
}

.content-card p,
.content-card li {
  color: var(--text-soft);
  line-height: 1.75;
}

.content-card p:last-child,
.content-card ul:last-child,
.content-card ol:last-child,
.content-card dl:last-child {
  margin-bottom: 0;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.content-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-list,
.step-list {
  margin: 0;
  padding-left: 20px;
}

.step-list li + li,
.info-list li + li {
  margin-top: 8px;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.faq-list dt {
  margin-bottom: 5px;
  color: var(--text);
  font-weight: 900;
}

.faq-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.related-tools {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.related-tools h2 {
  margin-bottom: 12px;
  font-size: 22px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-links a,
.related-links span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850;
}

.related-links a {
  color: var(--primary);
  background: rgba(37, 99, 255, 0.08);
}

.related-links a:hover {
  background: rgba(37, 99, 255, 0.13);
}

.related-links span {
  color: var(--muted);
  background: rgba(15, 23, 42, 0.06);
}

.footer {
  padding-top: 34px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1020px) {
  .tool-grid,
  .workbench,
  .content-grid,
  .content-grid.three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100%, calc(100% - 18px));
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    gap: 14px;
  }

  .breadcrumb {
    margin-top: 18px;
  }

  .page-intro,
  .panel,
  .content-card,
  .related-tools {
    padding: 18px;
  }

  h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 16px;
  }

  .watermark-preview-overlay {
    max-width: min(78%, calc(100% - 24px));
    padding: 6px 8px;
  }

  .watermark-preview-left-top,
  .watermark-preview-left-bottom {
    left: 12px;
  }

  .watermark-preview-right-top,
  .watermark-preview-right-bottom {
    right: 12px;
  }

  .watermark-preview-left-top,
  .watermark-preview-right-top {
    top: 12px;
  }

  .watermark-preview-left-bottom,
  .watermark-preview-right-bottom {
    bottom: 56px;
  }

  .watermark-preview-small {
    font-size: 15px;
  }

  .watermark-preview-medium {
    font-size: 19px;
  }

  .watermark-preview-large {
    font-size: 24px;
  }

  .subtitle-preview-overlay {
    max-width: 86%;
    padding: 5px 8px;
  }

  .subtitle-preview-bottom {
    bottom: 58px;
  }

  .subtitle-preview-top {
    top: 14px;
  }

  .subtitle-preview-small {
    font-size: 18px;
  }

  .subtitle-preview-medium {
    font-size: 24px;
  }

  .subtitle-preview-large {
    font-size: 30px;
  }

  .meta-grid,
  .radio-grid,
  .dimension-grid,
  .frames-preview,
  .merge-file-row,
  .segment-row,
  .subtitle-row {
    grid-template-columns: 1fr;
  }

  .merge-file-index {
    width: 100%;
    border-radius: 12px;
  }

  .merge-file-actions,
  .quick-actions,
  .subtitle-actions {
    justify-content: stretch;
  }

  .button {
    width: 100%;
  }
}
