:root{--bg:#0b0f14;--card:#101824;--text:#e8eef6;--muted:#9fb0c3;--accent:#4ea1ff;--danger:#ff5d5d}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--text)}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
.container{width:min(1100px,92%);margin:0 auto;padding:18px 0 50px}
.nav{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0}
.brand{font-weight:800;letter-spacing:.2px;font-size:18px}
.nav-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.btn{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:var(--text);padding:8px 12px;border-radius:10px;cursor:pointer}
.btn:hover{background:rgba(255,255,255,.10)}
.btn-primary{border-color:rgba(78,161,255,.35);background:rgba(78,161,255,.15)}
.btn-danger{border-color:rgba(255,93,93,.35);background:rgba(255,93,93,.12)}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.card{background:var(--card);border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:14px}
.card h3{margin:8px 0 6px;font-size:16px}
.muted{color:var(--muted);font-size:13px}
hr{border:none;border-top:1px solid rgba(255,255,255,.08);margin:16px 0}
input,textarea,select{width:100%;padding:10px 12px;border-radius:10px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:var(--text)}
label{font-size:13px;color:var(--muted);display:block;margin:10px 0 6px}
.form{max-width:520px}
.alert{padding:10px 12px;border-radius:10px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);margin:10px 0}
.alert-danger{border-color:rgba(255,93,93,.35);background:rgba(255,93,93,.12)}
.alert-ok{border-color:rgba(80,200,120,.35);background:rgba(80,200,120,.12)}
.table{width:100%;border-collapse:collapse}
.table th,.table td{border-bottom:1px solid rgba(255,255,255,.08);padding:10px 8px;text-align:left}
.badge{display:inline-block;padding:3px 8px;border-radius:999px;border:1px solid rgba(255,255,255,.12);font-size:12px;color:var(--muted)}
.chapter-list{display:flex;flex-direction:column;gap:8px}
.chapter-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:12px}
.chapter-row .left{display:flex;flex-direction:column;gap:2px}
small{color:var(--muted)}
@media (max-width:980px){.grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:520px){.grid{grid-template-columns:1fr}.nav{flex-direction:column;align-items:flex-start}}


.cover-thumb{width:48px;height:64px;object-fit:cover;border-radius:8px;border:1px solid rgba(255,255,255,.08);}
.cover-thumb-lg{width:100%;max-height:160px;object-fit:cover;border-radius:10px;margin-bottom:10px;border:1px solid rgba(255,255,255,.08);}
.novel-hero{display:flex;gap:16px;align-items:flex-start;margin-bottom:12px;}
.cover-hero{width:120px;height:160px;object-fit:cover;border-radius:12px;border:1px solid rgba(255,255,255,.08);}
