body{margin:0;background:#0a0a0a;color:#e0e0e0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}a{color:inherit}#history-page{max-width:1000px;margin:0 auto;padding:0 0 40px}#history-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 16px 12px}#history-back{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#555;text-decoration:none;font-weight:400;transition:color .15s}#history-back:hover{color:#e0e0e0}#history-tools{display:flex;align-items:center;gap:8px}#history-count{color:#777;font-size:12px}.history-tool-btn,.history-btn{border:1px solid #1e1e1e;background:#111;color:#e0e0e0;border-radius:8px;padding:6px 10px;text-decoration:none;font-size:12px;cursor:pointer;transition:border-color .15s,color .15s,background .15s}.history-tool-btn.danger{color:#d48d94;border-color:#d48d943d;background:#d48d9414}.history-tool-btn:hover,.history-btn:hover{border-color:#333;color:#e0e0e0}.history-tool-btn.danger:hover{border-color:#d48d945c;background:#d48d941f;color:#efb0b7}#history-empty{padding:64px 20px;text-align:center;color:#9ba3b4;border:1px dashed rgba(255,255,255,.12);border-radius:20px;background:#ffffff08}#history-list{display:grid;gap:10px;padding:0 16px}.history-card{display:grid;grid-template-columns:104px minmax(0,1fr);gap:12px;padding:11px;border-radius:16px;background:linear-gradient(180deg,#ffffff0d,#ffffff08);border:1px solid rgba(255,255,255,.08)}.history-thumb{display:block;aspect-ratio:3 / 4;border-radius:12px;overflow:hidden;background:#ffffff0d;border:0;padding:0}.history-thumb-img{width:100%;height:100%;object-fit:cover;display:block}.history-thumb-fallback{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#cbd3e3;background:linear-gradient(135deg,#816bff38,#ffffff0a)}.history-thumb-manual{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;border:1px dashed rgba(255,255,255,.12);border-radius:12px;background:#ffffff08;color:#aab2c2;font-size:12px;cursor:pointer}.history-thumb-manual:hover{border-color:#ffffff38;color:#dce1eb}.history-body{min-width:0;display:flex;flex-direction:column;gap:5px}.history-top{display:flex;justify-content:space-between;gap:12px}.history-title{display:inline-block;font-size:18px;font-weight:700;color:#f6f7fb;text-decoration:none;line-height:1.15}.history-meta{margin-top:2px;color:#9ba3b4;font-size:12px}.history-episode{font-size:14px;color:#dde3ef;line-height:1.25}.history-progress{color:#b8c0d0;font-size:12px}.history-actions{display:flex;gap:8px;margin-top:2px;flex-wrap:wrap}.history-btn.primary{background:#111;border-color:#2b2b2b}.history-actions .history-btn:last-child{color:#b7becd;border-color:#262626;background:#ffffff06}.history-actions .history-btn:last-child:hover{color:#d9dfeb;border-color:#353535;background:#ffffff0d}.history-delete{border:0;background:transparent;color:#cdd4e3;cursor:pointer;font-size:13px;padding:0}.history-episodes{display:grid;gap:4px;margin-top:2px;grid-column:2}.history-ep-row{min-width:0;display:flex;align-items:center;gap:8px;padding:5px 6px;border-radius:10px;background:#ffffff08;border:1px solid rgba(255,255,255,.05)}.history-ep-row:hover{background:#ffffff0f}.history-ep-main{min-width:0;overflow:hidden;flex:1;display:flex;align-items:center;justify-content:space-between;gap:10px;text-decoration:none}.history-ep-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e6ebf6;font-size:13px}.history-ep-progress{flex-shrink:0;color:#9ea8ba;font-size:12px}.history-ep-delete{flex:0 0 auto;border:1px solid rgba(255,255,255,.09);background:#ffffff08;color:#cfd6e6;border-radius:7px;padding:5px 8px;font-size:12px;cursor:pointer}@media(max-width:700px){#history-top{flex-direction:column;align-items:stretch;margin-bottom:10px}#history-tools{justify-content:space-between}.history-card{grid-template-columns:74px minmax(0,1fr)}.history-episodes{grid-column:1 / -1;margin-top:4px}.history-title{font-size:16px}.history-ep-row{padding:5px 7px}.history-ep-main{gap:8px}.history-ep-progress{max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
