@font-face {
  font-family: "VSlim Inter";
  src: url("/video-tool/vendor/inter-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.vslim {
  --vs-bg: #05070c;
  --vs-panel: rgba(16, 26, 48, 0.88);
  --vs-panel-strong: #121d35;
  --vs-line: rgba(117, 221, 255, 0.24);
  --vs-cyan: #1bdcff;
  --vs-blue: #4f8dff;
  --vs-violet: #8b55ff;
  --vs-text: #f5fbff;
  --vs-muted: #a7b6cc;
  --vs-good: #6cf5b2;
  --vs-warn: #ffd166;
  --vs-error: #ff7a98;
  color: var(--vs-text);
  font-family: "VSlim Inter", Inter, system-ui, sans-serif;
  margin: 34px 0 52px;
}

.vslim *, .vslim *::before, .vslim *::after { box-sizing: border-box; }
.vslim [hidden] { display: none !important; }
.vslim button, .vslim input { font: inherit; }

.vslim-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--vs-line);
  border-radius: 30px;
  padding: clamp(20px, 4vw, 42px);
  background:
    radial-gradient(circle at 15% 0%, rgba(27, 220, 255, 0.15), transparent 35%),
    radial-gradient(circle at 100% 25%, rgba(139, 85, 255, 0.18), transparent 38%),
    linear-gradient(145deg, rgba(8, 14, 27, 0.98), rgba(3, 6, 12, 0.98));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255,255,255,.06);
}

.vslim-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 24px;
}
.vslim-kicker { color: var(--vs-cyan); font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 7px; }
.vslim h2 { color: var(--vs-text); font-size: clamp(1.55rem, 4vw, 2.35rem); line-height: 1.05; margin: 0; }
.vslim-head p:last-child { color: var(--vs-muted); margin: 10px 0 0; max-width: 700px; }
.vslim-logo { width: 78px; height: 78px; object-fit: contain; filter: drop-shadow(0 0 20px rgba(27,220,255,.22)); }

.vslim-notice { border: 1px solid rgba(255,122,152,.45); background: rgba(112,23,47,.28); color: #ffd9e3; border-radius: 16px; padding: 14px 16px; margin-bottom: 16px; }

.vslim-dropzone {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  border: 1px dashed rgba(117,221,255,.52);
  border-radius: 24px;
  background: rgba(12, 21, 41, .68);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.vslim-dropzone:hover, .vslim-dropzone:focus-visible, .vslim-dropzone.is-dragging { transform: translateY(-2px); border-color: var(--vs-cyan); background: rgba(20, 37, 68, .82); outline: none; }
.vslim-dropzone[aria-disabled="true"] { cursor: not-allowed; opacity: .55; }
.vslim-dropzone img { width: 82px; height: 82px; object-fit: contain; margin-bottom: 12px; }
.vslim-dropzone strong { display: block; font-size: clamp(1.2rem, 3vw, 1.6rem); }
.vslim-dropzone span { color: var(--vs-muted); margin-top: 7px; }
.vslim-dropzone small { color: #8092ab; margin-top: 16px; }

.vslim-filebar { display: flex; gap: 14px; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 18px; background: rgba(15,27,51,.9); border: 1px solid var(--vs-line); }
.vslim-filebar strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: min(60vw, 680px); }
.vslim-filebar span { color: var(--vs-muted); font-size: .84rem; }

.vslim-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 20px; margin-top: 20px; align-items: start; }
.vslim-preview-shell { border-radius: 22px; overflow: hidden; background: #000; border: 1px solid var(--vs-line); min-height: 260px; display: grid; place-items: center; }
.vslim-preview-shell video { display: block; width: 100%; max-height: 520px; background: #000; }
.vslim-controls { display: grid; gap: 14px; }
.vslim-card { padding: 17px; border: 1px solid var(--vs-line); border-radius: 19px; background: var(--vs-panel); box-shadow: inset 0 1px rgba(255,255,255,.05), 0 15px 34px rgba(0,0,0,.17); }
.vslim-label { display: flex; justify-content: space-between; gap: 12px; color: var(--vs-text); font-size: .9rem; font-weight: 800; margin-bottom: 12px; }
.vslim-help { color: var(--vs-muted); font-size: .78rem; font-weight: 550; }
.vslim-range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vslim-range-row label { color: var(--vs-muted); font-size: .78rem; }
.vslim-range-row output { color: var(--vs-cyan); float: right; font-weight: 750; }
.vslim input[type="range"] { width: 100%; accent-color: var(--vs-cyan); margin-top: 8px; }

.vslim-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.vslim-choice, .vslim-button {
  min-height: 42px;
  border: 1px solid rgba(130,196,255,.25);
  border-radius: 999px;
  padding: 9px 15px;
  color: var(--vs-text);
  background: linear-gradient(180deg, rgba(45,66,108,.88), rgba(16,27,52,.96));
  box-shadow: inset 0 1px rgba(255,255,255,.13), 0 7px 18px rgba(0,0,0,.2);
  cursor: pointer;
  font-weight: 750;
}
.vslim-choice:hover, .vslim-choice:focus-visible, .vslim-button:hover, .vslim-button:focus-visible { border-color: var(--vs-cyan); outline: none; }
.vslim-choice.is-selected { color: #031016; border-color: #8aedff; background: linear-gradient(180deg, #8aedff, #16c6e5); box-shadow: 0 0 22px rgba(27,220,255,.26), inset 0 1px white; }
.vslim-custom { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--vs-muted); }
.vslim-custom input { width: 92px; min-height: 40px; border-radius: 12px; border: 1px solid var(--vs-line); background: rgba(4,10,20,.85); color: var(--vs-text); padding: 8px 10px; }

.vslim-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.vslim-stat { min-width: 0; padding: 14px; border: 1px solid var(--vs-line); border-radius: 16px; background: rgba(13,24,46,.92); }
.vslim-stat span { display: block; color: var(--vs-muted); font-size: .76rem; }
.vslim-stat strong { display: block; margin-top: 5px; font-size: 1.05rem; overflow-wrap: anywhere; }
.vslim-stat.is-primary { border-color: rgba(27,220,255,.58); box-shadow: 0 0 22px rgba(27,220,255,.09); }
.vslim-stat.is-primary strong { color: var(--vs-cyan); }

.vslim-status { min-height: 24px; margin: 16px 2px 0; color: var(--vs-muted); }
.vslim-status[data-kind="success"] { color: var(--vs-good); }
.vslim-status[data-kind="warning"] { color: var(--vs-warn); }
.vslim-status[data-kind="error"] { color: var(--vs-error); }
.vslim-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.vslim-button { min-height: 50px; padding-inline: 22px; }
.vslim-button--primary { border-color: rgba(196,170,255,.55); background: linear-gradient(180deg, #a779ff, #6f37db); box-shadow: 0 0 25px rgba(139,85,255,.26), inset 0 1px rgba(255,255,255,.35); }
.vslim-button--cyan { color: #031016; background: linear-gradient(180deg, #8aedff, #16c6e5); border-color: #8aedff; text-decoration: none; }
.vslim-button:disabled { cursor: not-allowed; opacity: .48; filter: grayscale(.3); }
.vslim-progress { height: 9px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.08); margin-top: 14px; }
.vslim-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--vs-cyan), var(--vs-violet)); transition: width .18s linear; }

.vslim-result { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; align-items: center; gap: 20px; margin-top: 22px; padding: 20px; border: 1px solid rgba(108,245,178,.35); border-radius: 22px; background: rgba(9,43,42,.42); }
.vslim-result video { width: 100%; max-height: 260px; border-radius: 14px; background: #000; }
.vslim-result h3 { color: var(--vs-good); margin: 0 0 8px; }
.vslim-result p { color: var(--vs-text); font-size: 1.08rem; font-weight: 750; margin: 0 0 16px; }

.vslim-privacy { display: flex; align-items: center; gap: 10px; color: var(--vs-muted); font-size: .82rem; margin: 16px 2px 0; }
.vslim-privacy::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--vs-good); box-shadow: 0 0 12px var(--vs-good); flex: 0 0 auto; }

.vslim-upsell { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin-top: 22px; padding: 20px; border-radius: 22px; border: 1px solid rgba(139,85,255,.35); background: linear-gradient(135deg, rgba(48,29,91,.58), rgba(11,22,43,.88)); }
.vslim-upsell img { width: 72px; height: 72px; object-fit: contain; }
.vslim-upsell h3 { color: var(--vs-text); margin: 0 0 5px; }
.vslim-upsell p { color: var(--vs-muted); margin: 0; }
.vslim-upsell a { white-space: nowrap; }

.vslim-showcase { margin-top: 26px; }
.vslim-showcase > div { max-width: 720px; margin-bottom: 14px; }
.vslim-showcase h3 { color: var(--vs-text); margin: 0 0 6px; font-size: 1.35rem; }
.vslim-showcase p { color: var(--vs-muted); margin: 0; }
.vslim-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 26%); gap: 13px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; list-style: none; padding: 4px 2px 14px; margin: 0; scrollbar-color: var(--vs-cyan) rgba(255,255,255,.08); }
.vslim-slide { scroll-snap-align: start; }
.vslim-slide figure { margin: 0; overflow: hidden; border-radius: 18px; border: 1px solid var(--vs-line); background: rgba(13,24,46,.94); }
.vslim-slide img { display: block; width: 100%; height: auto; }
.vslim-slide figcaption { min-height: 64px; display: grid; align-items: center; color: var(--vs-text); font-size: .84rem; line-height: 1.3; padding: 10px 12px; }

@media (max-width: 840px) {
  .vslim-grid { grid-template-columns: 1fr; }
  .vslim-preview-shell { min-height: 210px; }
  .vslim-stats { grid-template-columns: 1fr 1fr; }
  .vslim-upsell { grid-template-columns: auto 1fr; }
  .vslim-upsell a { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 520px) {
  .vslim { margin-block: 24px 38px; }
  .vslim-shell { border-radius: 22px; padding: 16px; }
  .vslim-head { grid-template-columns: 1fr; }
  .vslim-logo { width: 64px; height: 64px; grid-row: 1; }
  .vslim-dropzone { min-height: 220px; padding: 20px 14px; }
  .vslim-filebar { align-items: flex-start; flex-direction: column; }
  .vslim-filebar strong { max-width: 78vw; }
  .vslim-range-row { grid-template-columns: 1fr; }
  .vslim-stats { gap: 7px; }
  .vslim-stat { padding: 11px; }
  .vslim-stat strong { font-size: .95rem; }
  .vslim-result { grid-template-columns: 1fr; }
  .vslim-upsell { grid-template-columns: 1fr; text-align: left; }
  .vslim-carousel { grid-auto-columns: 72%; }
}

/* -- Google Play badge ----------------------------------------------------- */

/* Google's badge is fixed artwork with its own baked-in clear space, so it gets
   no button chrome — a border or gradient behind it modifies the mark. The width
   is capped rather than set, so it never outgrows the narrow upsell column. */
.vslim-badge { display: inline-block; line-height: 0; }
.vslim-badge img { display: block; width: 100%; max-width: 182px; height: auto; }

/* -- full-screen screenshot viewer ---------------------------------------- */

/* Fixed to the viewport, not to the tool: the carousel sits deep inside an
   article that scrolls. `dvh` rather than `vh` so a phone's collapsing address
   bar cannot crop the image. */
.vslim-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 16px;
  height: 100dvh;
  background: rgba(3, 8, 20, .93);
  backdrop-filter: blur(6px);
}
.vslim-lightbox.is-hidden { display: none; }
.vslim-lb-figure { margin: 0; display: grid; justify-items: center; gap: 10px; min-height: 0; }
.vslim-lb-figure img {
  display: block;
  /* Bounded on both axes: these screenshots are portrait, so height binds on a
     laptop and width binds on a phone. */
  max-width: 100%;
  max-height: calc(100dvh - 132px);
  width: auto;
  border-radius: 14px;
  border: 1px solid var(--vs-line);
}
.vslim-lb-figure figcaption { color: var(--vs-text); text-align: center; font-size: .92rem; max-width: 44ch; }
.vslim-lb-count { color: var(--vs-muted); margin: 0; font-size: .8rem; }
.vslim-lb-nav, .vslim-lb-close {
  border: 1px solid var(--vs-line);
  background: rgba(13, 24, 46, .9);
  color: var(--vs-text);
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
}
.vslim-lb-nav { width: 44px; height: 44px; font-size: 1.7rem; }
.vslim-lb-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; font-size: 1.5rem; }
.vslim-lb-nav:focus-visible, .vslim-lb-close:focus-visible { outline: 2px solid var(--vs-cyan); outline-offset: 2px; }

/* The thumbnails get the zoom cursor only once the script has wired them up, so
   the affordance never appears without the behaviour behind it. */
.vslim-slide img.is-zoomable { cursor: zoom-in; }

@media (max-width: 640px) {
  /* Side arrows would eat the image on a phone, so they move to the bottom
     corners and swiping carries most of the navigation. */
  .vslim-lightbox { grid-template-columns: 1fr; padding: 12px; }
  .vslim-lb-nav { position: absolute; bottom: 16px; }
  .vslim-lb-prev { left: 16px; }
  .vslim-lb-next { right: 16px; }
  .vslim-lb-figure img { max-height: calc(100dvh - 190px); }
}

@media (prefers-reduced-motion: reduce) {
  .vslim *, .vslim *::before, .vslim *::after { scroll-behavior: auto !important; transition: none !important; }
}
