/* v0.4 Pilot text-to-video form and MP4 result. Scoped; existing photo wizard unchanged. */
.video-create-sheet{max-width:540px!important;width:min(100vw - 20px,540px)!important;box-sizing:border-box}
.video-create-panel{padding:18px 18px max(22px,env(safe-area-inset-bottom));display:grid;gap:12px;min-width:0}
.video-create-panel h2{font-size:26px;line-height:1.1;margin:3px 0 10px}
.video-create-panel label{font-weight:700;color:#272046}
.video-kind{display:inline-flex;align-items:center;justify-self:start;border-radius:99px;background:#efe8ff;color:#6f35d9;padding:7px 12px;font-weight:800;font-size:12px}
.video-help{font-size:13px;line-height:1.5;color:#686386;margin:0}
.video-create-panel textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:130px;max-height:350px;outline:none;border:1px solid #ded8f1;border-radius:16px;padding:13px;font:inherit;color:#24203b;background:white}
.video-create-panel textarea:focus{border-color:#8d54ef;box-shadow:0 0 0 3px #8653f51f}
.video-counter{margin:-7px 0 2px;text-align:right;font-size:12px;color:#8e88a9}
.video-price-note{font-size:14px;color:#54447f;background:#f4efff;padding:12px;border-radius:12px}
.video-run{min-height:50px;padding:12px 14px;width:100%;font-weight:750}
.video-legal-gate{font-size:13px;line-height:1.5}.video-legal-gate label{display:flex;gap:9px;align-items:start;font-weight:500}.video-legal-gate input{width:18px;height:18px;flex-shrink:0}
.video-result-player{object-fit:contain!important;background:#151124;border-radius:17px;width:100%;max-height:70vh;aspect-ratio:16/9}
@media(max-width:380px){.video-create-panel{padding:15px 12px 20px}.video-create-panel h2{font-size:22px}}

/* v0.5 · integrated wizard and fixed price */
.video-create-sheet.creation-wizard{background:linear-gradient(180deg,#fff 0%,#fcfaff 100%);overflow:auto;max-height:min(92dvh,820px)}
.video-stage{min-height:0;padding:0!important}
.video-create-panel{padding:18px 22px 24px;gap:13px}
.video-create-panel .create-step-copy{text-align:center}
.video-create-panel .create-step-copy h2{margin:10px 0 8px;font-size:clamp(24px,6vw,32px)}
.video-create-panel .video-input-field{display:grid;gap:5px;margin-top:3px;text-align:left}
.video-input-field b{font-size:15px}.video-input-field small{font-weight:400;color:#79728d;line-height:1.5}
.video-create-panel textarea{border-radius:19px;min-height:155px;font-size:16px;line-height:1.5;box-shadow:0 9px 25px #5a3cc108}
.video-fixed-price{display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px 8px;padding:14px 16px;border-radius:16px;background:linear-gradient(125deg,#f5f0ff,#eee9ff);border:1px solid #e8dcff}
.video-fixed-price>span{color:#635b84;font-size:12px;font-weight:700}
.video-fixed-price strong{font-size:20px;color:#5a32e8;white-space:nowrap}
.video-fixed-price small{grid-column:1/-1;color:#85809b;font-size:11px;line-height:1.4}
.video-action-note{margin:0;color:#5d5297;font-size:12px;min-height:0;line-height:1.4}
.video-run{border-radius:17px;min-height:57px}
.trend-preview-video{display:block;width:100%;height:100%;object-fit:cover;background:#ede9f6;pointer-events:none}
.home-tool-card__media>.home-tool-card__image,.home-tool-card__media>.trend-preview-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.product-detail-hero .trend-preview-video{width:100%;height:100%;object-fit:cover}
.catalog-format-tabs{display:flex;gap:8px;margin:16px 0 13px;overflow-x:auto;scrollbar-width:none;padding:3px}
.catalog-format-tabs::-webkit-scrollbar{display:none}
.catalog-format-tab{flex:none;border:1px solid #e2def3;border-radius:14px;background:#fff;color:#6b6384;font-size:14px;font-weight:750;padding:12px 16px;cursor:pointer}
.catalog-format-tab.active{background:linear-gradient(110deg,#7654ff,#6333f3);color:white;border-color:transparent;box-shadow:0 6px 16px #6e48e52a}
@media(max-width:420px){.video-create-panel{padding:12px 14px 20px}.video-fixed-price strong{font-size:17px}.catalog-format-tab{padding:11px 13px;font-size:12px}}

/* v0.5.1 · Autoplay teaser and intentional sound-on in card details */
.product-detail-hero{position:relative;isolation:isolate}
.product-detail-hero .trend-preview-video{pointer-events:auto}

/* v0.5.2: Video-first no-poster teasers. A neutral skeleton is shown until decoded frame. */
.trend-preview-video{opacity:0;transition:opacity .22s ease;background:transparent!important}
.trend-preview-video.teaser-frame-ready{opacity:1}
.trend-card,.home-tool-card__media,.product-detail-hero{background:linear-gradient(140deg,#dad5f7,#efedff 56%,#d9d2f2)}
.product-detail-hero .trend-preview-video{pointer-events:auto}
.product-detail-hero .trend-preview-video::-webkit-media-controls{z-index:7}
.product-detail-tip__fallback{display:grid;place-items:center;min-width:68px;min-height:68px;border-radius:14px;background:#eee8ff;color:#7850ef}
.product-detail-tip__fallback svg{width:34px;height:34px}
@media (prefers-reduced-motion:reduce){.trend-preview-video{transition:none}}

/* v0.5.3 · Native video audio control only; explicit Video Review step */
.product-detail-hero .trend-preview-video--detail{pointer-events:auto;touch-action:manipulation}
/* Deprecated duplicate sound pill must never overlay the native video timeline. */
.video-review-panel{gap:15px}
.video-review-scene{border:1px solid #e5dff6;background:#fff;border-radius:18px;padding:15px;min-width:0}
.video-review-label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:#35295b}
.video-review-label span{font-size:11px;color:#80779e;font-weight:600}
.video-review-scene p{font-size:15px;line-height:1.55;color:#342a52;white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow-y:auto;margin:11px 0 12px}
.video-review-edit{border:0;background:#eee8ff;color:#663fe2;border-radius:11px;font-weight:750;font-size:12px;padding:9px 12px;cursor:pointer}
.video-review-pricing{border:1px solid #e5dff6;border-radius:17px;background:#fbfaff;overflow:hidden}
.video-review-pricing>div{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:13px 15px;border-bottom:1px solid #ebe7f5;font-size:13px}
.video-review-pricing>div:last-child{border-bottom:0}
.video-review-pricing span{color:#786e97}
.video-review-pricing b{font-weight:750;color:#302448;text-align:right}
.video-review-pricing .video-review-total{background:linear-gradient(120deg,#f4efff,#eae4ff)}
.video-review-total strong{font-size:20px;color:#6234e9;white-space:nowrap}
.video-review-explainer{background:#f6f3fd;color:#786e94;border-radius:14px;padding:11px 14px;line-height:1.5;font-size:12px}
.video-review-panel .video-legal-gate{border:1px solid #ded7f7;border-radius:12px;padding:12px}
.video-review-panel .video-action-note:not(:empty){padding:9px 11px;border-radius:10px;background:#f1ebff}
@media(max-width:380px){.video-review-pricing>div{padding:11px 10px;font-size:12px}.video-review-total strong{font-size:17px}}
/* v0.5.6 dynamic media uploads: calm, touch-sized controls. */
.video-create-panel .video-input-field:has(input[type=file]){display:flex;flex-direction:column;gap:8px;margin:12px 0;padding:14px;background:#f9f7ff;border:1px solid #e9e3fa;border-radius:15px}
.video-create-panel .video-input-field input[type=file]{width:100%;max-width:100%;font-size:13px;color:#46376d;padding:9px;border:1px dashed #c9b8f7;background:white;border-radius:12px}
.video-create-panel .video-input-field input[type=file]::file-selector-button{background:#eee8ff;color:#5e3acf;border:0;border-radius:8px;padding:9px 11px;font-weight:700;margin-right:12px}
.video-create-panel .video-input-field [data-video-file-name]{font-size:12px;color:#756c96;word-break:break-word}
