:root {
  --ink: #0a0a0a;
  --ink-raised: rgba(22, 22, 22, 0.84);
  --ink-raised-2: rgba(31, 31, 31, 0.9);
  --hairline: rgba(246, 244, 238, 0.1);
  --paper: #f6f4ee;
  --mist: #b9b7af;
  --mist-dim: #8c8c8c;
  --amber: #ddff8f;
  --amber-soft: rgba(221, 255, 143, 0.15);
  --amber-ring: rgba(221, 255, 143, 0.4);
  --green: #ddff8f;
  --red: #e0705c;

  --display: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --body: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --mono: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;

  color-scheme: dark;
}

* { box-sizing: border-box; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }
body.page-loading { overflow: hidden; }

button { font-family: inherit; }
::selection { background: rgba(221, 255, 143, 0.32); color: #0a0a0a; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* ---------- Initial page loader ---------- */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: #0a0a0a;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.42s;
}
.page-loader.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader__content {
  display: grid;
  justify-items: center;
  gap: 22px;
  transform: translateY(-2vh);
}
.page-loader__mark {
  width: 38px;
  height: 40px;
  filter: drop-shadow(0 0 10px rgba(221, 255, 143, 0.12));
  animation: page-loader-mark 1.4s ease-in-out infinite;
}
.page-loader__track {
  position: relative;
  width: clamp(128px, 18vw, 176px);
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(246, 244, 238, 0.08);
}
.page-loader__track span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(184, 222, 107, 0.15), #ddff8f 58%, #f0ffd4);
  box-shadow: 0 0 9px rgba(221, 255, 143, 0.34);
  animation: page-loader-sweep 1.05s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

@keyframes page-loader-sweep {
  0% { transform: translateX(-115%); }
  55% { transform: translateX(92%); }
  100% { transform: translateX(280%); }
}
@keyframes page-loader-mark {
  0%, 100% { opacity: 0.68; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader { transition: none; }
  .page-loader__mark { animation: none; opacity: 1; }
  .page-loader__track span { width: 100%; animation: none; transform: none; }
}

/* ---------- Background ---------- */

.waves-background,
.ambient-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.waves-background {
  z-index: 0;
  background: var(--ink);
}
.waves-background .gradient-waves-host {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.waves-background canvas {
  display: block;
  width: 100%;
  height: 100%;
  animation: waves-fade-in 900ms ease both;
}
@keyframes waves-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* The wave loop pauses itself while a modal is open (see GradientWaves),
   leaving a cheap static frame behind the overlay's backdrop blur. */
.ambient-overlay {
  z-index: 0;
  background:
    radial-gradient(120% 75% at 50% 30%, rgba(10, 10, 10, 0.78) 0%, rgba(10, 10, 10, 0.4) 42%, rgba(10, 10, 10, 0) 72%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.6) 0%, rgba(10, 10, 10, 0.12) 34%, rgba(10, 10, 10, 0.4) 62%, rgba(10, 10, 10, 0.82) 100%);
}

/* ---------- Layout ---------- */

.stage {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px clamp(20px, 4vw, 56px) 26px;
}

.topbar {
  width: min(1120px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
}
.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 5px rgba(221, 255, 143, 0.16));
}

.brand-copy { display: grid; gap: 1px; }
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.brand-copy small { color: var(--mist-dim); font-size: 10px; letter-spacing: 0.035em; }

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(246, 244, 238, 0.04);
  color: var(--mist);
  font-size: 11.5px;
  backdrop-filter: blur(14px);
}
.topbar-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 5px rgba(221, 255, 143, 0.4);
}

.hero {
  max-width: 780px;
  width: 100%;
  text-align: center;
  margin: auto 0;
  padding: clamp(64px, 10vh, 112px) 0 clamp(52px, 8vh, 88px);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(44px, 7.2vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.hero h1 em {
  display: inline-block;
  font-style: normal;
  color: transparent;
  background: linear-gradient(105deg, #ecffc4 8%, #ddff8f 50%, #b4d65c 96%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 14px rgba(221, 255, 143, 0.09));
}

.sub {
  color: var(--mist);
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.65;
  max-width: 540px;
  margin: 0 auto 36px;
  text-wrap: balance;
}

.clip-card {
  position: relative;
  width: min(700px, 100%);
  margin: 0 auto;
}

.url-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(246, 244, 238, 0.03);
  border: 1px solid rgba(246, 244, 238, 0.1);
  border-radius: 15px;
  padding: 6px 6px 6px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.url-icon { width: 20px; height: 20px; color: #8c8c8c; flex: 0 0 auto; }
.url-icon svg { display: block; width: 100%; height: 100%; }

.url-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--paper);
  font-family: var(--body);
  font-size: 14px;
  padding: 14px 8px;
}
.url-form input::placeholder { color: var(--mist-dim); }
.url-form input:focus { outline: none; }
.url-form:focus-within {
  background: rgba(246, 244, 238, 0.05);
  border-color: rgba(221, 255, 143, 0.5);
  box-shadow: 0 0 0 3px rgba(221, 255, 143, 0.08), 0 10px 34px rgba(0, 0, 0, 0.2);
}

.fetch-button-root { display: contents; }

.specular-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  background: var(--sb-tint);
  background: color-mix(in srgb, var(--sb-tint) var(--sb-tint-opacity), transparent);
  color: var(--sb-text-color);
  border: 0;
  border-radius: var(--sb-radius);
  font-family: var(--display);
  font-weight: 600;
  min-height: 46px;
  cursor: pointer;
  backdrop-filter: blur(var(--sb-blur));
  border: 1px solid rgba(221, 255, 143, 0.18);
  box-shadow: inset 0 1px 0 rgba(221, 255, 143, 0.08), 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.specular-button--sm { min-height: 38px; padding: 0 15px; font-size: 13px; }
.specular-button--md { min-height: 46px; padding: 0 20px; font-size: 14.5px; }
.specular-button--lg { min-height: 52px; padding: 0 25px; font-size: 15px; }
.specular-button__fx {
  position: absolute;
  inset: -20px;
  z-index: 1;
  overflow: visible;
  pointer-events: none;
}
.specular-button__fx canvas { display: block; width: 100%; height: 100%; }
.specular-button__label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.specular-button:hover { filter: brightness(1.04); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.specular-button:active { transform: scale(0.98); }
.specular-button[disabled] { cursor: default; opacity: 0.82; }

/* ---- loading state: three-dot pulse + glow ---- */
.btn-label {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.btn-spinner {
  display: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ddff8f;
  color: #ddff8f;
}
.btn-spinner::before,
.btn-spinner::after {
  content: '';
  position: absolute;
  top: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.btn-spinner::before { left: -11px; }
.btn-spinner::after { left: 11px; }

.url-form .loading .btn-label {
  opacity: 0;
  transform: translateY(-3px);
}
.url-form .loading.specular-button[disabled] { opacity: 1; }
.url-form .loading .btn-spinner {
  display: block;
  position: absolute;
  left: 50%;
  margin-left: -3px;
  animation: dot-pulse 1s ease-in-out infinite;
}
.url-form .loading .btn-spinner::before { animation: dot-pulse 1s ease-in-out infinite -0.18s; }
.url-form .loading .btn-spinner::after { animation: dot-pulse 1s ease-in-out infinite 0.18s; }
.url-form .loading {
  animation: btn-loading-glow 1.5s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 75%, 100% { opacity: 0.3; }
  35% { opacity: 1; }
}
@keyframes btn-loading-glow {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(221, 255, 143, 0.1), 0 0 0 0 rgba(221, 255, 143, 0); }
  50% { box-shadow: inset 0 1px 0 rgba(221, 255, 143, 0.16), 0 0 14px 1px rgba(221, 255, 143, 0.16); }
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .url-form .loading,
  .url-form .loading .btn-spinner,
  .url-form .loading .btn-spinner::before,
  .url-form .loading .btn-spinner::after { animation: none; }
  .url-form .loading .btn-spinner,
  .url-form .loading .btn-spinner::before,
  .url-form .loading .btn-spinner::after { opacity: 0.9; }
}

.form-error {
  min-height: 20px;
  color: var(--red);
  font-size: 12.5px;
  margin: 9px 10px 0;
  text-align: left;
}

.foot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #8c8c8c;
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.02em;
  margin-top: auto;
}

.foot a {
  color: #b9b7af;
  text-decoration: none;
  transition: color 0.15s ease;
}

.foot a:hover { color: var(--amber); }
.foot-separator { color: var(--hairline); }

/* ---------- Modal ---------- */

.overlay[hidden] { display: none; }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(14px) saturate(110%);
  -webkit-backdrop-filter: blur(14px) saturate(110%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
  will-change: opacity;
  animation: overlay-in 0.28s ease-out both;
}
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }

.overlay.closing {
  animation: overlay-out 0.22s ease-in both;
  pointer-events: none;
}
@keyframes overlay-out { from { opacity: 1; } to { opacity: 0; } }

.modal {
  position: relative;
  width: 100%;
  max-width: 510px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(145deg, rgba(20, 20, 20, 0.97), rgba(13, 13, 13, 0.97));
  border: 1px solid rgba(246, 244, 238, 0.1);
  border-radius: 22px;
  padding: 24px 24px 22px;
  will-change: transform, opacity;
  animation: modal-in 0.34s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.overlay.closing .modal {
  animation: modal-out 0.2s cubic-bezier(0.4, 0, 1, 1) both;
}
@keyframes modal-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(6px) scale(0.985); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--mist);
  font-size: 13px;
  cursor: pointer;
}
.modal-close:hover { background: var(--ink-raised-2); color: var(--paper); }
.modal-close:disabled { opacity: 0.35; cursor: not-allowed; }

.modal-head {
  display: flex;
  gap: 14px;
  padding-right: 26px;
}

.thumb {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink-raised-2);
  border: 1px solid var(--hairline);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.meta { min-width: 0; padding-top: 2px; }
.meta h2 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.meta-sub {
  color: var(--mist);
  font-size: 13px;
  margin: 0;
}
.meta-sub #modalSourceDot { margin: 0 6px; opacity: 0.6; }

/* Trim */

.trim-section { margin-top: 22px; }

.trim-times {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--mist);
  margin-bottom: 10px;
}
.tc { color: var(--amber); font-weight: 600; }
.tc-mid { color: var(--mist-dim); }
.tc-mid strong { color: var(--paper); font-weight: 600; }

.tc-input {
  font-family: var(--mono);
  color: var(--amber);
  font-weight: 600;
  font-size: 12.5px;
  width: 60px;
  text-align: center;
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  border-radius: 2px;
  padding: 1px 0 2px;
}
.tc-input:hover { border-bottom-color: var(--amber-ring); }
.tc-input:focus {
  outline: none;
  border-bottom-color: var(--amber);
}

.trim-hint {
  font-size: 11.5px;
  color: var(--mist-dim);
  margin: 10px 0 0;
}

.trim-track {
  position: relative;
  height: 28px;
}
.trim-rail {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 4px;
  transform: translateY(-50%);
  background: var(--ink-raised-2);
  border-radius: 999px;
}
.trim-fill {
  position: absolute;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  background: var(--amber);
  box-shadow: 0 0 7px rgba(221, 255, 143, 0.28);
  border-radius: 999px;
}

.range {
  position: absolute;
  left: 0; right: 0; top: 0;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
}
.range::-webkit-slider-runnable-track { background: transparent; height: 28px; }
.range::-moz-range-track { background: transparent; height: 28px; }

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 16px;
  height: 16px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--amber);
  border: 3px solid #1f1f1f;
  box-shadow: 0 0 0 3px rgba(221, 255, 143, 0.09), 0 2px 8px rgba(0, 0, 0, 0.45);
  cursor: grab;
}
.range::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--amber);
  border: 3px solid #1f1f1f;
  cursor: grab;
}
.range:active::-webkit-slider-thumb { cursor: grabbing; }

/* Format pills */

.format-section { margin-top: 22px; }
.section-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mist-dim);
  margin-bottom: 10px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--hairline);
  background: var(--ink-raised-2);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.12s ease;
}
.pill:hover { border-color: rgba(221, 255, 143, 0.46); transform: translateY(-1px); }
.pill.active {
  background: linear-gradient(145deg, rgba(221, 255, 143, 0.22), rgba(221, 255, 143, 0.1));
  border-color: var(--amber);
  color: #ecffc4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 10px rgba(221, 255, 143, 0.05);
}
.pill-ico {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--amber);
  opacity: 0.85;
}
.pill.active .pill-ico { opacity: 1; }
.pill-name { font-weight: 600; letter-spacing: 0.01em; }
.pill-sub {
  color: var(--mist-dim);
  font-size: 11.5px;
  font-weight: 500;
}
.pill.active .pill-sub { color: rgba(236, 255, 196, 0.75); }

/* Footer / actions */

.modal-footer[hidden] { display: none; }

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
}

.btn-primary, .btn-ghost {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary {
  background: #ddff8f;
  color: #12160a;
  border-color: rgba(10, 10, 10, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 22px rgba(0, 0, 0, 0.3);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost {
  background: transparent;
  border-color: var(--hairline);
  color: var(--mist);
}
.btn-ghost:hover { color: var(--paper); border-color: var(--mist-dim); }
.btn-primary:disabled, .btn-ghost:disabled { opacity: 0.55; cursor: not-allowed; }

/* Progress / done / error panels */

.progress-panel, .done-panel, .error-panel { margin-top: 26px; }

.progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--ink-raised-2);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #b4d65c, #ecffc4);
  box-shadow: 0 0 8px rgba(221, 255, 143, 0.26);
  border-radius: 999px;
  transition: width 0.25s ease;
}
.progress-fill.indeterminate {
  width: 34% !important;
  animation: indeterminate 1.1s ease-in-out infinite;
}
@keyframes indeterminate {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(340%); }
}
/* text on the left, action buttons on the right — one aligned row */
.panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.progress-panel .panel-foot { margin-top: 13px; }

.panel-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
}
.done-actions { display: flex; justify-content: flex-end; gap: 10px; }

.progress-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--mist);
}
.progress-info #progressStatus { color: var(--paper); white-space: nowrap; }
.progress-info #progressDetail {
  color: var(--mist-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.progress-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 4px rgba(221, 255, 143, 0.32);
  animation: progress-dot-pulse 1.1s ease-in-out infinite;
}
@keyframes progress-dot-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.panel-text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--mist);
}
.panel-text strong { color: var(--green); }
.panel-text--error { color: var(--red); }
.panel-text .expiry-note {
  display: block;
  margin-top: 3px;
  color: var(--mist-dim);
  font-size: 11.5px;
}

@media (max-width: 600px) {
  .stage { padding: 20px 16px; }
  .topbar-badge { display: none; }
  .hero { padding: 58px 0 46px; }
  .hero h1 { font-size: clamp(42px, 13.5vw, 58px); }
  .url-form { flex-direction: column; }
  .url-icon { display: none; }
  .url-form input { width: 100%; text-align: center; padding: 12px 8px 8px; }
  .fetch-button-root, .url-form .specular-button { width: 100%; }
  .url-form .specular-button { padding: 12px; }
  .modal-head { flex-direction: column; }
  .thumb { width: 100%; height: 160px; }
  .overlay { padding: 10px; }
  .modal { max-height: calc(100vh - 20px); }
  .done-actions { flex-direction: column; }
  .panel-foot { flex-direction: column; align-items: stretch; gap: 12px; }
  .panel-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}


/* ---------- Get video arrow ---------- */
.btn-label { display: inline-flex; align-items: center; gap: 6px; }
.btn-arrow {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}
.fetch-button:hover .btn-arrow,
.specular-button:hover .btn-arrow,
.url-form button:hover .btn-arrow {
  animation: arrow-launch 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes arrow-launch {
  0%   { transform: translate(0, 0); opacity: 1; }
  40%  { transform: translate(8px, -8px); opacity: 0; }
  41%  { transform: translate(-9px, 9px); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .fetch-button:hover .btn-arrow,
  .specular-button:hover .btn-arrow,
  .url-form button:hover .btn-arrow { animation: none; }
}
