/* The cover editor shares the site's charcoal, ivory and coral palette. */
#reel-studio { min-width: 0; }
.reel-workspace {
  --reel-line: #483432;
  --reel-coral: #ff9289;
  --reel-muted: #c5b5ae;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: start;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--reel-line);
  border-radius: 13px;
  background: var(--reel-line);
  color: #fff5ee;
}
.reel-controls, .reel-preview { min-width: 0; align-self: stretch; padding: clamp(19px, 3.6vw, 46px); }
.reel-controls { background: #191414; }
.reel-preview { background: #120f10; text-align: center; }
.reel-control-title, .reel-preview-title { margin: 0; color: #fff5ee; line-height: 1.22; }
.reel-control-title { margin-bottom: 24px; font-size: clamp(25px, 3vw, 42px); }
html[lang='en'] .reel-control-title { font-family: Georgia, 'Times New Roman', serif; font-weight: 500; letter-spacing: -.035em; }
.reel-label { display: block; margin: 0 0 8px; color: #e9dad3; font-size: 13px; font-weight: 700; line-height: 1.35; }
.reel-field {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #7b605b;
  border-radius: 6px;
  background: #110e0e;
  color: #fff5ee;
  color-scheme: dark;
  font-size: 14px;
  line-height: 1.45;
}
select.reel-field { text-overflow: ellipsis; }
textarea.reel-field { resize: vertical; min-height: 76px; }
.reel-field::placeholder { color: #ad9a95; }
.reel-field:focus-visible, .reel-download:focus-visible { outline: 2px solid #ffaaa2; outline-offset: 3px; }
.reel-custom { margin-top: 18px; }
.reel-scenes { min-width: 0; margin: 25px 0 0; padding: 0; border: 0; }
.reel-scenes legend { padding: 0; }
.reel-scene-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.reel-scene {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: start;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  padding: 5px 5px 8px;
  border: 1px solid #5d4744;
  border-radius: 7px;
  background: #1f1818;
  color: #e5d4cb;
  cursor: pointer;
}
.reel-scene:hover { border-color: var(--reel-coral); background: #2b1d1b; }
.reel-scene:has(.reel-scene-input:checked) { border-color: #ff8c82; background: #3a2422; color: #fff4ed; }
.reel-scene-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.reel-scene-input:focus-visible + .reel-scene-art { outline: 2px solid #ffaaa2; outline-offset: 3px; }
.reel-scene-art {
  position: relative;
  display: block;
  width: min(100%, 112px);
  aspect-ratio: 2 / 3;
  background-repeat: no-repeat;
  background-size: 300% 300%;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px #ffffff1f;
}
.reel-scene-input:checked + .reel-scene-art::after {
  content: '';
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 10px;
  height: 10px;
  border: 2px solid #201315;
  border-radius: 50%;
  background: #ffaaa2;
  box-shadow: 0 0 0 1px #fff8;
}
.reel-scene-name { min-width: 0; color: inherit; font-size: 11px; font-weight: 650; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
.reel-preview-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 17px; }
.reel-preview-title { font-size: 15px; font-weight: 700; text-align: start; }
.reel-format { padding: 3px 7px; border: 1px solid #654741; border-radius: 4px; color: #ffb6ad; font-size: 10px; font-weight: 750; letter-spacing: .07em; }
.reel-stage { width: min(100%, 282px); margin: 0 auto 19px; overflow: hidden; border: 1px solid #6b514e; border-radius: 8px; background: #130d10; box-shadow: 0 14px 40px #0008; }
.reel-stage[aria-busy='true'] { border-color: #a66860; }
.reel-canvas { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 9 / 16; }
.reel-download {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  max-width: 100%;
  padding: 9px 16px;
  border: 1px solid #d15a61;
  border-radius: 6px;
  background: #b62630;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.reel-download:enabled:hover { background: #991d26; border-color: #ff9289; }
.reel-download:disabled { cursor: default; background: #43292a; border-color: #654344; color: #ceb6b4; }
.reel-download-icon { font-size: 19px; line-height: 1; }
.reel-resolution { display: block; margin-top: 9px; color: var(--reel-muted); font-size: 10px; letter-spacing: .08em; }
.reel-feedback { min-height: 2.8em; margin: 7px auto 0; color: var(--reel-muted); font-size: 12px; line-height: 1.4; }

@media (max-width: 1110px) {
  .reel-scene-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .reel-workspace { grid-template-columns: minmax(0, 1fr); }
  .reel-controls, .reel-preview { padding: 19px; }
  .reel-field { font-size: 16px; }
  .reel-control-title { margin-bottom: 17px; }
  .reel-stage { width: min(100%, 249px); }
}
@media (max-width: 380px) {
  .reel-controls, .reel-preview { padding: 14px; }
  .reel-scene-grid { gap: 6px; }
  .reel-scene { padding: 4px 4px 7px; }
}
