:root {color-scheme: dark; --bg:#0a0a0a; --text:#e8e8e8; --muted:#9b9b9b; --border:#232323; --border2:#2b2b2b;}
*{box-sizing:border-box} html,body{height:100%} body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,Arial}
.wrap{max-width:1100px;margin:0 auto;padding:0 16px}
.header{position:sticky;top:0;z-index:50;backdrop-filter:saturate(1.1) blur(6px);background:rgba(10,10,10,.7);border-bottom:1px solid var(--border)}
.header-inner{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:20px 0}
.nav-left,.nav-right{display:flex;gap:24px;justify-content:center;align-items:center}
.brand{border:none;background:none;cursor:pointer;text-align:center;font-size:36px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--text)}
.brand:hover{opacity:.95}
.nav-link{color:#c9c9c9;text-decoration:none;background:none;border:none;cursor:pointer;font:inherit;font-size:14px}
.nav-link:hover{color:#fff;text-decoration:underline}
.main{min-height:calc(100vh - 140px);display:flex;align-items:center;justify-content:center}
.center-wrap{grid-column:1/-1;display:grid;place-items:center;width:100%}
.dropzone{display:flex;flex-direction:column;align-items:center;gap:12px;justify-content:center;background:linear-gradient(0deg,rgba(255,255,255,.02),rgba(255,255,255,.02));border:1px dashed var(--border2);border-radius:16px;padding:40px;cursor:pointer;text-align:center;width:min(680px,92vw)}
.dropzone:hover{border-color:#cfcfcf}
.dropzone:focus{outline:2px solid #3b82f6;outline-offset:2px}
.dropzone.drag{border-color:#cfcfcf}
.drop-icon{display:grid;place-items:center;width:64px;height:64px;border:1px solid var(--border2);border-radius:16px;color:#cfcfcf}
.drop-text .title{font-weight:700;font-size:16px}
.drop-text .hint{font-size:12px;color:#muted;margin-top:6px}
.hidden-input{position:absolute;left:-9999px;opacity:0}
.screen{display:grid;grid-template-columns:1fr;gap:24px}
@media (min-width:1024px){.screen{grid-template-columns:1fr 1fr}}
.card{background:linear-gradient(0deg,rgba(255,255,255,.02),rgba(255,255,255,.02));border:1px solid var(--border);border-radius:16px;padding:16px}
.card-title{color:var(--muted);font-size:13px;margin-bottom:10px}
.frame{position:relative;width:100%;aspect-ratio:16/10;background:#000;border:1px solid var(--border2);border-radius:12px;overflow:hidden}
.img{width:100%;height:100%;display:block}
.contain{object-fit:contain;background:#000}
.no-pointer{pointer-events:none}
.gen-search{display:flex;flex-direction:column;align-items:center;gap:12px;padding:24px}
.spinner{display:grid;place-items:center;width:56px;height:56px;border:1px solid var(--border2);border-radius:50%;color:#cfcfcf;animation:spin 1.2s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.gen-text{font-size:14px;color:#d6d6d6}
.progress{width:240px;height:8px;background:#202020;border-radius:999px;overflow:hidden;border:1px solid var(--border2)}
.progress-bar{height:100%;background:#e5e5e5;width:0%;transition:width .1s linear}
.space-y>*+*{margin-top:14px}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.grid button{position:relative;aspect-ratio:16/10;border:1px solid var(--border2);border-radius:10px;background:#000;overflow:hidden;cursor:pointer}
.grid button.active{border-color:#d1d1d1}
.grid img{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.grid button:hover img{opacity:.9}
.arrow{position:absolute;z-index:10;top:50%;transform:translateY(-50%);border:1px solid rgba(120,120,120,.5);background:rgba(20,20,20,.7);color:#e6e6e6;padding:8px 12px;border-radius:999px;cursor:pointer;user-select:none;font-size:14px}
.arrow.left{left:8px}.arrow.right{right:8px}.arrow:hover{background:#242424}
.gen-empty{display:grid;place-items:center;height:calc(100% - 40px);color:#b6b6b6;font-size:14px}
.hidden{display:none!important}
