:root{
  --bg:#f7f7f8;--panel:#ffffff;--ink:#171717;--muted:#6f7177;--line:#e8e8eb;
  --accent:#6d35e8;--accent-dark:#5622cf;--flow:#111827;--gold:#f5a524;--good:#0f9f6e;
  --shadow:0 14px 40px rgba(17,24,39,.08);--radius:24px;
}
*{box-sizing:border-box}html{font-size:16px}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,Arial,sans-serif;background:var(--bg);color:var(--ink)}button,input,textarea,select{font:inherit}.topbar{height:68px;padding:0 28px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.brand{font-weight:900;font-size:17px}.brand.plain{border:0;background:transparent;cursor:pointer}.top-actions{display:flex;gap:8px;align-items:center}.user-chip{font-size:12px;color:var(--muted);background:#f3f3f4;padding:8px 10px;border-radius:999px}.app-shell{max-width:1380px;margin:0 auto;padding:34px 26px 80px}.eyebrow{font-size:12px;font-weight:900;letter-spacing:.13em;color:var(--accent);text-transform:uppercase}.muted{color:var(--muted)}

.btn{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:14px;padding:11px 16px;font-weight:800;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn:hover{transform:translateY(-1px)}.btn:disabled{opacity:.35;cursor:default;transform:none}.btn.primary{background:linear-gradient(135deg,var(--accent),var(--accent-dark));color:#fff;border:0}.btn.gold{background:linear-gradient(135deg,#ffb429,#ef8f00);color:#201503;border:0}.btn.flow{background:linear-gradient(135deg,#111827,#27272a);color:#fff;border:0}.btn.ghost{background:transparent}.btn.huge{min-height:58px;padding:16px 24px;font-size:18px;border-radius:17px}.btn.mega{width:100%;min-height:64px;font-size:18px;border-radius:18px}.secondary-wide{width:100%;min-height:50px;margin-top:10px}.text-action{border:0;background:transparent;color:var(--muted);font-weight:800;cursor:pointer;padding:12px;width:100%}.text-action:hover{color:var(--accent)}

.hero-simple{background:linear-gradient(145deg,#171717 0%,#26232c 62%,#4d248c 100%);border-radius:34px;padding:52px;color:#fff;box-shadow:var(--shadow);position:relative;overflow:hidden}.hero-simple:after{content:"";position:absolute;width:360px;height:360px;border-radius:50%;right:-90px;top:-160px;background:rgba(255,187,61,.18)}.hero-simple h1{font-size:clamp(38px,5vw,64px);margin:8px 0 12px;line-height:1.04;max-width:760px}.hero-simple p{font-size:19px;line-height:1.65;color:#e9e7ec;max-width:700px;margin:0 0 24px}.hero-simple .eyebrow{color:#ffd166}.simple-choice-wrap{margin-top:34px}.simple-choice-wrap h2{font-size:28px;margin-bottom:16px}.simple-choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.simple-choice{background:#fff;border:1px solid var(--line);border-radius:22px;padding:24px;text-align:left;cursor:pointer;min-height:150px;box-shadow:0 6px 20px rgba(17,24,39,.03)}.simple-choice:hover{border-color:#cbb9ff;box-shadow:var(--shadow)}.simple-choice span{font-size:32px;display:block;margin-bottom:14px}.simple-choice b{display:block;font-size:20px;margin-bottom:6px}.simple-choice small{font-size:14px;color:var(--muted);line-height:1.5}.my-films{margin-top:38px}.section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:14px}.section-head h2{margin:3px 0 0;font-size:27px}.project-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.project-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:20px;text-align:left;cursor:pointer}.project-card:hover{box-shadow:var(--shadow);transform:translateY(-2px)}.project-card h3{font-size:20px;margin:8px 0}.project-card .meta{color:var(--muted);font-size:13px}.continue-label{margin-top:14px;font-weight:800;color:var(--accent)}.progress-track{height:8px;background:#efeff1;border-radius:999px;overflow:hidden;margin-top:13px}.progress-bar{height:100%;background:linear-gradient(90deg,var(--accent),#a78bfa)}.empty-card{background:#fff;border:1px dashed #d8d8dc;border-radius:22px;padding:34px;text-align:center;color:var(--muted)}

.wizard{max-width:850px;margin:0 auto}.stepper{display:flex;gap:8px;margin-bottom:18px}.step-dot{height:8px;flex:1;border-radius:99px;background:#dddde1}.step-dot.on{background:var(--accent)}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px;box-shadow:0 8px 28px rgba(17,24,39,.04)}.wizard-panel h2{font-size:30px;margin:8px 0}.lead{color:var(--muted);font-size:17px;margin:0 0 22px}.choice-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.choice{border:2px solid var(--line);border-radius:18px;padding:18px;cursor:pointer;display:flex;gap:14px}.choice.selected{border-color:var(--accent);background:#faf8ff}.choice .ico{font-size:28px}.choice b{display:block;margin-bottom:5px}.choice small{color:var(--muted)}.genre-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.genre{border:1px solid var(--line);background:#fff;border-radius:14px;padding:13px 10px;cursor:pointer}.genre.selected{border:2px solid var(--accent);background:#faf8ff;font-weight:800}label{display:block;font-weight:800;margin-top:14px}input,textarea,select{width:100%;border:1px solid #d7d7dc;background:#fff;border-radius:14px;padding:13px 14px;margin-top:7px;outline:none}textarea{min-height:108px;resize:vertical}input:focus,textarea:focus,select:focus{border-color:#9d7af0;box-shadow:0 0 0 3px rgba(109,53,232,.1)}.wizard-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px}.ref-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.ref-tile{border:1px dashed #cacbd0;border-radius:16px;padding:16px;text-align:center}.ref-tile .ref-ico{font-size:28px}.ref-tile b{display:block}.ref-tile small{display:block;color:var(--muted);margin:4px 0 8px}.advanced{margin-top:16px}.advanced summary{cursor:pointer;color:var(--muted);font-weight:800}

.overview-head{text-align:center;max-width:850px;margin:0 auto 22px}.overview-head h1{font-size:40px;margin:8px 0}.overview-head p{font-size:17px;color:var(--muted);line-height:1.6}.overview-head .btn{float:left}.story-plan-card{max-width:920px;margin:0 auto}.story-plan-card h2{font-size:25px;margin:0 0 6px}.story-map{display:grid;gap:9px;margin-top:18px}.story-map-row{display:grid;grid-template-columns:52px 1fr;gap:14px;align-items:center;padding:13px;border:1px solid var(--line);border-radius:14px}.story-map-row .num{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#f1ebff;color:var(--accent);font-weight:900}.center-action{max-width:430px;margin:20px auto}.loading{min-height:420px;display:grid;place-items:center;text-align:center}.spinner{width:46px;height:46px;border:4px solid #e2e2e6;border-top-color:var(--accent);border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 16px}@keyframes spin{to{transform:rotate(360deg)}}.error-card{max-width:620px;margin:60px auto}.brand-mark{width:58px;height:58px;border-radius:18px;background:#f2ebff;display:grid;place-items:center;font-size:30px;margin-bottom:15px}

/* Studio: intentionally simple */
.studio-top{display:flex;align-items:center;gap:16px;margin-bottom:24px}.episode-scroll{display:flex;gap:8px;overflow:auto;scrollbar-width:none;flex:1}.episode-scroll::-webkit-scrollbar{display:none}.episode-chip{white-space:nowrap;border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 13px;font-weight:800;cursor:pointer}.episode-chip.active{background:var(--accent);color:#fff;border-color:var(--accent)}.episode-chip.done:not(.active){border-color:#a8e8d4;background:#f2fff9}.episode-title-simple{text-align:center;max-width:850px;margin:0 auto 22px}.episode-title-simple h1{font-size:38px;margin:6px 0}.episode-title-simple p{color:var(--muted);font-size:17px;line-height:1.55}.scene-progress{display:flex;justify-content:center;gap:12px;margin:22px auto 28px}.scene-step{border:1px solid var(--line);background:#fff;border-radius:16px;padding:10px 18px;display:flex;align-items:center;gap:9px;cursor:pointer}.scene-step span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#f0f0f2;font-weight:900}.scene-step.active{border:2px solid var(--accent);background:#faf8ff}.scene-step.active span{background:var(--accent);color:#fff}.scene-step.done:not(.active){border-color:#a8e8d4;background:#f5fffb}.director-workspace{max-width:1080px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:30px;padding:26px;display:grid;grid-template-columns:minmax(300px,430px) 1fr;gap:32px;box-shadow:var(--shadow)}.visual-side{position:relative}.shot-label{display:inline-flex;background:#171717;color:#fff;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:800;margin-bottom:10px}.big-preview{aspect-ratio:9/16;border-radius:24px;overflow:hidden;background:linear-gradient(160deg,#26222e,#6334d9);display:grid;place-items:center;min-height:520px}.big-preview img{width:100%;height:100%;object-fit:cover}.preview-empty{color:#fff;text-align:center;display:flex;flex-direction:column;gap:7px}.preview-empty .preview-icon{font-size:54px}.preview-empty b{font-size:24px}.preview-empty span{color:#e5ddff}.guide-side{align-self:center}.step-number{font-size:13px;color:var(--accent);font-weight:900}.guide-side h2{font-size:34px;margin:7px 0 10px}.guide-desc{font-size:17px;color:var(--muted);line-height:1.6;margin:0 0 18px}.scene-summary-simple{background:#f7f7f8;border-radius:18px;padding:17px;margin-bottom:18px}.scene-summary-simple b{font-size:18px;display:block;margin-bottom:6px}.scene-summary-simple span{color:var(--muted);line-height:1.55}.dialogue-box{margin-top:12px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:12px;color:#38383d}.upload-big{border:2px dashed #cfcfd6;border-radius:18px;padding:17px;text-align:center;cursor:pointer;margin-top:12px;display:flex;flex-direction:column;gap:4px;background:#fcfcfd}.upload-big:hover{border-color:#a990ee;background:#faf8ff}.upload-big span{font-size:13px;color:var(--muted)}.simple-more{margin-top:18px;border-top:1px solid var(--line);padding-top:15px}.simple-more>summary{cursor:pointer;color:var(--muted);font-weight:800}.more-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.prompt-box{grid-column:1/-1;background:#f7f7f8;border:1px solid var(--line);border-radius:14px;padding:12px}.prompt-box summary{cursor:pointer;font-weight:800}.prompt-text{white-space:pre-wrap;font-size:12px;line-height:1.6;color:#4f5057;max-height:210px;overflow:auto;margin-top:10px}.bottom-nav-simple{max-width:1080px;margin:18px auto 0;display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center}.bottom-nav-simple>button:last-child{justify-self:end}.scene-counter{color:var(--muted);font-weight:800}.toast{position:fixed;right:22px;bottom:22px;background:#171717;color:#fff;padding:13px 17px;border-radius:13px;opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s;z-index:99}.toast.show{opacity:1;transform:translateY(0)}

.auth-body{min-height:100vh;display:grid;place-items:center;padding:20px}.auth-card{width:min(480px,100%);background:#fff;border:1px solid var(--line);border-radius:28px;padding:34px;box-shadow:var(--shadow)}.auth-card h1{margin:5px 0 8px}.grid-form{display:grid;grid-template-columns:2fr 2fr 1fr auto;gap:10px;align-items:end}.grid-form label{margin:0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:12px;border-bottom:1px solid var(--line);font-size:14px}.inline-form{display:inline}

@media(max-width:900px){.app-shell{padding:22px 14px 60px}.topbar{padding:0 14px}.user-chip{display:none}.brand span{display:none}.simple-choice-grid,.project-grid,.choice-grid,.ref-grid{grid-template-columns:1fr}.genre-grid{grid-template-columns:repeat(2,1fr)}.hero-simple{padding:32px}.director-workspace{grid-template-columns:1fr;padding:18px}.big-preview{min-height:0;max-width:430px;width:100%;margin:0 auto}.guide-side{padding:4px 2px}.studio-top{align-items:flex-start;flex-direction:column}.episode-scroll{width:100%}.scene-progress{overflow:auto;justify-content:flex-start}.scene-step{min-width:120px}.more-actions{grid-template-columns:1fr}.prompt-box{grid-column:auto}.bottom-nav-simple{grid-template-columns:1fr 1fr}.scene-counter{display:none}.bottom-nav-simple>button:last-child{justify-self:stretch}.episode-title-simple h1{font-size:30px}}
@media(max-width:560px){.hero-simple h1{font-size:38px}.hero-simple p{font-size:16px}.wizard-actions{flex-direction:column}.wizard-actions .btn{width:100%}.btn{min-height:46px}.genre-grid{grid-template-columns:1fr 1fr}.scene-progress{gap:8px}.scene-step{padding:9px 12px}.scene-step b{font-size:13px}.guide-side h2{font-size:28px}.director-workspace{border-radius:22px}.bottom-nav-simple{grid-template-columns:1fr}.bottom-nav-simple .btn{width:100%}}

/* ===== SIMPLE UI V4: one scene, two actions, no uploads ===== */
.simple-studio-head{max-width:920px;margin:0 auto 16px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center}.back-link{justify-self:start;border:0;background:transparent;color:var(--muted);font-weight:800;cursor:pointer;padding:8px 0}.episode-count{font-weight:900;background:#fff;border:1px solid var(--line);border-radius:999px;padding:9px 14px}.episode-hero-clean{max-width:920px;margin:0 auto;text-align:center;padding:12px 10px 10px}.episode-hero-clean h1{font-size:38px;margin:6px 0 8px}.episode-hero-clean p{max-width:700px;margin:0 auto;color:var(--muted);font-size:17px;line-height:1.6}.scene-dots{display:flex;justify-content:center;gap:12px;margin:18px auto 24px}.scene-dot{border:0;background:transparent;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:5px;color:var(--muted)}.scene-dot span{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#e9e9ed;font-weight:900}.scene-dot small{font-weight:800}.scene-dot.active{color:var(--accent)}.scene-dot.active span{background:var(--accent);color:#fff;box-shadow:0 7px 18px rgba(109,53,232,.24)}
.easy-workflow{max-width:920px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:28px;padding:30px;box-shadow:0 16px 44px rgba(17,24,39,.06)}.scene-info-clean{text-align:center;max-width:720px;margin:0 auto 26px}.scene-number-badge{display:inline-flex;background:#f3efff;color:var(--accent);font-weight:900;border-radius:999px;padding:8px 12px;font-size:13px}.scene-info-clean h2{font-size:30px;margin:12px 0 8px}.scene-info-clean>p{color:var(--muted);font-size:16px;line-height:1.65;margin:0}.dialogue-clean{margin:16px auto 0;background:#fafafa;border:1px solid var(--line);border-radius:16px;padding:14px 18px;text-align:left;max-width:640px}.dialogue-clean span{display:block;color:var(--muted);font-size:12px;font-weight:900;text-transform:uppercase;margin-bottom:4px}.dialogue-clean strong{font-size:18px;line-height:1.55}.two-step-flow{max-width:760px;margin:0 auto}.easy-step{display:grid;grid-template-columns:54px 1fr;gap:16px;background:#fbfbfc;border:1px solid var(--line);border-radius:22px;padding:20px}.easy-step.flow-step{background:#fffaf0;border-color:#f2d59b}.easy-step-no{width:46px;height:46px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;font-size:20px;font-weight:900}.flow-step .easy-step-no{background:#f59e0b}.easy-step-copy h3{font-size:23px;margin:1px 0 6px}.easy-step-copy p{margin:0;color:var(--muted);line-height:1.55}.tiny-note{margin-top:10px;font-size:13px;color:#5c5d64;background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 12px}.one-action{grid-column:1/-1;width:100%;margin-top:4px}.flow-arrow{text-align:center;font-size:28px;color:#aaa;margin:9px 0}.advanced-tools{max-width:760px;margin:22px auto 0;border-top:1px solid var(--line);padding-top:16px}.advanced-tools>summary{text-align:center;cursor:pointer;color:#8a8b91;font-weight:800}.advanced-tools-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:14px}.advanced-tools-grid .prompt-box{grid-column:1/-1}.simple-scene-nav{max-width:920px;margin:16px auto 0;display:flex;justify-content:space-between;gap:12px}.simple-scene-nav .btn{min-width:170px}.ref-grid,.upload-big,.big-preview,.visual-side,.director-workspace,.studio-top,.episode-scroll,.scene-progress{display:none!important}
@media(max-width:760px){.simple-studio-head{grid-template-columns:1fr auto}.episode-count{justify-self:end}.episode-hero-clean h1{font-size:30px}.easy-workflow{padding:20px;border-radius:22px}.easy-step{grid-template-columns:44px 1fr;padding:16px}.easy-step-no{width:40px;height:40px}.easy-step-copy h3{font-size:20px}.advanced-tools-grid{grid-template-columns:1fr}.advanced-tools-grid .prompt-box{grid-column:auto}.simple-scene-nav{flex-direction:column-reverse}.simple-scene-nav .btn{width:100%}.scene-info-clean h2{font-size:26px}}


/* ===== V6 PROMPT CONFIRMATION MODAL ===== */
.prompt-modal-backdrop{position:fixed;inset:0;background:rgba(17,18,22,.58);backdrop-filter:blur(5px);display:grid;place-items:center;padding:22px;z-index:9999;animation:pmFade .16s ease-out}.prompt-modal{width:min(760px,100%);max-height:min(88vh,820px);overflow:auto;background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:28px;box-shadow:0 30px 90px rgba(0,0,0,.25);padding:30px;position:relative;animation:pmUp .18s ease-out}.prompt-modal-x{position:absolute;right:18px;top:16px;width:40px;height:40px;border:0;border-radius:50%;background:#f3f3f5;font-size:26px;line-height:1;cursor:pointer;color:#555}.prompt-modal-icon{width:54px;height:54px;border-radius:16px;background:#eafbf4;color:#07875f;display:grid;place-items:center;font-size:30px;font-weight:1000;margin-bottom:14px}.prompt-modal h2{font-size:30px;margin:0 0 6px}.prompt-modal-lead{font-size:16px;line-height:1.55;color:var(--muted);margin:0 0 14px}.prompt-howto{background:#f7f7f8;border:1px solid var(--line);border-radius:14px;padding:13px 15px;font-size:14px;line-height:1.6;margin-bottom:17px}.prompt-modal-label{display:block;font-size:13px;font-weight:900;color:#595a61;margin-bottom:7px}.prompt-modal-text{width:100%;min-height:260px;resize:vertical;border:1px solid #d9d9df;border-radius:16px;background:#fbfbfc;padding:15px;font:13px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;color:#24252a;outline:none}.prompt-modal-text:focus{border-color:#a88bef;box-shadow:0 0 0 3px rgba(109,53,232,.09)}.prompt-modal-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:10px;margin-top:16px}.prompt-modal-actions .btn{min-height:54px;font-size:16px}.prompt-modal-close-link{display:block;margin:13px auto 0;border:0;background:transparent;color:#85868d;text-decoration:underline;cursor:pointer;padding:6px 10px}.prompt-copy-again{background:#fff}.prompt-modal .btn.flow{background:#171a22;color:#fff;border-color:#171a22}.prompt-modal .btn.flow:hover{background:#0f1117}@keyframes pmFade{from{opacity:0}to{opacity:1}}@keyframes pmUp{from{opacity:.4;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}@media(max-width:620px){.prompt-modal-backdrop{padding:10px}.prompt-modal{padding:22px 16px;border-radius:22px}.prompt-modal h2{font-size:24px;padding-right:42px}.prompt-modal-text{min-height:220px}.prompt-modal-actions{grid-template-columns:1fr}.prompt-modal-actions .btn{width:100%}}


/* ===== V7 EPISODE VIDEO MERGER — no API / no key ===== */
.episode-merge-cta{max-width:760px;margin:18px auto 0;display:grid;grid-template-columns:54px 1fr;gap:16px;background:linear-gradient(135deg,#fff8e8,#fffdf8);border:1px solid #f2d59b;border-radius:22px;padding:20px}.episode-merge-no{width:46px;height:46px;border-radius:50%;background:#f59e0b;color:#fff;display:grid;place-items:center;font-size:20px;font-weight:900}.episode-merge-copy h3{font-size:23px;margin:1px 0 6px}.episode-merge-copy p{margin:0;color:var(--muted);line-height:1.55}.episode-merge-cta .one-action{grid-column:1/-1}
.merge-modal-backdrop{position:fixed;inset:0;background:rgba(17,18,22,.62);backdrop-filter:blur(6px);display:grid;place-items:center;padding:18px;z-index:10000}.merge-modal{width:min(860px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:28px;padding:30px;position:relative;box-shadow:0 30px 100px rgba(0,0,0,.28)}.merge-icon{width:58px;height:58px;border-radius:18px;background:#fff3d6;display:grid;place-items:center;font-size:30px;margin-bottom:12px}.merge-modal h2{font-size:30px;margin:0 0 6px}.merge-lead{margin:0 0 12px;color:var(--muted);font-size:16px;line-height:1.55}.merge-privacy{background:#ecfdf5;border:1px solid #b7ecd7;color:#087357;border-radius:14px;padding:11px 13px;font-size:13px;font-weight:800;margin-bottom:18px}.merge-file-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.merge-file-card{margin:0;border:2px dashed #d6d6dc;background:#fbfbfc;border-radius:18px;min-height:150px;padding:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;cursor:pointer;transition:.15s}.merge-file-card:hover{border-color:#9f7cf0;background:#faf8ff}.merge-file-no{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#eee8ff;color:var(--accent);font-weight:900;margin-bottom:10px}.merge-file-card b{font-size:17px}.merge-file-card small{display:block;color:var(--muted);margin-top:7px;max-width:100%;overflow:hidden;text-overflow:ellipsis}.merge-file-card small.chosen{color:#07875f;font-weight:800}.merge-order{text-align:center;color:#65666d;padding:14px 8px;font-size:14px}.merge-status{margin-top:16px;background:#f7f7f8;border-radius:14px;padding:13px}.merge-progress-track{height:10px;background:#e6e6ea;border-radius:999px;overflow:hidden;margin-bottom:9px}.merge-progress-bar{height:100%;width:0;background:linear-gradient(90deg,#6d35e8,#f5a524);transition:width .18s}.merge-result{margin-top:18px;border-top:1px solid var(--line);padding-top:18px}.merge-done{font-weight:900;color:#07875f;font-size:18px;margin-bottom:10px}.merge-result video{display:block;width:100%;max-height:520px;background:#111;border-radius:18px;margin-bottom:12px}.merge-error{color:#b42318;font-weight:700;line-height:1.55}
@media(max-width:700px){.episode-merge-cta{grid-template-columns:44px 1fr;padding:16px}.episode-merge-no{width:40px;height:40px}.merge-modal{padding:22px 15px;border-radius:22px}.merge-file-grid{grid-template-columns:1fr}.merge-file-card{min-height:110px}.merge-modal h2{font-size:25px;padding-right:44px}}


/* ===== V10 HOME VIDEO MERGER ===== */
.home-tool-card{margin:26px 0 10px;background:linear-gradient(135deg,#fff8e8,#fffdf8);border:1px solid #f0d59d;border-radius:24px;padding:22px 24px;display:grid;grid-template-columns:58px 1fr auto;gap:18px;align-items:center;box-shadow:0 8px 26px rgba(17,24,39,.04)}.home-tool-icon{width:58px;height:58px;border-radius:18px;background:#ffefd0;display:grid;place-items:center;font-size:30px}.home-tool-copy h2{margin:3px 0 5px;font-size:24px}.home-tool-copy p{margin:0;color:var(--muted);line-height:1.5}.general-file-picker{margin:0 0 16px;border:2px dashed #d4d4db;border-radius:18px;min-height:128px;padding:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;cursor:pointer;background:#fbfbfc}.general-file-picker:hover{border-color:#9f7cf0;background:#faf8ff}.general-picker-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#eee8ff;color:var(--accent);font-size:27px;font-weight:900;margin-bottom:8px}.general-file-picker b{font-size:18px}.general-file-picker small{margin-top:5px;color:var(--muted)}.general-merge-list{display:grid;gap:8px;margin:8px 0 4px}.general-empty{text-align:center;color:var(--muted);padding:18px;background:#f7f7f8;border-radius:14px}.general-merge-row{display:grid;grid-template-columns:38px 1fr auto;gap:11px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:10px 12px;background:#fff}.general-merge-no{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#eee8ff;color:var(--accent);font-weight:900}.general-file-meta{min-width:0}.general-file-meta b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.general-file-meta small{display:block;color:var(--muted);margin-top:2px}.general-row-actions{display:flex;gap:5px}.mini-order,.mini-remove{border:1px solid var(--line);background:#fff;border-radius:9px;padding:7px 9px;font-weight:800;cursor:pointer}.mini-order:disabled{opacity:.3;cursor:default}.mini-remove{color:#b42318}.general-merge-modal{width:min(900px,100%)}
@media(max-width:760px){.home-tool-card{grid-template-columns:50px 1fr}.home-tool-card .btn{grid-column:1/-1;width:100%}.home-tool-icon{width:50px;height:50px}.general-merge-row{grid-template-columns:34px 1fr}.general-row-actions{grid-column:1/-1;justify-content:flex-end}.general-file-meta b{white-space:normal}}

/* V11 — one-by-one video picker: designed for first-time computer/mobile users */
.general-add-one{width:100%;border:2px solid #8b5cf6;background:linear-gradient(180deg,#faf7ff,#f3edff);border-radius:20px;padding:18px 20px;display:flex;align-items:center;justify-content:center;gap:14px;cursor:pointer;text-align:left;color:#17131f;margin:4px 0 12px;transition:.15s ease}.general-add-one:hover{transform:translateY(-1px);box-shadow:0 8px 24px rgba(109,40,217,.12)}.general-add-one:disabled{opacity:.55;cursor:default;transform:none;box-shadow:none}.general-add-one .general-picker-icon{flex:0 0 46px;margin:0}.general-add-copy{display:flex;flex-direction:column;gap:3px}.general-add-copy b{font-size:19px}.general-add-copy small{color:var(--muted);font-size:14px}.general-count-card{background:#f7f7f8;border:1px solid #ececf0;border-radius:15px;padding:12px 14px;margin-bottom:10px;text-align:center}.general-count-card b{display:block;font-size:16px}.general-count-card small{display:block;color:var(--muted);margin-top:3px}.general-simple-tip{text-align:center;color:var(--muted);font-size:13px;margin:10px 0 14px}.general-merge-list:empty{display:none}.general-row-actions .mini-order{min-width:62px}
@media(max-width:760px){.general-merge-modal{padding:20px 16px}.general-add-one{padding:16px 14px;justify-content:flex-start}.general-add-copy b{font-size:18px}.general-add-copy small{font-size:13px}.general-merge-row{padding:12px 10px}.general-row-actions{justify-content:stretch}.general-row-actions button{flex:1;min-height:42px}.general-count-card{padding:11px 10px}}
