/* Private page /convert (video -> GIF). Builds on style.css. */
.cv-private {
  display: inline-block;
  vertical-align: middle;
  margin-left: .4rem;
  padding: .15rem .55rem;
  border-radius: 999px;
  background: var(--note-soft);
  color: var(--warn);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.cv-stage {
  position: relative;
  max-width: 100%;
  width: fit-content;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.cv-stage video { display: block; max-width: 100%; max-height: 60vh; }

/* Watermark preview: sits on top of the video, never catches clicks */
.cv-wm {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: calc(var(--m) / 2);
  pointer-events: none;
  --m: 12px;
}
.cv-wm img { display: block; height: auto; }
.cv-wm span {
  color: #fff;
  font-weight: 700;
  font-family: "DejaVu Sans", Verdana, sans-serif;
  line-height: 1.1;
  white-space: nowrap;
  text-shadow: 0 0 2px #000, 0 0 2px #000, 1px 1px 2px #000;
}
.cv-lt { top: var(--m); left: var(--m); align-items: flex-start; }
.cv-rt { top: var(--m); right: var(--m); align-items: flex-end; }
.cv-lb { bottom: calc(var(--m) + 44px); left: var(--m); align-items: flex-start; }
.cv-rb { bottom: calc(var(--m) + 44px); right: var(--m); align-items: flex-end; }
.cv-c  { top: 50%; left: 50%; transform: translate(-50%, -50%); align-items: center; }
/* 44px keeps bottom marks above the video controls; the GIF uses the real margin */

.cv-info { color: var(--muted); font-size: .9rem; margin: .6rem 0 0; text-align: center; }
.cv-h { font-size: 1rem; margin: 1.4rem 0 .6rem; color: var(--text); }

.cv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .9rem 1.2rem;
}
.cv-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: .9rem;
  color: var(--muted);
  min-width: 0;
}
.cv-row { display: flex; gap: .5rem; align-items: center; }
.cv-row input { flex: 1; min-width: 0; }
.cv-field input[type="number"],
.cv-field input[type="text"],
.cv-field select {
  width: 100%;
  padding: .55rem .7rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.cv-field input[type="file"] { color: var(--muted); font-size: .85rem; }
.cv-field input[type="range"] { width: 100%; accent-color: var(--accent); }
.cv-field output { color: var(--text); }
.cv-pos { flex-wrap: wrap; }

.cv-result {
  display: flex;
  justify-content: center;
  background:
    repeating-conic-gradient(#1a2230 0% 25%, #121820 0% 50%) 50% / 20px 20px;
  border-radius: 10px;
  padding: .5rem;
}
.cv-result img { max-width: 100%; max-height: 70vh; display: block; }

@media (max-width: 520px) {
  .cv-row { flex-wrap: wrap; }
}
