.film {
  position: relative; width: min(90%, 620px); margin-block: 30px;
  --mono: ui-monospace, Consolas, "Liberation Mono", monospace;
  color: #eaf0f8; font-size: 14px;
}
.film-window {
  position: relative; isolation: isolate; overflow: hidden; height: 374px;
  border: 1px solid #9585be66; border-radius: 14px; background: #10131b;
  box-shadow: 0 25px 65px -20px #090713cc, 0 0 0 4px #cab8ff09;
}
.film-scene { position: absolute; inset: 0; min-width: 0; overflow: hidden; background: #151922; }
.film-bar, .editor-status, .run-heading, .transport, .film-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.film-bar { height: 44px; padding: 0 18px; border-bottom: 1px solid #ffffff17; background: #1e242f; }
.film-bar > span, .editor-status span, .source-control h3, .review-author, .suggestion h3 { display: flex; align-items: center; gap: 8px; }
.film-bar > span { font-weight: 600; }
.film-bar small, .repo-path, .push-event p, .repo-path span, .film-jobs small { color: #acb7c8; }
.film-bar small, .branch-pair, .editor-status, .editor-code, .repo-path, .film-jobs small { font-family: var(--mono); }
.film [data-scene="editor"] { background: #1b1c23; }
[data-scene="editor"] .film-bar i { color: #73c8fd; }
.editor-layout { display: grid; grid-template-columns: 40px minmax(0,1fr); height: calc(100% - 71px); }
.activity-strip { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 18px; background: #23252f; color: #939aab; border-right: 1px solid #ffffff0d; }
.activity-strip i:last-child { color: #90cfff; }
.editor-file { display: flex; flex-direction: column; min-width: 0; }
.file-tab { width: max-content; padding: 9px 18px; font: 12px var(--mono); color: #d3d9e3; background: #242632; border-top: 2px solid #72bdf4; }
.file-tab b { color: #e2bd76; margin-left: 6px; }
.editor-code { flex: 1; padding-block: 14px; font-size: clamp(11px,1.1vw,15px); }
.editor-code code { display: block; white-space: pre; line-height: 1.8; }
.editor-code code::before { content: "4"; display: inline-block; width: 32px; color: #818c9a; text-align: center; }
.editor-code code + code::before { content: "5"; }
.editor-code em { color: #bb99ed; font-style: normal; }
#film-code { color: #e4c598; border-right: 1px solid #e4c598; }
.source-control { margin: 0 16px 14px; padding: 12px; border: 1px solid #ffffff21; border-radius: 7px; background: #242630; }
.source-control h3, .suggestion h3 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0; }
.commit-input { min-height: 29px; padding: 6px 8px; margin: 10px 0 7px; border: 1px solid #596072; background: #181b23; border-radius: 4px; font: 12px var(--mono); }
.commit-command { position: relative; background: #205f94; border-radius: 4px; padding: 6px; text-align: center; font-size: 12px; color: #e5f5ff; }
.commit-command::after { content: ''; position: absolute; width: 15px; height: 21px; left: 63%; top: 56%; background: #e6edff; clip-path: polygon(0 0,100% 58%,57% 64%,82% 95%,63% 100%,40% 68%,15% 95%); opacity: 0; }
.editor-status { height: 27px; padding: 0 12px; background: #203950; color: #c4e2fa; font-size: 11px; }
.editor-status svg, .source-control svg, .suggestion svg { width: 14px; height: 14px; }
.film-sheet { padding: clamp(16px, 2.2vw, 30px); }
.repo-path { margin-bottom: 15px; font-size: 11px; line-height: 1.4; }
.repo-path span { margin-inline: 4px; }
.film-sheet h2 { color: #f2f4ff; font-size: clamp(19px,1.8vw,26px); line-height: 1.2; letter-spacing: -.045em; }
.branch-pair { display: inline-block; margin: 12px 0 23px; padding: 5px 9px; border-radius: 5px; background: #20354c; color: #a1d3ff; font-size: 12px; }
.branch-pair span { color: #8f9fb5; }
.push-event, .queued-event { display: flex; align-items: center; gap: 14px; padding: 15px; border: 1px solid #3b4556; }
.push-event { border-radius: 8px 8px 0 0; background: #222a36; }
.push-event > i { color: #9ce1bb; }
.push-event p { margin-top: 5px; font-size: 12px; }
.queued-event { border-top: 0; border-radius: 0 0 8px 8px; color: #e9c780; font-size: 12px; }
.run-heading { flex-wrap: wrap; justify-content: flex-start; }
#film-run-state { border-radius: 30px; padding: 4px 9px; background: #594629; color: #ffdb95; font-size: 11px; }
#film-run-state.failed { background: #502935; color: #ffa7ad; }
.film-jobs { list-style: none; margin: 17px 0 0; padding: 0; }
.film-jobs li { position: relative; display: grid; grid-template-columns: 31px auto; gap: 13px; align-items: center; padding: 7px 0; min-height: 57px; }
.film-jobs li:not(:last-child)::after { content: ''; position: absolute; width: 1px; background: #596377; left: 15px; top: calc(50% + 16px); height: calc(100% - 32px); }
.film-jobs li > div { font-weight: 600; }
.film-jobs small { display: block; margin-top: 3px; font-size: 11px; font-weight: 400; }
.stage-icon { width: 31px; height: 31px; overflow: visible; --accent: #9be5c9; --enter: 0s; --start: .1s; --work: 1.1s; --done: calc(var(--start) + var(--work)); }
.film-jobs li:nth-child(2) .stage-icon { --accent: #b3caff; --start: 1.65s; }
.job-gate .stage-icon { --accent: #e7ba9e; --start: 3.2s; }
.job-gate .flow-check circle { fill: #fa899e; }
.job-gate .flow-check path { stroke: #5b192a; }
.review-author { margin-bottom: 10px; }
.review-author small { font-family: var(--mono); color: #c0b5d2; }
.review-copy { color: #d0d6e1; line-height: 1.5; font-size: 14px; }
.suggestion { margin-top: 13px; border: 1px solid #424153; border-radius: 8px; overflow: hidden; background: #181922; }
.suggestion h3 { padding: 9px 12px; color: #dfd6ff; background: #2b263c; }
.suggestion pre { margin: 0; padding-block: 8px; overflow: auto; }
.suggestion code { display: block; padding: 1px 10px; min-height: 1.8em; font: clamp(10px,1vw,14px)/1.8 var(--mono); white-space: pre; }
.suggestion .diff-remove { color: #ffb0bb; background: #52273580; }
.suggestion .diff-add { color: #abedc7; background: #274f3780; }
.suggestion .diff-hunk { color: #baabdf; }
.film-controls { flex-wrap: wrap; margin: 14px 1px 0; align-items: flex-start; }
.film-controls nav { flex: 1 1 240px; display: flex; gap: 7px; }
.film-controls nav button { position: relative; flex: 1; min-width: 0; padding: 10px 0; color: #bfb3cd; text-align: left; font-size: 11px; }
.film-controls nav button::before, .film-controls nav button::after { position: absolute; content: ''; inset: 0 0 auto; height: 3px; border-radius: 2px; background: #ffffff30; }
.film-controls nav button::after { background: #c4aaff; transform: scaleX(var(--played,0)); transform-origin: left; }
.film-controls nav button[aria-current] { color: white; }
.transport { gap: 5px; color: #e7dbf8; }
.transport button { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; color: inherit; border-radius: 5px; }
.transport button:hover { background: #ffffff17; }
.transport i svg { width: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .film-scene { animation: film-cut .4s cubic-bezier(.2,.65,.35,1) both; }
  .film-scene *,.film-scene *::after,.film-scene { animation-play-state: paused !important; }
  .commit-command { animation: film-click .45s ease 3.75s both; }
  .commit-command::after { animation: film-pointer 1.2s ease-in-out 3s both; }
  .push-event { animation: event-enter .45s ease-out .3s both; }
  .queued-event { animation: event-enter .45s ease-out 1.3s both; }
  .suggestion { animation: event-enter .45s ease-out .75s both; }
}
@keyframes film-cut { from { opacity: .15; transform: translateY(10px); } }
@keyframes film-click { 45% { background: #428bba; transform: scale(.985); } }
@keyframes film-pointer { 0% { opacity: 0; transform: translate(42px,-32px); } 55%,80% { opacity: 1; transform: translate(0,0); } 100% { opacity: 0; } }
@keyframes event-enter { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { #film-toggle, #login-replay { display: none; } }
@media (max-width: 760px) {
  .film { width: min(94%,520px); margin-block: 22px; }
  .film-window { height: 350px; }
  .film-controls { gap: 3px; }
  .film-controls nav { flex-basis: 100%; }
  .transport { margin-left: auto; }
  .editor-layout { grid-template-columns: 30px minmax(0,1fr); }
  .film-sheet { padding: 16px; }
  .film-bar { padding: 0 12px; }
}
