[data-ai-film-studio] { container-type: inline-size; min-width: 0; color: #141414; background: #fafaf8; border: 1px solid #d8d8d5; font-family: Inter, Arial, sans-serif; line-height: 1.45; }
[data-ai-film-studio] *, [data-ai-film-studio] *::before, [data-ai-film-studio] *::after { box-sizing: border-box; }
[data-ai-film-studio] [hidden] { display: none !important; }
[data-ai-film-studio] button { font: inherit; cursor: pointer; }
[data-ai-film-studio] :focus-visible { outline: 3px solid #ed3f2e; outline-offset: 3px; }
.ai-film-topline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1rem; min-height: 3.25rem; padding: .8rem clamp(.9rem, 3cqw, 1.8rem); border-bottom: 1px solid #d8d8d5; }
.ai-film-topline p { margin: 0; color: #5c5c5b; font-size: .75rem; }
.ai-film-topline strong { font-size: .875rem; font-weight: 600; }
.ai-film-workspace { display: grid; min-width: 0; }
.ai-film-stage { display: grid; place-items: center; width: 100%; height: clamp(18rem, 45cqw, 30rem); min-width: 0; padding: clamp(1rem, 3cqw, 2rem); overflow: hidden; background: #30302f; }
.ai-film-artboard { position: relative; width: min(100%, 52rem); height: auto; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate; background: #ececea; }
.ai-film-shot { position: absolute; inset: 0; overflow: hidden; }
.ai-film-shot svg { display: block; width: 100%; height: 100%; max-width: none; }
.ai-film-controls { display: grid; align-content: start; gap: 1.25rem; min-width: 0; padding: clamp(.9rem, 3cqw, 1.8rem); border-top: 1px solid #d8d8d5; }
.ai-film-choice { min-width: 0; padding: 0; margin: 0; border: 0; }
.ai-film-choice legend { padding: 0; margin-bottom: .6rem; color: #5c5c5b; font-size: .875rem; font-weight: 550; }
.ai-film-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.ai-film-options button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; min-width: 0; min-height: 3.25rem; padding: .55rem .4rem; color: #141414; background: transparent; border: 1px solid #bcbcb9; border-radius: 0; font-size: .875rem; font-weight: 500; line-height: 1.4; text-align: center; }
.ai-film-options button[aria-pressed="true"] { color: #fafaf8; background: #141414; border-color: #141414; box-shadow: inset 0 -3px #ed3f2e; }
.ai-film-options button:hover { border-color: #ed3f2e; }
.ai-film-options small { font-size: .75rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.ai-film-format-note { min-height: 1.5em; margin: 0; color: #5c5c5b; font-size: .875rem; line-height: 1.5; }
.ai-film-note { padding: 1rem clamp(.9rem, 3cqw, 1.8rem); margin: 0; color: #5c5c5b; border-top: 1px solid #d8d8d5; font-size: .875rem; line-height: 1.65; }
.ai-film-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@container (min-width: 48rem) {
  .ai-film-workspace { grid-template-columns: minmax(0, 1fr) 13.5rem; }
  .ai-film-controls { border-top: 0; border-left: 1px solid #d8d8d5; }
  .ai-film-choice:first-child .ai-film-options { grid-template-columns: minmax(0, 1fr); }
  .ai-film-choice:first-child button { align-items: start; padding-inline: .75rem; text-align: left; }
  .ai-film-stage { height: clamp(23rem, 42cqw, 30rem); }
}
@media (prefers-reduced-motion: no-preference) {
  [data-ai-film-ready="true"] .ai-film-artboard { transition: width .45s cubic-bezier(.22, 1, .36, 1), height .45s cubic-bezier(.22, 1, .36, 1); }
  [data-ai-film-motion="active"] .ai-film-shot-enter { animation: ai-film-cut .48s cubic-bezier(.22, 1, .36, 1) both; }
}
@keyframes ai-film-cut { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
[data-ai-film-sizing="instant"] .ai-film-artboard,
[data-ai-film-motion="still"] .ai-film-artboard { transition: none !important; }
[data-ai-film-motion="still"] .ai-film-shot { animation: none !important; clip-path: none !important; }
:is([data-motion="paused"], [data-motion="reduced"], .is-motion-paused) [data-ai-film-studio] .ai-film-shot { animation: none !important; clip-path: none !important; }
@media (prefers-reduced-motion: reduce) {
  [data-ai-film-studio] .ai-film-artboard { transition: none !important; }
  [data-ai-film-studio] .ai-film-shot { animation: none !important; clip-path: none !important; }
}
