/* Video inspiration rail.
   Commerce cases stay visible beside the one-sentence workflow without duplicating the generator. */
body.theme-neofuture .video-workspace.canvas-v5.quick-mode .video-quick-layout {
  width: min(1660px, calc(100% - 40px));
  min-height: 100%;
  margin: 0 auto;
  padding: 22px 0 48px;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

body.theme-neofuture .video-workspace.canvas-v5.quick-mode .video-quick-layout.without-cases {
  grid-template-columns: minmax(0, 1240px);
  justify-content: center;
}

body.theme-neofuture .video-workspace.canvas-v5.quick-mode .video-quick-studio {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body.theme-neofuture .video-quick-title strong {
  color: #14212b;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .96), 0 0 14px rgba(255, 255, 255, .9);
}

body.theme-neofuture .video-quick-title span {
  color: #344451;
  font-weight: 740;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .94), 0 0 12px rgba(255, 255, 255, .84);
}

body.theme-neofuture .video-quick-case-rail {
  position: sticky;
  top: 18px;
  min-width: 0;
  max-height: calc(100vh - 100px);
  padding-right: 5px;
  overflow-y: auto;
  scrollbar-width: thin;
  color: #20252b;
}

body.theme-neofuture .video-case-rail-head {
  min-height: 58px;
  margin-bottom: 13px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(112, 132, 147, .25);
}

body.theme-neofuture .video-case-rail-head strong {
  display: block;
  font-size: 17px;
  color: #17232d;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .96), 0 0 12px rgba(255, 255, 255, .88);
}

body.theme-neofuture .video-case-rail-head p {
  margin-top: 5px;
  color: #34434f;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.55;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .94), 0 0 10px rgba(255, 255, 255, .84);
}

body.theme-neofuture .video-case-rail-head > button {
  flex: 0 0 auto;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #34434f;
  font: 820 10px/1.4 inherit;
  cursor: pointer;
  white-space: nowrap;
}

body.theme-neofuture .video-case-rail-head > button:hover {
  color: #a84713;
}

body.theme-neofuture .video-case-rail-card {
  overflow: hidden;
  border: 1px solid #d4dce2;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(31, 49, 62, .09);
}

body.theme-neofuture .video-case-rail-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #e8edf1;
  cursor: pointer;
}

body.theme-neofuture .video-case-rail-visual:disabled {
  cursor: not-allowed;
}

body.theme-neofuture .video-case-rail-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .24s ease;
}

body.theme-neofuture .video-case-rail-visual:hover:not(:disabled) img {
  transform: scale(1.018);
}

body.theme-neofuture .video-case-rail-mode,
body.theme-neofuture .video-case-rail-duration {
  position: absolute;
  z-index: 1;
  top: 10px;
  min-height: 24px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  background: rgba(19, 27, 34, .88);
  color: #fff;
  font-size: 9px;
  font-weight: 760;
}

body.theme-neofuture .video-case-rail-mode {
  left: 10px;
  border-left: 3px solid #70e4f7;
}

body.theme-neofuture .video-case-rail-duration {
  right: 10px;
  background: rgba(217, 91, 43, .92);
}

body.theme-neofuture .video-case-rail-copy {
  padding: 14px;
}

body.theme-neofuture .video-case-rail-copy > strong,
body.theme-neofuture .video-case-rail-copy > span {
  display: block;
}

body.theme-neofuture .video-case-rail-copy > strong {
  color: #1f2932;
  font-size: 15px;
  font-weight: 860;
}

body.theme-neofuture .video-case-rail-copy > span {
  margin-top: 4px;
  color: #a84713;
  font-size: 10px;
  font-weight: 720;
}

body.theme-neofuture .video-case-rail-copy > p {
  margin-top: 8px;
  color: #46545f;
  font-size: 11px;
  font-weight: 620;
  line-height: 1.6;
}

body.theme-neofuture .video-case-rail-steps {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

body.theme-neofuture .video-case-rail-steps span {
  padding: 4px 6px;
  border: 1px solid #dbe2e7;
  border-radius: 4px;
  background: #f2f5f7;
  color: #52606b;
  font-size: 9px;
  font-weight: 680;
}

body.theme-neofuture .video-case-rail-controls {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 30px minmax(44px, auto) 30px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
}

body.theme-neofuture .video-case-rail-controls button {
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfd8df;
  border-radius: 5px;
  background: #fff;
  color: #46535e;
  font: 720 10px/1 inherit;
  cursor: pointer;
}

body.theme-neofuture .video-case-rail-controls button:hover:not(:disabled) {
  border-color: #d95b2b;
  color: #a84713;
}

body.theme-neofuture .video-case-rail-controls button:disabled {
  cursor: not-allowed;
  opacity: .52;
}

body.theme-neofuture .video-case-rail-controls button svg {
  width: 14px;
  height: 14px;
}

body.theme-neofuture .video-case-rail-controls > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #7c8791;
  font-size: 9px;
  white-space: nowrap;
}

body.theme-neofuture .video-case-rail-controls > span b {
  color: #087f99;
  font-size: 11px;
}

body.theme-neofuture .video-case-rail-controls > span i {
  font-style: normal;
}

body.theme-neofuture .video-case-rail-controls button.apply {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  padding: 0 10px;
  border-color: #d95b2b;
  background: #d95b2b;
  color: #fff;
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

body.theme-neofuture .video-case-rail-controls button.apply:hover:not(:disabled) {
  background: #bd491f;
  color: #fff;
}

body.theme-neofuture .video-case-rail-thumbs {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

body.theme-neofuture .video-case-rail-thumbs button {
  min-width: 0;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 5px;
  background: #e7ecef;
  cursor: pointer;
}

body.theme-neofuture .video-case-rail-thumbs button.active {
  border-color: #d95b2b;
  box-shadow: 0 0 0 2px rgba(217, 91, 43, .12);
}

body.theme-neofuture .video-case-rail-thumbs button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

body.theme-neofuture .video-case-rail-thumbs img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 1320px) {
  body.theme-neofuture .video-workspace.canvas-v5.quick-mode .video-quick-layout {
    width: min(100% - 28px, 1500px);
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 1180px) {
  body.theme-neofuture .video-workspace.canvas-v5.quick-mode .video-quick-layout,
  body.theme-neofuture .video-workspace.canvas-v5.quick-mode .video-quick-layout.without-cases {
    width: min(100% - 28px, 820px);
    grid-template-columns: minmax(0, 1fr);
  }

  body.theme-neofuture .video-quick-case-rail {
    position: relative;
    top: auto;
    max-height: none;
    padding: 0 0 16px;
    overflow: visible;
    border-bottom: 1px solid rgba(112, 132, 147, .25);
  }

  body.theme-neofuture .video-case-rail-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
  }

  body.theme-neofuture .video-case-rail-visual {
    height: 100%;
    min-height: 220px;
    aspect-ratio: auto;
  }

  body.theme-neofuture .video-case-rail-thumbs {
    grid-template-columns: repeat(5, 52px);
    justify-content: start;
  }
}

@media (max-width: 620px) {
  body.theme-neofuture .video-workspace.canvas-v5.quick-mode .video-quick-layout,
  body.theme-neofuture .video-workspace.canvas-v5.quick-mode .video-quick-layout.without-cases {
    width: 100%;
    padding: 12px;
    gap: 14px;
  }

  body.theme-neofuture .video-workspace.canvas-v5.quick-mode .video-quick-studio {
    padding: 0;
  }

  body.theme-neofuture .video-case-rail-head {
    min-height: 52px;
  }

  body.theme-neofuture .video-case-rail-head strong {
    font-size: 16px;
  }

  body.theme-neofuture .video-case-rail-card {
    display: block;
  }

  body.theme-neofuture .video-case-rail-visual {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  body.theme-neofuture .video-case-rail-copy > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.theme-neofuture .video-case-rail-thumbs {
    display: flex;
    overflow-x: auto;
    padding: 2px;
  }

  body.theme-neofuture .video-case-rail-thumbs button {
    width: 54px;
    flex: 0 0 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-neofuture .video-case-rail-visual img {
    transition: none;
  }
}
