/* AI Studio brand strip + video-media adjustments for the AI tool pages
   (/video-edit, /image-edit). Colors reuse theme.css brand tokens so the
   strip reads identically in light and dark themes (like --hero-bg). */

.ai-banner {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin: 0 0 1.25rem;
  padding: 1.1rem 1.5rem;
  background: linear-gradient(120deg, #1e3a8a 0%, #1e40af 38%, #2563eb 78%, #1e293b 100%);
  color: #eff6ff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

/* Film-perforation edges: nod to the video side of the product. */
.ai-banner::before,
.ai-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background-image: repeating-linear-gradient(90deg,
    rgba(226, 232, 240, 0.26) 0 14px, transparent 14px 34px);
}

.ai-banner::before { top: 6px; }
.ai-banner::after { bottom: 6px; }

.ai-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ai-banner-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  flex: 0 0 auto;
}

.ai-banner-word { display: flex; flex-direction: column; min-width: 0; }
.ai-banner-title { font-size: 1.5rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.2; }
.ai-banner-tag { font-size: 0.9rem; color: #bfdbfe; margin-top: 0.2rem; }

@media (max-width: 575.98px) {
  .ai-banner { padding: 0.8rem 1rem; }
  .ai-banner-logo { width: 40px; height: 40px; }
  .ai-banner-title { font-size: 1.15rem; }
  .ai-banner-tag { font-size: 0.78rem; }
}

/* ---- video media inside the image-edit page components ---- */

/* Large still-frame before/after slider for the video_sr example: a static
   frame at display size shows the upscale detail a small video player can't.
   Same clip-path pattern as the showcase compare box, native inputs only. */
.ve-compare {
  position: relative;
  --pos: 52%;
  aspect-ratio: 1280 / 2304;
  width: min(100%, calc(88vh * 1280 / 2304));
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: #0b1220;
  user-select: none;
}

.ve-compare-layer { position: absolute; inset: 0; }

.ve-compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.ve-compare img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ve-compare-tag {
  position: absolute;
  top: 0.8rem;
  z-index: 2;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
}

.ve-compare-tag.is-before { left: 0.8rem; }
.ve-compare-tag.is-after { right: 0.8rem; }

.ve-compare-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.25);
  z-index: 3;
  pointer-events: none;
}

.ve-compare-bar::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.ve-compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
}

.ve-compare-hint {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-soft);
  margin: 0.5rem 0 0;
}

@media (max-width: 575.98px) {
  .ve-compare { width: min(100%, calc(68vh * 1280 / 2304)); }
}

.ie-result video {
  display: block;
  width: 100%;
  max-height: 480px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: #000000;
}

.ie-drop .ie-preview-video {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  background: #000000;
}
