:root{font-family:Inter,"Microsoft YaHei",system-ui,sans-serif;color:#1e293b;background:#f4f6fa;font-size:14px;--accent:#e54b68}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{border:1px solid #dce1e9;border-radius:8px;padding:10px 15px;background:white;color:#334155;cursor:pointer;white-space:nowrap}button:hover{border-color:#e54b68;color:#c63754}button:disabled{opacity:.45;cursor:default}.primary{background:var(--accent);color:white;border-color:var(--accent)}.primary:hover{background:#ce3d59;color:white}input,select{background:white;border:1px solid #dce1e9;border-radius:8px;padding:11px;color:#334155;min-width:0}input:focus,select:focus{outline:2px solid #f5bfd0;outline-offset:1px}label{display:block;font-weight:500}label input{display:block;margin-top:8px;width:100%}.muted,.hint{color:#768195;line-height:1.65}.eyebrow{font-size:11px;letter-spacing:2px;color:#8994a8;font-weight:600}.brandmark{display:grid;place-items:center;background:var(--accent);color:white;width:42px;height:42px;border-radius:12px;font-size:22px;font-weight:700}.brand{display:flex;gap:12px;align-items:center}.brand strong{font-size:17px}.brand small{display:block;margin-top:7px;font-size:11px;font-weight:400;color:#8c9bb1}aside{width:225px;background:#111d30;color:#edf2f9;position:fixed;inset:0 auto 0 0;padding:32px 22px;display:flex;flex-direction:column}nav{margin-top:48px;display:grid;gap:10px}.nav{border:0;background:none;color:#9eabc0;text-align:left;padding:14px}.nav.active{background:#273349;color:#fff}.aside-foot{margin-top:auto;font-size:12px;color:#c4cedd}.aside-foot small{display:block;color:#8290a6;margin:12px 0 20px}.aside-foot button{background:transparent;color:#a7b4c9;border-color:#374258;font-size:12px}main{margin-left:225px;padding:36px 38px;max-width:1600px}header{display:flex;justify-content:space-between;align-items:center;gap:20px}h1{font-size:28px;margin:10px 0}h2{font-size:17px;margin:0}header p{margin:8px 0}.header-actions,.actions{display:flex;gap:9px;align-items:center}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:28px 0 20px}.stats article{background:white;border:1px solid #e5e9f0;border-radius:12px;padding:21px 24px}.stats span{color:#758095;font-size:13px}.stats strong{display:block;font-size:32px;margin:12px 0 8px;font-weight:650}.stats small{color:#94a0b2;font-size:11px}.agent{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:18px 22px;border-radius:12px;background:#eaf0f8;margin-bottom:24px}.agent p{margin:6px 0 0 15px;font-size:12px}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#94a3b8;margin-right:8px}.dot.online{background:#20a67a;box-shadow:0 0 0 3px #20a67a18}.panel{background:white;border:1px solid #e4e8f0;border-radius:13px;overflow:hidden}.toolbar{display:flex;justify-content:space-between;align-items:center;padding:22px;gap:20px}.filters{display:flex;gap:10px}#search{width:260px}table{width:100%;border-collapse:collapse;text-align:left}th{background:#fafbfd;color:#8994a4;font-size:12px;font-weight:500;padding:13px 22px}td{border-top:1px solid #eef1f6;padding:18px 22px;vertical-align:middle}td:first-child{width:44%;max-width:450px}td:last-child{white-space:nowrap}td button{font-size:12px;padding:7px 10px;margin:2px}.title{font-weight:550;line-height:1.5}.id{display:block;color:#98a2b3;font-size:11px;margin-top:7px;overflow-wrap:anywhere}.error-detail{font-size:12px;color:#b54e56;margin-top:7px;overflow-wrap:anywhere;max-width:480px}.badge{font-size:11px;display:inline-block;border-radius:5px;background:#edf1f7;color:#718096;padding:5px 8px;white-space:nowrap}.badge.completed{background:#e8f7ef;color:#24845e}.badge.downloading{background:#e9efff;color:#4266c6}.badge.waiting_refresh,.badge.retry{background:#fff1e4;color:#bb7b30}.file-link{color:#ca3758;font-size:12px;text-decoration:none}.table-scroll{overflow-x:auto}progress{width:100px;height:5px;display:block;margin-top:6px;accent-color:var(--accent)}footer{display:flex;justify-content:space-between;align-items:center;padding:17px 22px;border-top:1px solid #edf0f6;color:#8d98a9;font-size:12px}footer button{font-size:12px;padding:7px 12px}.empty{text-align:center;padding:65px 20px;color:#7c879a}.empty strong{color:#3d4a60;font-size:17px}.footnote{font-size:11px;color:#929daf;margin:20px 0}.profile-form{display:flex;gap:14px;padding:0 22px 22px;align-items:end}.grow{flex:1}.profile-item{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:18px 22px;border-top:1px solid #edf0f6}.profile-item strong{display:block}.profile-item p{margin:6px 0 0;color:#929daf;font-size:12px}.interval{display:flex;align-items:center;gap:16px;border-top:1px solid #edf0f6;padding:22px}.interval input{display:inline-block;width:80px;margin:0 7px}#notice{padding:12px 18px;margin-top:18px;border-radius:8px;background:#fff0e8;color:#ad6238}.login{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#eef2f9,#fbf0f2)}.login form{padding:44px;background:white;border:1px solid #e4e8ee;border-radius:18px;width:min(440px,90vw);box-shadow:0 20px 80px #21304b0d}.login label{margin:28px 0 18px}.login button{width:100%}.login .hint{font-size:11px;margin-top:25px}#login-error{color:#b84848}[hidden]{display:none!important}@media(max-width:1050px){aside{width:190px;padding:25px 15px}main{margin-left:190px;padding:25px 20px}.stats{gap:10px}.stats article{padding:16px}td,th{padding:14px}.toolbar{align-items:start;flex-direction:column}}@media(max-width:720px){aside{position:static;width:100%;padding:16px;flex-direction:row;align-items:center;justify-content:space-between}nav{margin:0;display:flex}.brand small,.aside-foot{display:none}.brand strong{font-size:14px}.brandmark{width:32px;height:32px;font-size:18px}main{margin:0;padding:20px 14px}header{align-items:start;flex-direction:column}.stats{grid-template-columns:repeat(2,1fr)}.agent{align-items:start;flex-direction:column}.filters{width:100%;flex-wrap:wrap}#search{width:100%}.profile-form{flex-direction:column;align-items:stretch}.interval{flex-wrap:wrap}td{min-width:125px}td:first-child{min-width:240px}}

.cover{width:76px;height:96px;object-fit:cover;border-radius:8px;float:left;margin-right:14px;background:#edf1f7}.media-name{overflow:hidden;min-width:130px}#player-dialog{width:min(980px,94vw);max-height:94vh;border:0;border-radius:16px;padding:22px;box-shadow:0 20px 80px #0006}#player-dialog::backdrop{background:#111d30bb}#player-dialog header{margin-bottom:16px}#player{display:block;width:100%;max-height:70vh;background:#000;border-radius:8px}#player-error{color:#b54e56}.file-link{margin-left:10px}

.collection-panel{margin-bottom:24px}.collection-panel .toolbar{padding-bottom:12px}.collection-panel .toolbar p{margin:8px 0 0}.collection-scroll{max-height:340px;overflow:auto}.collection-scroll thead{position:sticky;top:0;z-index:1}.collection-scroll td{padding:12px 18px}.collection-scroll td:first-child{width:24%;min-width:160px}.collection-scroll td:last-child{white-space:normal;min-width:190px}.collection-scroll button,.source-button{border:0;background:none;padding:0;text-align:left;color:#bd3755;white-space:normal}.found-count{font-size:20px;font-weight:650;color:#263a58}.progress-reason{display:block;color:#8994a4;line-height:1.5;margin-top:4px}.progress-hint{font-size:11px;color:#8895a7;padding:0 20px 10px}.source-cell{min-width:150px;max-width:220px}.source-link{display:block;color:#8191a5;font-size:11px;text-decoration:none;margin-top:7px}.filters{flex-wrap:wrap}#source-filter{max-width:200px}
