@import url('https://fonts.googleapis.com/css2?family=Anton&family=Bebas+Neue&family=Caveat:wght@700&family=Dancing+Script:wght@700&family=Fredoka:wght@600&family=Lobster&family=Montserrat:wght@700&family=Oswald:wght@700&family=Pacifico&family=Playfair+Display:wght@700&family=Poppins:wght@700&family=Roboto:wght@700&display=swap');
:root{--navy:#0d1b44;--navy2:#111d3e;--pink:#c6156a;--gold:#ffbd59;--white:#fff;--ink:#f3f6ff;--muted:#b6c3e5;--line:#ffffff24;--panel:#152752;--violet:#7f76f3;color-scheme:dark;font-family:system-ui,-apple-system,'Segoe UI',sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(ellipse at 15% 3%,#1c346b 0,transparent 36%),linear-gradient(135deg,#0c1730,#131d42 80%);color:var(--ink);min-height:100svh}a{color:inherit;text-decoration:none}button,select,textarea,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--gold);outline-offset:2px}.header{padding:11px 18px;background:#09132be5;border-bottom:1px solid var(--line)}.header-inner{max-width:1180px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:12px}.wordmark{font-size:20px;white-space:nowrap}.wordmark span{color:#ff7eb6}.privacy{font-size:12px;color:#bbdbf3}.privacy i{display:inline-block;height:8px;width:8px;margin-right:6px;background:#53e2a8;border-radius:50%}.home-link{font-size:13px;color:#d6e3ff;border:1px solid #ffffff33;border-radius:20px;padding:7px 12px}.studio{max-width:1160px;margin:auto;padding:12px 14px 32px}.headline{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.headline h1{font-size:clamp(19px,2.5vw,30px);margin:4px 0}.headline em{color:#ff8ac6;font-style:normal}.headline p{margin:0;font-size:13px;color:var(--muted)}.source-actions{display:flex;gap:8px;flex-wrap:wrap}.light-btn,.small-btn,.ghost,.minor-action,.tiny,.pill-list button{border:1px solid #ffffff33;border-radius:12px;background:#ffffff12;color:#fff;padding:10px 12px;font-size:13px;font-weight:750}.light-btn:hover,.small-btn:hover,.ghost:hover,.minor-action:hover{background:#ffffff22}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(355px,.8fr);gap:18px;align-items:start}.stage-panel{border:1px solid #ffffff23;border-radius:23px;background:#081128ac;padding:12px;min-width:0}.stage-outer{height:min(67svh,660px);display:flex;align-items:center;justify-content:center}.stage{position:relative;height:100%;width:auto;aspect-ratio:9/16;background:#09132c;overflow:hidden;box-shadow:0 10px 34px #000b;border-radius:16px;max-width:100%;touch-action:none;user-select:none}.stage canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}.stage:active canvas{cursor:grabbing}.safe-lines{pointer-events:none;position:absolute;inset:12% 22% 20% 12%;border:1px dashed #ffffff70;border-radius:9px;opacity:.5}.safe-lines[hidden]{display:none}.center-mark{position:absolute;pointer-events:none;z-index:3;background:#ff55b5;box-shadow:0 0 8px #ff80cc}.center-mark.vertical{top:0;bottom:0;left:50%;width:1.5px}.center-mark.horizontal{left:0;right:0;top:50%;height:1.5px}.stage-tip{position:absolute;bottom:4px;left:4px;right:4px;background:#070d219c;padding:6px;border-radius:8px;text-align:center;font-size:10px;pointer-events:none;color:#e5efff}.stage-footer{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:9px 3px 1px;font-size:12px;color:var(--muted)}.stage-footer .small-btn{padding:7px 10px}.controls-panel{border:1px solid var(--line);background:linear-gradient(145deg,#17264d,#121d3b);border-radius:23px;overflow:hidden;min-width:0}.tool-tabs{display:grid;grid-template-columns:repeat(5,1fr);border-bottom:1px solid var(--line)}.tool{border:0;background:transparent;color:#b7c6e7;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:12px 5px;gap:4px;font-size:21px;border-bottom:3px solid transparent}.tool span{font-size:11px;font-weight:750}.tool.active{color:#fff;background:#ffffff10;border-bottom-color:#ff6eb0}.tool-panel{display:none;padding:16px;min-height:280px;max-height:55svh;overflow-y:auto;scrollbar-width:thin}.tool-panel.active{display:block}.tool-panel h2{font-size:17px;margin:0 0 13px}.tool-panel h3{font-size:14px}.panel-heading,.panel-row{display:flex;justify-content:space-between;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:10px}.mini-label{display:block;font-size:12px;font-weight:800;color:#bbc9e8;margin:9px 0 6px}.tool-panel textarea,.tool-panel input[type=search],.tool-panel select,.admin-main input,.admin-main select,.admin-main textarea{width:100%;min-width:0;background:#0d1935;border:1px solid #40517c;border-radius:12px;padding:10px 12px;color:#fff;outline:none}.tool-panel textarea:focus,.tool-panel input:focus{border-color:#ff79bd}.tool-panel textarea{resize:vertical;min-height:65px}.panel-row select{width:auto;flex:1;max-width:180px}.panel-row input[type=color]{width:42px;height:38px;border:0;background:transparent;cursor:pointer}.font-choices,.pill-list,.palette,.preset-grid,.filter-grid{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 13px}.font-choices button,.preset-grid button,.filter-grid button{border:1px solid #ffffff24;background:#1b2f5b;border-radius:13px;padding:9px 12px;color:white}.font-choices button.selected,.preset-grid button.selected,.filter-grid button.selected,.pill-list button.selected{background:#ae2b78;border-color:#ff8bc5}.font-choices button{font-size:16px;min-width:83px}.swatch{width:30px;height:30px;border-radius:50%;border:2px solid #ffffff44;box-shadow:0 2px 3px #0003;padding:0}.swatch.selected{outline:2px solid white;outline-offset:2px}.palette{gap:10px;align-items:center}.palette input[type=color]{width:32px;height:32px;border:0;background:transparent}.field-inline{display:flex;align-items:center;gap:12px}.field-inline label{flex:1;font-size:13px}.field-inline input{width:100%;accent-color:#ff79bd}.field-inline output{min-width:38px}.ghost{padding:6px 9px}.ghost.danger{color:#ffabc5}.minor-action{width:100%;margin-top:12px}.helper{font-size:12px;color:#aebcdf;line-height:1.5}.external-ref{font-size:12px;color:#b6d9ff}.sticker-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:5px;max-height:215px;overflow:auto}.sticker-grid button{aspect-ratio:1;border:0;background:#ffffff11;border-radius:11px;font-size:27px;position:relative}.sticker-grid button:hover{background:#ffffff25}.noto-dot{position:absolute;top:1px;right:2px;color:#87deed;font-size:9px}.asset-stickers,.asset-media{display:flex;flex-wrap:wrap;gap:9px}.asset-stickers button,.asset-media button{border:1px solid #ffffff35;background:#ffffff0d;border-radius:12px;max-width:145px;padding:6px;color:#fff;font-size:11px;overflow:hidden;text-overflow:ellipsis}.asset-stickers img,.asset-media img{height:73px;max-width:110px;display:block;object-fit:contain;margin:auto}.asset-media video{height:73px;max-width:110px}.filter-grid{display:grid;grid-template-columns:repeat(3,1fr)}.filter-grid button{min-height:62px}.preset-grid{display:grid;grid-template-columns:repeat(2,1fr)}.preset-grid button{font-size:12px}.pill-list button{padding:8px 12px}.toggle-line{display:flex;gap:9px;align-items:center;font-size:13px;margin:13px 0}.toggle-line input{accent-color:#ed65ae}.export-bar{padding:13px 16px;border-top:1px solid var(--line);display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:#0a1430}.export-btn,.action{background:linear-gradient(110deg,#fc73b0,#eeb2ed);color:#271231;border:0;padding:12px 17px;border-radius:14px;font-weight:900;text-align:center;box-shadow:0 7px 18px #d5287432}.export-btn{flex:1}.undo-btn{background:#ffffff16;border:1px solid var(--line);border-radius:12px;color:white;font-size:22px;padding:7px 13px}#status{width:100%;font-size:12px;color:#d1d8f8}.footer{display:flex;gap:16px;justify-content:center;align-items:center;padding:16px 13px;color:#8ea2cc;font-size:11px}.footer a{color:#bdd5fa}.pi-admin{opacity:.28;font-family:Georgia,serif;font-size:14px;padding:9px}.pi-admin:hover{opacity:1}.modal{position:fixed;z-index:50;inset:0;background:#010815eb;display:flex;align-items:center;justify-content:center;padding:12px;backdrop-filter:blur(12px)}.modal[hidden]{display:none}.modal-card{background:linear-gradient(145deg,#172758,#0d193a);border:1px solid #ffffff33;color:#fff;border-radius:23px;max-height:95dvh;overflow:auto;position:relative;padding:22px;width:min(440px,100%);text-align:center;box-shadow:0 20px 70px #0009}.modal-card h2{font-size:20px;margin:5px 26px 15px}.modal-close{position:absolute;top:10px;right:10px;background:#ffffff16;border:0;color:#fff;border-radius:50%;height:36px;width:36px}.ring{--p:0;display:grid;place-items:center;margin:18px auto;border-radius:50%;width:168px;height:168px;background:conic-gradient(#ff78b6 calc(var(--p)*1%),#ffffff1f 0);position:relative}.ring:before{content:'';position:absolute;inset:11px;border-radius:50%;background:#172650}.ring span{position:relative;display:flex;flex-direction:column;align-items:center;font-size:44px;line-height:1.4}.ring b{font-size:18px}.export-modal p{color:#c6d5f2}.export-modal video{max-height:45dvh;max-width:100%;border-radius:12px;background:#000}.download-link{display:block;margin:13px auto}.camera-frame{position:relative;aspect-ratio:9/16;max-height:56dvh;max-width:100%;background:#050819;margin:0 auto 12px;overflow:hidden;border-radius:16px}.camera-frame video{width:100%;height:100%;object-fit:cover}.countdown{position:absolute;inset:0;display:grid;place-items:center;font-size:90px;font-weight:900;color:white;text-shadow:0 0 25px #000}.camera-controls{display:flex;gap:8px;flex-wrap:wrap;text-align:left}.camera-controls label{flex:1;min-width:100px;font-size:11px}.camera-controls select{width:100%;padding:8px;background:#0d1935;color:white;border-radius:10px;border:1px solid #ffffff44}.record-btn{border:0;border-radius:20px;background:#eb2968;color:#fff;padding:13px 30px;font-weight:850;margin-top:10px}.admin-body{background:#101a37}.admin-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px;background:#08122b;font-size:13px}.admin-main{max-width:960px;margin:auto;padding:15px}.admin-card{background:#1b2b51;border:1px solid var(--line);border-radius:20px;padding:18px;margin-bottom:15px}.admin-card summary{font-size:17px;font-weight:800;cursor:pointer;padding:3px}.admin-card h1{font-size:22px}.admin-card label{display:block;font-size:13px;margin:10px 0}.admin-card input,.admin-card select,.admin-card textarea{display:block;margin-top:6px}.admin-card input[type=checkbox]{display:inline-block;width:auto;margin:0;accent-color:#ff68ab}.admin-card .toggle{display:flex;align-items:center;gap:10px}.admin-card .toggle span{flex:1}.setting-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 20px;padding:12px 0}.admin-main .action{display:inline-block;margin:10px 0;cursor:pointer}.admin-settings>.action{width:100%;margin:5px 0 20px}.admin-card.login{max-width:450px;margin:5vh auto}.admin-card.login .action{width:100%}.subtle{font-size:13px;color:var(--muted);line-height:1.6}.error-notice,.success-notice{padding:12px 16px;border-radius:12px;background:#953453;color:white}.success-notice{background:#16664e}.upload-form{display:flex;gap:12px;flex-wrap:wrap;align-items:end}.upload-form label{flex:1;min-width:150px}.admin-files{display:grid;gap:5px}.file-row{padding:8px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);font-size:13px;gap:10px}.file-row small{display:block;color:var(--muted)}.tiny{background:#552d52;color:white;border:1px solid #ffffff44;border-radius:9px;padding:5px 10px}.admin-card textarea{resize:vertical;min-height:110px}
@media(max-width:850px){.privacy{display:none}.headline{display:block}.headline .source-actions{margin-top:12px}.editor-layout{grid-template-columns:1fr}.stage-panel{padding:5px 5px 2px;border-radius:15px}.stage-outer{height:min(63svh,560px)}.stage{border-radius:12px}.controls-panel{border-radius:16px}.tool-panel{min-height:130px;max-height:35svh}.header{padding:9px 12px}.wordmark{font-size:17px}.footer{padding-bottom:calc(12px + env(safe-area-inset-bottom))}.setting-grid{grid-template-columns:1fr}.source-actions .light-btn{flex:1}.headline h1{font-size:23px}.stage-tip{font-size:9px}}
@media(max-width:420px){.tool-panel{padding:12px}.stage-outer{height:min(60svh,500px)}.stage-footer{padding:6px}.tool-tabs .tool{padding:8px 2px;font-size:19px}.sticker-grid{grid-template-columns:repeat(7,1fr)}.sticker-grid button{font-size:22px}.tool-panel{max-height:33svh}.light-btn{padding:9px}.headline p{font-size:12px}}
@media(orientation:landscape) and (max-height:550px){.editor-layout{grid-template-columns:1fr 1.15fr}.stage-outer{height:66svh}.tool-panel{max-height:45svh}.headline h1{font-size:18px}.headline p{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* VideoGen 2026 v4 : contrôles tactiles, prévisualisations et confirmations */
.delete-selection{position:absolute;z-index:8;width:32px;height:32px;border-radius:50%;border:2px solid #fff;background:#d82468;color:white;font-weight:900;box-shadow:0 3px 13px #0008;touch-action:manipulation;display:grid;place-items:center;transform:translate(-50%,-25%)}
.delete-selection[hidden]{display:none}
.quote-choices,.texture-choices{display:flex;gap:7px;overflow-x:auto;padding:5px 1px 9px;scrollbar-width:thin}
.quote-choices button{flex:0 0 auto;max-width:210px;text-align:left;background:#223660;border:1px solid #7583a966;border-radius:11px;color:#fff;padding:10px;font-size:12px}
.texture-choices button{flex:0 0 73px;width:73px;height:52px;background:#152752;border:1px solid #ffffff46;border-radius:10px;padding:4px;overflow:hidden}
.texture-choices img{width:100%;height:100%;object-fit:cover}
.kitchen-panel{margin-top:13px;border:1px solid #ffffff24;border-radius:15px;padding:10px;background:#111d42}
.kitchen-panel summary{font-weight:750;cursor:pointer}
.kitchen-pick{display:flex;gap:14px;align-items:center;justify-content:center;margin:14px 0}
.kitchen-pick span{display:grid;place-items:center;width:62px;height:62px;border:2px dashed #f6a6cb;border-radius:15px;font-size:28px}
.kitchen-emoji{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;max-height:150px;overflow:auto}
.kitchen-emoji button{padding:5px;background:#ffffff17;border-radius:8px;border:none;font-size:21px}
.kitchen-result{height:80px;width:80px;object-fit:contain;vertical-align:middle;margin-right:12px}
.sticker-grid button .emoji-animated-preview{display:block;width:72%;height:72%;object-fit:contain;margin:auto}
.ring span img{width:72px;height:72px;object-fit:contain;display:block}.title-with-dove{display:inline-flex;align-items:center;gap:10px}.title-dove{width:28px;height:28px;object-fit:contain;vertical-align:middle}
.file-row{align-items:center}.file-preview{display:flex;align-items:center;gap:13px;min-width:0;overflow-wrap:anywhere}
.file-preview img,.file-preview video{width:72px;height:72px;object-fit:contain;border-radius:9px;background:#0c1632;flex-shrink:0}
.file-actions{display:flex;align-items:center;gap:6px}.file-actions form{display:inline-flex}
.file-actions .tiny{white-space:nowrap;text-decoration:none;padding:8px 10px}
.admin-upload-progress{width:100%;height:14px;accent-color:#ef79c0}.admin-upload-label{font-size:12px;color:#d9e3f9}
.camera-frame video{object-position:center}.camera-modal .toggle-line{justify-content:center}
@media(max-width:600px){.file-preview img,.file-preview video{width:55px;height:60px}.file-row{gap:6px}.file-actions .tiny{padding:6px 8px;font-size:12px}.kitchen-emoji{grid-template-columns:repeat(7,1fr)}}

.transfer-notice{position:sticky;top:60px;z-index:15;margin:8px auto 13px;padding:11px 17px;border:1px solid #e79ccc;border-radius:14px;background:#24355f;color:#fff;text-align:center;font-size:13px;box-shadow:0 4px 16px #0005}.transfer-notice[hidden]{display:none}

.sticker-asset{max-width:135px;background:#172752;border:1px solid #ffffff22;border-radius:12px;padding:5px;text-align:center}.asset-stickers .sticker-asset button{width:100%;border:none;max-width:none}.sticker-asset a{display:block;color:#ffc9e6;font-size:11px;text-decoration:none;padding:5px 0;border-top:1px solid #ffffff2c}

/* V4.2 — Choix direct du ratio avant de filmer (SVG vectoriels précis). */
.camera-ratio-intro{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px;margin:8px 0 10px;text-align:left}.camera-ratio-intro small{font-size:11px;color:#b5c5e9}
.camera-ratio-choices{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin:0 0 12px}
.camera-ratio-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;padding:8px 2px;border:1px solid #54658b;border-radius:11px;background:#17234c;color:#dae3fa;font-size:11px;font-weight:800;cursor:pointer}
.camera-ratio-button svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.camera-ratio-button[aria-pressed="true"]{border-color:#ff8ec5;background:#8b286c;color:white;box-shadow:0 0 0 1px #ff8ec555}
.camera-ratio-button:focus-visible{outline:3px solid #afdafa;outline-offset:2px}
.camera-ratio-button:disabled{opacity:.45}
.camera-frame{aspect-ratio:9/16;max-height:min(49dvh,480px);width:min(100%,calc(49dvh * var(--cam-ratio, 0.5625)));height:auto;transition:width .18s ease,aspect-ratio .18s ease;}
.camera-frame video{object-fit:contain;object-position:center;background:#030816}
.camera-explain{font-size:11px;color:#bac9e8;line-height:1.4;margin:3px 0 9px;text-align:left}
.camera-fit{margin:5px 0!important;font-size:12px!important}
@media(max-width:480px){.camera-modal{padding:17px 13px}.camera-ratio-choices{gap:4px}.camera-ratio-button{padding:7px 1px;font-size:10px}.camera-ratio-button svg{width:24px;height:24px}.camera-frame{max-height:min(43dvh,415px);width:min(100%,calc(43dvh * var(--cam-ratio, 0.5625)))}}

/* Ratio formats inside the main editor, with the same compact geometric icons. */
.preset-grid button{display:flex;align-items:center;gap:7px;text-align:left;min-height:48px}
.preset-grid button svg{width:27px;height:27px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.preset-grid button span{flex:1;min-width:0}

/* V4.3 : affichage discret de la source réelle et durée personnalisée */
.camera-source-info{font-size:11px;color:#b8e5fd;line-height:1.4;margin:3px 0 8px;text-align:left}
.duration-custom{display:flex;align-items:center;gap:10px;max-width:240px;margin-bottom:4px}
.duration-custom input{background:#0d1935;color:#fff;border:1px solid #40517c;border-radius:12px;padding:9px;width:125px;max-width:100%}
.duration-custom span{font-size:12px;color:#b6c3e5}
@media(max-width:500px){.duration-custom{max-width:100%}}

/* V4.4 — polices à défilement horizontal, citations et textures compactes */

.font-scroll-area{max-width:100%;overflow:hidden;position:relative}
.font-choices{display:flex!important;flex-wrap:nowrap!important;max-width:100%;width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scroll-snap-type:x mandatory;padding:6px 3px 12px;gap:8px;scrollbar-width:thin;overscroll-behavior-x:contain}
.font-choices button{flex:0 0 115px;min-width:115px;max-width:150px;min-height:62px;font-size:18px;scroll-snap-align:start;white-space:normal;overflow:hidden;text-overflow:ellipsis}
.texture-choices{gap:5px}
.texture-choices button{flex:0 0 37px!important;width:37px!important;height:26px!important;min-width:37px!important;border-radius:6px;padding:2px}
.texture-choices img{width:100%;height:100%;object-fit:cover}
.quote-choices button{min-width:120px;max-width:190px;white-space:normal}
.camera-mic-row{display:flex;align-items:center;gap:10px;background:#661b35a6;border:1px solid #ff8ca055;border-radius:13px;padding:10px;margin:10px 0;color:#ffe0ea;text-align:left}
.camera-mic{flex:0 0 auto;background:#b6224e;border:1px solid #ff9cad;border-radius:12px;padding:10px 12px;font-weight:900;color:#fff;min-width:152px}
.camera-mic[aria-pressed="true"]{background:#116450;border-color:#70dbb1}
.camera-mic-row span{font-size:12px;line-height:1.45}
.camera-mic-row[hidden]{display:none}
.audio-tools{border:1px solid #5673a855;border-radius:14px;background:#11244b;padding:12px;margin:16px 0}
.audio-tools h3{margin:0 0 10px}.voice-controls{display:flex;gap:8px;flex-wrap:wrap}
.voice-controls button{flex:1;min-width:130px}.audio-tools audio{width:100%;max-width:100%;margin:8px 0}
@media(max-width:430px){.camera-mic-row{flex-wrap:wrap}.camera-mic{width:100%}.voice-controls button{min-width:100%}}

/* V4.5 — texture none icon, audio library and ambience controls */
.clear-texture-btn{display:inline-flex;align-items:center;gap:10px;margin-top:6px}
.texture-none-icon{display:inline-grid;place-items:center;width:36px;height:26px;border:1px solid #ffffff55;border-radius:7px;background:#18264d}
.texture-none-icon svg{width:24px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.audio-levels{display:grid;gap:8px;margin:10px 0 12px}.audio-levels .field-inline{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px}.audio-levels .field-inline span{font-size:12px;color:#dbe7ff}.audio-levels input[type=range]{grid-column:1/2;width:100%;accent-color:#ff7dbd}.audio-levels output{font-size:12px;color:#ffd4eb;min-width:44px;text-align:right}
.audio-library-box{margin-top:12px;padding:10px;border:1px solid #ffffff26;border-radius:13px;background:#0d1b3b}
.audio-tabs{margin-top:8px}.audio-tabs button{flex:1 1 auto}
.audio-asset-list{display:grid;gap:8px;max-height:210px;overflow:auto;padding:3px 1px 4px}
.audio-asset{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#182a56;border:1px solid #ffffff1f;border-radius:12px;padding:8px 10px;text-align:left;color:#fff}
.audio-asset-meta{display:flex;flex-direction:column;min-width:0}.audio-asset-title{font-weight:800;font-size:13px;overflow-wrap:anywhere}.audio-asset small{font-size:11px;color:#b9c8e6}.audio-asset.active{border-color:#ff96cb;background:#7f2a65}.audio-asset-preview{font-size:18px}
.audio-warning{color:#ffe7b2}.footer{flex-wrap:wrap;text-align:center}
@media(max-width:430px){.audio-asset{align-items:flex-start;flex-direction:column}.audio-asset button{width:100%}}

/* VideoGen V4.6: compact mirror speed control and simplified weather UI */
.water-speed{padding:6px 0 8px}.water-speed[hidden]{display:none}.water-speed .mini-label{display:flex;justify-content:space-between;gap:12px}.water-speed output{color:#ffb5d9}.water-speed input{width:100%;accent-color:#ff80bf}

/* V4.7 : navigateur de médias, Emoji Kitchen avec deux emplacements sélectionnables */
.media-search-link{display:flex;align-items:center;justify-content:center;gap:10px;margin:14px 0 16px;padding:11px 14px;border:1px solid #ff85c9;background:#c6156a;color:#fff;font-size:14px;font-weight:800;border-radius:13px;text-decoration:none;box-shadow:0 6px 18px #c6156a48;}
.media-search-link:hover{background:#df257d}.media-search-link img{width:26px;height:26px;flex:none;filter:invert(1);}
.kitchen-pick .kitchen-slot{display:grid;place-items:center;width:62px;height:62px;border:2px dashed #f6a6cb;border-radius:15px;font-size:28px;background:#162348;color:white;padding:0;cursor:pointer}
.kitchen-pick .kitchen-slot.active{background:#7f255e;border-style:solid;border-color:#ffb9d9}
.kitchen-result{display:block;width:110px;height:110px;object-fit:contain;margin:10px auto}
.kitchen-panel[hidden]{display:none}

/* V5.0 — vignettes JPG statiques, sans nom affiché dans la galerie publique. */
.asset-media button{display:grid;place-items:center;width:148px;max-width:calc(50% - 5px);min-height:104px;padding:7px;overflow:hidden;cursor:pointer}
.asset-media button img{display:block;width:100%;max-width:132px;height:90px;max-height:90px;object-fit:cover;border-radius:8px}
.asset-media video{display:none!important}
.media-video-placeholder{display:grid;place-items:center;width:100%;height:90px;border-radius:8px;background:linear-gradient(125deg,#1a335e,#202147);font-size:33px}
.asset-stickers .sticker-asset button{display:grid;place-items:center;height:98px}
.asset-stickers .sticker-asset img{max-height:91px;max-width:100%;object-fit:contain}
.admin-poster-tool{margin:18px 0;padding:14px;border:1px solid #ff8ec36b;border-radius:15px;background:#111e40}
.admin-poster-tool .action{width:100%;margin:7px 0 12px}
.poster-job{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:5px 0;border-bottom:1px solid #ffffff15;font-size:12px;overflow-wrap:anywhere}
.poster-job small{flex-shrink:0;color:#b8cde9}
.admin-rename-form{display:flex;align-items:end;gap:5px;flex-wrap:wrap;min-width:140px}
.admin-rename-form label{margin:0;font-size:11px}
.admin-rename-form input{max-width:155px;width:100%;color:white;background:#101c3d;border:1px solid #6173a5;border-radius:7px;padding:6px;margin:2px 0 0}
.admin-rename-form button{margin-bottom:1px}
.admin-video-fallback{display:grid;place-items:center;width:64px;height:60px;background:#101d3a;border-radius:9px;font-size:27px}
@media(max-width:680px){.file-row{flex-wrap:wrap}.admin-rename-form{order:3;flex-basis:100%}.admin-rename-form input{max-width:250px}.admin-rename-form label{flex:1}.file-preview{flex:1 1 50%}}


/* V5.2 — résultat de l'export : disparition du cercle à 100 %, partage du fichier. */
.export-modal #progressRing[hidden],.export-modal #exportResult[hidden],
.export-modal #shareVideoBtn[hidden],.export-modal #downloadLink[hidden],
.export-modal #shareStatus[hidden]{display:none!important}
.export-modal #exportResult{width:100%}
.export-modal #outputVideo{display:block;margin:12px auto 15px;width:auto;max-width:100%;max-height:42dvh;object-fit:contain;aspect-ratio:auto;border-radius:15px;background:#050916}
.export-result-actions{display:grid;grid-template-columns:1fr;gap:12px;margin:18px 0 4px}
.export-result-actions .download-link{margin:0;min-height:57px;display:flex;align-items:center;justify-content:center;gap:12px;font-size:16px;line-height:1.3;padding:13px 14px;border-radius:16px}
.export-result-actions svg{width:25px;height:25px;flex:none}
.share-video-btn{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:56px;border:2px solid #f45dac;background:transparent;color:#fff;border-radius:16px;font-size:16px;font-weight:800;padding:11px 16px}
.share-video-btn:hover,.share-video-btn:focus-visible{background:#f45dac1a}
.share-video-btn:disabled{opacity:.65}
.export-modal .share-status{font-size:12px;color:#ffcedf;margin:10px 0 0;line-height:1.5}
@media(max-height:640px){.export-modal #outputVideo{max-height:34dvh}.export-result-actions{gap:8px;margin-top:10px}.export-result-actions .download-link,.share-video-btn{min-height:45px}}
