.gen-ssv1-motion {
  background: linear-gradient(180deg, #1b0f4b 0%, #070028 100%);
  border-radius: 24px;
  margin: 32px 0;
  color: #f9f7ff;
  box-shadow: 0 24px 46px rgba(8, 0, 36, 0.45);
  overflow: hidden;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

.gen-ssv1-motion--inline {
  margin: 0;
  width: 100%;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 18px 32px rgba(8, 0, 36, 0.45);
}

.gen-ssv1-motion__inline-header {
  margin-bottom: 16px;
}

.gen-ssv1-motion__inline-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  color: #f9f7ff;
}

.gen-ssv1-motion__inline-description {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(249, 247, 255, 0.78);
}

.gen-ssv1-motion__inline-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gen-ssv1-motion--inline .gen-ssv1-motion__inline-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gen-ssv1-motion--inline .gen-ssv1-motion__durations {
  display: flex;
  gap: 12px;
}

.gen-ssv1-motion--inline .gen-ssv1-motion__duration {
  flex: 1;
}

.gen-ssv1-motion--inline .gen-ssv1-motion__duration label {
  width: 100%;
  text-align: center;
}

.gen-ssv1-motion--inline .gen-ssv1-motion__placeholder {
  color: rgba(249, 247, 255, 0.88);
}

.gen-ssv1-motion__inline-toggle {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 12px;
}

.gen-ssv1-motion__inline-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
  color: #f9f7ff;
}

.gen-ssv1-motion__inline-toggle-input {
  width: 18px;
  height: 18px;
}

.gen-ssv1-motion__inline-toggle-status {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(249, 247, 255, 0.75);
}

.gen-ssv1-motion__progress {
  width: 100%;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gen-ssv1-motion__progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.gen-ssv1-motion__progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd35a 0%, #ff8cda 100%);
  transition: width 0.3s ease;
}

.gen-ssv1-motion__progress-text {
  margin: 0;
  font-size: 13px;
  color: rgba(249, 247, 255, 0.85);
}

.gen-ssv1-motion__manual-fetch {
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.gen-ssv1-motion__manual-fetch:hover:not([disabled]) {
  border-color: #ffd35a;
  color: #ffd35a;
}

.gen-ssv1-motion__manual-fetch:focus-visible {
  outline: 2px solid rgba(255, 211, 90, 0.85);
  outline-offset: 2px;
}

.gen-ssv1-motion__manual-fetch[disabled] {
  opacity: 0.6;
  cursor: default;
}

.gen-ssv1-motion__header {
  background: #09041A;
  padding: 18px 32px;
}

.gen-ssv1-motion__title {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.gen-ssv1-motion__toggle {
  appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font: inherit;
  cursor: pointer;
  justify-content: space-between;
}

.gen-ssv1-motion__toggle:focus {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 4px;
}

.gen-ssv1-motion__label {
  font-weight: 600;
}

.gen-ssv1-motion__toggle-icon {
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(255, 255, 255, 0.85);
  border-bottom: 2px solid rgba(255, 255, 255, 0.85);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-left: auto;
}

.gen-ssv1-motion--collapsed .gen-ssv1-motion__toggle-icon {
  transform: rotate(-135deg);
}

.gen-ssv1-motion--collapsed .gen-ssv1-motion__content {
  display: none;
}

.gen-ssv1-motion--collapsed .gen-ssv1-step-nav {
  display: none !important;
}

.gen-ssv1-motion__content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 32px;
}

.gen-ssv1-motion__media {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.gen-ssv1-motion__tutorial {
  flex: 0 0 340px;
  max-width: 100%;
}

.gen-ssv1-motion__tutorial-image {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  display: block;
  box-shadow: 0 20px 32px rgba(6, 3, 30, 0.55);
}

.gen-ssv1-motion__tip {
  flex: 1 1 260px;
  min-width: 220px;
  background: rgba(9, 4, 26, 0.92);
  border-radius: 18px;
  border: 1px solid rgba(148, 121, 255, 0.35);
  padding: 20px;
  font-size: 15px;
  line-height: 1.6;
  display: flex;
  gap: 10px;
}

.gen-ssv1-motion__tip strong {
  color: #ffd35a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gen-ssv1-motion__layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 28px;
  align-items: flex-start;
  justify-content: center;
}

.gen-ssv1-motion__source {
  max-width: 100%;
  min-width: 0;
}

.gen-ssv1-motion__source-preview {
  border-radius: 18px;
  background: rgba(9, 3, 34, 0.85);
  border: 1px dashed rgba(163, 140, 255, 0.55);
  padding: 12px;
  aspect-ratio: 16 / 9;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.gen-ssv1-motion__source-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 14px;
  box-shadow: 0 18px 32px rgba(13, 6, 38, 0.45);
}

.gen-ssv1-motion__source-image[hidden] {
  display: none !important;
}

.gen-ssv1-motion__source-placeholder {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(228, 222, 255, 0.78);
}

.gen-ssv1-motion__panel {
  min-width: 0;
  display: grid;
  gap: 24px;
}

.gen-ssv1-motion__preview {
  position: relative;
  border-radius: 18px;
  border: 1px dashed rgba(163, 140, 255, 0.55);
  background: rgba(9, 3, 34, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
  text-align: center;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.gen-ssv1-motion__preview.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 6, 30, 0.6);
}

.gen-ssv1-motion__preview.is-loading::before {
  content: '';
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 4px solid rgba(174, 160, 255, 0.35);
  border-top-color: #a78bfa;
  animation: gen-ssv1-motion-spin 0.9s linear infinite;
  z-index: 1;
}

.gen-ssv1-motion__video {
  width: 100%;
  max-width: 540px;
  border-radius: 14px;
  box-shadow: 0 24px 40px rgba(13, 6, 40, 0.55);
  background: #050114;
}

.gen-ssv1-motion__video[hidden] {
  display: none !important;
}

.gen-ssv1-motion__placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  color: rgba(242, 239, 255, 0.92);
}

.gen-ssv1-motion__placeholder[hidden] {
  display: none !important;
}

.motion-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 520px;
}

.motion-placeholder__message {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

.motion-placeholder__note {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(215, 210, 255, 0.84);
}

.gen-ssv1-motion__spinner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
}

.gen-ssv1-motion__spinner[hidden] {
  display: none !important;
}

.motion-spinner {
  position: relative;
  width: 36px;
  height: 36px;
  animation: motion-spinner-rotate 1s infinite;
}

.motion-spinner::before,
.motion-spinner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: block;
}

.motion-spinner::before {
  background-color: #cb2025;
  box-shadow: 22px 0 0 #f8b334;
  animation: motion-spinner-ball-1 1s infinite;
}

.motion-spinner::after {
  top: 20px;
  background-color: #00a096;
  box-shadow: 22px 0 0 #97bf0d;
  animation: motion-spinner-ball-2 1s infinite;
}

@keyframes motion-spinner-rotate {
  0% {
    transform: rotate(0deg) scale(0.85);
  }
  50% {
    transform: rotate(360deg) scale(1.15);
  }
  100% {
    transform: rotate(720deg) scale(0.85);
  }
}

@keyframes motion-spinner-ball-1 {
  0% {
    box-shadow: 22px 0 0 #f8b334;
    transform: translate(0, 0);
  }
  50% {
    box-shadow: 0 0 0 #f8b334;
    transform: translate(11px, 11px);
  }
  100% {
    box-shadow: 22px 0 0 #f8b334;
    transform: translate(0, 0);
  }
}

@keyframes motion-spinner-ball-2 {
  0% {
    box-shadow: 22px 0 0 #97bf0d;
    transform: translate(0, 0);
  }
  50% {
    box-shadow: 0 0 0 #97bf0d;
    transform: translate(11px, -11px);
  }
  100% {
    box-shadow: 22px 0 0 #97bf0d;
    transform: translate(0, 0);
  }
}

.gen-ssv1-motion__controls {
  display: grid;
  gap: 18px;
}

.gen-ssv1-motion__credit-banner {
  font-size: 15px;
  font-weight: 600;
  color: rgba(241, 238, 255, 0.92);
  background: rgba(12, 5, 38, 0.65);
  border-radius: 999px;
  padding: 8px 16px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.gen-ssv1-motion__credit-value {
  font-weight: 700;
  color: #fff;
}

.gen-ssv1-motion__durations {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
}

.gen-ssv1-motion__duration {
  position: relative;
}

.gen-ssv1-motion__duration input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gen-ssv1-motion__duration label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 20px;
  border: 1px solid rgba(163, 140, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 244, 255, 0.92);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.gen-ssv1-motion__duration input:checked + label {
  border-color: rgba(163, 140, 255, 0.85);
  background: rgba(137, 114, 255, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(109, 83, 220, 0.35);
}

.gen-ssv1-motion__credit-note {
  font-size: 14px;
  color: rgba(224, 220, 255, 0.78);
}


.gen-ssv1-motion__actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.gen-ssv1-motion__button {
  border: none;
  border-radius: 999px;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #041018;
  box-shadow: 0 18px 36px rgba(14, 165, 233, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.gen-ssv1-motion__button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 24px 44px rgba(14, 165, 233, 0.6);
}

.gen-ssv1-motion__button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 640px) {
  .gen-ssv1-motion__button {
    white-space: normal;
  }
}

.gen-ssv1-motion__status {
  min-height: 20px;
  font-size: 14px;
  color: rgba(224, 220, 255, 0.82);
}

.gen-ssv1-motion__status.success {
  color: #9effd8;
}

.gen-ssv1-motion__status.error {
  color: #ffb4c7;
}

.gen-ssv1-motion__result {
  display: flex;
  justify-content: flex-start;
  margin-top: 12px;
}

.gen-ssv1-motion__download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(12, 5, 38, 0.88);
  border: 1px solid rgba(163, 140, 255, 0.45);
  border-radius: 999px;
  padding: 8px 16px;
}

.gen-ssv1-motion__download-label {
  font-size: 14px;
  color: rgba(224, 220, 255, 0.78);
}

.gen-ssv1-motion__download a {
  color: #a5d8ff;
  text-decoration: none;
  font-weight: 600;
}

.gen-ssv1-motion__download a:hover,
.gen-ssv1-motion__download a:focus {
  text-decoration: underline;
}

.gen-ssv1-motion__download[hidden] {
  display: none !important;
}

.gen-ssv1-step-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 32px 28px;
}

@keyframes gen-ssv1-motion-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 760px) {
  .gen-ssv1-motion__content {
    padding: 24px;
  }

  .gen-ssv1-motion__media {
    flex-direction: column;
  }

  .gen-ssv1-motion__layout {
    grid-template-columns: 1fr;
  }

  .motion-placeholder__message {
    font-size: 16px;
  }

  .gen-ssv1-motion__actions {
    flex-wrap: wrap;
  }
}
