/* ============================================================
   /download-video-from-url - page design. Prefix .vds-.
   The site template gives bare <section> 60px padding and clips
   overflow, so this page uses divs.
   ============================================================ */

.vds {
    --vds-ink: #121a33;
    --vds-ink-2: #4a5470;
    --vds-ink-3: #7c86a2;
    --vds-line: #e3e7f1;
    --vds-accent: #5b4cf0;
    --vds-accent-2: #ff4f79;
    --vds-bg: #f7f8fc;
    color: var(--vds-ink);
    background: var(--vds-bg);
    overflow-x: clip;
}
.vds *, .vds *::before, .vds *::after { box-sizing: border-box; }
.vds-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------------- hero ---------------- */
.vds-hero {
    position: relative; padding: 56px 20px 70px; color: #fff; overflow: hidden; isolation: isolate;
    background: radial-gradient(900px 480px at 10% -10%, #3b2a9e 0%, transparent 60%),
                radial-gradient(800px 420px at 100% 110%, #7a1f6a 0%, transparent 60%),
                linear-gradient(135deg, #0d1030 0%, #1a1450 50%, #2a1143 100%);
}
.vds-hero-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.vds-blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55; animation: vds-drift 16s ease-in-out infinite; }
.vds-blob.b1 { width: 320px; height: 320px; left: -60px; top: 40px; background: #5b4cf0; }
.vds-blob.b2 { width: 280px; height: 280px; right: -40px; top: -60px; background: #ff4f79; animation-delay: -5s; }
.vds-blob.b3 { width: 240px; height: 240px; right: 20%; bottom: -120px; background: #22d3ee; opacity: .35; animation-delay: -9s; }
.vds-float {
    position: absolute; padding: 6px 12px; border-radius: 12px; font-weight: 800; font-size: 14px;
    color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    animation: vds-bob 7s ease-in-out infinite;
}
.vds-float.f1 { left: 7%; top: 26%; }
.vds-float.f2 { right: 8%; top: 22%; animation-delay: -2s; }
.vds-float.f3 { left: 12%; bottom: 16%; animation-delay: -4s; }
.vds-float.f4 { right: 13%; bottom: 20%; animation-delay: -1s; }

.vds-hero-in { position: relative; max-width: 900px; margin: 0 auto; text-align: center; }
.vds-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 6px 14px; border-radius: 999px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); font-size: 13.5px; font-weight: 600; color: #dcdcff;
}
.vds-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: vds-ping 2s infinite; }
.vds-title { margin: 0 0 14px; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.vds-lede { max-width: 640px; margin: 0 auto 28px; font-size: clamp(15.5px, 1.6vw, 18px); line-height: 1.6; color: #c9ccf5; }

/* ---------------- link box ---------------- */
.vds-box {
    position: relative; margin: 0 auto; max-width: 820px; padding: 10px; border-radius: 22px; text-align: left;
    background: rgba(255,255,255,.98); box-shadow: 0 24px 60px rgba(5, 6, 30, .45), 0 0 0 1px rgba(255,255,255,.4);
    transition: box-shadow .2s ease;
}
.vds-box::before {
    content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 24px;
    background: linear-gradient(120deg, #5b4cf0, #ff4f79, #22d3ee, #5b4cf0); background-size: 300% 100%;
    opacity: 0; transition: opacity .25s ease; animation: vds-flow 6s linear infinite;
}
.vds-box:focus-within::before, .vds-box.is-busy::before { opacity: 1; }
.vds-box-row { display: flex; align-items: center; gap: 8px; }
.vds-box-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; margin-left: 4px; border-radius: 12px; background: #f1f0ff; color: var(--vds-accent); }
.vds-box-icon svg { width: 20px; height: 20px; }
.vds-input {
    flex: 1; min-width: 0; height: 52px; padding: 0 6px; border: 0; outline: none; background: transparent;
    font-size: 16.5px; color: var(--vds-ink);
}
.vds-input::placeholder { color: #9aa2bd; }
.vds-icon-btn { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--vds-ink-3); cursor: pointer; }
.vds-icon-btn:hover { background: #f1f3f9; color: var(--vds-ink); }
.vds-icon-btn svg { width: 16px; height: 16px; }
.vds-paste {
    flex: none; display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 14px;
    border: 1px solid var(--vds-line); border-radius: 13px; background: #fff; color: var(--vds-ink-2); font-weight: 700; font-size: 14.5px; cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.vds-paste svg { width: 17px; height: 17px; }
.vds-paste:hover, .vds-paste:focus-visible { border-color: var(--vds-accent); color: var(--vds-accent); }
.vds-paste.is-done { background: #ecfdf3; border-color: #22a55b; color: #15803d; }
.vds-fetch {
    flex: none; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 52px; padding: 0 22px; border: 0; border-radius: 15px; cursor: pointer;
    color: #fff; font-weight: 800; font-size: 16px; overflow: hidden;
    background: linear-gradient(120deg, #5b4cf0 0%, #8b3cf0 55%, #ff4f79 100%);
    box-shadow: 0 10px 24px rgba(91, 76, 240, .35);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.vds-fetch:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(91, 76, 240, .45); }
.vds-fetch:focus-visible { outline: 3px solid #ffd166; outline-offset: 3px; }
.vds-fetch[disabled] { cursor: progress; filter: saturate(.8); }
.vds-fetch-arrow { width: 18px; height: 18px; transition: transform .2s ease; }
.vds-fetch:hover .vds-fetch-arrow { transform: translateX(3px); }
.vds-fetch[aria-busy="true"] .vds-fetch-arrow { display: none; }
.vds-spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: vds-spin .8s linear infinite; }
.vds-spinner.d-none { display: none; }

.vds-box-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 8px 10px 2px 56px; }
.vds-platform { margin: 0; min-height: 20px; font-size: 13.5px; color: var(--vds-ink-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vds-platform a { color: var(--vds-accent); font-weight: 700; text-decoration: none; }
.vds-platform a:hover { text-decoration: underline; }
.vds-platform-dot { width: 8px; height: 8px; border-radius: 50%; background: #22a55b; }
.vds-platform.is-ok { color: #15803d; font-weight: 600; }
.vds-platform.is-warn { color: #b45309; font-weight: 600; }
.vds-toggle { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--vds-ink-3); cursor: pointer; user-select: none; }
.vds-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vds-toggle-ui { position: relative; width: 34px; height: 20px; border-radius: 999px; background: #d4d9e8; transition: background-color .15s ease; }
.vds-toggle-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s ease; }
.vds-toggle input:checked + .vds-toggle-ui { background: var(--vds-accent); }
.vds-toggle input:checked + .vds-toggle-ui::after { transform: translateX(14px); }
.vds-toggle input:focus-visible + .vds-toggle-ui { outline: 3px solid #c9c2ff; outline-offset: 2px; }

.vds-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 14px; color: #c9ccf5; }
.vds-trust li { display: inline-flex; align-items: center; gap: 7px; }

/* ---------------- shell ---------------- */
.vds-shell { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------------- result ---------------- */
.vds-result {
    position: relative; margin: -36px 0 0; padding: 22px; border-radius: 26px; background: #fff;
    box-shadow: 0 24px 60px rgba(18, 26, 51, .12); border: 1px solid var(--vds-line);
    animation: vds-rise .45s ease both;
}
.vds-media { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 22px; align-items: center; margin-bottom: 22px; }
.vds-thumb {
    position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
    background: linear-gradient(110deg, #eceef7 30%, #f7f8fc 50%, #eceef7 70%); background-size: 200% 100%;
    animation: vds-shimmer 1.4s linear infinite;
}
.vds-result.has-thumb .vds-thumb { animation: none; background: #0f1330; }
.vds-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .35s ease; }
.vds-result.has-thumb .vds-thumb img { opacity: 1; }
.vds-thumb-play {
    position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
    background: rgba(10, 12, 32, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s ease;
}
.vds-thumb-play::after { content: ""; position: absolute; left: 23px; top: 18px; border-top: 11px solid transparent; border-bottom: 11px solid transparent; border-left: 17px solid #fff; }
.vds-result.has-thumb .vds-thumb-play { opacity: 1; }
.vds-thumb-badge { position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 8px; background: rgba(10,12,32,.7); color: #fff; font-size: 12px; font-weight: 700; }

.vds-video-title { margin: 0 0 10px; font-size: clamp(18px, 2vw, 23px); line-height: 1.3; font-weight: 800; letter-spacing: -.01em; color: var(--vds-ink); word-break: break-word; }
.vds-result.is-loading .vds-video-title:empty::before,
.vds-result.is-loading .vds-summary:empty::before {
    content: ""; display: block; height: 18px; border-radius: 8px; margin-bottom: 10px;
    background: linear-gradient(110deg, #eceef7 30%, #f7f8fc 50%, #eceef7 70%); background-size: 200% 100%; animation: vds-shimmer 1.4s linear infinite;
}
.vds-result.is-loading .vds-video-title:empty::before { width: 80%; height: 24px; }
.vds-result.is-loading .vds-summary:empty::before { width: 55%; }
.vds-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.vds-media-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.vds-chipbtn {
    display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid var(--vds-line); border-radius: 11px;
    background: #fff; color: var(--vds-ink-2) !important; font-size: 14px; font-weight: 600; text-decoration: none !important; cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}
.vds-chipbtn svg { width: 16px; height: 16px; }
.vds-chipbtn:hover, .vds-chipbtn:focus-visible { border-color: var(--vds-accent); color: var(--vds-accent) !important; }
.vds-chipbtn[hidden] { display: none; }

.vds-formats-head { margin: 0 0 14px; }
.vds-h3 { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.vds-muted { margin: 0; color: var(--vds-ink-3); font-size: 14px; }

/* status and error lines the shared controller writes into #formatsContainer */
#formatsContainer > p[role="status"] {
    display: flex; align-items: center; gap: 12px; margin: 0; padding: 18px; border-radius: 14px; background: #f5f4ff; color: #3a2fd0; font-weight: 600;
}
#formatsContainer > p[role="status"]::before { content: ""; width: 20px; height: 20px; border: 3px solid #d7d2ff; border-top-color: var(--vds-accent); border-radius: 50%; animation: vds-spin .8s linear infinite; flex: none; }
#formatsContainer > p[role="alert"] { margin: 0; padding: 16px 18px; border-radius: 14px; background: #fff1f2; color: #b91c1c; font-weight: 600; }
.vds-result.is-error .vds-media { display: none; }
.vds-result.is-error .vds-formats-head { display: none; }

/* ---------------- ads ---------------- */
.vds-ad { margin: 34px auto 10px; max-width: 980px; text-align: center; }
.vds-ad-label { display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #a3aac2; }
.vds-ad:not(:has(.a2z-ad)) { display: none; }

/* ---------------- blocks ---------------- */
.vds-block { margin: 54px 0 0; }
.vds-block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vds-h2 { margin: 0 0 8px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.02em; color: var(--vds-ink); }

.vds-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: none; }
.vds-step { position: relative; padding: 22px; border-radius: 20px; background: #fff; border: 1px solid var(--vds-line); }
.vds-step h3 { margin: 12px 0 6px; font-size: 17px; font-weight: 800; }
.vds-step p { margin: 0; color: var(--vds-ink-2); font-size: 14.5px; line-height: 1.55; }
.vds-step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; font-weight: 800; background: linear-gradient(135deg, #5b4cf0, #ff4f79); box-shadow: 0 8px 18px rgba(91,76,240,.3); }
.vds-step:not(:last-child)::after { content: ""; position: absolute; top: 42px; right: -12px; width: 8px; height: 8px; border-top: 2px solid #c9c2ff; border-right: 2px solid #c9c2ff; transform: rotate(45deg); }

.vds-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 0; }
.vds-feature { padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--vds-line); transition: transform .18s ease, box-shadow .18s ease; }
.vds-feature:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(18,26,51,.08); }
.vds-feature h3 { margin: 12px 0 6px; font-size: 16px; font-weight: 800; }
.vds-feature p { margin: 0; color: var(--vds-ink-2); font-size: 14px; line-height: 1.55; }
.vds-feature-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; font-size: 21px; }
.fi-1 { background: #f1f0ff; } .fi-2 { background: #ecfeff; } .fi-3 { background: #fff1f5; }
.fi-4 { background: #ecfdf3; } .fi-5 { background: #fff7e6; } .fi-6 { background: #f1f5f9; }

/* ---------------- history ---------------- */
.vds-link-btn { border: 0; background: none; color: var(--vds-accent); font-weight: 700; cursor: pointer; padding: 4px 0; }
.vds-history-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.vds-history-item {
    position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 40px 10px 10px; border-radius: 16px;
    background: #fff; border: 1px solid var(--vds-line); animation: vds-rise .35s ease both; animation-delay: calc(var(--i, 0) * 40ms);
}
.vds-history-thumb { flex: none; width: 88px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #e7e5ff, #ffe4ec); }
.vds-history-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vds-history-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.vds-history-title { font-weight: 700; font-size: 14.5px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vds-history-meta { margin-top: 3px; font-size: 12.5px; color: var(--vds-ink-3); }
.vds-history-again { flex: none; padding: 7px 11px; border: 1px solid var(--vds-line); border-radius: 10px; background: #fff; color: var(--vds-accent); font-size: 13px; font-weight: 700; cursor: pointer; }
.vds-history-again:hover { border-color: var(--vds-accent); }
.vds-history-x { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: var(--vds-ink-3); font-size: 18px; line-height: 26px; cursor: pointer; }
.vds-history-x:hover { background: #f1f3f9; color: var(--vds-ink); }

/* ---------------- platforms ---------------- */
.vds-platforms { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.vds-platform-card {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--vds-line);
    color: var(--vds-ink) !important; font-weight: 600; font-size: 14.5px; text-decoration: none !important;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.vds-platform-card:hover, .vds-platform-card:focus-visible { border-color: var(--pc); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(18,26,51,.08); }
.vds-platform-badge { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--pc); color: #fff; font-weight: 800; font-size: 15px; }

/* ---------------- toast ---------------- */
.vds-toast {
    position: fixed; left: 50%; bottom: 26px; z-index: 1900; padding: 11px 18px; border-radius: 12px;
    background: #121a33; color: #fff; font-weight: 600; font-size: 14.5px; box-shadow: 0 14px 30px rgba(0,0,0,.25);
    transform: translate(-50%, 20px); opacity: 0; transition: transform .25s ease, opacity .25s ease;
}
.vds-toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* app card spacing on this page */
.vds .qap { margin-top: 56px; }

/* ---------------- site badge, caution, tips, next steps ---------------- */
.vds-eyebrow-badge {
    display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px;
    background: var(--vds-brand, #5b4cf0); color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 0 0 2px rgba(255,255,255,.25);
}
.vds-caution {
    max-width: 720px; margin: -8px auto 22px; padding: 10px 14px; border-radius: 14px; text-align: left;
    background: rgba(255, 196, 0, .14); border: 1px solid rgba(255, 196, 0, .45); color: #ffe7a3; font-size: 14.5px; line-height: 1.5;
}
.vds-tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.vds-tip {
    display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: 18px; background: #fff;
    border: 1px solid var(--vds-line); font-size: 14.5px; line-height: 1.55; color: var(--vds-ink-2);
}
.vds-tip-n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--vds-brand, #5b4cf0); color: #fff; font-weight: 800; font-size: 14px; }
.vds-service-note { margin-top: 12px; font-size: 13px; }
.vds-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 0; }
.vds-next-card {
    display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--vds-line);
    color: var(--vds-ink) !important; text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.vds-next-card:hover, .vds-next-card:focus-visible { transform: translateY(-2px); border-color: var(--vds-accent); box-shadow: 0 12px 26px rgba(18,26,51,.08); }
.vds-next-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: #f0fdfa; font-size: 21px; }
.vds-next-card strong { display: block; font-size: 15.5px; }
.vds-next-card small { display: block; color: var(--vds-ink-3); font-size: 13.5px; }

/* a result without artwork stops shimmering once the formats are in */
.vds-result.is-ready:not(.has-thumb) .vds-thumb, .vds-result.is-error .vds-thumb {
    animation: none; background: linear-gradient(135deg, #e7e5ff, #ffe4ec);
}

/* ---------------- audio variant ---------------- */
.vds--audio { --vds-accent: #0d9488; --vds-accent-2: #f97316; }
.vds--audio .vds-hero {
    background: radial-gradient(900px 480px at 10% -10%, #0f766e 0%, transparent 60%),
                radial-gradient(800px 420px at 100% 110%, #9a3412 0%, transparent 60%),
                linear-gradient(135deg, #04201f 0%, #0b2f3a 50%, #2a1408 100%);
}
.vds--audio .vds-blob.b1 { background: #14b8a6; }
.vds--audio .vds-blob.b2 { background: #f97316; }
.vds--audio .vds-blob.b3 { background: #facc15; }
.vds--audio .vds-eyebrow { color: #ccfbf1; }
.vds--audio .vds-lede, .vds--audio .vds-trust { color: #c7ece6; }
.vds--audio .vds-box::before { background: linear-gradient(120deg, #14b8a6, #f97316, #facc15, #14b8a6); background-size: 300% 100%; }
.vds--audio .vds-box-icon { background: #ecfdf5; }
.vds--audio .vds-fetch { background: linear-gradient(120deg, #0d9488 0%, #0891b2 50%, #f97316 100%); box-shadow: 0 10px 24px rgba(13,148,136,.35); }
.vds--audio .vds-fetch:hover { box-shadow: 0 14px 30px rgba(13,148,136,.45); }
.vds--audio .vds-toggle input:focus-visible + .vds-toggle-ui { outline-color: #99f6e4; }
.vds--audio .vds-step-n { background: linear-gradient(135deg, #0d9488, #f97316); box-shadow: 0 8px 18px rgba(13,148,136,.3); }
.vds--audio .vds-step:not(:last-child)::after { border-color: #99f6e4; }
.vds--audio #formatsContainer > p[role="status"] { background: #f0fdfa; color: #0f766e; }
.vds--audio #formatsContainer > p[role="status"]::before { border-color: #99f6e4; border-top-color: #0d9488; }
.vds--audio .dfs { --dfs-accent: #0d9488; }
.vds--audio .dfs-best { background: linear-gradient(120deg, #0d9488 0%, #0891b2 50%, #f97316 100%); box-shadow: 0 14px 30px rgba(13,148,136,.32); }
.vds--audio .dfs-best:hover, .vds--audio .dfs-best:focus-visible { box-shadow: 0 18px 36px rgba(13,148,136,.4); }
.vds--audio .dfs-btn { background: #e6fffa; color: #0f766e; }
.vds--audio .dfs-btn:focus-visible { outline-color: #99f6e4; }
.vds--audio .dfs-card.is-top { border-color: #99f6e4; background: linear-gradient(180deg, #f5fffd, #fff); }
.vds--audio .dfs-convert select { border-color: #99f6e4; font-weight: 600; }
.vds--audio .dfs-best-audio { margin-bottom: 14px; }
.dfs-best-audio .dfs-best-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5l12-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='18' cy='16' r='3'/%3E%3C/svg%3E");
}
.vds--audio .vds-result.is-ready:not(.has-thumb) .vds-thumb { background: linear-gradient(135deg, #ccfbf1, #ffedd5); }
.vds--audio .vds-history-thumb { aspect-ratio: 1 / 1; width: 60px; background: linear-gradient(135deg, #ccfbf1, #ffedd5); }

/* equaliser under the hero copy */
.vds-eq { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 34px; margin: -8px auto 22px; }
.vds-eq span {
    width: 5px; height: 100%; border-radius: 3px; background: linear-gradient(180deg, #5eead4, #f97316); opacity: .85;
    transform-origin: bottom; animation: vds-eq 1.1s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -97ms);
}
.vds-eq span:nth-child(3n) { animation-duration: .85s; }
.vds-eq span:nth-child(4n) { animation-duration: 1.45s; }

/* square cover art with a record sliding out behind it */
.vds--audio .vds-media { grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 80px; }
.vds-thumb--cover { aspect-ratio: 1 / 1; overflow: visible; }
.vds-thumb--cover img { position: relative; z-index: 1; border-radius: 18px; box-shadow: 0 16px 34px rgba(4, 32, 31, .28); }
.vds--audio .vds-thumb-play { display: none; }
.vds-thumb--cover .vds-thumb-badge { z-index: 2; }
.vds-vinyl {
    position: absolute; top: 6%; right: 0; z-index: 0; width: 88%; aspect-ratio: 1 / 1; border-radius: 50%; opacity: 0;
    background: repeating-radial-gradient(circle, #111 0 2px, #202020 2px 4px);
    transition: opacity .4s ease, right .6s cubic-bezier(.2, .8, .2, 1);
}
.vds-vinyl::after { content: ""; position: absolute; inset: 35%; border-radius: 50%; background: radial-gradient(circle, #111 0 12%, #f97316 13% 100%); }
.vds--audio .vds-result.has-thumb .vds-vinyl { opacity: 1; right: -30%; animation: vds-spin 5s linear infinite; }

@keyframes vds-eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

@media (max-width: 900px) {
    .vds-tips, .vds-next { grid-template-columns: 1fr; }
    .vds--audio .vds-media { grid-template-columns: 1fr; gap: 22px; }
    .vds-thumb--cover { width: 62%; max-width: 250px; margin: 0 auto 0 12%; }
}
@media (prefers-reduced-motion: reduce) {
    .vds-eq span, .vds--audio .vds-result.has-thumb .vds-vinyl { animation: none !important; }
    .vds-next-card { transition: none; }
}

/* ---------------- reveal ---------------- */
.vds-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--i, 0) * 70ms); }
.vds-reveal.is-in { opacity: 1; transform: none; }

/* ---------------- keyframes ---------------- */
@keyframes vds-spin { to { transform: rotate(360deg); } }
@keyframes vds-shimmer { to { background-position: -200% 0; } }
@keyframes vds-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes vds-drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -20px) scale(1.08); } }
@keyframes vds-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
@keyframes vds-flow { to { background-position: 300% 0; } }
@keyframes vds-ping { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(74,222,128,0); } }

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
    .vds-media { grid-template-columns: 1fr; }
    .vds-steps, .vds-features { grid-template-columns: 1fr 1fr; }
    .vds-step:not(:last-child)::after { display: none; }
    .vds-float { display: none; }
}
@media (max-width: 640px) {
    .vds-hero { padding: 34px 16px 56px; }
    .vds-box { padding: 8px; border-radius: 18px; }
    .vds-box-row { flex-wrap: wrap; }
    .vds-box-icon { display: none; }
    .vds-input { flex: 1 1 calc(100% - 110px); height: 48px; padding: 0 8px; font-size: 16px; }
    .vds-paste { height: 44px; }
    .vds-fetch { flex: 1 1 100%; height: 50px; }
    .vds-box-foot { padding: 8px 6px 2px; }
    .vds-shell { padding: 0 14px; }
    .vds-result { padding: 14px; border-radius: 20px; margin-top: -30px; }
    .vds-steps, .vds-features { grid-template-columns: 1fr; }
    .vds-history-list { grid-template-columns: 1fr; }
    .vds-history-again { display: none; }
    .vds-platforms { grid-template-columns: 1fr 1fr; }

    /* A flex item will not shrink below its content, so at 320px the two
       platform cards measured 151px each and pushed the document 9px wider
       than the viewport - a sideways scroll on the busiest downloader page.
       Pre-existing; found while checking the new advertisement at 320px. */
    .vds-platform-card { min-width: 0; }
    .vds-platform-card span { min-width: 0; overflow-wrap: anywhere; }
}

@media (max-width: 360px) {
    /* Below this the two-column grid cannot hold a readable label. */
    .vds-platforms { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .vds-blob, .vds-float, .vds-dot, .vds-box::before, .vds-thumb, .vds-result, .vds-history-item { animation: none !important; }
    .vds-reveal { opacity: 1; transform: none; transition: none; }
    .vds-fetch, .vds-feature, .vds-platform-card { transition: none; }
}

/* Images inside the editorial copy come from the page record in the database
   and carry no width of their own, so a full-size screenshot pushed the
   document wider than a 320px viewport. Pre-existing; found while checking
   the new advertisement at 320px. */
.download-tool-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 12px auto;
}
