.movie-theme-layout{display:grid;grid-template-columns:minmax(240px,1fr) minmax(240px,1fr);gap:28px;align-items:start}.movie-theme-picker h3{margin-top:4px}.movie-theme-picker label{margin-bottom:14px}.movie-theme-picker [hidden]{display:none!important}.movie-design-preview{aspect-ratio:16/9;position:relative;overflow:hidden;border-radius:5px;box-shadow:0 10px 26px #152c2520;background:#b0b4a2}.movie-design-preview svg{display:block;width:100%;height:100%;position:relative}.movie-preview-media{position:absolute;inset:9% 7.5% 24%;display:grid;place-items:center;background:linear-gradient(150deg,#c1d1c1,#577866);color:white;font-family:Georgia,serif}.movie-preview-tabs{justify-content:center;gap:20px}.movie-portrait-list{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}.movie-portrait-list label{width:118px;display:grid;grid-template-columns:18px 1fr;align-items:center;gap:6px;overflow:hidden;font-size:13px}.movie-portrait-list img{width:90px;height:90px;object-fit:cover;border-radius:3px}.movie-portrait-list span{grid-column:1/-1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.movie-consent{display:flex;align-items:flex-start;gap:10px;font-size:14px;max-width:650px}.movie-consent input{width:18px;flex:0 0 18px;margin-top:3px}.movie-theme-picker details{margin:12px 0 20px}.movie-theme-picker select{width:100%}.sequence-preview{max-height:min(58dvh,560px);width:100%;background:#142f2b;object-fit:contain}.sequence-caption{min-height:32px;text-align:center}.sequence-index{display:flex;gap:6px;flex-wrap:wrap;margin-top:15px}.sequence-index button{min-width:38px;min-height:38px;padding:5px}.sequence-index button[aria-current=true]{background:#193f35;color:#fff7e6}.sequence-controls{display:flex;gap:12px;align-items:center;justify-content:center;margin:12px 0}.sequence-preview-wrap{position:relative}.sequence-message{white-space:pre-wrap;max-height:50dvh;overflow:auto;padding:24px;background:#f8f0df;color:#193f35}.sequence-count{font-variant-numeric:tabular-nums}
@media(max-width:650px){.movie-theme-layout{grid-template-columns:1fr;gap:16px}.movie-theme-picker .movie-theme-layout>div:last-child{grid-row:1}.movie-theme-picker .movie-preview-tabs{gap:12px}.sequence-controls{gap:8px}}

.movie-cover-workspace{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,1fr);gap:32px;align-items:start}.movie-cover-preview{position:sticky;top:24px;padding:20px;background:#f3f0e7;border-radius:12px}.movie-cover-preview .eyebrow{margin-bottom:12px}.cover-step{border:1px solid #c5cbbd;border-radius:10px;padding:18px;margin:0 0 24px;min-width:0}.cover-step legend{font-weight:600;padding:0 8px}.cover-step legend span{display:inline-grid;place-items:center;background:#193f35;color:#fff5df;border-radius:50%;width:28px;height:28px;margin-right:8px}.portrait-look-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:20px 0}.portrait-look-card{padding:12px;background:#f5f2e9;border:1px solid #d6d7cb;border-radius:8px;min-width:0}.portrait-look-card h4{margin:0 0 10px;font-size:17px}.portrait-look-card img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:4px;display:block;margin-bottom:10px}.portrait-look-card button{font-size:12px;width:100%;padding:9px 5px;min-height:40px;white-space:normal}.portrait-look-card button[aria-pressed=true]{background:#193f35;color:#fff5df;outline:2px solid #ba9552;outline-offset:2px}.portrait-look-card .help{font-size:12px}.movie-theme-picker .movie-preview-tabs button[aria-pressed=true]{text-decoration:underline;font-weight:600}@media(max-width:900px){.movie-cover-workspace{grid-template-columns:minmax(0,1fr)}.movie-cover-preview{grid-row:1;top:0;z-index:2;padding:12px;border:1px solid #d6d7cb}.movie-cover-preview .movie-design-preview{max-width:520px;margin:auto}.movie-cover-preview .help,.movie-cover-preview .eyebrow{margin:5px 0}.movie-cover-preview .movie-preview-tabs{margin:4px 0}}@media(max-width:480px){.portrait-look-grid{grid-template-columns:1fr}.portrait-look-card{display:grid;grid-template-columns:100px 1fr;gap:8px}.portrait-look-card h4{grid-column:1/-1;margin:0}.portrait-look-card img{grid-column:1;grid-row:2/4}.portrait-look-card .help{margin:0}.cover-step{padding:12px}.movie-cover-preview{position:relative}}
.movie-cover-art{position:absolute;inset:0;overflow:hidden;border-radius:inherit;pointer-events:none}.movie-cover-art svg{display:block;width:100%;height:100%}:is(.magic-scene,.book-opening-bridge)[data-movie-theme]:not([data-movie-theme="normal"]) .cover-emboss{z-index:1}:is(.magic-scene,.book-opening-bridge)[data-movie-theme="james_bond"] .cover-emboss h3,:is(.magic-scene,.book-opening-bridge)[data-movie-theme="corporate"] .cover-emboss h3,:is(.magic-scene,.book-opening-bridge)[data-movie-theme="birthday_teens"] .cover-emboss h3{font-family:Arial,sans-serif}

.magic-emblem .movie-book-emblem{width:74px;height:74px;display:block;margin:auto}

:is(.magic-scene,.book-opening-bridge)[data-movie-theme="titanic"] .magic-emblem{width:132px}.magic-emblem .movie-book-emblem-ocean{width:132px;height:94px}

/* Media mattes follow the selected book theme, also after fullscreen reparenting. */
[data-movie-theme]:not([data-movie-theme="normal"]) .story-stage,[data-movie-theme]:not([data-movie-theme="normal"]) .story-picture,[data-movie-theme]:not([data-movie-theme="normal"]) .polaroid-image,[data-movie-theme]:not([data-movie-theme="normal"]) .polaroid-image .camera-box{background:var(--book-cover-color)}
[data-movie-theme]:not([data-movie-theme="normal"]) .polaroid-placeholder{background:radial-gradient(ellipse at 40% 30%,#ffffff16,transparent),var(--book-cover-color);color:var(--book-cover-ink)}
.story-player-shell[data-movie-theme]:not([data-movie-theme="normal"]){background:var(--book-cover-color)}
[data-movie-theme]:not([data-movie-theme="normal"]) .polaroid-image{box-shadow:inset 0 0 0 1px var(--book-cover-ink)}
[data-movie-theme]:not([data-movie-theme="normal"]) .story-polaroid-label,[data-movie-theme]:not([data-movie-theme="normal"]) .book-inscription,[data-movie-theme]:not([data-movie-theme="normal"]) .book-choice-inscriptions button{color:var(--book-cover-color)}

.capture-expanded.folio-content{background:#f5ecd4;color:#493a28}

/* Keep the opened binding, paper ink and capture controls in the same palette. */
[data-movie-theme]:not([data-movie-theme="normal"]) .guest-book-spread,[data-movie-theme]:not([data-movie-theme="normal"]) .magic-spine{background:var(--book-cover-color)}
[data-movie-theme]:not([data-movie-theme="normal"]) .folio-left,[data-movie-theme]:not([data-movie-theme="normal"]) .folio-right,[data-movie-theme]:not([data-movie-theme="normal"]) .folio-content h1,[data-movie-theme]:not([data-movie-theme="normal"]) .folio-content h2,[data-movie-theme]:not([data-movie-theme="normal"]) .polaroid-caption strong,[data-movie-theme]:not([data-movie-theme="normal"]) .story-polaroid-label,[data-movie-theme]:not([data-movie-theme="normal"]) .book-inscription,[data-movie-theme]:not([data-movie-theme="normal"]) .book-choice-inscriptions button{color:var(--book-page-ink,var(--book-cover-color))}
[data-movie-theme]:not([data-movie-theme="normal"]) .folio-content .has-capture .capture-preview-open{background:var(--book-cover-color)}
[data-movie-theme]:not([data-movie-theme="normal"]) #camera-area .capture-controls .capture-start,[data-movie-theme]:not([data-movie-theme="normal"]) #camera-area .capture-options button,[data-movie-theme]:not([data-movie-theme="normal"]) #camera-area .capture-expand{background:color-mix(in srgb,var(--book-cover-color) 65%,transparent);color:var(--book-cover-ink);border-color:color-mix(in srgb,var(--book-cover-ink) 60%,transparent)}
[data-movie-theme]:not([data-movie-theme="normal"]) #camera-area .capture-controls .capture-start:hover,[data-movie-theme]:not([data-movie-theme="normal"]) #camera-area .capture-options button:hover,[data-movie-theme]:not([data-movie-theme="normal"]) #camera-area .capture-expand:hover{background:color-mix(in srgb,var(--book-cover-color) 85%,transparent)}
.capture-lightbox[data-movie-theme]:not([data-movie-theme="normal"]){background:var(--book-cover-color)}
.capture-lightbox[data-movie-theme]:not([data-movie-theme="normal"]) .capture-lightbox-close{background:color-mix(in srgb,var(--book-cover-color) 80%,transparent);color:var(--book-cover-ink);border-color:var(--book-cover-ink)}
@media(orientation:portrait){
 [data-movie-theme]:not([data-movie-theme="normal"]) #camera-area .capture-controls .capture-start,[data-movie-theme]:not([data-movie-theme="normal"]) #camera-area .capture-options button{background:#fffaf080;color:var(--book-page-ink,var(--book-cover-color));border-color:color-mix(in srgb,var(--book-page-ink,var(--book-cover-color)) 40%,transparent);text-shadow:none}
 [data-movie-theme]:not([data-movie-theme="normal"]) #camera-area .capture-controls .capture-start:hover,[data-movie-theme]:not([data-movie-theme="normal"]) #camera-area .capture-options button:hover{background:#eadcc080}
}

/* Fullscreen keeps the paper controls instead of tinting them with the cover. */
.capture-expanded.folio-content #camera-area .capture-controls .capture-start,.capture-expanded.folio-content #camera-area .capture-options button,.capture-expanded.folio-content #camera-area .capture-expand{background:#fffaf0e6;color:#493a28;border-color:#9b835c;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);text-shadow:none}
.capture-expanded.folio-content #camera-area .capture-controls .capture-start:hover,.capture-expanded.folio-content #camera-area .capture-options button:hover,.capture-expanded.folio-content #camera-area .capture-expand:hover{background:#fffaf0f5}
.capture-expanded.folio-content #camera-area .capture-controls .capture-stop{background:#702b29e6;color:#fff;border-color:#ffd2c8;text-shadow:none}
.capture-expanded.folio-content #camera-area .capture-controls button:focus-visible,.capture-expanded.folio-content #camera-area .capture-options button:focus-visible,.capture-expanded.folio-content #camera-area .capture-expand:focus-visible{outline:2px solid #9b835c;outline-offset:2px}
