:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color-scheme:dark;--bg:#080b12;--panel:#101720;--surface:#121c28;--border:#243043;--text:#edf4fd;--dim:#8b99ad;--blue:#45aafa;background:var(--bg);color:var(--text)}
*{box-sizing:border-box}html{background:var(--bg);min-height:100%}body{min-height:100vh;min-height:100svh;margin:0;-webkit-font-smoothing:antialiased;background:radial-gradient(ellipse at 50% -12%,#11335744,transparent 63%),var(--bg)}button,input,textarea{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #5eb5ff;outline-offset:3px}[hidden]{display:none!important}
.app-shell{max-width:560px;margin:0 auto;padding:0 19px env(safe-area-inset-bottom);min-height:100svh;display:flex;flex-direction:column}.topbar{height:69px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff11}.wordmark{font-size:23px;font-weight:850;letter-spacing:-1.15px;white-space:nowrap}.wordmark span{color:var(--blue)}.wordmark b{font-weight:750;font-size:10px;letter-spacing:1.9px;color:#8e9db4;margin-left:12px;padding-left:14px;border-left:1px solid #334257;vertical-align:3px}.icon-button{display:grid;place-items:center;width:39px;height:39px;color:#b1bfd1;background:#131e2b;border:1px solid #273346;border-radius:12px}.icon-button svg{height:20px;width:20px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round}
.navtabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #253247;gap:13px}.navtab{border:none;border-bottom:2px solid transparent;background:none;color:#8092ac;font-size:11px;letter-spacing:1px;font-weight:760;padding:16px 8px 14px;display:flex;align-items:center;justify-content:center;gap:8px;transition:color .15s,border-color .15s}.navtab.active{border-bottom-color:#45aafa;color:#eaf6ff}.nav-icon{font-size:18px;font-weight:500;line-height:0}.tab-count{border-radius:6px;background:#1b2e44;color:#7fbfff;min-width:24px;padding:3px 6px;font-size:10px;letter-spacing:0}.navtab.active .tab-count{background:#214261;color:#b6dfff}
#viewArea{flex:1}.intro{padding:34px 3px 0}.eyebrow{font-size:10px;letter-spacing:2px;color:#8290a7;font-weight:800;display:flex;align-items:center;gap:9px;margin:0}.blue-dot{width:7px;height:7px;border-radius:50%;background:var(--blue);box-shadow:0 0 0 4px #1b77bd27}.intro h1{font-size:clamp(38px,9vw,49px);font-weight:820;letter-spacing:-2px;line-height:1.08;margin:16px 0 12px}.intro h1 span{color:var(--blue)}.intro>p:last-child{font-size:12px;line-height:1.75;color:#91a0b5;max-width:330px;margin:0}
.connection{margin-top:24px;display:flex;align-items:center;gap:10px;min-height:45px;border-radius:12px;border:1px solid #2b3d52;background:#111c29;padding:0 12px;color:#a4b8d0;font-size:11px}.status-dot{width:7px;height:7px;background:#d9a55c;border-radius:50%;flex:none}.connection.connected{border-color:#1c503d;background:#0e231e;color:#a4d1bd}.connection.connected .status-dot{background:#42d598}.connection.error .status-dot{background:#ef818d}.connection button{margin-left:auto;background:none;color:#58b1ff;border:0;font-size:11px;font-weight:780;white-space:nowrap;padding:9px 0 9px 6px}.connection.connected button{color:#8fe8b9}
.add-section{display:flex;align-items:center;flex-direction:column;padding:clamp(42px,10vh,90px) 0 41px}.add-button{width:108px;height:108px;border:0;border-radius:33px;display:grid;place-items:center;color:white;background:linear-gradient(146deg,#53bdff 0%,#1d8bef 60%,#0861cc);box-shadow:0 22px 56px #1172d145,0 0 0 8px #2193fd16,inset 0 1px #ffffff7b;transition:transform .16s,box-shadow .16s}.add-button:active{transform:scale(.92)}.add-button svg{width:47px;height:47px;fill:none;stroke:currentColor;stroke-width:3.2;stroke-linecap:round}.add-title{font-size:19px;font-weight:750;margin-top:27px;letter-spacing:-.45px}.add-description{font-size:12px;color:var(--dim);margin-top:8px;text-align:center}.paste-button{display:flex;align-items:center;gap:8px;border:1px solid #2b4258;border-radius:11px;padding:10px 14px;color:#bedcf2;background:#162536;font-size:11px;font-weight:680;margin-top:20px}.paste-button svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.7}.pending-panel{display:flex;justify-content:space-between;align-items:center;gap:7px;padding:13px;background:#242015;border:1px solid #504123;border-radius:11px;font-size:11px;color:#e5cb99}.pending-panel>div{display:flex;align-items:center;gap:8px}.pending-pulse{background:#e6b560;border-radius:100%;height:7px;width:7px}.pending-panel button{border:0;background:none;color:#ffd988;font-weight:730;font-size:11px}.home-bottom{border-top:1px solid #273244;margin-top:8px;padding:22px 1px 0;display:flex;justify-content:space-between;align-items:center;gap:10px}.home-stats{display:flex;flex-direction:column;gap:5px}.home-stats>span{font-size:9px;letter-spacing:1.5px;font-weight:800;color:#7488a0}.home-stats strong{font-size:19px;letter-spacing:-.5px}.home-stats strong span{color:#56b1ff}.library-link{background:#152537;border:1px solid #29415a;border-radius:10px;color:#cde9ff;font-size:11px;font-weight:780;padding:11px 12px}.library-link span{font-size:16px;margin-left:9px;vertical-align:-1px}.gesture-hint{display:flex;justify-content:center;align-items:center;gap:9px;color:#667d98;font-size:11px;margin:27px 0 0}.gesture-hint span{font-size:19px;line-height:1}.library-hint{padding-bottom:28px;margin-top:25px}
.library-view{padding-top:30px}.library-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:19px}.section-label{font-size:10px;letter-spacing:1.8px;font-weight:790;color:#8ca0b8;margin:0 0 7px}.library-head h1{font-size:29px;letter-spacing:-1px;margin:0;line-height:1.2}.library-head h1 span{font-size:16px;color:#6fbaff;vertical-align:4px;padding-left:3px}.refresh-button{width:41px;height:41px;border:1px solid #2c3b4d;border-radius:12px;background:#131e2b;color:#a5b8d0;display:grid;place-items:center}.refresh-button svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.refresh-button.loading svg{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.library-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}.searchbox{height:42px;border:1px solid #29384a;border-radius:11px;background:#101a27;display:flex;align-items:center;gap:9px;padding:0 11px}.searchbox svg{width:17px;height:17px;fill:none;stroke:#7790ad;stroke-width:1.8;flex:none}.searchbox input{background:none;border:0;outline:none;width:100%;min-width:0;color:#edf3ff;font-size:12px}.searchbox input::placeholder{color:#72839c}.searchbox input:focus-visible{outline:none}.searchbox:focus-within{border-color:#3d93d8}.sort-button{height:42px;padding:0 12px;border:1px solid #29384a;border-radius:11px;background:#121e2a;color:#bcd2e5;font-size:11px;font-weight:720}.list-actions{display:flex;justify-content:space-between;align-items:center;margin:16px 0 10px;color:#879bb5;font-size:11px}.list-actions button{font-size:11px;font-weight:730;color:#59b1f2;border:0;background:none;padding:6px 0 6px 8px}.library-list{display:flex;flex-direction:column;gap:6px;padding-bottom:4px}.video-row{display:flex;align-items:center;gap:10px;min-width:0;padding:9px 10px 9px 6px;border-radius:12px;background:#101822;border:1px solid #243143;transition:background .15s,border-color .15s}.video-row.selected{background:#11263b;border-color:#398fd0}.row-select{width:29px;min-width:29px;height:48px;border:0;background:none;padding:0;display:grid;place-items:center}.selection-check{height:18px;width:18px;border:1.5px solid #547089;border-radius:5px;color:transparent;font-size:11px;font-weight:850;display:grid;place-items:center;transition:all .15s}.video-row.selected .selection-check{color:#fff;background:#218cdb;border-color:#218cdb}.video-thumb{width:76px;min-width:76px;height:62px;background:linear-gradient(145deg,#1d2e42,#0e1420);border:1px solid #2c3a4c;border-radius:8px;overflow:hidden;display:grid;place-items:center;cursor:pointer;position:relative}.video-thumb img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.thumb-placeholder{color:#6e91ac;font-size:17px;opacity:.75}.row-main{flex:1;min-width:0;cursor:pointer;align-self:stretch;display:flex;flex-direction:column;justify-content:center;gap:7px}.row-title{font-size:12px;font-weight:700;line-height:1.35;color:#ecf3ff;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}.row-secondary{display:flex;align-items:center;gap:8px;color:#879aaf;font-size:10px;min-width:0;white-space:nowrap;overflow:hidden}.row-secondary span{overflow:hidden;text-overflow:ellipsis}.row-secondary span:first-child{color:#69a9d4}.row-link{color:#7895b0;text-decoration:none;font-size:20px;display:grid;place-items:center;min-width:23px;height:38px}.row-link:active{color:#fff}.list-placeholder{border:1px dashed #2d4056;padding:28px 16px;text-align:center;border-radius:12px;color:#849ab4;font-size:12px;line-height:1.7}
.selection-bar{position:sticky;bottom:calc(12px + env(safe-area-inset-bottom));z-index:4;margin:12px -4px 3px;padding:12px;border:1px solid #426c8b;border-radius:15px;box-shadow:0 12px 36px #0008;background:#172a3d;display:flex;align-items:center;justify-content:space-between;gap:8px;backdrop-filter:blur(10px)}.selection-bar>div{display:flex;flex-direction:column;gap:4px}.selection-bar strong{white-space:nowrap;font-size:12px}.selection-bar>div button{border:0;background:none;padding:0;color:#9bc9ea;font-size:11px;text-align:left}.selection-bar>button{color:#fff;border:0;background:#ba4055;border-radius:10px;padding:10px 13px;display:flex;align-items:center;gap:7px;font-size:11px;font-weight:740}.selection-bar svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}footer{margin-top:auto;padding:31px 0 20px;color:#62748c;display:flex;justify-content:space-between;font-size:9px}footer span:first-child{font-weight:850;letter-spacing:1.4px;color:#71869f}
.overlay{position:fixed;inset:0;z-index:10;background:#020408c9;backdrop-filter:blur(5px)}.sheet{position:fixed;z-index:11;left:0;right:0;bottom:0;max-width:560px;margin:0 auto;padding:0 22px calc(26px + env(safe-area-inset-bottom));border:1px solid #334154;border-bottom:0;border-radius:22px 22px 0 0;background:#101925;box-shadow:0 -16px 60px #0009;animation:sheet-rise .23s cubic-bezier(.25,.8,.25,1)}@keyframes sheet-rise{from{transform:translateY(25px);opacity:.6}to{transform:translateY(0);opacity:1}}.sheet-handle{height:4px;width:38px;background:#46586b;border-radius:99px;margin:11px auto 4px}.sheet-header{display:flex;justify-content:space-between;align-items:center;margin:5px 0 23px}.sheet-header h2{font-size:20px;letter-spacing:-.45px;margin:0}.sheet-close{font-size:27px;color:#adbed0;background:none;border:0;padding:4px 2px;line-height:1}.sheet label{display:block;font-size:10px;letter-spacing:1.25px;color:#8da2ba;font-weight:760;margin:18px 0 9px}.sheet input,.sheet textarea{width:100%;border:1px solid #33455b;border-radius:10px;background:#0b121c;color:#eff8ff;font-size:13px;padding:13px 12px;resize:vertical;min-height:44px}.sheet input::placeholder,.sheet textarea::placeholder{color:#62748a}.form-tip,.settings-description,.delete-description{font-size:12px;line-height:1.7;color:#8c9bb0}.settings-description{margin-top:-8px;margin-bottom:17px}.settings-description strong{color:#c6dff5}.delete-description{color:#e1edfa;font-size:14px;margin:0}.primary-button{width:100%;border:0;border-radius:11px;background:#2e9ef4;color:white;font-weight:780;padding:14px 16px;font-size:13px;margin-top:23px;display:flex;align-items:center;justify-content:space-between}.primary-button span{font-size:19px;line-height:1}.form-message{min-height:16px;color:#89d6ff;font-size:12px;margin-top:13px;line-height:1.5}.form-message.error{color:#ff98a8}.secret-control{position:relative;display:flex}.secret-control input{padding-right:83px}.secret-control button{position:absolute;right:7px;top:6px;bottom:6px;color:#b6d1e6;background:#223148;border:0;border-radius:7px;padding:0 10px;font-size:11px}.secondary-danger{display:block;margin:14px auto 0;border:0;background:none;color:#d69ba3;padding:8px;font-size:11px}.delete-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:23px}.delete-actions button{border:0;border-radius:11px;padding:13px;font-size:12px;font-weight:750}.cancel-button{background:#253349;color:#c8d5e9}.danger-button{background:#cd4c5f;color:#fff}.toast{position:fixed;z-index:20;left:50%;bottom:calc(34px + env(safe-area-inset-bottom));transform:translateX(-50%);width:max-content;max-width:calc(100vw - 32px);min-width:198px;text-align:center;padding:12px 17px;border-radius:11px;background:#dff3ff;color:#0c2333;box-shadow:0 9px 30px #000a;font-size:12px;font-weight:750}.toast.error{background:#ffe7eb;color:#842d40}
@media(max-width:355px){.app-shell{padding-left:13px;padding-right:13px}.wordmark b{margin-left:8px;padding-left:9px}.intro h1{font-size:37px}.video-row{gap:7px}.video-thumb{width:66px;min-width:66px;height:58px}.row-select{min-width:25px;width:25px}.row-link{min-width:18px}.selection-bar>button{padding:10px 9px}}
@media(min-width:680px){.app-shell{border-left:1px solid #213045;border-right:1px solid #213045;background:#0b111a;padding-left:32px;padding-right:32px}.intro{padding-top:42px}.add-section{padding-top:70px;padding-bottom:55px}.video-thumb{width:90px;min-width:90px;height:70px}.row-title{font-size:13px}.sheet{bottom:50%;transform:translateY(50%);border-bottom:1px solid #334154;border-radius:20px;animation:none;padding-bottom:26px}.selection-bar{margin-left:0;margin-right:0}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
