/* AI_TOOLS_GENERATE_VIDEO_SHOWCASE_V1_START */
.sb-ai-video-showcase {
  margin: 28px 0 0;
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, #091222 0%, #0f1b2d 100%);
  color: #e7eefb;
  box-shadow: 0 24px 70px rgba(2, 8, 23, 0.35);
  overflow: hidden;
}

.sb-ai-video-showcase__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 0;
}

.sb-ai-video-showcase__media {
  padding: 22px;
  border-right: 1px solid rgba(148, 163, 184, 0.14);
  background:
    radial-gradient(circle at top left, rgba(91, 140, 255, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}

.sb-ai-video-showcase__video-wrap {
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 40px rgba(2, 8, 23, 0.42);
}

.sb-ai-video-showcase__video {
  width: 100%;
  display: block;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #000;
}

.sb-ai-video-showcase__caption {
  margin-top: 12px;
  color: #9db0c9;
  font-size: 0.92rem;
  line-height: 1.6;
}

.sb-ai-video-showcase__content {
  padding: 24px;
}

.sb-ai-video-showcase__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(91, 140, 255, 0.14);
  border: 1px solid rgba(91, 140, 255, 0.22);
  color: #dce7ff;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sb-ai-video-showcase__title {
  margin: 14px 0 10px;
  color: #ffffff;
  font-size: 1.75rem;
  line-height: 1.15;
  font-weight: 900;
}

.sb-ai-video-showcase__copy {
  margin: 0 0 16px;
  color: #b3c1d8;
  line-height: 1.8;
  font-size: 0.98rem;
}

.sb-ai-video-showcase__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.sb-ai-video-showcase__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #dfe8f6;
  font-size: 0.88rem;
  font-weight: 700;
}

.sb-ai-video-showcase__refs-title {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
}

.sb-ai-video-showcase__refs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sb-ai-video-showcase__ref {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.sb-ai-video-showcase__ref img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: rgba(255,255,255,0.03);
}

.sb-ai-video-showcase__ref-meta {
  padding: 10px 11px 12px;
}

.sb-ai-video-showcase__ref-kicker {
  display: block;
  color: #8ca1bf;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}

.sb-ai-video-showcase__ref-label {
  display: block;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
}

.sb-ai-video-showcase__ref-role {
  display: block;
  margin-top: 4px;
  color: #a9b8cf;
  font-size: 0.82rem;
  line-height: 1.5;
}

.sb-ai-video-showcase__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.sb-ai-video-showcase__btn {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 900;
  font-size: 0.94rem;
  line-height: 1;
  transition: transform .12s ease, opacity .12s ease;
}

.sb-ai-video-showcase__btn:hover {
  transform: translateY(-1px);
}

.sb-ai-video-showcase__btn--primary {
  background: linear-gradient(180deg, #5b8cff 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.35);
}

.sb-ai-video-showcase__btn--ghost {
  background: rgba(255,255,255,0.06);
  color: #edf3ff;
  border: 1px solid rgba(148,163,184,0.18);
}

.sb-ai-video-showcase__modal[hidden] {
  display: none !important;
}

.sb-ai-video-showcase__modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
}

.sb-ai-video-showcase__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 23, 0.72);
  backdrop-filter: blur(6px);
}

.sb-ai-video-showcase__dialog {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  margin: 14px auto;
  overflow: auto;
  border-radius: 24px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 32px 80px rgba(2, 8, 23, 0.28);
}

.sb-ai-video-showcase__dialog-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(12px);
}

.sb-ai-video-showcase__dialog-title {
  margin: 0;
  font-size: 1.14rem;
  font-weight: 900;
  color: #0f172a;
}

.sb-ai-video-showcase__dialog-sub {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.92rem;
}

.sb-ai-video-showcase__close {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #fff;
  color: #0f172a;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
}

.sb-ai-video-showcase__dialog-body {
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
}

.sb-ai-video-showcase__card {
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: #f8fafc;
  overflow: hidden;
}

.sb-ai-video-showcase__card-head {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: #ffffff;
}

.sb-ai-video-showcase__card-title {
  margin: 0;
  color: #0f172a;
  font-weight: 900;
  font-size: 1rem;
}

.sb-ai-video-showcase__card-copy {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
}

.sb-ai-video-showcase__card-body {
  padding: 16px 18px 18px;
}

.sb-ai-video-showcase__dialog .sb-ai-video-showcase__video-wrap {
  box-shadow: none;
}

.sb-ai-video-showcase__dialog .sb-ai-video-showcase__video {
  max-height: 680px;
}

.sb-ai-video-showcase__prompt-box {
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  background: #0f172a;
  color: #e2e8f0;
  font: 500 0.88rem/1.75 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  overflow: auto;
  max-height: 620px;
}

.sb-ai-video-showcase__prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.sb-ai-video-showcase__meta-list {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.sb-ai-video-showcase__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #334155;
  font-size: 0.92rem;
}

.sb-ai-video-showcase__meta-row strong {
  color: #0f172a;
}

.sb-ai-video-showcase__dialog .sb-ai-video-showcase__refs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.sb-no-scroll {
  overflow: hidden !important;
}

@media (max-width: 1040px) {
  .sb-ai-video-showcase__inner,
  .sb-ai-video-showcase__dialog-body {
    grid-template-columns: 1fr;
  }

  .sb-ai-video-showcase__media {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  }
}

@media (max-width: 680px) {
  .sb-ai-video-showcase__content,
  .sb-ai-video-showcase__media,
  .sb-ai-video-showcase__dialog-head,
  .sb-ai-video-showcase__dialog-body,
  .sb-ai-video-showcase__card-head,
  .sb-ai-video-showcase__card-body {
    padding: 16px;
  }

  .sb-ai-video-showcase__title {
    font-size: 1.45rem;
  }

  .sb-ai-video-showcase__refs,
  .sb-ai-video-showcase__dialog .sb-ai-video-showcase__refs {
    grid-template-columns: 1fr 1fr;
  }
}
/* AI_TOOLS_GENERATE_VIDEO_SHOWCASE_V1_END */

/* AI_TOOLS_GENERATE_VIDEO_RUNNER_V2_CSS_START */
.sb-tool-runner__generate-example {
  width: 100%;
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(330px, 1.28fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  overflow: auto;
  color: #0f172a;
  background:
    radial-gradient(circle at 72% 25%, rgba(124, 58, 237, .09), transparent 36%),
    linear-gradient(180deg, #fff, #f8fafc);
}

.sb-tool-runner__generate-example-media {
  display: grid;
  place-items: center;
  min-width: 0;
}

.sb-tool-runner__generate-example-video {
  display: block;
  width: auto;
  max-width: 100%;
  height: min(58vh, 540px);
  aspect-ratio: 9 / 16;
  object-fit: contain;
  border-radius: 20px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(15, 23, 42, .22);
}

.sb-tool-runner__generate-example-content {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 12px;
}

.sb-tool-runner__generate-example-eyebrow {
  margin: 0;
  color: #7c3aed;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sb-tool-runner__generate-example-title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.sb-tool-runner__generate-example-copy {
  margin: 0;
  color: #64748b;
  font-size: .92rem;
  line-height: 1.62;
}

.sb-tool-runner__generate-example-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sb-tool-runner__generate-example-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 999px;
  color: #475569;
  background: #fff;
  font-size: .68rem;
  font-weight: 800;
}

.sb-tool-runner__generate-example-refs-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.sb-tool-runner__generate-example-refs-head strong {
  color: #0f172a;
  font-size: .83rem;
}

.sb-tool-runner__generate-example-refs-head small {
  color: #64748b;
  font-size: .72rem;
}

.sb-tool-runner__generate-example-refs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.sb-tool-runner__generate-example-ref {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 14px;
  background: #fff;
}

.sb-tool-runner__generate-example-ref img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.sb-tool-runner__generate-example-ref-number {
  position: absolute;
  top: 6px;
  left: 6px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  color: #fff;
  background: rgba(15, 23, 42, .82);
  font-size: .64rem;
  font-weight: 900;
}

.sb-tool-runner__generate-example-ref-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 7px;
}

.sb-tool-runner__generate-example-ref-copy strong,
.sb-tool-runner__generate-example-ref-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-tool-runner__generate-example-ref-copy strong {
  color: #0f172a;
  font-size: .65rem;
}

.sb-tool-runner__generate-example-ref-copy small {
  color: #64748b;
  font-size: .6rem;
}

.sb-tool-runner__generate-example-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.sb-tool-runner__generate-example-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 13px;
  color: #334155;
  background: #fff;
  text-decoration: none;
  font: inherit;
  font-size: .78rem;
  font-weight: 900;
  cursor: pointer;
}

.sb-tool-runner__generate-example-button.is-primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #6d35ff, #8b5cf6);
  box-shadow: 0 12px 28px rgba(109, 53, 255, .23);
}

.sb-tool-runner__generate-example-button:disabled {
  opacity: .68;
  cursor: wait;
}

@media (max-width: 1060px) {
  .sb-tool-runner__generate-example {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .sb-tool-runner__generate-example-video {
    height: min(46vh, 410px);
  }
}

@media (max-width: 680px) {
  .sb-tool-runner__generate-example {
    gap: 17px;
    padding: 16px;
  }

  .sb-tool-runner__generate-example-video {
    height: min(44dvh, 360px);
    border-radius: 16px;
  }

  .sb-tool-runner__generate-example-refs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sb-tool-runner__generate-example-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sb-tool-runner__generate-example-button {
    width: 100%;
  }
}
/* AI_TOOLS_GENERATE_VIDEO_RUNNER_V2_CSS_END */



/* AI_TOOLS_TEXT_TO_VIDEO_REFERENCE_TAGS_V1_CSS_START */

[data-runner-field="reference_images"].is-t2v-reference-field
[data-runner-file-list="reference_images"] > * {
  position: relative;
}

[data-runner-field="reference_images"].is-t2v-reference-field
.sb-t2v-reference-item {
  min-width: 0;
}

[data-runner-field="reference_images"].is-t2v-reference-field
.sb-t2v-reference-badge {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 58px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(10, 14, 24, 0.88);
  box-shadow: 0 5px 16px rgba(10, 14, 24, 0.22);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  pointer-events: none;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

[data-runner-field="reference_images"].is-t2v-reference-field
.sb-t2v-reference-badge
+ .sb-tool-runner__file-thumb
+ :not(button) {
  min-width: 0;
  padding-left: 56px;
}

[data-runner-field="reference_images"].is-t2v-reference-field
.sb-t2v-reference-guidance {
  display: block;
  width: 100%;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(88, 101, 242, 0.15);
  border-radius: 12px;
  background: rgba(88, 101, 242, 0.055);
  color: var(--sb-text-secondary, #586174);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

@media (max-width: 680px) {
  [data-runner-field="reference_images"].is-t2v-reference-field
  .sb-t2v-reference-badge {
    left: 54px;
    min-width: 43px;
    min-height: 24px;
    padding: 4px 8px;
    font-size: 10px;
  }

  [data-runner-field="reference_images"].is-t2v-reference-field
  .sb-t2v-reference-badge
  + .sb-tool-runner__file-thumb
  + :not(button) {
    padding-left: 51px;
  }

  [data-runner-field="reference_images"].is-t2v-reference-field
  .sb-t2v-reference-guidance {
    margin-top: 8px;
    padding: 9px 10px;
    font-size: 11px;
  }
}

/* AI_TOOLS_TEXT_TO_VIDEO_REFERENCE_TAGS_V1_CSS_END */
