:root{color-scheme:dark;font-family:Segoe UI,Helvetica Neue,Arial,sans-serif}html,body,#root{width:100%;max-width:100%;overflow-x:hidden}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 20% 10%,#1b2c45,#0d1019 42%,#070910);color:#e2e8f0}.page{min-height:100dvh;display:flex;align-items:flex-start;justify-content:center;padding:28px}.layout-shell{width:100%;max-width:1220px}.card{width:100%;border:1px solid #2c3a52;border-radius:20px;background:#080c14db;box-shadow:0 20px 40px #00000059;padding:30px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:10px;min-width:0}.logo-badge{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,#f59e0b,#ea580c);color:#fff;display:grid;place-items:center;font-weight:800;font-size:14px;letter-spacing:.04em}.brand-title{margin:0;color:#f8fafc;font-size:15px;font-weight:700}.topbar-actions{display:flex;gap:8px;flex-wrap:wrap}.topbar-actions .soft-btn{padding:9px 12px;min-width:92px}.intro{margin-top:24px;margin-bottom:22px}.intro h1{margin:0;font-size:28px;line-height:1.15}.subtitle{margin:10px 0 0;color:#93a4bf;font-size:14px}.modes{margin-top:20px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.mode-btn{border:1px solid #30425d;background:#111a29;color:#99a8c0;border-radius:10px;padding:10px 12px;font-size:14px;font-weight:600;cursor:pointer}.mode-btn.active{color:#fef3c7;border-color:#f59e0b;background:linear-gradient(180deg,#2a2112,#191409)}.panel{margin-top:42px;padding-top:30px;border-top:1px solid #283548}label,.label-text{display:block;margin-bottom:6px;font-size:13px;color:#b8c7dc;font-weight:600}input[type=url],input[type=text],input[type=password],input[type=number],input[type=file],select,textarea{width:100%;margin-bottom:12px;border-radius:9px;border:1px solid #314562;background:#0c1321;color:#e2e8f0;padding:10px 12px;font-size:14px}textarea{resize:vertical;min-height:120px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.switches{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}.toggle{padding:8px 0;border-radius:9px;border:1px solid #334358;background:#111a28;color:#90a2be;font-weight:700;cursor:pointer}.toggle.on{border-color:#10b981;color:#d1fae5;background:#0d241f}.primary-btn,.soft-btn{border:0;border-radius:10px;font-weight:700;cursor:pointer;padding:11px 14px}.primary-btn{width:100%;background:linear-gradient(120deg,#f59e0b,#ea580c);color:#fffaf0}.primary-btn:disabled{opacity:.55;cursor:not-allowed}.soft-btn{background:#172338;color:#c9d6e7;border:1px solid #2d425f}.soft-btn:disabled{opacity:.5;cursor:not-allowed}.loading{margin:10px 0 0;color:#fcd34d;font-size:13px}.hint{margin:4px 0 0;color:#90a2be;font-size:13px}.upload-divider{display:flex;align-items:center;gap:10px;margin:14px 0 10px;color:#8193ad;font-size:12px;text-transform:uppercase;letter-spacing:.06em}.upload-divider:before,.upload-divider:after{content:"";height:1px;flex:1;background:#263952}.msg{margin-top:34px;border-radius:10px;padding:10px 12px;font-size:13px}.msg.ok{border:1px solid #065f46;background:#052e29;color:#9ee7d3}.msg.err{border:1px solid #7f1d1d;background:#2a0f16;color:#fecaca}.editor{margin-top:42px;padding-top:30px;border-top:1px solid #283548}.editor-header h2{margin:0;font-size:18px}.editor-header p{margin:6px 0 0;color:#93a4bf;font-size:13px}.group-tools{margin-top:12px}.search-input{margin-bottom:8px}.group-tool-actions{display:flex;gap:8px;flex-wrap:wrap}.group-tool-actions .soft-btn{padding:8px 10px;font-size:12px}.group-list{margin-top:12px;max-height:300px;overflow:auto;border:1px solid #27364c;border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:8px;min-width:0}.group-row{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;min-width:0}.group-row input[type=checkbox]{width:16px;height:16px}.group-row input[type=text]{margin:0}.group-row span{min-width:28px;text-align:right;color:#8ea0bc;font-size:13px}.group-empty{margin:0;color:#8ea0bc;font-size:13px;padding:6px 4px}.actions{margin-top:16px;display:flex;gap:8px;flex-wrap:wrap}.actions .primary-btn{flex:2}.actions .soft-btn{flex:1}.player{margin-top:42px;padding-top:30px;border-top:1px solid #283548}.player-header h2{margin:0;font-size:18px}.player-header p{margin:6px 0 0;color:#93a4bf;font-size:13px}.player-controls{margin-top:12px;display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,260px);gap:8px}.player-controls input,.player-controls select{margin:0}.player-layout{margin-top:12px;display:grid;grid-template-columns:minmax(260px,320px) minmax(0,1fr);gap:10px}.player-layout>*{min-width:0}.player-list{border:1px solid #27364c;border-radius:10px;padding:8px;max-height:420px;overflow:auto;display:flex;flex-direction:column;gap:6px}.player-item{width:100%;border:1px solid #2d425f;background:#111b2d;color:#dbe6f5;border-radius:8px;text-align:left;padding:8px 10px;cursor:pointer;display:flex;flex-direction:column;gap:4px}.player-item strong{font-size:13px;line-height:1.2}.player-item span{color:#90a2be;font-size:12px}.player-item.active{border-color:#f59e0b;background:#2a2112}.player-view{border:1px solid #27364c;border-radius:10px;padding:10px;background:#0a1220}.player-video{width:100%;border-radius:10px;background:#000;min-height:300px}.player-meta{margin-top:10px}.player-meta p{margin:0 0 4px;color:#c7d4e8;font-size:13px}.player-error{margin:8px 0 0;color:#fecaca;font-size:12px}.footer{margin-top:18px;padding-top:14px;border-top:1px solid #283548}.footer p{margin:0;color:#8193ad;font-size:12px;text-align:center}@media (max-width: 720px){.page{padding:10px}.layout-shell{max-width:100%}.card{border-radius:14px;padding:14px}.intro{margin-top:14px;margin-bottom:14px}.intro h1{font-size:24px}.topbar{align-items:flex-start;flex-direction:column}.topbar-actions{width:100%}.topbar-actions .soft-btn{flex:1;min-width:0}.modes{margin-top:16px}.panel,.editor,.player{margin-top:30px;padding-top:20px}.actions{flex-direction:column}.player-controls,.player-layout{grid-template-columns:1fr}.player-list{max-height:220px}.player-video{min-height:210px}.footer{margin-top:14px;padding-top:12px}}
