/*! © 2026 INEASY (ineasy.site). Все права защищены / All rights reserved.
 * Копирование, изменение и использование без письменного разрешения запрещено.
 * Copying, modification or use without written permission is prohibited. */
/* Patcher: upload, limits, mode picker, processing, result */

.patch-panel {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(32px, 5vw, 88px);
}
.patch-intro { position: sticky; top: calc(var(--header-h) + 28px); }
.patch-work { display: grid; gap: 16px; min-width: 0; }
.patch-work > * { min-width: 0; }

.patch-title {
  font: 500 clamp(1.625rem, 1rem + 2.1vw, 2.75rem) / 1.1 var(--font-display);
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 25%, #aac3ff 125%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.patch-quality-heading { margin-top: 18px; color: var(--text-2); font-size: var(--fs-lg); line-height: 1.55; }
.patch-sub {
  display: inline-flex;
  margin-top: 20px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--blue-wash);
  color: var(--blue-200);
  font: 500 0.75rem / 1.2 var(--font-mono);
  letter-spacing: 0.06em;
}

/* ---- daily limit ---- */
.daily-limit-card {
  margin-top: 36px;
  padding: 18px 18px 20px;
  border-radius: 18px;
  background: rgba(10, 18, 34, 0.6);
}
.daily-limit-heading { margin-bottom: 14px; }
.daily-limit-heading strong, .video-size-meter-heading strong { position: relative; z-index: 1; color: var(--text); font-size: var(--fs-sm); font-weight: 600; }
.daily-limit-track, .video-size-meter-track {
  position: relative;
  z-index: 1;
  height: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(3, 6, 12, 0.6);
}
#dailyLimitFill, .video-size-meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400) 70%, var(--cyan-300));
  box-shadow: 0 0 22px -2px rgba(91, 140, 255, 0.7);
  transition: width 0.5s var(--ease);
}
.daily-limit-track-label, .video-size-meter-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 14px;
  color: #fff;
  font: 500 0.6875rem / 1 var(--font-mono);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

/* ---- dropzone ---- */
.dropzone {
  --ang: 0deg;
  --bk: rgba(91, 140, 255, 0.75);
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 340px;
  padding: 36px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: rgba(3, 6, 12, 0.5);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.dropzone input { display: none; }
.dropzone::before {
  content: '';
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--ang), transparent 0 72%, rgba(102, 217, 255, 0.95) 88%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0.55;
  animation: orbit 7s linear infinite;
  pointer-events: none;
}
@keyframes orbit { to { --ang: 360deg; } }
.dropzone::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 100%, rgba(52, 111, 245, 0.22), transparent 70%);
  pointer-events: none;
}
.dropzone > * { position: relative; z-index: 1; }
.dropzone:hover { border-color: rgba(143, 178, 255, 0.4); background-color: rgba(91, 140, 255, 0.05); }
.dropzone:hover::before, .dropzone.drag::before { opacity: 1; }
.dropzone.drag { --bk: var(--cyan-300); border-color: var(--cyan-300); background-color: rgba(102, 217, 255, 0.07); }
.dropzone.locked { cursor: default; background-color: rgba(3, 6, 12, 0.6); }
.dropzone.locked::before { display: none; }

.dropzone-content, .balance-lock { display: grid; justify-items: center; gap: 0; width: 100%; }
.dz-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 22px;
  border: 1px solid rgba(143, 178, 255, 0.42);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, rgba(143, 178, 255, 0.3), rgba(52, 111, 245, 0.08) 72%);
  color: var(--blue-200);
  box-shadow: 0 0 0 9px rgba(91, 140, 255, 0.06), 0 16px 34px -12px rgba(52, 111, 245, 0.75);
  animation: dzFloat 4.5s ease-in-out infinite;
}
.dz-art .ic { --ic-size: 30px; }
@keyframes dzFloat { 50% { transform: translateY(-5px); } }
.dropzone.drag .dz-art { border-color: var(--cyan-300); color: var(--cyan-300); }
.lock-art { border-color: rgba(242, 184, 75, 0.45); background: radial-gradient(circle at 30% 24%, rgba(242, 184, 75, 0.26), rgba(242, 184, 75, 0.06) 72%); color: var(--warn); box-shadow: 0 0 0 9px rgba(242, 184, 75, 0.06), 0 16px 34px -12px rgba(242, 184, 75, 0.45); animation: none; }
.dz-title { font: 500 1.25rem / 1.25 var(--font-display); letter-spacing: -0.02em; }
.dz-sub { max-width: 30ch; margin-top: 8px; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.5; }
.patch-format-note { margin-top: 18px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--text-3); font: 500 0.6875rem / 1 var(--font-mono); letter-spacing: 0.14em; }
.balance-lock-actions { display: grid; gap: 10px; width: min(100%, 320px); margin-top: 22px; }
#freeBalanceNextAt { color: var(--warn); }

/* ---- preview ---- */
.preview-wrap { display: none; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: #000; }
.preview-wrap.show { display: block; }
.preview-wrap video { display: block; width: 100%; max-height: min(56vh, 480px); background: #000; object-fit: contain; }
.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 6px 6px 16px;
  border-top: 1px solid var(--line);
  background: var(--ink-850);
  color: var(--text-2);
  font: 400 0.8125rem / 1.3 var(--font-mono);
}
.file-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- size meter ---- */
.video-size-meter { padding: 16px 18px 18px; border-radius: 18px; background: rgba(10, 18, 34, 0.6); }
.video-size-meter-heading { margin-bottom: 12px; }
.video-size-meter-heading div { position: relative; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.video-size-meter-kicker { color: var(--blue-300); font: 500 0.6875rem / 1 var(--font-mono); letter-spacing: 0.14em; }
.export-note { color: var(--text-3); font-size: var(--fs-sm); line-height: 1.5; }

/* ---- V1 / V2 picker ---- */
.patcher-version-picker {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 5px;
  border-radius: 20px;
  background: rgba(8, 14, 26, 0.85);
}
.patcher-version-picker.hidden { display: none; }
.mode-thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  z-index: 0;
  width: calc(50% - 7px);
  border: 1px solid rgba(143, 178, 255, 0.45);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(91, 140, 255, 0.32), rgba(52, 111, 245, 0.16));
  box-shadow: 0 10px 28px -12px rgba(52, 111, 245, 0.95);
  transform: translateX(calc(100% + 4px));
  transition: transform 0.38s var(--ease);
}
.patcher-version-picker.has-v1-selected .mode-thumb { transform: none; }
.patcher-version-option { position: relative; z-index: 1; display: block; cursor: pointer; }
.patcher-version-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.mode-card { display: grid; gap: 5px; padding: 14px 16px; border-radius: 15px; color: var(--text-3); transition: color var(--t-fast) var(--ease); }
.mode-card strong { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 600 1rem / 1.1 var(--font-display); letter-spacing: -0.02em; }
.mode-card small { font-size: var(--fs-sm); line-height: 1.35; }
.patcher-version-option input:checked + .mode-card { color: var(--text-2); }
.patcher-version-option input:checked + .mode-card strong { color: #fff; }
.patcher-version-option input:focus-visible + .mode-card { outline: 2px solid var(--blue-400); outline-offset: -2px; }
.mode-status { padding: 4px 8px; border-radius: 7px; font: 500 0.625rem / 1 var(--font-mono); font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; }
.mode-status-slow { background: var(--warn-wash); color: var(--warn); }
.mode-status-best { background: var(--ok-wash); color: var(--ok); }
.patcher-version-note, .fps-advice { color: var(--text-3); font-size: var(--fs-sm); line-height: 1.5; }

.process-btn { margin-top: 2px; }
.process-btn:not(:disabled) { animation: ctaGlow 3.2s ease-in-out infinite; }
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 10px 28px -10px rgba(52, 111, 245, 0.6); }
  50% { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 14px 40px -8px rgba(80, 140, 255, 0.95); }
}

/* ---- processing ---- */
.processing-state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 16px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: rgba(8, 14, 26, 0.85);
}
.processing-state.hidden { display: none; }
.ps-copy { display: grid; gap: 3px; min-width: 0; }
.ps-copy > span { display: block; }
.processing-percent { color: var(--text); font: 600 0.9375rem / 1.2 var(--font-mono); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
#processingText { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.45; }
#processingText:empty { display: none; }
.processing-wait-note { color: var(--text-3); font-size: 0.75rem; line-height: 1.45; }
.processing-wait-note:empty { display: none; }
.processing-state .progress-track { grid-column: 1 / -1; height: 8px; }
.processing-state .progress-track i { position: relative; overflow: hidden; }
.processing-state .progress-track i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%); animation: barSheen 1.8s linear infinite; }
@keyframes barSheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.processing-state.completed { grid-template-columns: auto minmax(0, 1fr); }
.processing-state.completed .cancel-process-btn { display: none; }
.processing-state.completed .processing-spinner {
  width: 24px; height: 24px;
  border: 0;
  border-radius: 0;
  background: var(--ok);
  animation: none;
  -webkit-mask: var(--ico-check) center / contain no-repeat;
  mask: var(--ico-check) center / contain no-repeat;
}
.processing-state.completed .progress-track i { background: var(--ok); }
.processing-state.completed .progress-track i::after, .processing-state.failed .progress-track i::after { display: none; }
.processing-state.failed { border-color: rgba(255, 107, 132, 0.45); background: var(--err-wash); }
.processing-state.failed .processing-spinner {
  width: 24px; height: 24px;
  border: 0;
  border-radius: 0;
  background: var(--err);
  animation: none;
  -webkit-mask: var(--ico-alert) center / contain no-repeat;
  mask: var(--ico-alert) center / contain no-repeat;
}
.processing-state.failed #processingText { color: #ffc2cc; }
.processing-state.failed .progress-track, .processing-state.failed .processing-wait-note, .processing-state.failed .processing-percent { display: none; }

/* ---- result ---- */
.processed-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px 16px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(61, 219, 167, 0.1), rgba(10, 18, 34, 0.7) 60%);
}
.processed-result.hidden { display: none; }
.processed-result::before { background: linear-gradient(150deg, rgba(61, 219, 167, 0.6), rgba(61, 219, 167, 0.08) 40%, rgba(143, 178, 255, 0.06) 70%, rgba(102, 217, 255, 0.3)) !important; }
.result-mark { position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ok); color: var(--ink-1000); box-shadow: 0 0 28px -4px rgba(61, 219, 167, 0.7); }
.result-mark svg { width: 24px; height: 24px; }
.processed-result-copy { position: relative; z-index: 1; min-width: 0; }
.processed-result-copy strong { display: block; font: 500 1.1875rem / 1.2 var(--font-display); letter-spacing: -0.02em; }
.processed-result-copy small { display: block; margin-top: 4px; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.45; }
.processed-result-copy .compatibility-note { color: var(--text-3); font-size: 0.8125rem; }
.processed-result > .download-link { grid-column: 1 / -1; position: relative; z-index: 1; }
.publication-actions { grid-column: 1 / -1; position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.publication-actions.hidden { display: none; }
.pub-option { display: grid; align-content: start; gap: 8px; }
.pub-option .btn { width: 100%; }
.autopost-hint { color: var(--text-3); font-size: 0.75rem; line-height: 1.45; text-align: center; }
.autopost-hint.attention { color: var(--cyan-300); }
.optimize-another-btn { grid-column: 1 / -1; position: relative; z-index: 1; }

.notice-banner.hidden { display: none; }

/* ================= Tablet / phone ================= */
@media (max-width: 1099px) {
  .patch-panel { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .patch-intro { position: static; }
  .daily-limit-card { margin-top: 26px; }
}
@media (max-width: 599px) {
  .daily-limit-card { margin-top: 20px; padding: 14px 14px 16px; }
  .daily-limit-heading { margin-bottom: 10px; }
  .patch-sub { margin-top: 16px; }
  .dropzone { min-height: 250px; padding: 24px 16px; }
  .patch-quality-heading { font-size: var(--fs-md); }
  .processing-state { grid-template-columns: auto minmax(0, 1fr); padding: 16px; }
  .processing-state .cancel-process-btn { grid-column: 1 / -1; }
  .processed-result { padding: 18px; }
  .publication-actions { grid-template-columns: minmax(0, 1fr); }
  .mode-card { padding: 12px; }
  .mode-card strong { font-size: 0.9375rem; }
  .daily-limit-track-label, .video-size-meter-value { font-size: 0.6875rem; padding: 0 10px; }
}

@media (max-width: 440px) {
  .daily-limit-track, .video-size-meter-track { height: auto; min-height: 34px; }
  .daily-limit-track-label, .video-size-meter-value { position: relative; inset: auto; display: block; padding: 9px 12px; text-align: center; white-space: normal; line-height: 1.35; }
}

/* ---- "30 FPS" tip: warm amber, deliberately calm ---- */
.fps-tip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px 18px 22px;
  overflow: hidden;
  border: 1px solid rgba(242, 184, 75, 0.34);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(242, 184, 75, 0.15), rgba(242, 184, 75, 0.035) 62%), rgba(14, 12, 6, 0.55);
}
.fps-tip::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg, #ffd37a, rgba(242, 184, 75, 0.2)); }
.fps-tip::after { content: ''; position: absolute; top: -50%; left: -8%; width: 60%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(242, 184, 75, 0.2), transparent); pointer-events: none; }
.fps-tip-badge {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(242, 184, 75, 0.16);
  color: #ffd37a;
  box-shadow: 0 0 0 1px rgba(242, 184, 75, 0.4) inset, 0 10px 24px -10px rgba(242, 184, 75, 0.7);
}
.fps-tip-badge .ic { --ic-size: 22px; }
.fps-tip-body { position: relative; z-index: 1; min-width: 0; }
.fps-tip-body strong { display: block; color: #ffe3ad; font: 500 1rem / 1.25 var(--font-display); letter-spacing: -0.02em; }
.fps-tip-body p { margin-top: 8px; color: #e4d2a6; font-size: var(--fs-sm); line-height: 1.6; }
.fps-tip-body p b { color: #ffd37a; font-weight: 600; }
.fps-tip-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fps-tip-tags > span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 10px; border: 1px solid rgba(242, 184, 75, 0.34); border-radius: var(--r-pill); background: rgba(242, 184, 75, 0.09); color: #ffd98f; font: 500 0.6875rem / 1 var(--font-mono); letter-spacing: 0.08em; }
.fps-tip-tags .ic { --ic-size: 15px; }
.fps-tip-result { grid-column: 1 / -1; }
.fps-tip-compact { padding: 14px 16px 14px 18px; gap: 12px; }
.fps-tip-compact .fps-tip-badge { width: 38px; height: 38px; border-radius: 12px; }
.fps-tip-compact .fps-tip-body p { margin-top: 6px; font-size: 0.8125rem; }
.fps-tip-compact .fps-tip-tags { display: none; }
@media (max-width: 599px) {
  .fps-tip { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 16px 16px 20px; }
  .fps-tip-compact { grid-template-columns: auto minmax(0, 1fr); }
}

/* ---------- V2 flashlight ----------
   The picker appears when a video is inserted; a beam of light sweeps over V2 and leaves it glowing.
   While the pointer is over V2 the light follows it. */
.patcher-version-picker.is-revealed { animation: mode-picker-in 0.45s var(--ease) both; }
@keyframes mode-picker-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }

.patcher-version-beta { --spot-x: 50%; --spot-y: 50%; border-radius: 15px; overflow: hidden; isolation: isolate; }
.patcher-version-beta::before,
.patcher-version-beta::after { content: ""; position: absolute; pointer-events: none; border-radius: inherit; }
/* steady glow of the card */
.patcher-version-beta::before {
  inset: 0; z-index: 0; opacity: 0;
  background: radial-gradient(160px 120px at var(--spot-x) var(--spot-y), rgba(160, 215, 255, 0.5), rgba(91, 140, 255, 0.16) 48%, transparent 72%);
  transition: opacity 0.3s var(--ease);
}
.patcher-version-picker.is-revealed .patcher-version-beta::before { opacity: 0.75; animation: mode-glow 2.6s ease-in-out 1.6s infinite; }
.patcher-version-beta.is-lit::before { opacity: 1; animation: none; }
/* the beam */
.patcher-version-beta::after {
  top: -30%; bottom: -30%; left: -45%; z-index: 0; width: 45%; opacity: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(200, 232, 255, 0.0) 20%, rgba(200, 232, 255, 0.75) 50%, rgba(200, 232, 255, 0.0) 80%, transparent 100%);
  filter: blur(6px);
  transform: skewX(-18deg);
}
.patcher-version-picker.is-revealed .patcher-version-beta::after { animation: mode-beam 1.5s var(--ease) 0.35s both; }
.patcher-version-picker.is-revealed .patcher-version-beta .mode-card { animation: mode-lit 1.6s var(--ease) 0.35s both; }
.patcher-version-picker.is-revealed .patcher-version-option:not(.patcher-version-beta) .mode-card { animation: mode-dim 1.6s var(--ease) 0.35s both; }
.patcher-version-beta .mode-card { position: relative; z-index: 1; }
@keyframes mode-beam { 0% { left: -45%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 105%; opacity: 0; } }
@keyframes mode-glow { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes mode-lit { 0% { filter: brightness(0.7); } 45% { filter: brightness(1.45); } 100% { filter: brightness(1); } }
@keyframes mode-dim { 0% { opacity: 1; } 40% { opacity: 0.55; } 100% { opacity: 1; } }

/* "choose me" sign with the lightning icon */
.mode-hint {
  display: inline-flex; align-items: center; gap: 7px; justify-self: start; margin-top: 4px; padding: 5px 10px 5px 8px;
  border-radius: 999px; border: 1px solid rgba(61, 219, 167, 0.4); background: var(--ok-wash); color: var(--ok);
  font: 600 var(--fs-xs) / 1.2 var(--font-text);
}
.mode-hint .ic { --ic-size: 14px; }
.patcher-version-picker.is-revealed .patcher-version-beta .mode-hint .ic { animation: mode-bolt 1.2s ease-in-out 1.9s infinite; }
@keyframes mode-bolt { 0%, 100% { transform: scale(1); filter: none; } 50% { transform: scale(1.28); filter: drop-shadow(0 0 5px currentColor); } }

@media (prefers-reduced-motion: reduce) {
  .patcher-version-picker.is-revealed,
  .patcher-version-picker.is-revealed .patcher-version-beta::before,
  .patcher-version-picker.is-revealed .patcher-version-beta::after,
  .patcher-version-picker.is-revealed .patcher-version-beta .mode-card,
  .patcher-version-picker.is-revealed .patcher-version-option:not(.patcher-version-beta) .mode-card,
  .patcher-version-picker.is-revealed .patcher-version-beta .mode-hint .ic { animation: none; }
  .patcher-version-picker.is-revealed .patcher-version-beta::before { opacity: 0.8; }
}

/* Processing method choice (shown after a video is chosen; "Process" stays off until one is picked) */
.method-picker { display: grid; gap: 10px; margin: 14px 0 4px; }
.method-picker.hidden { display: none; }
.method-picker-title { font-size: var(--fs-sm, .9rem); color: var(--muted, #9aa3b2); }
.method-picker-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.method-option { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 64px; padding: 12px 14px; border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: var(--r-lg, 14px); background: var(--surface, rgba(255,255,255,.03)); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.method-option strong { font-size: 1rem; line-height: 1.25; overflow-wrap: anywhere; }
.method-option small { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.method-option:hover { border-color: rgba(96, 141, 255, .55); }
.method-option:focus-visible { outline: 2px solid #5b8cff; outline-offset: 2px; }
.method-option[aria-checked="true"] { border-color: #5b8cff; background: rgba(91, 140, 255, .14); box-shadow: 0 0 0 1px #5b8cff inset; }
.method-option:disabled { opacity: .5; cursor: not-allowed; }
.method-picker-options[hidden], .method-tabs[hidden], .method-note[hidden] { display: none; }
.method-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-bottom: 10px; border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 14px; background: rgba(255,255,255,.03); }
.method-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 8px; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; cursor: pointer; opacity: .65; transition: background .15s, opacity .15s; }
.method-tab strong { font-size: .95rem; }
.method-tab small { font-size: .7rem; opacity: .75; white-space: nowrap; }
.method-tab:hover { opacity: .9; }
.method-tab:focus-visible { outline: 2px solid #5b8cff; outline-offset: 2px; }
.method-tab[aria-selected="true"] { opacity: 1; background: rgba(91, 140, 255, .18); box-shadow: 0 0 0 1px rgba(91, 140, 255, .55) inset; }
/* INEASY × partner. A glow comes down from the top: our blue on the left, the partner's colour on the right. */
.partner-badge { --pb-ours: 47, 107, 255; --pb-theirs: 118, 185, 0; position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px;
  border: 1px solid rgba(var(--pb-theirs), .45); background: rgba(10, 14, 26, .7);
  box-shadow: 0 -6px 26px -10px rgba(var(--pb-ours), .7), 0 -6px 26px -12px rgba(var(--pb-theirs), .7); animation: badgeIn .25s ease; }
.partner-badge[data-provider="editingnews"] { --pb-theirs: 101, 246, 209; border-color: rgba(255, 255, 255, .28); }
.partner-badge::before { content: ""; position: absolute; z-index: -1; inset: -20% -10% auto -10%; height: 90%;
  background: radial-gradient(50% 60% at 18% 10%, rgba(var(--pb-ours), .55), transparent 75%), radial-gradient(50% 60% at 82% 10%, rgba(var(--pb-theirs), .45), transparent 75%);
  filter: blur(16px); opacity: .9; animation: auraPulse 3.2s ease-in-out infinite; }
.partner-badge::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, rgba(var(--pb-ours), .95), rgba(var(--pb-theirs), .95)); }
.partner-badge[hidden] { display: none; }
.partner-badge-logos { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.partner-badge-logos img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.partner-badge-logos img.pb-ineasy { width: 34px; object-fit: contain; background: #f3efe6; box-shadow: 0 0 12px rgba(var(--pb-ours), .6); }
.partner-badge-logos img:not(.pb-ineasy) { box-shadow: 0 0 12px rgba(var(--pb-theirs), .55); }
.partner-badge-logos b { font-size: .9rem; opacity: .7; }
.partner-badge-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.partner-badge-text strong { font-size: 1rem; letter-spacing: .02em; }
.partner-badge-text small { font-size: .8rem; line-height: 1.35; opacity: .85; }
.pb-handle { align-self: flex-start; margin-top: 2px; font-size: .78rem; font-weight: 600; color: rgb(var(--pb-theirs)); text-decoration: none; }
.pb-handle:hover { text-decoration: underline; }
@keyframes badgeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes auraPulse { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .partner-badge, .partner-badge::before { animation: none; } }
.method-note { margin: 8px 2px 0; font-size: .8rem; line-height: 1.4; opacity: .8; }
@media (max-width: 340px) { .method-picker-options { grid-template-columns: 1fr; } }

/* "My videos": links to finished videos at the partner (no files stored by INEASY) */
.my-videos { margin-top: 18px; padding: 16px; border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: var(--r-lg, 14px); background: var(--surface, rgba(255,255,255,.03)); }
.my-videos.hidden { display: none; }
.my-videos-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.my-videos-head h2 { margin: 0; font-size: 1.1rem; }
.my-videos-head small { opacity: .7; }
.my-videos-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.my-videos-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line, rgba(255,255,255,.1)); border-radius: 12px; }
.my-videos-meta { display: flex; flex-direction: column; min-width: 0; }
.my-videos-meta strong { font-size: .95rem; overflow-wrap: anywhere; }
.my-videos-meta small { opacity: .7; font-size: .8rem; }
.my-videos-item .btn { flex: none; }
.my-videos-empty { margin: 12px 0 0; opacity: .7; }
/* Method picker is step 1, above the file picker */
.method-picker.method-picker-first { margin: 0 0 14px; }

/* ===== Step 1 (mode) -> step 2 (video): light, cross-browser animations (transform/opacity only where possible) ===== */
.step-num { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; font-size: 12px; font-weight: 800; line-height: 1; color: #fff; background: linear-gradient(135deg, #4f6bff, #9b5cff); vertical-align: middle; }
.method-picker-title { display: inline-flex; align-items: center; font-weight: 600; color: var(--text, #eef3ff); }
.method-option { transition: transform .18s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; will-change: transform; }
.method-option:active { transform: scale(.97); }
.method-option[aria-checked="true"] { animation: ineasyOptionPop .34s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes ineasyOptionPop { 0% { transform: scale(.95); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
/* No mode yet: the cards breathe to draw the eye */
.method-picker.attention .method-option { animation: ineasyBreathe 2s ease-in-out infinite; }
.method-picker.attention .method-option + .method-option { animation-delay: .25s; }
@keyframes ineasyBreathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(91, 140, 255, 0); border-color: var(--line, rgba(255,255,255,.12)); } 50% { box-shadow: 0 0 0 4px rgba(91, 140, 255, .28); border-color: rgba(91, 140, 255, .7); } }
.method-picker.shake { animation: ineasyShake .45s ease; }
@keyframes ineasyShake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
/* Arrow hint between step 1 and step 2 */
.method-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin: -2px 0 12px; font-size: 14px; font-weight: 700; color: #9fbaff; animation: ineasyFadeIn .35s ease; }
.method-hint[hidden] { display: none; }
.method-hint-arrow { display: inline-block; font-size: 16px; animation: ineasyBounce 1.1s ease-in-out infinite; }
@keyframes ineasyBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes ineasyFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
/* Step 2 closed until a mode is chosen, then it opens with a pop */
.dropzone.needs-method { opacity: .45; filter: grayscale(.5); transition: opacity .3s ease, filter .3s ease; }
.dropzone.needs-method .dz-edge { animation-play-state: paused; }
.dropzone { transition: opacity .3s ease, filter .3s ease; }
.dropzone.dz-unlocked { animation: ineasyUnlock .6s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes ineasyUnlock { 0% { transform: scale(.97); opacity: .6; } 60% { transform: scale(1.015); opacity: 1; } 100% { transform: none; } }
.dz-title { display: inline-flex; align-items: center; justify-content: center; }
.step-num-2 { margin-right: 8px; }
/* "Keeps quality, does not improve it" notes */
.quality-note { margin: 12px 0; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; color: #ffe7b0; background: rgba(242, 184, 75, .1); border: 1px solid rgba(242, 184, 75, .45); text-align: left; }
.quality-note b { color: #ffd37a; }
.quality-note-result { margin-top: 10px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) {
  .method-option, .method-option[aria-checked="true"], .method-picker.attention .method-option, .method-picker.shake,
  .method-hint, .method-hint-arrow, .dropzone.dz-unlocked { animation: none !important; transition: none !important; }
}

/* ---- "Process" turns into the progress bar while the video is processed ---- */
.process-btn.is-progress, .process-btn.is-progress:disabled {
  position: relative; isolation: isolate; overflow: hidden; animation: none; opacity: 1; filter: none; cursor: progress;
  background: rgba(16, 26, 48, .96); border-color: rgba(91, 140, 255, .5); color: #fff;
  box-shadow: 0 10px 30px -12px rgba(52, 111, 245, .85); font-variant-numeric: tabular-nums;
  white-space: nowrap; text-overflow: ellipsis;
}
.process-btn.is-progress::before, .process-btn.is-progress::after {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; width: var(--p, 0%);
  transition: width .45s cubic-bezier(.2, .8, .2, 1);
}
.process-btn.is-progress::before { background: linear-gradient(90deg, #2f6bff, #5b8cff 60%, #66d9ff); }
.process-btn.is-progress::after {
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .38) 50%, transparent 65%) 0 0 / 220% 100% no-repeat;
  animation: btnShimmer 1.4s linear infinite;
}
@keyframes btnShimmer { from { background-position: 130% 0; } to { background-position: -130% 0; } }
/* While the button shows the progress, the separate bar and percent are not repeated below it. */
.processing-state.btn-progress .progress-track, .processing-state.btn-progress .processing-percent { display: none; }

/* ---- Copy caption (manual upload) ---- */
.copy-caption-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.copy-caption-btn .ic { --ic-size: 17px; }
.copy-caption-btn.is-copied { color: #4ade80; border-color: rgba(74, 222, 128, .5); background: rgba(74, 222, 128, .08); }

/* ---- Floating support button ---- */
.support-fab {
  position: fixed; z-index: 68; right: 16px; bottom: calc(var(--safe-b) + 100px);
  display: inline-flex; align-items: center; height: 52px; min-width: 52px; padding: 0 15px; border-radius: 999px;
  color: #fff; text-decoration: none; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(135deg, #2f6bff, #7b5cff);
  box-shadow: 0 12px 30px -10px rgba(52, 111, 245, .9), 0 0 0 1px rgba(255, 255, 255, .14) inset;
  transition: transform .2s ease, box-shadow .2s ease;
}
.support-fab .ic { --ic-size: 22px; }
.support-fab-label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 600; font-size: .9rem; transition: max-width .3s ease, margin .3s ease; }
.support-fab:hover, .support-fab:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(91, 140, 255, 1), 0 0 0 1px rgba(255, 255, 255, .2) inset; }
.support-fab:hover .support-fab-label, .support-fab:focus-visible .support-fab-label { max-width: 160px; margin-left: 8px; }
.support-fab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; animation: fabPulse 2.4s ease-out 1.5s 3; pointer-events: none; }
@keyframes fabPulse { 0% { box-shadow: 0 0 0 0 rgba(123, 92, 255, .6); } 100% { box-shadow: 0 0 0 16px rgba(123, 92, 255, 0); } }
@media (min-width: 1180px) { .support-fab { right: 24px; bottom: calc(var(--safe-b) + 24px); } }
@media (prefers-reduced-motion: reduce) { .process-btn.is-progress::after, .support-fab::before { animation: none; } }
