/* Free Voiceover Recorder — page layout. Colours come from id8-ui.css tokens only (ADR-018).
   The recorder panel and the id8 mark over the video are styled in voice-recorder.css. */
.fvr-body { margin: 0; background: var(--id8-bg); color: var(--id8-ink); font-family: var(--id8-font); }
.fvr-top { position: sticky; top: 0; z-index: 30; background: var(--id8-surface); border-bottom: 1px solid var(--id8-border); }
.fvr { display: flex; flex-direction: column; align-items: center; padding-bottom: 24px; }
.fvr-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* The hero belongs to the first screen only. */
#fvr-app:not([data-view="pick"]) .fvr-hero { display: none; }

.fvr-tool { width: 100%; max-width: 720px; box-sizing: border-box; padding: 12px 16px 8px; }
.fvr-view { display: flex; flex-direction: column; gap: 16px; }
.fvr-view[hidden] { display: none; }
.fvr-view h2 { margin: 6px 0 0; font-size: 24px; line-height: 1.2; outline: none; }
.fvr-view p { margin: 0; font-size: 17px; line-height: 1.45; }
.fvr-pick { align-self: stretch; gap: 10px; }
.fvr-hint, .fvr-take, .fvr-estimate, .fvr-left, .fvr-mark-note { color: var(--id8-ink-muted); }
.fvr-busy { display: flex; align-items: center; gap: 10px; }
.fvr-error { padding: 12px 14px; border-radius: var(--id8-radius-control); background: var(--id8-danger-tint); color: var(--id8-ink); }
.fvr-error[hidden], .fvr-busy[hidden] { display: none; }
.fvr-facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 17px; }
.fvr-facts li { display: flex; align-items: center; gap: 8px; }
.fvr-facts i { color: var(--id8-chosen); font-size: 22px; }

/* The video, with the id8 mark drawn over it where the finished video will carry it. */
.fvr-stage { width: 100%; background: var(--id8-ink); border-radius: var(--id8-radius-card); overflow: hidden; display: flex; justify-content: center; }
.fvr-stage > video { display: block; max-width: 100%; max-height: 52vh; }
/* Sized from the video's shape by the page script: as wide as fits, never taller than 52% of the screen. */
.fvr-frame { position: relative; container-type: inline-size; width: 100%; }
.fvr-frame video { display: block; width: 100%; height: 100%; }
.fvr-rec { display: flex; flex-direction: column; gap: 4px; }
.fvr-rec .vr-panel { padding: 12px 0 0; }

.fvr-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fvr-actions .id8-btn, #fvr-make, #fvr-cancel { min-height: 48px; gap: 8px; }
.fvr-choice { margin: 0; padding: 12px 14px; border: 1px solid var(--id8-border); border-radius: var(--id8-radius-control); display: flex; flex-direction: column; gap: 2px; }
.fvr-choice[hidden] { display: none; }
.fvr-choice legend { padding: 0 6px; font-weight: 700; font-size: 17px; }
.fvr-choice label { display: flex; gap: 10px; min-height: 44px; align-items: center; font-size: 17px; }
.fvr-choice input { width: 22px; height: 22px; flex-shrink: 0; }
.fvr-progress { height: 10px; border-radius: 5px; background: var(--id8-border); overflow: hidden; }
.fvr-progress > span { display: block; height: 100%; width: 0; background: var(--id8-chosen); transition: width 300ms linear; }
.fvr-keep { padding: 12px 14px; border-radius: var(--id8-radius-control); background: var(--id8-warn-bg); border: 1px solid var(--id8-warn-border); color: var(--id8-warn-ink); }

@media (min-width: 900px) {
    .fvr-rec { flex-direction: row; align-items: center; gap: 24px; }
    .fvr-rec .fvr-stage { flex: 1 1 55%; }
    .fvr-rec .vr-panel { flex: 1 1 45%; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { .fvr-progress > span { transition: none; } }

/* Page copy under the tool. */
.fvr-seo { width: 100%; box-sizing: border-box; padding: 24px 16px 8px; max-width: 1000px; }
.fvr-seo h2 { font-size: 22px; margin: 22px 0 10px; }
.fvr-seo p, .fvr-seo li { font-size: 17px; line-height: 1.55; color: var(--id8-ink); }
.fvr-seo__summary { font-size: 18px; line-height: 1.55; margin: 0 0 6px; }
.fvr-seo__byline { font-size: 15px; color: var(--id8-ink-muted); margin: 0; }
.fvr-seo__steps { padding-left: 26px; display: flex; flex-direction: column; gap: 10px; list-style: decimal; }
.fvr-seo__list { padding-left: 26px; display: flex; flex-direction: column; gap: 6px; list-style: disc; }
.fvr-faq details { border-bottom: 1px solid var(--id8-border); padding: 12px 0; }
.fvr-faq summary { font-size: 18px; font-weight: 700; cursor: pointer; min-height: 32px; }
.fvr-faq p { margin: 8px 0 0; color: var(--id8-ink-muted); }

/* Background music: the shared picker (its cards are styled by free-story-maker.css). */
.fvr-music { display: flex; flex-direction: column; gap: 12px; }
.fvr-music__title { margin: 0; font-size: 19px; line-height: 1.3; }
.fvr-music__opt { margin-left: 6px; padding: 2px 8px; border-radius: var(--id8-radius-pill); background: var(--id8-surface-sunken); font-size: 14px; font-weight: 400; color: var(--id8-ink-muted); }
.fvr-music__note { color: var(--id8-ink-muted); }
.fvr-music #fvr-music { display: flex; flex-direction: column; gap: 14px; }
#fvr-no-music { align-self: flex-start; min-height: 44px; }
#fvr-no-music[hidden] { display: none; }
.fvr-tut-btn { align-self: flex-start; }
