/* Video meme creator — extra UI on top of meme.css */

.video-frame {
  position: relative;
  background: #111;
}

#vsrc {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

#vmeme {
  display: block;
  max-width: 100%;
  max-height: min(72vh, 760px);
  width: auto;
  height: auto;
  touch-action: none;
  cursor: grab;
  background: #111;
}

#vmeme.is-drag {
  cursor: grabbing;
}

.playbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.7rem;
}

.playbar .btn {
  min-width: 44px;
  justify-content: center;
}

.playbar .time-label {
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted, #555);
  min-width: 7.5rem;
}

.seek-wrap,
.trim-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.seek-wrap input[type="range"],
.trim-row input[type="range"] {
  flex: 1;
  min-width: 0;
  accent-color: var(--ink, #111);
}

.trim-row .tool-label {
  flex: 0 0 auto;
}

.export-status {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted, #555);
}

.export-status.is-busy {
  color: var(--ink, #111);
}

.export-status.is-err {
  color: #b42318;
}

@media (max-width: 860px) {
  #vmeme {
    max-height: min(58vh, 520px);
  }

  .playbar .btn {
    min-height: 42px;
  }
}
