:root{--primary:#8b5cf6;--primary-glow:#8b5cf680;--accent:#ec4899;--bg-dark:#0f172a;--bg-darker:#020617;--text:#f8fafc;--text-dim:#94a3b8;--glass:#1e293bb3;--glass-border:#ffffff1a;--font-main:"Outfit", sans-serif}*{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font-main);background-color:var(--bg-darker);color:var(--text);height:100vh;overflow:hidden}#app{flex-direction:column;height:100vh;display:flex}header{border-bottom:1px solid var(--glass-border);background:var(--bg-dark);z-index:10;justify-content:space-between;align-items:center;padding:.75rem 1.5rem;display:flex}.logo h1{background:linear-gradient(90deg,#a78bfa,#f472b6);-webkit-text-fill-color:transparent;-webkit-background-clip:text;font-size:1.1rem;font-weight:800}.status{color:var(--text-dim);background:var(--glass);border-radius:99px;padding:.3rem .8rem;font-size:.7rem}main{flex-direction:column;flex:1;padding:1rem;display:flex;overflow:hidden}.hidden{display:none!important}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}section:not(.hidden){animation:.5s forwards fadeIn}.hero{text-align:center;margin:auto}.title-gradient{margin-bottom:1rem;font-size:2.5rem;font-weight:800}.hero p{color:var(--text-dim);margin-bottom:2rem}.upload-btn{background:var(--primary);cursor:pointer;border-radius:10px;align-items:center;gap:.5rem;padding:.8rem 1.5rem;font-weight:600;display:inline-flex}.editor{grid-template:"sidebar player stats"1fr"timeline timeline timeline"140px/280px 1fr 280px;gap:1rem;height:100%;display:grid}.editor-main{display:contents}.video-container{border:1px solid var(--glass-border);background:#000;border-radius:16px;grid-area:player;justify-content:center;align-items:center;height:100%;display:flex;position:relative;overflow:hidden}video{object-fit:contain;max-width:100%;max-height:100%}.overlay{cursor:pointer;z-index:5;position:absolute;inset:0}.overlay.pressing{background:#ec48991a}.video-controls{z-index:6;background:linear-gradient(#0000,#000c);align-items:center;gap:.8rem;padding:1rem;display:flex;position:absolute;bottom:0;left:0;right:0}.progress-container{background:#fff3;border-radius:2px;flex:1;height:4px}.progress-bar{background:var(--primary);width:0%;height:100%}#time-display{color:var(--text-dim);font-size:.7rem}.source-panel{background:var(--glass);border-radius:16px;flex-direction:column;grid-area:sidebar;padding:1rem;display:flex;overflow:hidden}.panel-header h3{font-size:.9rem}.add-more-btn{padding:.4rem .6rem;font-size:.75rem}.video-queue{flex-direction:column;flex:1;gap:.5rem;margin-top:1rem;display:flex;overflow-y:auto}.queue-item{background:#ffffff08;border-radius:8px;justify-content:space-between;align-items:center;padding:.6rem;font-size:.8rem;display:flex}.queue-item.active{border:1px solid var(--primary);background:#8b5cf633}.queue-name{max-width:120px}.stats-panel{flex-direction:column;grid-area:stats;gap:1rem;display:flex}.stat-card{background:var(--glass);text-align:center;border-radius:16px;padding:1rem}.stat-label{color:var(--text-dim);font-size:.65rem}.stat-value{font-size:1.5rem;font-weight:800}.export-btn{background:linear-gradient(135deg, var(--primary), var(--accent));color:#fff;cursor:pointer;border:none;border-radius:12px;margin-top:auto;padding:1rem;font-weight:700}.clips-timeline{background:var(--glass);border-radius:16px;flex-direction:column;grid-area:timeline;padding:1rem;display:flex;overflow:hidden}.clips-timeline h3{margin-bottom:.5rem;font-size:.8rem}.clips-list{flex:1;align-items:center;gap:.5rem;padding-bottom:.5rem;display:flex;overflow-x:auto}.clip-tag{border:1px solid var(--primary);background:#8b5cf626;border-radius:6px;align-items:center;gap:.4rem;min-width:fit-content;padding:.4rem .7rem;font-size:.75rem;display:flex}.delete-clip{color:var(--text-dim);cursor:pointer;background:0 0;border:none}.delete-clip:hover{color:var(--accent)}svg{width:18px!important;height:18px!important}.delete-clip svg{width:14px!important;height:14px!important}.modal{z-index:100;background:#020617f2;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal-content{background:var(--bg-dark);text-align:center;border-radius:24px;width:90%;max-width:400px;padding:2rem}.loader{border:3px solid var(--glass-border);border-top-color:var(--primary);border-radius:50%;width:40px;height:40px;margin:0 auto 1rem;animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}#result-video{border-radius:16px;width:100%;max-height:60vh;margin-bottom:1rem}@keyframes pulse{0%{opacity:1;width:0;height:0;transform:translate(-50%,-50%)}to{opacity:0;width:100px;height:100px;transform:translate(-50%,-50%)}}.pulse-effect{border:2px solid var(--accent);pointer-events:none;border-radius:50%;animation:.4s ease-out forwards pulse;position:absolute}@media (width<=1024px){.editor{grid-template-columns:240px 1fr 200px}}@media (width<=768px){body{height:auto;overflow-y:auto}#app{height:auto;min-height:100vh}main{padding:.75rem 0;overflow:visible}.title-gradient{padding:0 .75rem;font-size:1.8rem}.hero p{padding:0 .75rem}.editor{flex-direction:column;grid-template:none;gap:1.5rem;height:auto;display:flex}.video-container{aspect-ratio:9/16;border-radius:12px;order:1;width:auto;max-width:100%;height:60vh;margin:0 auto}.stats-panel{flex-direction:row;order:2;gap:.5rem;margin-bottom:0;padding:0 .75rem}.stat-card{flex:1;padding:.75rem}.stat-value{font-size:1.2rem}.source-panel{border-radius:0;order:3;width:100%;padding:1rem .75rem}.video-queue{flex-direction:column;gap:.75rem;padding-bottom:0;overflow-x:visible}.queue-item{flex-direction:row;justify-content:space-between;align-items:center;width:100%;min-width:0;padding:.8rem}.queue-name{max-width:200px}.queue-actions{width:auto}.clips-timeline{border-radius:0;order:4;padding:1rem .75rem}.clips-list{flex-wrap:wrap;gap:.5rem;overflow-x:visible}.export-btn{z-index:20;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid #ffffff1a;border-radius:0;width:100%;margin-top:1rem;padding:1.2rem;position:sticky;bottom:0;box-shadow:0 -5px 20px #0006}.hero-content{padding:2rem 1rem}}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:#ffffff1a;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:#fff3}
