.mca-converter {
  --mca-blue: #3157e5;
  --mca-blue-dark: #2443ba;
  --mca-ink: #172033;
  --mca-muted: #667085;
  --mca-line: #dfe4ed;
  --mca-soft: #f5f7fb;
  color: var(--mca-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0 auto;
  max-width: 1120px;
}
.mca-converter *, .mca-converter *::before, .mca-converter *::after { box-sizing: border-box; }
.mca-back { color: var(--mca-blue); display: inline-flex; font-size: 15px; font-weight: 750; margin: 0 0 12px; text-decoration: none; }
.mca-back:hover { text-decoration: underline; }
.mca-card { background: #fff; border: 1px solid var(--mca-line); border-radius: 20px; box-shadow: 0 12px 35px rgba(20, 35, 70, .07); padding: clamp(20px, 3vw, 34px); }
.mca-privacy { align-items: center; background: #ecf9f1; border-radius: 10px; color: #176b3a; display: flex; font-size: 14px; gap: 9px; margin-bottom: 22px; padding: 10px 13px; }
.mca-privacy span { align-items: center; background: #1f9d55; border-radius: 50%; color: #fff; display: inline-flex; flex: 0 0 22px; height: 22px; justify-content: center; }
.mca-file-input { height: 1px; opacity: 0; overflow: hidden; position: absolute; width: 1px; }
.mca-dropzone { align-items: center; background: var(--mca-soft); border: 2px dashed #b9c4d6; border-radius: 16px; cursor: pointer; display: flex; flex-direction: column; justify-content: center; min-height: 300px; padding: 34px 20px; text-align: center; transition: background .15s ease, border-color .15s ease; }
.mca-dropzone:hover, .mca-dropzone.is-dragging, .mca-dropzone:focus-within { background: #edf1ff; border-color: var(--mca-blue); }
.mca-dropzone strong { font-size: clamp(20px, 2.5vw, 26px); margin: 12px 0 4px; }
.mca-dropzone span:not(.mca-upload-icon), .mca-dropzone small { color: var(--mca-muted); }
.mca-dropzone small { margin-top: 14px; }
.mca-upload-icon { align-items: center; background: var(--mca-blue); border-radius: 50%; color: #fff; display: flex; font-size: 30px; height: 58px; justify-content: center; width: 58px; }
.mca-workspace[hidden], .mca-dropzone[hidden], .mca-status[hidden], .mca-result[hidden] { display: none !important; }
.mca-file-info { align-items: center; border-bottom: 1px solid var(--mca-line); display: grid; gap: 14px; grid-template-columns: auto minmax(0, 1fr) auto; padding-bottom: 22px; }
.mca-file-icon { align-items: center; background: #edf1ff; border-radius: 10px; color: var(--mca-blue); display: flex; font-size: 12px; font-weight: 850; height: 48px; justify-content: center; width: 48px; }
.mca-file-info > div:nth-child(2) { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.mca-file-info span { color: var(--mca-muted); font-size: 14px; margin-top: 3px; }
.mca-text-button { background: transparent; border: 0; color: var(--mca-blue); cursor: pointer; font: inherit; font-weight: 750; padding: 8px 0; }
.mca-status { background: #f2f5ff; border-radius: 12px; margin-top: 22px; padding: 16px; }
.mca-status-row { align-items: center; display: flex; gap: 18px; justify-content: space-between; }
.mca-status progress { accent-color: var(--mca-blue); height: 12px; margin: 12px 0 6px; width: 100%; }
.mca-status small { color: var(--mca-muted); }
.mca-options { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 22px; }
.mca-option { background: var(--mca-soft); border: 1px solid var(--mca-line); border-radius: 16px; display: flex; flex-direction: column; margin: 0; min-width: 0; padding: 22px; }
.mca-option-heading { align-items: flex-start; display: flex; gap: 13px; }
.mca-format { background: #e8edff; border-radius: 8px; color: var(--mca-blue); flex: 0 0 auto; font-size: 13px; font-weight: 850; padding: 7px 8px; }
.mca-option h2 { font-size: 21px; line-height: 1.2; margin: 1px 0 7px; }
.mca-option p { color: var(--mca-muted); line-height: 1.45; margin: 0 0 18px; }
.mca-label { display: block; font-size: 14px; font-weight: 750; margin: auto 0 8px; }
.mca-select { background: #fff; border: 1px solid var(--mca-line); border-radius: 10px; color: var(--mca-ink); font: inherit; margin-bottom: 12px; min-height: 48px; padding: 9px 11px; width: 100%; }
.mca-input { background: #fff; border: 1px solid var(--mca-line); border-radius: 10px; color: var(--mca-ink); font: inherit; margin-bottom: 12px; min-height: 48px; padding: 9px 11px; width: 100%; }
.mca-select:focus, .mca-input:focus { border-color: var(--mca-blue); box-shadow: 0 0 0 3px rgba(49, 87, 229, .13); outline: 0; }
.mca-button { align-items: center; border: 1px solid transparent; border-radius: 10px; cursor: pointer; display: inline-flex; font: inherit; font-weight: 750; justify-content: center; min-height: 48px; padding: 11px 18px; }
.mca-button-primary, .mca-button-download { background: var(--mca-blue); color: #fff; }
.mca-button-primary:hover, .mca-button-download:hover { background: var(--mca-blue-dark); }
.mca-button-secondary { background: #fff; border-color: var(--mca-blue); color: var(--mca-blue); margin-top: auto; }
.mca-button-secondary:hover { background: #edf1ff; }
.mca-button:disabled, .mca-text-button:disabled, .mca-select:disabled, .mca-input:disabled { cursor: wait; opacity: .6; }
.mca-result { align-items: center; background: #e9efff; border: 1px solid #c7d2fb; border-radius: 12px; display: flex; gap: 12px; justify-content: space-between; margin-top: 14px; padding: 13px; }
.mca-result > div { display: flex; flex-direction: column; min-width: 0; }
.mca-result span { color: var(--mca-muted); font-size: 13px; margin-top: 3px; overflow-wrap: anywhere; }
.mca-result .mca-button { flex: 0 0 auto; min-height: 42px; padding: 8px 12px; }
.mca-message { color: #176b3a; font-size: 14px; font-weight: 650; margin: 14px 0 0; min-height: 22px; }
.mca-message.is-error { color: #b42318; }
.mca-guide { background: #fff; border: 1px solid var(--mca-line, #dfe4ed); border-radius: 20px; color: var(--mca-ink, #172033); margin: clamp(32px, 5vw, 58px) auto 0; max-width: 1120px; padding: clamp(22px, 4vw, 38px); }
.mca-guide h2 { font-size: clamp(25px, 3vw, 34px); margin: 0 0 14px; }
.mca-guide h3 { font-size: clamp(18px, 2vw, 22px); margin: 0 0 9px; }
.mca-guide p { color: #556176; line-height: 1.65; }
.mca-guide-grid { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 25px; }
.mca-note { background: #fff7e6; border-radius: 10px; color: #75540c !important; margin: 24px 0 0 !important; padding: 12px 14px; }
.mcv-option { margin-top: 22px; }
.mcv-settings-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mcv-settings-grid .mca-label { margin-top: 0; }
.mcc-converter .mcv-settings-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mcg-clip-picker { background: #fff; border: 1px solid var(--mca-line); border-radius: 14px; margin-bottom: 18px; padding: 14px; }
.mcg-clip-picker video { background: #111827; border-radius: 10px; display: block; max-height: 420px; width: 100%; }
.mcg-timeline-heading { align-items: center; display: flex; gap: 18px; justify-content: space-between; margin-top: 14px; }
.mcg-timeline-heading .mca-label { margin: 0; }
.mcg-timeline-heading strong { color: var(--mca-blue); font-size: 14px; }
.mcg-range { accent-color: var(--mca-blue); cursor: pointer; margin: 12px 0; width: 100%; }
.mcg-picker-actions { align-items: center; color: var(--mca-muted); display: flex; font-size: 14px; gap: 14px; justify-content: space-between; }
.mcg-current-button { min-height: 42px; }
.mcg-settings-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mcg-settings-grid .mca-label { margin-top: 0; }
.mcg-converter .mca-upload-icon { font-size: 16px; font-weight: 850; }
.mcg-result img { background: #fff; border: 1px solid var(--mca-line); border-radius: 8px; height: 76px; object-fit: contain; width: 96px; }
.mcw-settings-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mcw-settings-grid .mca-label { margin-top: 0; }
.mcw-upload-icon { font-size: 13px; font-weight: 850; }
.mcmw-settings-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mcmw-settings-grid .mca-label { margin-top: 0; }
.mcmw-converter .mca-upload-icon { font-size: 14px; font-weight: 850; }

@media (max-width: 760px) {
  .mca-file-info { align-items: start; grid-template-columns: auto 1fr; }
  .mca-text-button { grid-column: 1 / -1; justify-self: start; }
  .mca-options, .mca-guide-grid { grid-template-columns: 1fr; }
  .mcv-settings-grid, .mcc-converter .mcv-settings-grid, .mcg-settings-grid, .mcw-settings-grid, .mcmw-settings-grid { grid-template-columns: 1fr; }
  .mca-dropzone { min-height: 230px; }
  .mcg-picker-actions { align-items: stretch; flex-direction: column; }
  .mcg-current-button { width: 100%; }
}

@media (max-width: 480px) {
  .mca-card { border-radius: 14px; padding: 16px; }
  .mca-option { padding: 16px; }
  .mca-option-heading { display: block; }
  .mca-format { display: inline-block; margin-bottom: 11px; }
  .mca-result { align-items: stretch; flex-direction: column; }
  .mcg-result img { height: auto; max-height: 240px; width: 100%; }
  .mca-result .mca-button { width: 100%; }
}
