/* bilzat.cn/videodownload — mirrored from BilzatEdit VideoDownloadPage */

:root {
  --canvas: #ebeaf5;
  --shell: #f8fafc;
  --glow-cyan: rgba(0, 183, 240, 0.22);
  --glow-soft: rgba(230, 248, 254, 0.55);
  --glow-sky: rgba(0, 183, 240, 0.12);
  --surface: #ffffff;
  --accent: #00b7f0;
  --accent-deep: #00a3d6;
  --accent-soft: #e6f8fe;
  --ink: #0b0d14;
  --ink-2: #6b7280;
  --muted: #9ca3af;
  --line: #e5e7eb;
  --shadow: 0 18px 48px rgba(11, 13, 20, 0.1);
  --shadow-sm: 0 2px 8px rgba(11, 13, 20, 0.08);
  --radius: 28px;
  --phone-max: 430px;
  --uy-font: "alkatip tor", "alkatip basma tom", "alkatip basma", "ukij tuz tom",
    "Noto Naskh Arabic", serif;
  --zh-font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font: var(--uy-font), var(--zh-font);
  --shell-bg:
    radial-gradient(ellipse 700px 600px at 8% 12%, var(--glow-soft) 0%, transparent 60%),
    radial-gradient(ellipse 620px 520px at 95% 35%, var(--glow-cyan) 0%, transparent 60%),
    radial-gradient(ellipse 420px 360px at 85% 88%, var(--glow-sky) 0%, transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 45%, #e6f8fe 100%);
}

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

body.ug-ui {
  font-family: var(--uy-font);
}

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

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.uy {
  direction: rtl;
  unicode-bidi: plaintext;
  font-family: var(--uy-font) !important;
  letter-spacing: 0;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga" 1, "calt" 1;
}

textarea.uy-input,
input.uy-input,
.uy-input {
  direction: rtl;
  unicode-bidi: plaintext;
  text-align: right;
  font-family: var(--uy-font) !important;
  font-size: 16px;
  line-height: 1.75;
}

.app-stage {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: var(--canvas);
}

.app-shell {
  width: 100%;
  max-width: var(--phone-max);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: var(--shell-bg);
  box-shadow: 0 0 0 1px rgba(11, 13, 20, 0.06), 0 24px 64px rgba(11, 13, 20, 0.1);
}

.app-content {
  position: relative;
  z-index: 1;
  padding: 14px 14px 24px;
  background: transparent;
}

.app-stage.lang-ug .app-content {
  direction: rtl;
}

.app-stage.lang-zh .app-content,
.app-stage.lang-en .app-content {
  direction: ltr;
}

.app-stage.lang-zh .page-head .back-btn,
.app-stage.lang-en .page-head .back-btn {
  transform: scaleX(-1);
}

.page-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.page-head h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.soft-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  outline: none;
  background: #ffffff;
  resize: vertical;
}

.soft-input:focus {
  border-color: rgba(0, 183, 240, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 183, 240, 0.14);
}

.soft-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent);
  color: #ffffff;
  border-radius: 18px;
  padding: 12px 18px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 183, 240, 0.35);
}

.soft-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.soft-btn.secondary {
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.dl-page {
  padding: 0 0 24px;
}

.dl-page.is-ug {
  direction: rtl;
  font-family: var(--uy-font), var(--zh-font);
}

.dl-card {
  margin: 14px 16px;
  padding: 18px 16px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 6px 24px rgba(0, 183, 240, 0.08);
}

.dl-card h2 {
  margin: 0 0 8px;
  font-size: 17px;
  color: #0b0d14;
}

.dl-lead {
  margin: 0 0 12px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

.dl-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}

.dl-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: #ffffff;
  border: 1px solid #e6f8fe;
  padding: 3px 9px;
  border-radius: 999px;
}

.dl-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.dl-field > span {
  font-size: 13px;
  font-weight: 650;
  color: #0b0d14;
}

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.dl-actions .soft-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dl-msg {
  margin: 12px 0 0;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.45;
}

.dl-setup {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.dl-setup-form {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #ebeaf5;
}

.dl-result {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #f3f4f6;
}

.dl-cover {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  object-fit: cover;
  background: #ffffff;
  flex: 0 0 auto;
}

.dl-result-body {
  min-width: 0;
  flex: 1;
}

.dl-platform {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #00a3d6;
  background: #f8fafc;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.dl-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: #00b7f0;
  line-height: 1.5;
}

.lang-bar {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin: 0 16px 4px;
}

.lang-bar button {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e6f8fe;
  color: #6b7280;
}

.lang-bar button.is-on {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 420px) {
  .dl-result {
    flex-direction: column;
  }
  .dl-cover {
    width: 100%;
    height: 160px;
  }
}

/* —— 去水印（豆包 / AI生成 完整清除） —— */
.wm-card {
  margin-top: 12px;
}

.wm-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.wm-quick .soft-btn {
  flex: 1 1 auto;
  min-width: 120px;
  padding: 10px 12px;
  font-size: 13px;
}

.wm-section-lab {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 650;
  color: #0b0d14;
}

.wm-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.wm-chip {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e6f8fe;
  color: #6b7280;
}

.wm-chip.is-on {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.wm-range-field input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.wm-preview-wrap {
  position: relative;
  margin: 0 0 12px;
  border-radius: 14px;
  overflow: hidden;
  background: #0b0d14;
  border: 1px solid var(--line);
}

.wm-preview {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #000;
}

.wm-masks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wm-mask {
  position: absolute;
  border: 2px dashed rgba(0, 183, 240, 0.95);
  background: rgba(0, 183, 240, 0.18);
  pointer-events: none;
  border-radius: 4px;
  box-sizing: border-box;
}

.wm-progress {
  margin-top: 10px;
  height: 6px;
  border-radius: 999px;
  background: #e6f8fe;
  overflow: hidden;
}

.wm-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #38d9ff);
  transition: width 0.15s linear;
}
