:root{
--background:222.2 84% 2%;--foreground:210 40% 98%;
--card:217.2 32.6% 10%;--muted:217.2 32.6% 10%;
--muted-foreground:215 20.2% 65.1%;--border:217.2 32.6% 10%;
--primary:210 40% 98%;--radius:.5rem
}
*{box-sizing:border-box;border-color:hsl(var(--border))}
html{overscroll-behavior-y:none;overflow-x:clip}
body{margin:0;background:hsl(var(--background));color:hsl(var(--foreground));
font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
font-feature-settings:"rlig" 1,"calt" 1;line-height:1.5;-webkit-font-smoothing:antialiased;
display:flex;flex-direction:column;min-height:100vh}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
.container{width:100%;max-width:1280px;margin:0 auto;padding:0 16px}
@media(min-width:640px){.container{padding:0 24px}}
/* ---------- header ---------- */
.hdr{position:fixed;top:0;left:0;width:100%;z-index:40;height:48px;
background:hsl(var(--background)/.95);backdrop-filter:blur(8px);
border-bottom:1px solid hsl(var(--border))}
.hdrin{height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 8px}
.hside{flex:1;display:flex;align-items:center;gap:4px}
.hside.right{justify-content:flex-end;gap:2px}
.logo{font-size:20px;font-weight:700;letter-spacing:-.02em;white-space:nowrap}
.logo b{color:#e11d48;font-weight:700}
.hbtn{display:inline-flex;align-items:center;justify-content:center;height:36px;
padding:0 10px;border-radius:6px;font-size:13px;font-weight:500;color:hsl(var(--foreground));
background:transparent;border:0;cursor:pointer;transition:background .15s}
.hbtn:hover{background:hsl(var(--muted))}
.hbtn svg{width:18px;height:18px}
/* ---------- main ---------- */
main{padding-top:48px;flex:1 0 auto}
.pad{padding-top:24px;padding-bottom:48px}
.about{margin-top:32px;padding-top:20px;border-top:1px solid hsl(var(--border))}
.about h2{margin-top:24px}
.about p{font-size:13px;line-height:1.65}
/* ---------- search + chips ---------- */
.searchbox{position:relative;margin-bottom:16px}
.input{width:100%;height:40px;border-radius:6px;border:1px solid hsl(var(--border));
background:hsl(var(--muted));color:hsl(var(--foreground));padding:0 12px 0 38px;font-size:14px;outline:none}
.input::placeholder{color:hsl(var(--muted-foreground))}
.input:focus{border-color:hsl(var(--muted-foreground)/.5)}
.sicon{position:absolute;left:12px;top:11px;width:18px;height:18px;color:hsl(var(--muted-foreground))}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}
.chip{height:32px;display:inline-flex;align-items:center;padding:0 12px;border-radius:6px;
font-size:13px;color:hsl(var(--muted-foreground));background:hsl(var(--muted));
border:1px solid transparent;cursor:pointer;transition:.15s}
.chip:hover{color:hsl(var(--foreground))}
.chip.on{color:hsl(var(--foreground));border-color:hsl(var(--muted-foreground)/.4)}
/* ---------- grid ---------- */
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media(min-width:640px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:768px){.grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:1024px){.grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(min-width:1280px){.grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
.card{display:block;transition:opacity .2s,transform .2s}
.card:hover{transform:translateY(-2px)}
.cv{position:relative;width:100%;aspect-ratio:2/3;border-radius:var(--radius);overflow:hidden;
background:hsl(var(--muted))}
.cv img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.card:hover .cv img{transform:scale(1.04)}
.cv::after{content:"";position:absolute;inset:0;
background:linear-gradient(to top,rgba(0,0,0,.35),transparent 35%)}
.cname{margin:9px 0 0;font-size:13px;font-weight:600;line-height:1.3;letter-spacing:-.01em;
display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cmeta{margin:1px 0 0;font-size:11px;color:hsl(var(--muted-foreground))}
.latest{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px}
.latest a{height:40px;display:flex;align-items:center;justify-content:space-between;gap:10px;
padding:0 12px;border-radius:6px;background:hsl(var(--muted));font-size:13px;transition:.15s}
.latest a:hover{background:hsl(var(--muted-foreground)/.15)}
.latest em{font-style:normal;color:hsl(var(--muted-foreground));font-size:12px;white-space:nowrap}
/* ---------- title page ---------- */
.lead{display:grid;grid-template-columns:110px 1fr;gap:16px;margin-bottom:20px}
@media(min-width:640px){.lead{grid-template-columns:200px 1fr;gap:24px}}
.lead .cvr{border-radius:var(--radius);overflow:hidden;background:hsl(var(--muted));align-self:start}
.lead .cvr img{aspect-ratio:2/3;object-fit:cover;width:100%}
h1{font-size:20px;line-height:1.25;margin:0 0 8px;font-weight:700}
@media(min-width:640px){h1{font-size:26px}}
h2{font-size:16px;font-weight:600;margin:28px 0 12px}
p{color:hsl(var(--muted-foreground));font-size:14px;margin:0 0 12px;max-width:75ch}
.meta{font-size:12px;color:hsl(var(--muted-foreground));margin-bottom:10px}
.chaps{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px}
.chaps a{display:flex;align-items:center;justify-content:space-between;
height:38px;padding:0 10px;border-radius:6px;background:hsl(var(--muted));
font-size:13px;font-weight:500;transition:.15s}
.chaps a:hover{background:hsl(var(--muted-foreground)/.15)}
.chaps a::after{content:"›";color:#e11d48;font-size:16px;line-height:1}
.chaps.soon a{opacity:.65}
/* ---------- chapter page ---------- */
.big{display:inline-flex;align-items:center;justify-content:center;gap:8px;
height:48px;padding:0 24px;border-radius:8px;background:#e11d48;color:#fff;
font-weight:600;font-size:15px;margin:6px 0 4px;transition:.15s}
.big:hover{background:#f43f5e}
.nav{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}
.nav a{height:36px;display:inline-flex;align-items:center;padding:0 12px;border-radius:6px;
background:hsl(var(--muted));font-size:13px;color:hsl(var(--muted-foreground))}
.nav a:hover{color:hsl(var(--foreground))}
/* ---------- footer ---------- */
footer{margin-top:40px;border-top:1px solid hsl(var(--border));background:hsl(var(--muted)/.3)}
.fgrid{display:grid;grid-template-columns:1fr;gap:24px;padding:20px 0}
@media(min-width:768px){.fgrid{grid-template-columns:repeat(3,1fr)}}
footer h3{font-size:16px;font-weight:600;margin:0 0 12px;display:flex;align-items:center;gap:8px}
footer ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
footer li,footer a{font-size:13px;color:hsl(var(--muted-foreground))}
footer a:hover{color:hsl(var(--foreground))}
.copy{margin-top:28px;padding-top:16px;border-top:1px solid hsl(var(--border));
text-align:center;font-size:11px;color:hsl(var(--muted-foreground))}
