:root{
  --bg:#0E0D0C;
  --surface:#1A1917;
  --primary:#D9381E;
  --accent:#D9381E;
  --text:#F2EFE9;
  --muted:#8A8782;
  --radius:4px;
  --font:'Inter','Helvetica Neue',Arial,'Noto Sans SC',sans-serif;
  --shadow:0 8px 24px rgba(0,0,0,.55);
  --line:rgba(242,239,233,.12);
}

*{box-sizing:border-box;margin:0;padding:0;}

html{-webkit-text-size-adjust:100%;}

body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font);
  font-size:15px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

a{color:inherit;text-decoration:none;transition:color .2s ease;}
a:hover{color:var(--primary);}
img{display:block;max-width:100%;}
ul,ol{list-style:none;}

.wrap{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 24px;
}

/* ---------- Header ---------- */
.header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(14,13,12,.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.header .wrap{
  display:flex;
  align-items:center;
  gap:24px;
  height:64px;
}
.logo{
  font-size:20px;
  font-weight:700;
  letter-spacing:.06em;
  white-space:nowrap;
  color:var(--text);
}
.logo::before{
  content:"";
  display:inline-block;
  width:8px;
  height:8px;
  margin-right:8px;
  background:var(--primary);
  vertical-align:middle;
}
.nav{
  display:flex;
  align-items:center;
  gap:20px;
  flex:1;
  overflow-x:auto;
  scrollbar-width:none;
}
.nav::-webkit-scrollbar{display:none;}
.nav a{
  font-size:14px;
  color:var(--muted);
  white-space:nowrap;
  padding:4px 0;
  border-bottom:2px solid transparent;
}
.nav a:hover{color:var(--text);border-bottom-color:var(--primary);}

.search-box{
  display:flex;
  align-items:center;
  gap:8px;
  flex-shrink:0;
}
.search-box input{
  width:180px;
  height:36px;
  padding:0 12px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  color:var(--text);
  font-family:var(--font);
  font-size:13px;
  outline:none;
}
.search-box input:focus{border-color:var(--primary);}
.search-box button{
  height:36px;
  padding:0 16px;
  background:var(--primary);
  border:none;
  border-radius:var(--radius);
  color:#fff;
  font-family:var(--font);
  font-size:13px;
  cursor:pointer;
  transition:opacity .2s ease;
}
.search-box button:hover{opacity:.85;}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  margin:24px 0 40px;
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--surface);
}
.hero-slide{
  position:relative;
  display:block;
  aspect-ratio:21/9;
  overflow:hidden;
}
.hero-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:brightness(.7);
  transition:transform .6s ease;
}
.hero-slide:hover img{transform:scale(1.03);}
.hero-info{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:40px 32px 28px;
  background:linear-gradient(to top,rgba(14,13,12,.95),transparent);
}
.hero-info h2{
  font-size:28px;
  font-weight:700;
  line-height:1.3;
  margin-bottom:8px;
}
.hero-info p{
  font-size:14px;
  color:var(--muted);
  max-width:640px;
  margin-bottom:16px;
}

.btn{
  display:inline-block;
  padding:10px 24px;
  background:var(--primary);
  color:#fff;
  border-radius:var(--radius);
  font-size:14px;
  font-weight:600;
  transition:opacity .2s ease,transform .2s ease;
}
.btn:hover{color:#fff;opacity:.88;transform:translateY(-1px);}

/* ---------- Section ---------- */
.sec{margin-bottom:48px;}
.sec-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  padding-bottom:12px;
  margin-bottom:20px;
  border-bottom:1px solid var(--line);
  position:relative;
}
.sec-head::before{
  content:"";
  position:absolute;
  left:0;
  bottom:-1px;
  width:48px;
  height:2px;
  background:var(--primary);
}
.sec-title{
  font-size:20px;
  font-weight:700;
  letter-spacing:.04em;
}
.sec-more{
  font-size:13px;
  color:var(--muted);
  white-space:nowrap;
}
.sec-more:hover{color:var(--primary);}

/* ---------- Grid & Card ---------- */
.grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:20px;
}
.card{
  display:block;
  background:var(--surface);
  border-radius:var(--radius);
  overflow:hidden;
  transition:transform .25s ease,box-shadow .25s ease;
}
.card:hover{
  transform:scale(1.02);
  box-shadow:var(--shadow);
}
.card-cover{
  position:relative;
  aspect-ratio:2/3;
  overflow:hidden;
  background:#000;
}
.card-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .4s ease;
}
.card:hover .card-cover img{transform:scale(1.05);}
.card-score{
  position:absolute;
  top:8px;
  right:8px;
  min-width:34px;
  padding:2px 6px;
  background:var(--primary);
  color:#fff;
  font-size:12px;
  font-weight:700;
  text-align:center;
  border-radius:var(--radius);
}
.card-info{padding:10px 12px 14px;}
.card-title{
  font-size:14px;
  font-weight:600;
  line-height:1.4;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
}
.card-meta{
  margin-top:4px;
  font-size:12px;
  color:var(--muted);
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
}

/* ---------- Categories ---------- */
.cat-list{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:12px;
}
.cat-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:12px 14px;
  background:var(--surface);
  border-left:2px solid var(--primary);
  border-radius:var(--radius);
  font-size:14px;
  transition:background .2s ease;
}
.cat-item:hover{background:#232120;}
.cat-count{
  font-size:12px;
  color:var(--muted);
}

/* ---------- Rank ---------- */
.rank-list{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:2px 32px;
}
.rank-item{
  display:flex;
  align-items:center;
  gap:14px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
}
.rank-num{
  flex-shrink:0;
  width:28px;
  font-size:16px;
  font-weight:700;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
}
.rank-item:nth-child(-n+3) .rank-num{color:var(--primary);}
.rank-title{
  flex:1;
  font-size:14px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.rank-score{
  flex-shrink:0;
  font-size:13px;
  font-weight:700;
  color:var(--primary);
}

/* ---------- Detail ---------- */
.detail{margin:32px 0 48px;}
.detail-head{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:32px;
  padding-bottom:32px;
  margin-bottom:32px;
  border-bottom:1px solid var(--line);
}
.detail-cover{
  aspect-ratio:2/3;
  overflow:hidden;
  border-radius:var(--radius);
  background:#000;
}
.detail-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.detail-meta h1{
  font-size:28px;
  font-weight:700;
  line-height:1.3;
  margin-bottom:12px;
}
.detail-score{
  display:inline-block;
  padding:3px 10px;
  margin-bottom:16px;
  background:var(--primary);
  color:#fff;
  font-size:15px;
  font-weight:700;
  border-radius:var(--radius);
}
.detail-meta p{
  font-size:14px;
  color:var(--muted);
  margin-bottom:6px;
}
.detail-meta p strong{color:var(--text);font-weight:600;}
.detail-body{
  font-size:15px;
  line-height:1.9;
  color:rgba(242,239,233,.85);
}
.detail-body p{margin-bottom:16px;}

/* ---------- Tags ---------- */
.tag-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:16px 0;
}
.tag{
  display:inline-block;
  padding:3px 10px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  font-size:12px;
  color:var(--muted);
  transition:border-color .2s ease,color .2s ease;
}
.tag:hover{border-color:var(--primary);color:var(--primary);}

/* ---------- Pager ---------- */
.pager{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  margin:40px 0;
}
.pg{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:38px;
  height:38px;
  padding:0 12px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  font-size:13px;
  color:var(--text);
  transition:border-color .2s ease,color .2s ease;
}
.pg:hover{border-color:var(--primary);color:var(--primary);}
.pg.current{
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
}
.pg.disabled{
  opacity:.35;
  pointer-events:none;
}

/* ---------- Links ---------- */
.links{
  display:flex;
  flex-wrap:wrap;
  gap:10px 20px;
  padding:20px 0;
  border-top:1px solid var(--line);
}
.link-item{
  font-size:13px;
  color:var(--muted);
}

/* ---------- Footer ---------- */
.footer{
  margin-top:56px;
  padding:32px 0;
  border-top:1px solid var(--line);
  font-size:13px;
  color:var(--muted);
  text-align:center;
  line-height:2;
}
.footer a{color:var(--muted);}
.footer a:hover{color:var(--primary);}

/* ---------- Crumbs ---------- */
.crumbs{
  padding:20px 0 8px;
  font-size:13px;
  color:var(--muted);
}
.crumbs a{color:var(--muted);}
.crumbs a:hover{color:var(--primary);}

/* ---------- Highlight ---------- */
.hl{
  color:var(--primary);
  font-weight:600;
  background:rgba(217,56,30,.12);
  padding:0 2px;
  border-radius:2px;
}

/* ---------- Animation ---------- */
@keyframes fadeUp{
  from{opacity:0;transform:translateY(16px);}
  to{opacity:1;transform:translateY(0);}
}
.card,.sec,.hero,.detail{
  animation:fadeUp .5s ease both;
}

/* ---------- Responsive ---------- */
@media(max-width:1024px){
  .grid{grid-template-columns:repeat(4,1fr);}
  .cat-list{grid-template-columns:repeat(3,1fr);}
}

@media(max-width:768px){
  .wrap{padding:0 16px;}
  .header .wrap{
    height:auto;
    flex-wrap:wrap;
    padding-top:12px;
    padding-bottom:12px;
    gap:12px;
  }
  .logo{font-size:18px;}
  .nav{
    order:3;
    width:100%;
    gap:16px;
    padding-bottom:4px;
  }
  .search-box{flex:1;justify-content:flex-end;}
  .search-box input{width:100%;max-width:160px;}

  .hero{margin:16px 0 28px;}
  .hero-slide{aspect-ratio:4/3;}
  .hero-info{padding:24px 16px 18px;}
  .hero-info h2{font-size:20px;}
  .hero-info p{font-size:13px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}

  .sec{margin-bottom:32px;}
  .sec-title{font-size:17px;}

  .grid{grid-template-columns:repeat(2,1fr);gap:12px;}
  .cat-list{grid-template-columns:repeat(2,1fr);gap:8px;}
  .rank-list{grid-template-columns:1fr;gap:0;}

  .detail-head{
    grid-template-columns:1fr;
    gap:20px;
  }
  .detail-cover{max-width:220px;}
  .detail-meta h1{font-size:22px;}
  .detail-body{font-size:14px;}

  .pg{min-width:34px;height:34px;padding:0 10px;}
}