.app{min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;flex-direction:column}.header{background:#00000080;color:#fff;text-align:center;padding:40px 20px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.header h1{margin:0 0 10px;font-size:2.5rem;font-weight:700}.header p{margin:0;font-size:1.1rem;opacity:.9}.container{flex:1;max-width:900px;margin:0 auto;width:100%;padding:30px 20px}.input-section{margin-bottom:30px}.input-group{display:flex;gap:10px;margin-bottom:20px}.input-group input{flex:1;padding:14px 16px;font-size:1rem;border:2px solid rgba(255,255,255,.3);border-radius:8px;background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transition:all .3s}.input-group input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.input-group input:disabled{opacity:.6;cursor:not-allowed}.btn-primary{padding:14px 24px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;display:flex;align-items:center;gap:8px;transition:transform .2s,box-shadow .2s;box-shadow:0 4px 15px #667eea66}.btn-primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #667eea99}.btn-primary:disabled{opacity:.7;cursor:not-allowed}.spinner{animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.info-box{background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:20px;border-radius:8px;box-shadow:0 4px 15px #0000001a}.info-box h3{margin:0 0 12px;color:#333;font-size:1rem}.info-box ul{margin:0;padding-left:20px;list-style:none}.info-box li{margin:6px 0;color:#555;font-size:.9rem}.alert{padding:16px 20px;border-radius:8px;display:flex;align-items:center;gap:12px;margin-bottom:20px;font-weight:500}.alert-error{background:#ef44441a;border:2px solid #ef4444;color:#dc2626}.alert-success{background:#22c55e1a;border:2px solid #22c55e;color:#15803d}.content-section{background:#fffffffa;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:30px;border-radius:12px;box-shadow:0 8px 32px #0000001a}.content-header{display:flex;gap:24px;margin-bottom:30px;align-items:flex-start}.cover-image{width:150px;height:220px;object-fit:cover;border-radius:8px;box-shadow:0 4px 12px #00000026}.content-info h2{margin:0 0 10px;color:#333;font-size:1.8rem}.content-type{margin:5px 0;color:#667eea;font-weight:600;font-size:.9rem}.chapter-count{margin:5px 0;color:#666;font-size:.95rem}.format-section{display:flex;align-items:center;gap:12px;margin-bottom:20px;padding:16px;background:#f8f9fa;border-radius:8px}.format-section label{font-weight:600;color:#333;white-space:nowrap}.format-section select{flex:1;padding:10px 12px;border:2px solid #e5e7eb;border-radius:6px;font-size:.95rem;background:#fff;cursor:pointer;transition:border-color .2s}.format-section select:focus{outline:none;border-color:#667eea}.btn-download{width:100%;padding:16px 24px;background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;border:none;border-radius:8px;font-size:1.1rem;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;transition:transform .2s,box-shadow .2s;box-shadow:0 4px 15px #22c55e66;margin-bottom:30px}.btn-download:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #22c55e99}.btn-download:disabled{opacity:.7;cursor:not-allowed}.chapters-section{border-top:2px solid #e5e7eb;padding-top:24px}.chapters-section h3{margin:0 0 16px;color:#333;font-size:1.1rem}.chapters-list{display:grid;gap:8px;max-height:400px;overflow-y:auto}.chapter-item{display:flex;align-items:center;gap:12px;padding:12px;background:#f8f9fa;border-radius:6px;font-size:.95rem;border-left:4px solid #667eea}.chapter-number{font-weight:600;color:#667eea;min-width:50px}.chapter-title{flex:1;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.image-count{color:#999;font-size:.85rem;background:#fff;padding:4px 8px;border-radius:4px}.empty-state{text-align:center;padding:60px 20px;color:#fff}.empty-state .icon{font-size:4rem;margin-bottom:20px}.empty-state h2{margin:0 0 10px;font-size:1.5rem}.empty-state p{margin:0;opacity:.9;font-size:1rem}.footer{background:#00000080;color:#fff;text-align:center;padding:20px;font-size:.9rem;opacity:.8;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.footer p{margin:0}.shell{min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;flex-direction:column}.topbar{position:sticky;top:0;z-index:10;background:#00000080;color:#fff;padding:14px 18px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);display:flex;align-items:center;gap:14px}.brand{display:flex;align-items:center;gap:10px;min-width:210px}.brandIcon{width:32px;height:32px;border-radius:10px;background:#ffffff24;display:flex;align-items:center;justify-content:center}.brandTitle{font-weight:800;letter-spacing:.4px}.brandSub{font-size:12px;opacity:.85}.tabs{display:flex;align-items:center;gap:8px;flex:1;overflow-x:auto;padding-bottom:2px}.tab{border:1px solid rgba(255,255,255,.18);background:#ffffff14;color:#ffffffe6;border-radius:10px;padding:10px 12px;display:inline-flex;align-items:center;gap:8px;cursor:pointer;white-space:nowrap}.tabActive{background:#fff3;color:#fff;border-color:#ffffff52}.topbarRight{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:220px}.topbarInput{width:100%;max-width:320px;padding:10px 12px;border-radius:10px;border:1px solid rgba(255,255,255,.25);background:#fffffff2;color:#111827;outline:none}.page{flex:1;width:100%;max-width:1100px;margin:0 auto;padding:22px 18px 34px}.footerInner{opacity:.9}.stack{display:flex;flex-direction:column;gap:14px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.row{display:flex;align-items:center;gap:10px}.rowBetween{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.pageTitle{color:#fff;font-size:22px;font-weight:800;letter-spacing:.3px}.pageSub{color:#ffffffd9;font-size:13px;margin-top:4px}.card{background:#fffffffa;border-radius:14px;padding:16px;box-shadow:0 10px 30px #0000001f}.cardInner{border:1px solid #eef2f7;border-radius:12px;padding:14px;background:#fff}.cardHeader{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.cardTitle{font-weight:800;color:#111827}.cardSub{color:#6b7280;font-size:13px;margin-top:4px}.form{display:flex;flex-direction:column;gap:12px}.field{display:flex;flex-direction:column;gap:6px}.fieldInline{display:flex;align-items:center;gap:10px}.label{font-size:12px;color:#6b7280;font-weight:700;letter-spacing:.2px}.input,.select{width:100%;padding:12px;border-radius:10px;border:1px solid #e5e7eb;background:#fff;outline:none}.input:focus,.select:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea2e}.btn{padding:10px 12px;border-radius:10px;border:1px solid #e5e7eb;background:#fff;color:#111827;cursor:pointer;display:inline-flex;align-items:center;gap:8px;font-weight:700}.btnPrimary{border-color:#667eea59;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.btnGood{border-color:#22c55e59;background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff}.btnActive{border-color:#667eea80;box-shadow:0 0 0 3px #667eea24}.empty{padding:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px;color:#4b5563}.emptyTitle{font-weight:800;color:#111827}.emptySub{font-size:13px;color:#6b7280}.spin{animation:spin 1s linear infinite}.notice{display:flex;gap:10px;padding:12px 14px;border-radius:12px;border:1px solid #e5e7eb;background:#f9fafb}.noticeError{border-color:#ef444466;background:#ef444414}.noticeSuccess{border-color:#22c55e66;background:#22c55e14}.noticeInfo{border-color:#3b82f659;background:#3b82f614}.noticeIcon{padding-top:2px}.noticeTitle{font-weight:900;margin-bottom:2px}.noticeText{color:#111827}.kv{display:grid;gap:8px;margin-top:8px}.kvRow{display:flex;justify-content:space-between;gap:12px;padding:8px 10px;border-radius:10px;background:#f8fafc;border:1px solid #eef2f7}.kvKey{color:#6b7280;font-weight:800}.kvVal{color:#111827;font-weight:800;text-align:right;overflow:hidden;text-overflow:ellipsis}.pill{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border-radius:999px;border:1px solid #e5e7eb;background:#fff;font-size:12px;font-weight:800;color:#111827}.muted{color:#6b7280;font-size:13px}.table{display:grid;gap:6px}.tableHead,.tableRow{display:grid;grid-template-columns:1fr 110px;gap:12px;align-items:center;padding:10px 12px;border-radius:12px;border:1px solid #eef2f7;background:#fff}.tableHead{background:#f8fafc;font-size:12px;font-weight:900;color:#6b7280}.tableName{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:800;color:#111827}.tableRight{text-align:right;font-variant-numeric:tabular-nums;color:#111827;font-weight:800}.list{display:grid;gap:10px;margin-top:10px}.listRow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border-radius:12px;border:1px solid #eef2f7;background:#fff}.listTitle{font-weight:900;color:#111827}.listSub{color:#6b7280;font-size:13px;margin-top:2px}.result{display:flex;flex-direction:column;gap:12px}.resultTop{display:flex;gap:12px;align-items:flex-start}.cover{width:76px;height:110px;object-fit:cover;border-radius:12px;box-shadow:0 10px 20px #0000001f}.resultMeta{min-width:0;display:flex;flex-direction:column;gap:6px}.resultTitle{font-size:18px;font-weight:900;color:#111827;line-height:1.15}.pillRow{display:flex;flex-wrap:wrap;gap:8px}.link{color:#4f46e5;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.divider{height:1px;background:#eef2f7;border-radius:999px}.progressWrap{margin-top:10px}.progressMeta{display:flex;justify-content:space-between;font-size:12px;font-weight:900;color:#6b7280;margin-bottom:6px}.progress{height:10px;border-radius:999px;border:1px solid #e5e7eb;background:#f8fafc;overflow:hidden}.progressBar{height:100%;background:linear-gradient(135deg,#22c55e,#16a34a)}.chapterList{display:grid;gap:8px;margin-top:12px}.chapterRow{display:grid;grid-template-columns:92px 1fr 120px;gap:12px;padding:10px 12px;border-radius:14px;border:1px solid #eef2f7;background:#fff;align-items:center}.chapterRowSelected{border-color:#667eea59;box-shadow:0 0 0 3px #667eea1f}.chapterCheck{display:flex;align-items:center;gap:10px;font-weight:900;color:#111827}.chapterIndex{width:34px;height:28px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #e5e7eb;background:#f8fafc;font-variant-numeric:tabular-nums}.chapterMain{min-width:0;display:flex;flex-direction:column;gap:2px}.chapterTitle{font-weight:900;color:#111827;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chapterUrl{font-size:12px;color:#6b7280;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chapterStat{display:inline-flex;align-items:center;justify-content:flex-end;gap:8px;font-weight:900;color:#111827;font-size:12px;font-variant-numeric:tabular-nums}.chapterStatBad{color:#dc2626}@media (max-width: 900px){.chapterRow{grid-template-columns:92px 1fr}.chapterStat{justify-content:flex-start;grid-column:1 / -1}}@media (max-width: 900px){.grid2{grid-template-columns:1fr}.brand,.topbarRight{min-width:160px}}@media (max-width: 768px){.header h1{font-size:1.8rem}.container{padding:20px 15px}.input-group{flex-direction:column}.content-header{flex-direction:column;align-items:center;text-align:center}.cover-image{width:120px;height:180px}.chapters-section{max-height:300px}}@media (prefers-color-scheme: dark){.info-box,.content-section{background:#1e1e1ef2;color:#e5e7eb}.info-box h3,.content-info h2,.chapters-section h3{color:#e5e7eb}.info-box li{color:#b0b0b0}.input-group input{background:#323232f2;color:#fff;border-color:#fff3}.format-section{background:#323232cc;color:#e5e7eb}.format-section select{background:#323232;color:#fff;border-color:#fff3}.chapter-item{background:#323232cc;color:#e5e7eb}.chapter-title{color:#e5e7eb}}*{margin:0;padding:0;box-sizing:border-box}html,body,#root{width:100%;height:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{background:#f5f5f5;color:#333}a{color:inherit;text-decoration:none}button,input,select,textarea{font-family:inherit}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:#f1f1f1}::-webkit-scrollbar-thumb{background:#888;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#555}.text-center{text-align:center}.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.p-2{padding:1rem}.p-3{padding:1.5rem}.p-4{padding:2rem}
