.rs-video-work-container {
  width: 100%;
  max-width: none;
}

.rs-video {
  --video-accent: #52a8ff;
  --video-accent-strong: #2389f4;
  --video-border: rgba(148, 163, 184, 0.17);
  --video-muted: #91a0b8;
  color: #f7f9fc;
}

.rs-video [hidden] {
  display: none !important;
}

.rs-video-workspace {
  display: grid;
  width: min(100%, 1720px);
  min-width: 0;
  grid-template-columns: 365px minmax(0, 1fr);
  gap: 24px;
}

.rs-video-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 795px;
  min-height: 795px;
  padding: clamp(24px, 3vw, 38px);
  background: linear-gradient(165deg, rgba(15, 23, 38, 0.98), rgba(8, 13, 24, 0.98));
  border: 1px solid var(--video-border);
  border-radius: 20px;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.rs-video-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.rs-video-eyebrow,
.rs-video-status-kicker {
  display: block;
  margin-bottom: 7px;
  color: #79bbff;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rs-video-panel h2,
.rs-video-status h3,
.rs-video-result h3,
.rs-video-selection h3 {
  margin: 0;
  color: #f7f9fc;
}

.rs-video-panel h2 {
  font-size: 1.15rem;
}

.rs-video-reset,
.rs-video-change,
.rs-video-cancel {
  min-height: 38px;
  padding: 0 12px;
  color: #c8d2e3;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--video-border);
  border-radius: 9px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
}

.rs-video-reset:disabled,
.rs-video-change:disabled,
.rs-video-cancel:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.rs-video-field {
  display: grid;
  gap: 9px;
  color: #dbe4f2;
  font-size: 0.82rem;
  font-weight: 680;
}

.rs-video-field select {
  width: 100%;
  min-height: 46px;
  padding: 0 42px 0 13px;
  color: #f7f9fc;
  background-color: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--video-border);
  border-radius: 10px;
  font: inherit;
  font-weight: 560;
}

.rs-video-switch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  cursor: pointer;
}

.rs-video-switch > span:first-child {
  display: grid;
  gap: 4px;
}

.rs-video-switch strong {
  font-size: 0.84rem;
}

.rs-video-switch small,
.rs-video-policy,
.rs-video-status p,
.rs-video-result p,
.rs-video-file-copy span {
  color: var(--video-muted);
  font-size: 0.76rem;
}

.rs-video-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.rs-video-switch-track {
  position: relative;
  flex: 0 0 42px;
  height: 24px;
  background: #2a3446;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  transition: 160ms ease;
}

.rs-video-switch-track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  content: "";
  background: #cbd5e1;
  border-radius: 50%;
  transition: 160ms ease;
}

.rs-video-switch input:checked + .rs-video-switch-track {
  background: var(--video-accent-strong);
}

.rs-video-switch input:checked + .rs-video-switch-track::after {
  background: #fff;
  transform: translateX(18px);
}

.rs-video-stage {
  position: relative;
  display: grid;
  align-content: center;
  gap: 20px;
  height: 795px;
  min-height: 795px;
  min-width: 0;
  padding: clamp(24px, 5vw, 68px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(45, 132, 224, 0.1), transparent 42%),
    linear-gradient(160deg, #0b111e, #080d17 65%);
  border: 1px solid var(--video-border);
  border-radius: 20px;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.2);
}

.rs-video-stage::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.rs-video-stage > * {
  position: relative;
}

.rs-video-stage > .rs-video-reset {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 7;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 5px 10px 5px 8px;
  color: #171107;
  background: linear-gradient(135deg, #ffe47a, #f6bf2f);
  border-color: #f8cf4a;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(246, 191, 47, 0.2);
  font-size: 11px;
  line-height: 1;
  backdrop-filter: blur(8px);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.rs-video-stage > .rs-video-reset:not(:disabled):hover {
  background: linear-gradient(135deg, #fff0a6, #ffd54f);
  border-color: #ffe680;
  box-shadow: 0 10px 24px rgba(246, 191, 47, 0.34), 0 0 0 1px rgba(255, 230, 128, 0.16);
  transform: translateY(-1px);
}

.rs-video-stage > .rs-video-reset:not(:disabled):active {
  box-shadow: 0 5px 14px rgba(246, 191, 47, 0.24);
  transform: translateY(0);
}

.rs-video-stage > .rs-video-reset:disabled {
  color: rgba(255, 225, 116, 0.52);
  background: rgba(8, 13, 23, 0.72);
  border-color: rgba(248, 207, 74, 0.62);
  box-shadow: none;
  opacity: 1;
}

.rs-video-stage > .rs-video-reset:focus-visible {
  outline: 2px solid #fff0a6;
  outline-offset: 3px;
}

.rs-video-reset-icon,
.rs-video-reset-icon svg {
  display: block;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.rs-video-reset-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rs-video-file-input {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.rs-video-dropzone {
  display: grid;
  justify-items: center;
  gap: 17px;
  width: 100%;
  min-height: 315px;
  padding: 36px;
  color: inherit;
  background: rgba(10, 17, 29, 0.68);
  border: 1px dashed rgba(123, 178, 235, 0.38);
  border-radius: 18px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.rs-video-dropzone:hover,
.rs-video-dropzone.is-dragging {
  background: rgba(19, 37, 61, 0.72);
  border-color: #6bb5ff;
  transform: translateY(-1px);
}

.rs-video-drop-icon {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  color: #77bcff;
  background: rgba(64, 153, 244, 0.11);
  border: 1px solid rgba(106, 183, 255, 0.18);
  border-radius: 50%;
}

.rs-video-drop-icon svg {
  width: 29px;
  fill: currentColor;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.rs-video-drop-copy {
  display: grid;
  gap: 7px;
  text-align: center;
}

.rs-video-drop-copy strong {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.rs-video-drop-copy span,
.rs-video-drop-formats {
  color: var(--video-muted);
  font-size: 0.82rem;
}

.rs-video-drop-formats {
  padding: 7px 11px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 999px;
}

.rs-video-selection,
.rs-video-status,
.rs-video-result {
  align-items: center;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(14, 23, 38, 0.9);
  border: 1px solid var(--video-border);
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(0,0,0,.17);
}

.rs-video-selection:not([hidden]) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.rs-video-file-mark,
.rs-video-result-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: #8dcbff;
  background: rgba(54, 142, 229, 0.12);
  border: 1px solid rgba(97, 177, 255, 0.17);
  border-radius: 13px;
  font-size: 0.68rem;
  font-weight: 800;
}

.rs-video-file-copy {
  min-width: 0;
}

.rs-video-file-copy p {
  margin: 7px 0 3px;
  overflow: hidden;
  color: #dce6f4;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rs-video-status:not([hidden]) {
  display: grid;
}

.rs-video-status-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.rs-video-status-top > strong {
  color: #8dcbff;
  font-size: 1.1rem;
}

.rs-video-progress {
  height: 8px;
  overflow: hidden;
  background: rgba(255,255,255,.07);
  border-radius: 999px;
}

.rs-video-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #3d98f2, #8dccff);
  border-radius: inherit;
  transition: width 180ms ease;
}

.rs-video-progress.is-indeterminate span {
  width: 36%;
  animation: rs-video-progress 1.25s ease-in-out infinite;
}

.rs-video-status p,
.rs-video-result p {
  margin: 0;
  line-height: 1.55;
}

.rs-video-cancel {
  justify-self: center;
  min-width: 112px;
  color: #ffd3d3;
  border-color: rgba(255, 126, 126, 0.32);
  background: rgba(169, 54, 54, 0.12);
}

.rs-video-result:not([hidden]) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.rs-video-result-icon {
  color: #89e6bd;
  background: rgba(43, 188, 126, .1);
  border-color: rgba(77, 222, 160, .18);
  font-size: 1.35rem;
}

.rs-video-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  color: #07131f;
  background: #85c8ff;
  border-radius: 9px;
  font-size: .78rem;
  font-weight: 760;
  text-decoration: none;
}

.rs-video-empty-copy {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 520px;
  margin: 0 auto;
  color: #718098;
}

.rs-video-empty-copy > span {
  font-size: .7rem;
  font-weight: 780;
  letter-spacing: .12em;
}

.rs-video-empty-copy p {
  margin: 0;
  font-size: .78rem;
  line-height: 1.5;
}

.rs-video-message {
  margin: 0;
  padding: 13px 20px;
  color: #ffd0d6;
  background: rgba(176, 44, 64, .16);
  border-top: 1px solid rgba(255, 105, 126, .22);
  font-size: .8rem;
  text-align: center;
}

.rs-video :focus-visible {
  outline: 3px solid rgba(99, 179, 255, .72);
  outline-offset: 3px;
}

@keyframes rs-video-progress {
  from { transform: translateX(-110%); }
  to { transform: translateX(290%); }
}

@media (max-width: 1120px) {
  .rs-video-workspace {
    grid-template-columns: 320px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .rs-video-workspace {
    grid-template-columns: 1fr;
  }

  .rs-video-panel {
    height: auto;
    min-height: 0;
  }

  .rs-video-stage {
    height: auto;
    min-height: 480px;
  }
}

@media (max-width: 560px) {
  .rs-video-panel,
  .rs-video-stage {
    padding: 20px;
  }

  .rs-video-dropzone {
    min-height: 270px;
    padding: 25px 18px;
  }

  .rs-video-selection:not([hidden]),
  .rs-video-result:not([hidden]) {
    grid-template-columns: 1fr;
  }

  .rs-video-change,
  .rs-video-download {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rs-video-progress.is-indeterminate span {
    animation: none;
    transform: none;
  }
}
