.lst-motion {
  box-sizing: border-box;
  display: grid;
  gap: 12px;
  width: min(1160px, calc(100% - 32px));
  margin: 20px auto;
  padding: clamp(14px, 2.5vw, 24px);
  border: 1px solid #38506a;
  border-radius: 18px;
  background: linear-gradient(140deg, #172b40, #172030 62%, #131a27);
  color: #f0f5ff;
  scroll-margin-top: 154px;
}

.lst-motion h2, .lst-motion p { margin: 0; color: inherit; }
.lst-motion h2 { font-size: clamp(22px, 2.7vw, 33px); line-height: 1.2; }
.lst-motion p { font-size: 15px; line-height: 1.45; }
.lst-motion p.lst-motion-note { font-size: 13px; color: #c5d4e8; }
.lst-motion [hidden] { display: none; }
.lst-motion-picker, .lst-motion-steps { display: flex; flex-wrap: wrap; gap: 7px; }
.lst-motion-picture { position: relative; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 12px; background: #1c2634; }
.lst-motion-picture canvas { display: block; width: 100%; height: auto; }
.lst-motion-picture canvas[hidden] { display: none; }
.lst-motion-poster { position: absolute; inset: 0; overflow: hidden; }
.lst-motion-poster img { position: absolute; display: block; max-width: none; max-height: none; }
.lst-motion-controls { display: grid; align-content: center; justify-items: start; gap: 10px; }
.lst-motion-button {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 40px;
  padding: 7px 11px;
  border: 1px solid #4b617b;
  border-radius: 9px;
  background: #273b51;
  color: #f0f5ff;
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  white-space: normal;
  cursor: pointer;
}
.lst-motion-button[aria-pressed="true"], .lst-motion-play { border-color: #8ec8ff; background: #b5dfff; color: #102940; }
.lst-motion-button:focus-visible { outline: 2px solid #b5dfff; outline-offset: 2px; }
.lst-motion-play:disabled { opacity: .75; cursor: wait; }

@media (min-width: 800px) {
  .lst-motion { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); column-gap: 24px; }
  .lst-motion h2, .lst-motion-picker { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .lst-motion { width: calc(100% - 20px); margin: 14px auto; }
  .lst-motion-button { min-height: 44px; }
}
