:root{
  --bg:#0a0a0c; --bg2:#0f0f14; --bg3:#14141b;
  --card:rgba(20,20,26,.72);
  --border:rgba(255,255,255,.10);
  --text:#e8e6e0; --muted:#8a8898;
  --accent:#c0392b; --accent2:#e74c3c; --gold:#d4af37;
  --shadow: 0 20px 60px rgba(0,0,0,.55);
  --radius: 18px;
  --max: 1120px;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:'Crimson Pro', Georgia, serif;
  color:var(--text);
  background: radial-gradient(1200px 700px at 20% -10%, rgba(192,57,43,.18), transparent 60%),
              radial-gradient(900px 600px at 80% 0%, rgba(212,175,55,.12), transparent 55%),
              linear-gradient(180deg, var(--bg) 0%, #07070a 100%);
  overflow-x:hidden;
}
body::before{
  content:'';
  position:fixed; inset:0;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events:none; z-index:9999; opacity:.55;
}
a{color:inherit}
.container{max-width:var(--max); margin:0 auto; padding:0 24px}
.nav{
  position:sticky; top:0; z-index:1000;
  background:rgba(10,10,12,.78);
  backdrop-filter: blur(18px);
  border-bottom:1px solid var(--border);
}
.nav-inner{height:68px; display:flex; align-items:center; justify-content:space-between; gap:16px}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none}
.brand img{width:38px;height:38px;border-radius:12px; box-shadow:0 8px 26px rgba(0,0,0,.35)}
.brand .name{font-family:'Cinzel', serif; font-weight:900; letter-spacing:.06em; font-size:15px}
.brand .tag{font-size:12px; color:var(--muted); margin-top:2px}
.nav-links{display:flex; align-items:center; gap:14px}
.nav-links a{color:var(--muted); text-decoration:none; font-family:'Cinzel', serif; font-size:12px; letter-spacing:.08em; padding:10px 10px; border-radius:12px; transition:.2s}
.nav-links a:hover{color:var(--text); background:rgba(255,255,255,.04)}
.nav-cta{display:flex; align-items:center; gap:10px}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 14px; border-radius:14px;
  text-decoration:none; font-family:'Cinzel', serif;
  font-weight:800; font-size:12px; letter-spacing:.06em;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--text);
  transition:.2s;
  cursor:pointer;
}
.btn:hover{transform:translateY(-1px); background:rgba(255,255,255,.06)}
.btn.primary{background:linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%); border-color:rgba(231,76,60,.55)}
.btn.primary:hover{box-shadow:0 16px 40px rgba(192,57,43,.25)}
.kbd{font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-size:11px; color:var(--muted); border:1px solid var(--border); padding:2px 6px; border-radius:8px}
.hero{
  position:relative;
  padding:64px 0 40px;
}
.hero-grid{display:grid; grid-template-columns: 1.2fr .8fr; gap:28px; align-items:stretch}
.hero-card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:linear-gradient(180deg, rgba(20,20,26,.78) 0%, rgba(20,20,26,.55) 100%);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero-cover{
  position:relative;
  padding:34px 28px;
  min-height: 320px;
  background:
    linear-gradient(180deg, rgba(10,10,12,.45) 0%, rgba(10,10,12,.92) 72%),
    url("hero_bg.jpg") center/cover no-repeat;
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--border);
  color:var(--muted);
  padding:8px 12px; border-radius:999px;
  font-family:'Cinzel', serif; font-size:11px; letter-spacing:.08em;
}
.h1{
  font-family:'Cinzel', serif;
  font-weight:900;
  font-size:40px;
  line-height:1.12;
  margin:16px 0 10px;
}
.p{
  color:#cfcdd6;
  font-size:18px;
  line-height:1.75;
  max-width: 62ch;
}
.hero-actions{display:flex; flex-wrap:wrap; gap:12px; margin-top:18px}
.stat-row{display:flex; flex-wrap:wrap; gap:10px; margin-top:22px}
.stat{
  flex:1;
  min-width: 150px;
  border:1px solid var(--border);
  border-radius: 16px;
  padding:14px 14px;
  background:rgba(0,0,0,.14);
}
.stat .k{font-family:'Cinzel', serif; font-weight:800; font-size:11px; letter-spacing:.08em; color:var(--muted)}
.stat .v{font-size:18px; margin-top:6px}
.side{
  padding:22px;
}
.side h2{font-family:'Cinzel', serif; font-size:14px; letter-spacing:.08em}
.card{
  border:1px solid var(--border);
  background:var(--card);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
}
.feature-list{display:grid; gap:12px; margin-top:12px}
.feature{
  padding:14px;
  border:1px solid var(--border);
  border-radius: 16px;
  background:rgba(255,255,255,.03);
}
.feature .t{font-family:'Cinzel', serif; font-weight:800; font-size:12px; letter-spacing:.08em}
.feature .d{color:#cfcdd6; margin-top:6px; line-height:1.7}
.section{padding:18px 0 56px}
.section-title{
  display:flex; align-items:flex-end; justify-content:space-between; gap:14px;
  margin:10px 0 14px;
}
.section-title h2{
  font-family:'Cinzel', serif;
  font-weight:900;
  font-size:20px;
  letter-spacing:.04em;
}
.section-title p{color:var(--muted)}
.grid{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px}
.tile{
  padding:18px;
  border-radius: var(--radius);
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  transition:.2s;
}
.tile:hover{transform:translateY(-2px); background:rgba(255,255,255,.05)}
.tile .title{font-family:'Cinzel', serif; font-weight:900; letter-spacing:.06em}
.tile .meta{color:var(--muted); margin-top:8px; line-height:1.7}
.footer{
  border-top:1px solid var(--border);
  padding:28px 0;
  color:var(--muted);
  background:rgba(10,10,12,.65);
}
.footer .fine{margin-top:6px; font-size:13px}
.notice{
  margin-top:14px;
  border:1px solid rgba(212,175,55,.25);
  background:rgba(212,175,55,.06);
  color:#d9d6c8;
  padding:12px 14px;
  border-radius: 16px;
}
.input{
  width:100%;
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.18);
  color:var(--text);
  outline:none;
}
.small{font-size:13px; color:var(--muted)}
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr; }
  .grid{grid-template-columns:1fr}
  .h1{font-size:34px}
}
/* Chapter list (index sidebar) */
.chapter-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top: 12px;
}
.chapter-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  text-decoration:none;
  color: rgba(255,255,255,.92);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.chapter-item:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.04);
  border-color: rgba(140,180,255,.26);
}
.chapter-item .cno{ font-weight: 800; letter-spacing:.2px; }
.chapter-item .arrow{ opacity:.75; font-weight: 900; }
.chapter-item .left{ display:flex; align-items:baseline; gap:8px; min-width:0; }
.chapter-item .ctitle{ opacity:.78; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width: 18ch; }


/* Latest chapters (index) */
.chapter-list{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
@media (max-width: 820px){
  .chapter-list{ grid-template-columns: 1fr; }
}
.chapter-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(135deg, rgba(0,0,0,.20), rgba(255,255,255,.03));
  text-decoration:none;
  color: rgba(255,255,255,.92);
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.chapter-item:hover{
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(140,180,255,.10), rgba(255,160,90,.06));
  border-color: rgba(140,180,255,.30);
  box-shadow: 0 0 18px rgba(140,180,255,.10);
}
.chapter-item .cno{ font-weight: 850; letter-spacing:.2px; text-decoration:none; }
.chapter-item .arrow{ opacity:.70; font-weight: 950; }
.chapter-list-meta{ margin-top: 12px; }
.chapter-more{
  text-decoration:none;
  color: rgba(140,180,255,.95);
  font-weight: 850;
  letter-spacing: .2px;
}
.chapter-more:hover{ text-decoration: underline; }

/* SS2 chapter list cards */
.ch-card{
  display:flex;
  gap:14px;
  align-items:center;
  padding:14px 14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  text-decoration:none;
  color: rgba(255,255,255,.92);
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  margin-bottom: 12px;
}
.ch-card:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.04);
  border-color: rgba(140,180,255,.28);
  box-shadow: 0 0 22px rgba(140,180,255,.14);
}
.ch-left{width:118px; flex: 0 0 118px;}
.ch-thumb{
  width:118px;height:72px;object-fit:cover;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  filter: grayscale(10%);
}
.ch-mid{flex:1; min-width:0;}
.ch-title{font-weight:900; font-size:16px; letter-spacing:.2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.ch-sub{opacity:.78; margin-top:4px; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.ch-right{opacity:.7; font-weight:900;}
@media (max-width: 700px){
  .ch-left{width:86px; flex-basis:86px;}
  .ch-thumb{width:86px;height:60px;}
}
