body[data-page="video"] { height: 100dvh; min-height: 600px; display: flex; flex-direction: column; overflow: hidden; }
body[data-page="video"] .site-header { flex-shrink: 0; }
body[data-page="video"] :where(.video-controls, .video-stage-scroll, .video-option-menu, .video-dialog, textarea, .video-mode-tabs) { scrollbar-width: none; }
body[data-page="video"] :where(.video-controls, .video-stage-scroll, .video-option-menu, .video-dialog, textarea, .video-mode-tabs)::-webkit-scrollbar { display: none; width: 0; height: 0; }
.video-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.v-icon { display: block; width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.video-main { display: grid; grid-template-columns: 320px minmax(0, 1fr); flex: 1; min-height: 0; width: 100%; max-width: none; padding: 16px; gap: 8px; }
.video-sidebar { min-height: 0; min-width: 0; display: flex; flex-direction: column; border: 1px solid #262626; border-radius: 20px; background: #101010; overflow: hidden; }
.video-mode-tabs { display: flex; flex-shrink: 0; height: 47px; padding: 0 10px; gap: 13px; overflow-x: auto; }
.video-mode-tabs button { flex-shrink: 0; position: relative; padding: 0; background: transparent; border: 0; color: #888; font-size: 11px; font-weight: 550; white-space: nowrap; }
.video-mode-tabs button[aria-selected="true"] { color: #fff; }
.video-mode-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: #fff; }
.video-mode-tabs button:hover { color: #eee; }
.video-mode-tabs button:focus-visible, .video-stage-tabs button:focus-visible { outline-offset: -3px; }
.video-controls { flex: 1; padding: 8px; min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; overscroll-behavior: contain; }
.video-controls > * { flex-shrink: 0; }
.video-sidebar > [hidden] { display: none; }
.video-model-picker { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 14px 8px 8px; gap: 14px; }
.video-model-picker-heading { display: flex; align-items: center; gap: 10px; padding: 0 4px; }
.video-model-picker-heading h2 { margin: 0; font-size: 16px; color: #f4f4f4; letter-spacing: -.4px; }
.video-model-picker-heading p { margin: 4px 0 0; font-size: 10px; color: #929292; }
.video-model-picker-back { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; padding: 0; border: 1px solid #ffffff1f; border-radius: 50%; color: #e8e8e8; background: linear-gradient(145deg, #ffffff12, #ffffff04); box-shadow: inset 0 1px 0 #ffffff08, 0 2px 6px #0003; cursor: pointer; }
.video-model-picker-back:hover { border-color: #ffffff40; background: #ffffff12; color: #fff; }
.video-model-picker-back:active { background: #ffffff08; box-shadow: inset 0 1px 3px #0004; }
.video-model-picker-back:focus-visible { outline: 2px solid #eee; outline-offset: 3px; }
.video-model-picker-search input { width: 100%; min-width: 0; border: 1px solid #333; border-radius: 10px; background: #1c1c1c; color: #eee; padding: 11px 12px; font: inherit; font-size: 12px; }
.video-model-picker-list { display: flex; flex-direction: column; gap: 9px; overflow-y: auto; min-height: 0; overscroll-behavior: contain; scrollbar-width: none; padding: 2px; }
.video-model-picker-list::-webkit-scrollbar { display: none; width: 0; height: 0; }
.video-model-picker-card { position: relative; display: block; flex-shrink: 0; width: 100%; min-height: 130px; overflow: hidden; padding: 0; border: 1px solid #ffffff20; border-radius: 12px; background: radial-gradient(ellipse at top right, #414141, #191919); color: #fff; text-align: left; }
.video-model-picker-card:hover { border-color: #888; }
.video-model-picker-card[aria-pressed="true"] { border-color: #fff; }
.video-model-picker-card > img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.video-model-picker-copy { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; min-height: 130px; padding: 40px 12px 12px; background: linear-gradient(0deg, #000e, #0004 65%, #0001); }
.video-model-picker-copy strong { font-size: 18px; line-height: 1.2; letter-spacing: -.5px; }
.video-model-picker-copy > span { color: #d0d0d0; font-size: 10px; line-height: 1.4; }
.video-model-picker-check { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #111; font-size: 12px; }
.video-model-picker-empty { color: #999; text-align: center; font-size: 12px; }
@media (max-width: 900px) { .video-sidebar.is-picking-model { height: min(780px, calc(100dvh - 100px)); min-height: 350px; overflow: hidden; } }
@media (max-width: 560px) { .video-model-picker-search input { font-size: 16px; } }
.video-style-card { display: block; position: relative; height: 112px; overflow: hidden; border-radius: 13px; padding: 0; border: 1px solid #ffffff10; text-align: left; background: #252525; }
.video-style-card > img { width: 100%; height: 100%; display: block; object-fit: cover; filter: grayscale(1) brightness(.75); transition: transform 700ms ease; }
.video-style-card:hover > img { transform: scale(1.05); }
.video-style-shade { position: absolute; inset: 0; background: linear-gradient(0deg, #000b, transparent 90%); }
.video-style-change { position: absolute; top: 8px; right: 8px; display: flex; align-items: center; gap: 4px; padding: 5px 7px; border-radius: 6px; background: #ffffff20; backdrop-filter: blur(9px); font-size: 10px; color: #fff; }
.video-style-change .v-icon { width: 12px; height: 12px; }
.video-style-text { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.video-style-text strong { font-size: 18px; line-height: 1.1; letter-spacing: -.65px; color: #fff; }
.video-style-text > span { font-size: 10px; color: #c7c7c7; }
.video-model-preview { background: radial-gradient(ellipse at 85% 10%, #3b3b3b, transparent 65%), linear-gradient(125deg, #171717, #303030 65%, #161616); }
.video-model-preview > video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; filter: none; pointer-events: none; }
.video-model-preview > video[hidden] { display: none; }
.video-model-preview .video-style-shade, .video-model-preview .video-style-text { pointer-events: none; }
.video-model-preview .video-style-shade { background: linear-gradient(0deg, #000d, #0002 62%, #0001); }
.video-model-preview .video-style-text strong { font-size: 19px; line-height: 1.15; letter-spacing: -.55px; }
.video-model-preview .video-style-change { border: 1px solid #ffffff24; font: inherit; font-size: 10px; cursor: pointer; }
.video-model-preview .video-style-change:hover { background: #ffffff38; }
.video-model-preview .video-style-change:disabled { opacity: .45; cursor: default; }
.video-references { min-width: 0; border-radius: 12px; border: 1px dashed #343434; background: #1b1b1b; transition: border-color 180ms, background 180ms; }
.video-references.is-dragging { background: #2c2c2c; border-color: #fff; }
.video-dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 94px; padding: 11px 8px; width: 100%; border: 0; border-radius: 12px; background: transparent; color: #8b8b8b; }
.video-dropzone:hover { color: #ddd; background: #ffffff03; }
.video-dropzone strong { font-size: 11px; font-weight: 550; }
.video-dropzone > span:last-child { font-size: 9px; }
.video-upload-icons { display: flex; justify-content: center; margin-bottom: 4px; }
.video-upload-icons > span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #464646; border-radius: 50%; background: linear-gradient(140deg, #3c3c3c, #282828); box-shadow: 0 2px 5px #0002; }
.video-upload-icons > span + span { margin-left: -4px; }
.video-upload-icons .v-icon { width: 13px; height: 13px; }
.video-references.has-references { display: grid; gap: 8px; border: 0; background: transparent; }
.video-references.has-references > .video-dropzone { display: none; }
.video-references.has-references.is-dragging { outline: 1px solid #fff; outline-offset: -1px; }
.video-reference-list { min-width: 0; margin: 0; padding: 0; gap: 8px; }
.video-reference-videos { display: grid; }
.video-reference-thumbnails { display: grid; grid-template-columns: repeat(3, 56px); grid-auto-rows: 56px; align-items: center; align-content: center; justify-content: center; min-height: 168px; padding: 28px 24px; border-radius: 12px; background: #202122; }
.video-reference-item { flex: 0 0 56px; min-width: 0; width: 56px; height: 56px; position: relative; margin: 0; border-radius: 12px; background: #252729; }
.video-reference-frame { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: inherit; }
.video-reference-media { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-reference-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 100%; color: #8b8d8e; font-size: 10px; text-align: center; }
.video-reference-video { display: grid; place-items: center; width: 100%; height: auto; min-height: 168px; background: #202122; }
.video-reference-video .video-reference-frame { width: 76%; max-width: 228px; height: auto; aspect-ratio: 16 / 9; border: 1px solid #ffffff80; border-radius: 12px; background: #171818; transform: rotate(-4deg); }
.video-reference-video video { object-fit: contain; }
.video-reference-add { display: grid; place-items: center; flex: 0 0 56px; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 12px; background: #252729; color: #797b7d; }
.video-reference-add > .v-icon { width: 16px; height: 16px; padding: 3px; border: 1px solid #ffffff0a; border-radius: 50%; background: #3a3c3e; }
.video-reference-add:hover { background: #2c2e30; color: #eee; }
.video-reference-remove { position: absolute; z-index: 2; top: 3px; right: 3px; display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid #ffffff30; border-radius: 50%; background: #111c; color: #eee; padding: 3px; opacity: 0; transition: opacity 150ms; }
.video-reference-remove .v-icon { width: 12px; height: 12px; }
.video-reference-video .video-reference-add { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; opacity: 0; transition: opacity 150ms; }
.video-reference-item:hover .video-reference-remove, .video-reference-item:focus-within .video-reference-remove, .video-reference-item:hover .video-reference-add, .video-reference-item:focus-within .video-reference-add { opacity: 1; }
.video-reference-remove:focus-visible, .video-reference-add:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.video-reference-item[data-upload-state="uploading"]::after { content: ""; position: absolute; left: 4px; bottom: 4px; width: 13px; height: 13px; border: 2px solid #ffffff40; border-top-color: #fff; border-radius: 50%; background: #222; animation: video-reference-upload 900ms linear infinite; pointer-events: none; }
.video-reference-video[data-upload-state="uploading"]::after { left: 12px; bottom: 12px; }
.video-reference-retry { position: absolute; z-index: 1; inset: 0; margin: 0; padding: 2px; border: 1px solid #ffffff40; border-radius: inherit; background: #111c; color: #fff; font: inherit; font-size: 9px; cursor: pointer; }
.video-reference-video .video-reference-retry { inset: auto 50% 8px auto; transform: translateX(50%); padding: 5px 9px; border-radius: 6px; font-size: 11px; }
.video-reference-retry:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
@keyframes video-reference-upload { to { transform: rotate(360deg); } }
@media (hover: none) { .video-reference-remove, .video-reference-video .video-reference-add { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .video-reference-item[data-upload-state="uploading"]::after { animation: none; } }
.video-prompt-card { display: flex; flex: 1 0 auto; flex-direction: column; height: 160px; padding: 12px; border-radius: 12px; background: #1c1c1c; border: 1px solid transparent; }
.video-prompt-card:focus-within { border-color: #505050; }
.video-prompt-card > label { font-size: 11px; font-weight: 500; color: #929292; margin-bottom: 6px; }
.video-prompt-card textarea { display: block; flex: 1; min-height: 0; width: 100%; resize: none; padding: 0; margin: 0; border: 0; outline: 0; color: #e7e7e7; background: transparent; font-size: 11px; line-height: 1.6; }
.video-prompt-card textarea::placeholder { color: #858585; opacity: 1; }
.video-prompt-actions { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.video-prompt-actions button { display: inline-flex; align-items: center; gap: 4px; padding: 4px 5px; border: 0; border-radius: 6px; background: #111; color: #dedede; font-size: 9px; font-weight: 550; }
.video-prompt-actions .v-icon { width: 12px; height: 12px; }
.video-prompt-actions button:hover { background: #333; }
#video-sound[aria-pressed="false"] { color: #8c8c8c; }
.video-model-button { display: flex; align-items: center; justify-content: space-between; padding: 7px 12px; min-height: 48px; border: 1px solid transparent; border-radius: 8px; background: #1c1c1c; text-align: left; }
.video-model-button > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.video-field-label { font-size: 9px; color: #929292; }
.video-model-button strong { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 550; color: #f3f3f3; }
.video-model-mark { width: 15px; height: 15px; object-fit: contain; filter: grayscale(1); }
.video-model-chevron { width: 14px; height: 14px; color: #828282; }
.video-setting-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; }
.video-setting-trigger { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 40px; padding: 7px 5px; border: 1px solid transparent; border-radius: 7px; background: #1c1c1c; color: #ddd; font-size: 11px; font-weight: 550; white-space: nowrap; }
.video-setting-trigger .v-icon { width: 14px; height: 14px; }
.video-bitrate-button { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 11px; border: 1px solid transparent; border-radius: 7px; background: #1c1c1c; font-size: 11px; font-weight: 550; }
.video-bitrate-button > span { display: flex; align-items: center; gap: 6px; }
.video-bitrate-value { margin-left: auto; background: #ffffff0a; color: #eee; border-radius: 5px; padding: 4px 6px; font-size: 10px; }
.video-bitrate-value .v-icon { width: 12px; height: 12px; }
.video-bitrate-chevron { color: #777; width: 12px; height: 12px; }
.video-model-button:hover, .video-setting-trigger:hover, .video-bitrate-button:hover, .video-controls [aria-expanded="true"] { background: #292929; border-color: #3c3c3c; }
.video-generation-controls { display: flex; grid-column: 1 / -1; flex-direction: column; gap: 8px; min-width: 0; padding: 10px; border: 1px solid #ffffff12; border-radius: 16px; background: linear-gradient(160deg, #1b1b1b, #161616); box-shadow: inset 0 1px 0 #ffffff04; }
body[data-video-studio="hypnosis"] .video-generation-controls { display: contents; }
.video-generation-controls > * { flex-shrink: 0; }
.video-generation-controls .video-model-button { min-height: 42px; padding: 4px 5px 6px; border-radius: 9px; background: transparent; }
.video-generation-controls .video-model-button:hover, .video-generation-controls .video-model-button[aria-expanded="true"] { background: #ffffff06; border-color: transparent; }
.video-generation-controls .video-setting-row { gap: 6px; }
.video-generation-controls .video-setting-trigger { min-height: 40px; border: 1px solid #ffffff08; border-radius: 10px; background: #ffffff05; }
.video-generation-controls .video-setting-trigger:not(:disabled):hover, .video-generation-controls .video-setting-trigger[aria-expanded="true"] { border-color: #ffffff25; background: #ffffff0c; }
.video-generation-controls .video-setting-trigger:disabled { color: #888; cursor: default; }
.video-generation-controls .video-native-options { padding: 4px 2px; }
.video-generation-controls .video-native-option select { max-width: 60%; }
.video-generation-controls .video-quote { margin: 0; padding: 8px 9px; border-radius: 8px; background: #ffffff04; font-size: 10px; }
.video-form-notice { color: #bbb; border: 1px solid #444; background: #171717; border-radius: 7px; padding: 9px; font-size: 10px; line-height: 1.6; margin: 0; }
.video-generate { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; width: 100%; min-height: 46px; padding: 12px; border: 1px solid #fff; border-radius: 13px; color: #080808; background: #fff; box-shadow: 0 3px 0 #bcbcbc; font-size: 14px; font-weight: 650; transition: background 180ms, border-color 180ms; }
.video-generate-cost { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 12px; font-variant-numeric: tabular-nums; }
.video-generate-spark { flex-shrink: 0; fill: currentColor; stroke: none; }
.video-generate:not(:disabled):hover { background: #f2f2f2; border-color: #f2f2f2; }
.video-generate:not(:disabled):active { background: #e3e3e3; box-shadow: inset 0 1px 3px #0002; }
.video-generate:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.video-stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; border: 1px solid #292929; border-radius: 22px; background: #0e0e0e; overflow: hidden; }
.video-stage-tabs { display: flex; gap: 6px; flex-shrink: 0; min-height: 56px; align-items: center; padding: 12px 22px; }
.video-stage-tabs button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #858585; font-size: 10px; font-weight: 550; }
.video-stage-tabs button[aria-selected="true"] { color: #f5f5f5; border-color: #303030; background: linear-gradient(145deg, #2a2a2a, #202020); box-shadow: inset 0 1px 0 #ffffff04; }
.video-stage-tabs button:hover { color: #eee; }
.video-stage-tabs .v-icon { width: 14px; height: 14px; }
#video-history-count { display: grid; place-items: center; min-width: 16px; height: 16px; border-radius: 4px; background: #333; font-size: 8px; }
.video-stage-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.video-guide, .video-history { padding: clamp(35px, 6vh, 80px) 40px 28px; animation: video-enter 400ms ease both; }
.video-guide-heading { margin-bottom: 30px; }
.video-kicker { margin: 0 0 15px; color: #7b7b7b; font-size: 8px; font-weight: 500; letter-spacing: 1.8px; }
.video-guide-heading h1 { margin: 0 0 13px; color: #fafafa; font-size: clamp(25px, 2.3vw, 40px); line-height: 1.15; font-weight: 650; letter-spacing: -1.4px; }
.video-guide-heading > p:last-child { color: #898989; font-size: 12px; line-height: 1.7; margin: 0; }
.video-guide-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.video-step { min-width: 0; }
.video-step-visual { position: relative; display: block; width: 100%; height: clamp(225px, 20vw, 350px); overflow: hidden; padding: 0; border: 1px solid #ffffff04; border-radius: 17px; background: #090909; text-align: center; color: #eee; }
.video-step-visual { cursor: default; }
.video-upload-visual { background: radial-gradient(ellipse at 50% 40%, #191919, #101010 65%); border-color: #2e2e2e; }
.video-upload-visual::before, .video-upload-visual::after { content: ""; position: absolute; width: 26px; height: 26px; border-color: #e2e2e2; border-style: solid; pointer-events: none; z-index: 2; }
.video-upload-visual::before { top: 0; left: 0; border-width: 2px 0 0 2px; border-top-left-radius: 17px; }
.video-upload-visual::after { bottom: 0; right: 0; border-width: 0 2px 2px 0; border-bottom-right-radius: 17px; }
.video-upload-outline { position: absolute; inset: 28px 23px 45px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 20px; border: 1px dashed #363636; border-radius: 16px; }
.video-upload-outline > .v-icon { width: 28px; height: 28px; margin-bottom: 15px; color: #ccc; }
.video-upload-outline > strong { color: #e5e5e5; font-size: clamp(10px, 1.05vw, 17px); letter-spacing: -.3px; }
.video-upload-outline > span:not(.video-upload-pill) { color: #727272; font-size: 9px; margin-top: 8px; }
.video-upload-pill { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; margin-top: 15px; border: 1px solid #4b4b4b; border-radius: 6px; color: #b7b7b7; font-size: 8px; }
.video-upload-pill .v-icon { width: 11px; height: 11px; }
.video-floating-photo { display: block; position: absolute; width: 63%; height: 43%; left: 4%; bottom: -12%; border: 2px solid #aaa; border-radius: 10px; overflow: hidden; transform: rotate(-9deg); box-shadow: 0 6px 25px #0008; transition: transform 450ms; }
.video-floating-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.85); }
.video-floating-photo > span { position: absolute; left: 9px; right: 5px; top: 8px; text-align: left; color: #fff; font-size: 7px; text-shadow: 0 1px 5px #000; }
.video-upload-visual:hover .video-floating-photo { transform: translateY(-9px) rotate(-6deg); }
.video-visual-index { position: absolute; top: 11px; left: 12px; z-index: 3; color: #777; font-size: 7px; font-weight: 500; letter-spacing: 1px; }
.video-presets-visual { display: flex; align-items: center; background: linear-gradient(0deg, #0b0b0b, #111); }
.video-preset-strip { display: flex; justify-content: center; align-items: center; gap: 9px; min-width: 0; width: 100%; padding-inline: 4px; }
.video-preset-mini { display: block; position: relative; flex: 0 0 45%; height: clamp(165px, 14.5vw, 255px); overflow: hidden; border-radius: 13px; background: #222; opacity: .4; }
.video-preset-mini.is-featured { height: clamp(185px, 16vw, 280px); border: 1px solid #eee; opacity: 1; box-shadow: 0 5px 20px #0004; }
.video-preset-mini > img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.7); transition: transform 600ms ease; }
.video-preset-mini > span:last-child { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 3px 13px; background: linear-gradient(transparent, #000a); color: #f5f5f5; font-size: 9px; font-weight: 650; letter-spacing: .4px; }
.video-mini-badge { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: #ffffff30; }
.video-mini-badge .v-icon { width: 12px; height: 12px; }
.video-presets-visual:hover .is-featured img { transform: scale(1.07); }
.video-preview-visual { padding: 14px; display: flex; align-items: center; justify-content: center; background: #050505; }
.video-preview-frame { display: block; position: relative; width: 100%; height: 92%; border: 5px solid #f7f7f7; border-radius: 21px; overflow: hidden; background: #222; }
.video-preview-frame > img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.8); transform: scale(1.08); }
.video-preview-vignette { position: absolute; inset: 0; background: linear-gradient(#0003, transparent 35%, #0009); }
.video-preview-top { position: absolute; top: 13px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 5px; color: #ddd; font-size: 6px; font-weight: 550; letter-spacing: 1.7px; }
.video-preview-live { letter-spacing: 1px; padding: 3px 4px; margin-top: -3px; border-radius: 3px; background: #ffffff20; }
.video-preview-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid #ffffff70; border-radius: 50%; background: #ffffff14; backdrop-filter: blur(8px); }
.video-preview-play .v-icon { width: 18px; height: 18px; margin-left: 2px; fill: #eee; stroke-width: 1; }
.video-preview-bottom { position: absolute; left: 12px; right: 12px; bottom: 20px; display: flex; align-items: end; justify-content: space-between; gap: 8px; color: #eee; text-align: left; font-size: 9px; line-height: 1.4; }
.video-preview-time { flex-shrink: 0; font-size: 6px; font-variant-numeric: tabular-nums; }
.video-preview-time > span { color: #aaa; }
.video-preview-track { position: absolute; height: 2px; left: 12px; right: 12px; bottom: 11px; border-radius: 4px; background: #ffffff40; overflow: hidden; }
.video-preview-track > span { display: block; height: 100%; width: 15%; background: #fff; }
.video-preview-visual.is-playing .video-preview-frame > img { animation: video-preview-pan 6s ease-in-out infinite alternate; }
.video-preview-visual.is-playing .video-preview-track > span { animation: video-preview-progress 6s linear infinite; }
.video-preview-visual.is-playing .video-preview-play { opacity: 0; }
.video-step-heading { display: flex; align-items: center; gap: 9px; margin-top: 18px; }
.video-step-heading > span { color: #646464; font-size: 8px; font-weight: 500; }
.video-step h2 { margin: 0; color: #eaeaea; font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: -.3px; }
.video-step > p { color: #818181; font-size: 10px; line-height: 1.75; margin: 9px 0 0; }
.video-start-banner { display: flex; align-items: center; gap: 24px; overflow: hidden; position: relative; margin-top: 40px; padding: 20px 26px 20px 190px; min-height: 95px; border: 1px solid #ffffff04; border-radius: 12px; background: #161616; }
.video-start-banner h2 { margin: 0 0 7px; color: #e4e4e4; font-size: 12px; font-weight: 550; letter-spacing: -.2px; }
.video-start-banner p { margin: 0; color: #7a7a7a; font-size: 9px; line-height: 1.6; }
.video-start-banner > button { display: grid; place-items: center; flex-shrink: 0; width: 31px; height: 31px; margin-left: auto; background: #222; border: 1px solid #3a3a3a; border-radius: 50%; color: #ccc; }
.video-start-banner > button:hover { background: #eee; color: #111; }
.video-photo-fan { position: absolute; width: 155px; height: 110px; left: 20px; bottom: -29px; }
.video-photo-fan img { position: absolute; display: block; width: 68px; height: 95px; object-fit: cover; filter: grayscale(1) brightness(.65); border: 1px solid #555; border-radius: 9px; }
.video-photo-fan img:nth-child(1) { left: 6px; top: 18px; transform: rotate(-17deg); }
.video-photo-fan img:nth-child(2) { left: 45px; top: 0; z-index: 1; }
.video-photo-fan img:nth-child(3) { left: 83px; top: 15px; transform: rotate(16deg); }
.video-dialog { color: #eee; background: #151515; border: 1px solid #363636; border-radius: 20px; padding: 24px; width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); box-shadow: 0 25px 100px #0009; }
.video-dialog::backdrop { background: #000a; backdrop-filter: blur(7px); }
.video-dialog[open] { animation: video-enter 160ms ease both; }
.video-dialog-header { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 24px; }
.video-dialog-header .video-kicker { margin-bottom: 10px; font-size: 7px; }
.video-dialog h2 { font-size: 23px; line-height: 1.25; letter-spacing: -.9px; margin: 0; font-weight: 600; }
.video-dialog-close { display: grid; place-items: center; flex-shrink: 0; padding: 6px; background: #252525; border: 1px solid #404040; border-radius: 50%; color: #ccc; }
.video-dialog-close .v-icon { width: 15px; height: 15px; }
.video-save-scene { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 17px; border: 0; border-radius: 9px; background: #fff; color: #111; font-size: 12px; font-weight: 600; }
.video-save-scene:hover { background: #e1e1e1; }
.video-option-menu { position: fixed; inset: auto; margin: 0; padding: 8px; width: 230px; max-width: calc(100vw - 24px); max-height: 330px; overflow-y: auto; border: 1px solid #393939; border-radius: 12px; color: #eee; background: linear-gradient(145deg, #282828, #1b1b1b); box-shadow: 0 12px 35px #0007; }
.video-option-menu::backdrop { background: transparent; }
.video-option-menu:popover-open { animation: video-enter 120ms ease both; }
.video-option-title { display: block; padding: 6px 8px 12px; font-size: 10px; color: #919191; }
.video-option { display: flex; align-items: center; gap: 9px; text-align: left; width: 100%; min-height: 38px; padding: 9px 8px; border: 0; border-radius: 7px; background: transparent; color: #e6e6e6; font-size: 11px; }
.video-option[aria-selected="true"] { background: #ffffff0b; }
.video-option:hover { background: #ffffff07; }
.video-option:focus-visible { outline: 1px solid #777; outline-offset: -1px; }
.video-option > .v-icon:last-child { margin-left: auto; width: 14px; height: 14px; }
.video-option-copy { display: flex; flex-direction: column; gap: 5px; }
.video-option-copy small { font-size: 9px; color: #8c8c8c; line-height: 1.5; }
.video-model-menu { padding: 0 0 10px; border: 1px solid #ffffff0d; border-radius: 18px; background: linear-gradient(145deg, #272b2df5, #191b1df5); backdrop-filter: blur(24px); box-shadow: 0 18px 55px #0006, inset 0 1px 0 #ffffff03; }
.video-model-menu:popover-open { display: flex; flex-direction: column; overflow: hidden; }
.video-model-menu:focus { outline: none; }
.video-model-menu > :not(.video-model-results) { flex-shrink: 0; }
.video-model-search { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 11px 13px; border-bottom: 1px solid #ffffff06; }
.video-model-search > svg { flex-shrink: 0; width: 19px; height: 19px; fill: none; stroke: #909699; stroke-width: 1.6; stroke-linecap: round; }
.video-model-search input { min-width: 0; width: 100%; margin: 0; padding: 0; border: 0; outline: none; background: transparent; color: #eee; font: inherit; font-size: 14px; }
.video-model-search input::placeholder { color: #979b9e; }
.video-model-search:focus-within { background: #ffffff04; box-shadow: inset 0 -1px 0 #ffffff20; }
.video-model-heading { display: flex; align-items: center; gap: 8px; margin: 0; padding: 9px 14px 7px; color: #969a9c; font-size: 12px; }
.video-model-heading > span:first-child { font-size: 18px; }
.video-model-results { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 12px; scrollbar-width: none; }
.video-model-results::-webkit-scrollbar { display: none; width: 0; height: 0; }
.video-model-option { gap: 9px; min-height: 56px; padding: 7px 6px; border-radius: 11px; }
.video-model-option:hover { background: #ffffff07; }
.video-model-option[aria-selected="true"] { background: #ffffff09; }
.video-model-option:focus-visible { outline: 1px solid #ffffff60; outline-offset: -1px; background: #ffffff09; }
.video-model-icon-box { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border: 1px solid #ffffff03; border-radius: 9px; background: linear-gradient(145deg, #ffffff0b, #ffffff05); }
.video-model-icon-box img { width: 21px; height: 21px; object-fit: contain; filter: brightness(0) invert(1); opacity: .55; }
.video-model-copy { display: grid; min-width: 0; gap: 5px; }
.video-model-name { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: #f5f5f5; font-size: 12px; line-height: 1.3; font-weight: 600; }
.video-model-status { padding: 2px 4px; border: 1px solid #ffffff0d; border-radius: 4px; background: #ffffff06; color: #b1b5b7; font-size: 9px; font-weight: 500; }
.video-model-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: #9c9fa1; }
.video-model-tags > span { display: inline-flex; align-items: center; gap: 3px; padding: 2px 4px; border-radius: 4px; background: #ffffff06; font-size: 9px; line-height: 1.2; }
.video-model-tags svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.video-model-selected { margin-left: auto; padding: 0 5px; color: #d7dbdd; font-size: 14px; }
.video-model-empty { margin: 0; padding: 12px 18px; color: #aaa; font-size: 12px; }
@media (max-width: 560px) { .video-model-search input { font-size: 16px; } }
.video-history-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.video-history-empty { grid-column: 1 / -1; padding: 70px 20px; text-align: center; border: 1px dashed #333; border-radius: 15px; }
.video-history-empty > .v-icon { margin: 0 auto 20px; width: 30px; height: 30px; color: #888; }
.video-history-empty h2 { font-size: 17px; font-weight: 550; color: #ddd; }
.video-history-empty p { color: #777; font-size: 12px; }
.video-history-card { min-width: 0; border: 1px solid #303030; border-radius: 13px; overflow: hidden; background: #181818; }
.video-history-cover { position: relative; height: 135px; }
.video-history-cover > img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.65); }
.video-history-cover > span { position: absolute; top: 10px; left: 10px; padding: 5px 7px; color: #ddd; background: #111b; border: 1px solid #ffffff20; border-radius: 5px; font-size: 8px; }
.video-history-copy { padding: 14px; }
.video-history-copy > p { font-size: 12px; line-height: 1.7; color: #ccc; margin: 0 0 10px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; }
.video-history-copy > small { font-size: 9px; line-height: 1.7; color: #777; }
.video-history-actions { display: flex; align-items: center; gap: 9px; margin-top: 14px; }
.video-history-actions button { padding: 7px 10px; color: #bbb; font-size: 10px; border: 1px solid #404040; border-radius: 6px; background: #252525; }
.video-history-actions button:hover { color: #fff; border-color: #888; }
@keyframes video-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.video-reference-url-open { padding: 10px; border: 1px solid #363636; border-radius: 8px; background: #202020; color: #ccc; font-size: 11px; }
.video-reference-url-open:hover { border-color: #777; color: #fff; }
.video-quote { margin: 2px 0; color: #aaa; font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.video-generate:disabled { opacity: 1; color: #8b8b8b; border-color: #ffffff0d; background: #ffffff0a; box-shadow: none; cursor: default; }
.video-native-options { display: grid; gap: 10px; }
.video-native-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; color: #aaa; }
.video-native-option select, .video-reference-form select, .video-reference-form input { min-width: 0; max-width: 100%; padding: 9px; color: #eee; background: #222; border: 1px solid #414141; border-radius: 7px; font: inherit; }
.video-native-select { min-width: 0; width: 100%; }
#video-native-options:has(.video-native-select) { padding: 0; }
.video-generation-controls .video-native-select-trigger { justify-content: space-between; width: 100%; min-height: 54px; padding: 9px 12px; border: 1px solid #ffffff04; border-radius: 11px; background: #222; text-align: left; }
.video-native-select-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.video-native-select-label { color: #979797; font-size: 9px; line-height: 12px; font-weight: 450; }
.video-native-select-value { overflow: hidden; color: #f7f7f7; font-size: 12px; line-height: 16px; font-weight: 550; text-overflow: ellipsis; }
.video-native-select-trigger > .video-native-select-chevron { flex-shrink: 0; width: 12px; height: 12px; margin-left: auto; color: #858585; }
.video-generation-controls .video-native-select-trigger:not(:disabled):hover, .video-generation-controls .video-native-select-trigger[aria-expanded="true"] { background: #2a2a2a; border-color: #3d3d3d; }
.video-native-select-trigger:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.video-native-select-menu .video-option-copy { min-width: 0; }
.video-native-select-menu .video-option-copy small { overflow-wrap: anywhere; }
.video-reference-dialog { width: min(540px, calc(100vw - 32px)); }
.video-reference-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.video-reference-form label { display: grid; gap: 9px; color: #bbb; font-size: 12px; }
.video-reference-wide { grid-column: 1 / -1; }
.video-reference-form p { font-size: 12px; line-height: 1.65; color: #888; margin: 0; }
.video-generated-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; margin-bottom: 24px; }
.video-generation-card { padding: 16px; border: 1px solid #333; border-radius: 12px; min-width: 0; background: #181818; font-size: 12px; }
.video-generation-card video { display: block; width: 100%; max-height: 480px; border-radius: 7px; background: #000; }
.video-generation-status { font-size: 10px; color: #ccc; letter-spacing: .5px; }
.video-generation-prompt { white-space: pre-wrap; max-height: 100px; overflow: auto; line-height: 1.6; color: #aaa; overflow-wrap: anywhere; }
.video-generation-card small { display: block; color: #888; }
.video-generation-card a { display: inline-block; color: #eee; margin-top: 16px; }
.video-generation-error { color: #ddd; line-height: 1.5; }
@media (min-width: 561px) and (max-width: 900px) { .video-reference-url-open, .video-native-options, .video-quote { grid-column: 1 / -1; } }
@keyframes video-preview-pan { from { transform: scale(1.08) translateX(-2%); } to { transform: scale(1.2) translateX(2%); } }
@keyframes video-preview-progress { from { width: 0; } to { width: 100%; } }
@media (min-width: 1600px) { .video-main { grid-template-columns: 320px minmax(0, 1fr); } .video-guide, .video-history { padding-inline: 48px; padding-top: 85px; } .video-style-card { height: 130px; } .video-dropzone { min-height: 112px; } .video-prompt-card { height: 155px; } .video-mode-tabs button { font-size: 12px; } .video-step h2 { font-size: 15px; } .video-step > p { font-size: 12px; } .video-stage-tabs button { font-size: 11px; } .video-start-banner { margin-top: 42px; } }
@media (min-width: 901px) and (max-height: 850px) { .video-main { padding-block: 10px; } .video-controls { gap: 6px; } .video-style-card { height: 100px; } .video-dropzone { min-height: 80px; padding-block: 8px; } .video-upload-icons > span { width: 24px; height: 24px; } .video-prompt-card { height: 110px; padding-block: 9px; } .video-guide, .video-history { padding-top: 32px; } .video-step-visual { height: 245px; } .video-start-banner { margin-top: 26px; } }
@media (min-width: 901px) and (max-width: 1200px) { .video-main { grid-template-columns: 288px minmax(0, 1fr); padding: 12px; } .video-mode-tabs { gap: 10px; } .video-mode-tabs button { font-size: 10px; } .video-guide, .video-history { padding-inline: 23px; } .video-guide-steps { gap: 13px; } .video-step-visual { height: 225px; } .video-preview-visual { padding: 9px; } .video-preview-frame { border-width: 4px; border-radius: 15px; } .video-preview-bottom > span:first-child { display: none; } .video-start-banner { padding-left: 130px; gap: 10px; } .video-photo-fan { left: -30px; } .video-start-banner h2 { font-size: 11px; } }
@media (max-width: 900px) { body[data-page="video"] { height: auto; min-height: 100dvh; overflow: auto; scrollbar-width: none; } body[data-page="video"]::-webkit-scrollbar { display: none; } .video-main { display: flex; flex-direction: column; padding: 14px; gap: 14px; flex: none; } .video-sidebar, .video-stage { overflow: visible; } .video-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: visible; gap: 10px; padding: 10px; } .video-style-card, .video-model-button, .video-generate, .video-form-notice { grid-column: 1 / -1; } .video-style-card { height: 140px; } .video-prompt-card { height: 140px; } .video-dropzone { min-height: 138px; } .video-setting-row { align-self: stretch; } .video-bitrate-button { min-height: 43px; } .video-generate { margin-bottom: 3px; } .video-mode-tabs { gap: 22px; padding-inline: 18px; } .video-mode-tabs button { font-size: 12px; } .video-stage-scroll { overflow: visible; } .video-stage-tabs { padding-inline: 15px; } .video-guide, .video-history { padding: 25px 22px; } .video-guide-heading h1 { font-size: 30px; } .video-step-visual { height: 235px; } .video-preset-mini { height: 170px; } .video-preset-mini.is-featured { height: 190px; } .video-guide-steps { gap: 16px; } .video-preview-visual { padding: 9px; } .video-start-banner { padding-left: 150px; margin-top: 28px; } .video-photo-fan { left: -10px; } .video-guide-heading { margin-bottom: 24px; } .video-dialog { max-height: calc(100dvh - 32px); } }
@media (max-width: 560px) { .video-main { padding: 10px; gap: 12px; } .video-sidebar, .video-stage { border-radius: 17px; } .video-controls { display: flex; padding: 9px; gap: 8px; } .video-mode-tabs { justify-content: space-between; gap: 13px; padding-inline: 13px; } .video-mode-tabs button { font-size: 10px; } .video-style-card { height: 128px; } .video-dropzone { min-height: 105px; } .video-prompt-card { height: 155px; } .video-prompt-card textarea { font-size: 16px; } .video-prompt-card > label { font-size: 12px; } .video-prompt-actions button { font-size: 10px; } .video-model-button strong, .video-setting-trigger, .video-bitrate-button { font-size: 12px; } .video-setting-trigger { min-height: 43px; } .video-stage-tabs { padding: 12px; gap: 3px; } .video-stage-tabs button { font-size: 10px; padding: 8px; } .video-guide, .video-history { padding: 25px 18px; } .video-guide-heading h1 { font-size: 29px; letter-spacing: -1px; } .video-guide-heading > p:last-child { font-size: 11px; } .video-guide-steps { grid-template-columns: 1fr; gap: 26px; } .video-step-visual { height: 260px; } .video-upload-outline > strong { font-size: 15px; } .video-upload-outline { inset-inline: 30px; } .video-upload-pill { font-size: 9px; } .video-step-heading { margin-top: 15px; } .video-step h2 { font-size: 14px; } .video-step > p { font-size: 11px; margin-top: 7px; } .video-preset-mini { height: 190px; } .video-preset-mini.is-featured { height: 215px; } .video-preview-visual { padding: 14px; } .video-preview-bottom > span:first-child { display: block; } .video-start-banner { padding: 20px 16px; gap: 13px; min-height: auto; } .video-photo-fan { display: none; } .video-start-banner h2 { font-size: 12px; line-height: 1.5; } .video-start-banner p { font-size: 10px; } .video-start-banner > button { width: 29px; height: 29px; } .video-dialog { padding: 19px; border-radius: 16px; } .video-dialog h2 { font-size: 21px; } .video-dialog-header .video-kicker { font-size: 6px; letter-spacing: 1.4px; } .video-history-list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { body[data-page="video"] *, body[data-page="video"] *::before, body[data-page="video"] *::after { animation: none !important; transition: none !important; } }
