.ve-canvas-area {
  flex-direction: column;
  gap: 14px;
  padding: 20px 24px;
}

.ve-preview-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  flex-shrink: 0;
}

#vePreviewVideo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

.ve-text-overlay-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ve-text-layer-box {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: move;
  white-space: nowrap;
  user-select: none;
  padding: 2px 6px;
  border: 1px dashed transparent;
  line-height: 1.15;
}

.ve-text-layer-box:hover,
.ve-text-layer-box.dragging {
  border-color: var(--coral);
}

.ve-clip-strip {
  width: 100%;
  max-width: 900px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.ve-clip-strip::-webkit-scrollbar {
  height: 8px;
}

.ve-clip-strip::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

.ve-clip-card {
  flex-shrink: 0;
  width: 120px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.25);
  transition: border-color 0.15s ease;
}

.ve-clip-card.selected {
  border-color: var(--coral);
}

.ve-clip-card-thumb {
  width: 100%;
  height: 68px;
  object-fit: cover;
  display: block;
  background: #111;
}

.ve-clip-card-info {
  padding: 5px 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.ve-clip-card-info .ve-clip-index {
  color: var(--coral);
  font-weight: 700;
}

.ve-clip-card-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ve-clip-empty-hint {
  color: var(--text-muted);
  font-size: 12px;
  padding: 8px 4px;
}

.ve-progress-wrap {
  margin-top: 10px;
}

.ve-progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.ve-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--coral);
  transition: width 0.2s ease;
}

.ve-clip-row-btns {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.ve-transition-btn,
.ve-preset-btn {
  flex: 1 1 calc(50% - 4px);
  min-width: 90px;
}

.ve-sticker-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.ve-sticker-btn {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  background: var(--surface-tint-softer);
  border-radius: var(--radius-sm);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease;
}

.ve-sticker-btn:hover {
  border-color: var(--coral);
}

.ve-text-layer-box.ve-sticker-box {
  border-style: solid;
  border-color: transparent;
}

.ve-text-layer-box img {
  display: block;
  pointer-events: none;
}

@media (max-width: 880px) {
  .ve-preview-wrap,
  .ve-clip-strip {
    max-width: 100%;
  }
}
