/* Compact Reel Creator controls with real source footage and an editorial cut. */
.reel-creator {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  width: 100%;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid #ffffff12;
  border-radius: 10px;
  background: #111113;
}
.reel-creator__toolbar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 19px; background: #141416; border-bottom: 1px solid #ffffff0d; color: #e2e2e6; font-size: 12px; line-height: 1.4; font-weight: 500; }
.reel-creator__toolbar > span:last-child { color: #adadb6; font-weight: 400; }
.reel-creator__setup { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 22px; border-right: 1px solid #ffffff0d; }
.reel-input, .reel-result { min-width: 0; margin: 0; }
.reel-input > figcaption, .reel-result > figcaption { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 9px; color: #b9b9c3; font-size: 12px; line-height: 1.4; }
.reel-input > figcaption > span, .reel-result > figcaption > span { color: #92929e; font-variant-numeric: tabular-nums; }
.reel-media { isolation: isolate; position: relative; width: 100%; overflow: hidden; border-radius: 4px; background: #0c0c0e; }
.reel-media--source { aspect-ratio: var(--reel-source-ratio, 16 / 9); }
.reel-media--portrait { aspect-ratio: 9 / 16; }
.reel-media > img, .reel-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.reel-media > img { z-index: 0; }
.reel-media > video { z-index: 1; }
.reel-media > video:not([data-playing]) { visibility: hidden; }
.reel-direction { padding: 11px 13px; border: 1px solid #ffffff14; border-radius: 6px; background: #19191c; }
.reel-direction > span { display: block; margin-bottom: 7px; color: #9999a3; font-size: 11px; line-height: 1.4; }
.reel-direction > p { color: #e0e0e5; font-size: 13px; line-height: 1.6; }
.reel-focus { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #a8a8b2; font-size: 11px; line-height: 1.4; }
.reel-focus > div { display: flex; gap: 6px; }
.reel-focus > div > span { padding: 4px 9px; border: 1px solid #ffffff20; border-radius: 4px; color: #d1d1db; background: #ffffff05; }
.reel-settings { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin: 0; padding-top: 1px; }
.reel-settings > div { min-width: 0; }
.reel-settings dt { color: #9999a5; font-size: 11px; line-height: 1.4; }
.reel-settings dd { margin-top: 4px; color: #d1d1dc; font-size: 12px; line-height: 1.4; }
.reel-generate { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 1px; padding: 9px 12px; border-radius: 5px; background: #e6e6eb; color: #171719; font-size: 12px; line-height: 1.5; font-weight: 550; text-decoration: none; }
.reel-generate > svg { width: 17px; height: 17px; }
.reel-generate:hover { background: #fff; }
.reel-generate:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.reel-creator__result { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 22px; }
.reel-result { width: min(250px, 100%); }
.reel-credit { max-width: 280px; color: #888894; text-align: center; font-size: 10px; line-height: 1.5; }
.reel-credit > a { color: #aaaab6; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .reel-creator__setup { padding: 17px; gap: 14px; }
  .reel-creator__result { padding: 17px; }
}
@media (max-width: 650px) {
  .reel-creator { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .reel-creator__toolbar { padding: 12px 15px; }
  .reel-creator__setup { display: contents; }
  .reel-input { grid-column: 1 / -1; padding: 15px 15px 0; }
  .reel-direction { grid-column: 1; grid-row: 3; margin: 15px 0 0 15px; padding: 10px; }
  .reel-direction > p { font-size: 12px; line-height: 1.5; }
  .reel-focus { grid-column: 1; grid-row: 4; margin: 12px 0 0 15px; gap: 6px; }
  .reel-focus > div { gap: 5px; }
  .reel-focus > div > span { padding: 4px 7px; font-size: 10px; }
  .reel-settings { grid-column: 1; grid-row: 5; flex-wrap: wrap; gap: 10px 16px; margin: 12px 0 0 15px; }
  .reel-settings dt { font-size: 10px; }
  .reel-settings dd { margin-top: 2px; font-size: 11px; }
  .reel-generate { grid-column: 1; grid-row: 6; margin: 14px 0 18px 15px; padding: 8px 10px; gap: 6px; font-size: 11px; }
  .reel-generate > svg { width: 14px; height: 14px; flex: 0 0 14px; }
  .reel-creator__result { grid-column: 2; grid-row: 3 / 7; align-self: start; padding: 15px 15px 18px 12px; gap: 10px; }
  .reel-result { width: 100%; }
  .reel-result > figcaption { font-size: 11px; gap: 6px; }
  .reel-credit { font-size: 9px; }
}
@media (max-width: 350px) {
  .reel-creator__toolbar { padding-inline: 12px; gap: 10px; font-size: 11px; }
  .reel-input { padding-inline: 12px; }
  .reel-direction { margin-left: 12px; padding: 9px; }
  .reel-direction > span { font-size: 10px; }
  .reel-focus, .reel-settings, .reel-generate { margin-left: 12px; }
  .reel-settings { gap: 8px 12px; }
  .reel-creator__result { padding-inline: 10px 12px; }
  .reel-generate { padding-inline: 8px; font-size: 11px; }
}
