:root {
  --bg: #0B0907;
  --surface: #16120E;
  --primary: #C9A15A;
  --accent: #E8354D;
  --text: #F5EFE4;
  --muted: #8A7E6E;
  --radius: 8px;
  --border: #000;
  --shadow: 6px 6px 0 #000;
  --shadow-sm: 4px 4px 0 #000;
  --glow-cyan: #39E6F0;
  --glow-purple: #9B5CFF;
  --font-heading: 'Bebas Neue', 'Oswald', 'Arial Black', 'Noto Sans SC', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', 'Helvetica Neue', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(155, 92, 255, 0.08), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(57, 230, 240, 0.06), transparent 40%);
  background-attachment: fixed;
}

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

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

/* ============ Header ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 9, 7, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 4px 0 rgba(201, 161, 90, 0.15);
}
.header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.logo {
  font-family: var(--font-heading);
  font-size: 26px;
  letter-spacing: 2px;
  color: var(--primary);
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 2px 2px 0 #000, 0 0 12px rgba(201, 161, 90, 0.4);
}
.logo:hover { color: var(--text); }
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border-radius: var(--radius);
  border: 2px solid transparent;
  white-space: nowrap;
  transition: all .2s;
}
.nav a:hover {
  color: var(--text);
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.search-box {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  padding: 8px 12px;
  font-size: 14px;
  width: 160px;
  font-family: var(--font-body);
}
.search-box input::placeholder { color: var(--muted); }
.search-box button {
  background: var(--primary);
  border: none;
  border-left: 2px solid var(--border);
  color: #000;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background .2s;
}
.search-box button:hover { background: var(--accent); color: var(--text); }

/* ============ Hero ============ */
.hero {
  position: relative;
  margin: 28px 0;
  border: 3px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}
.hero-slide {
  position: relative;
  display: none;
  min-height: 420px;
}
.hero-slide:first-child { display: block; }
.hero-slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  opacity: .55;
}
.hero-info {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 40px 32px;
  max-width: 620px;
  background: linear-gradient(to top, rgba(11,9,7,.95), transparent);
}
.hero-info h2 {
  font-family: var(--font-heading);
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: 1px;
  color: var(--text);
  text-shadow: 3px 3px 0 #000;
  margin-bottom: 12px;
}
.hero-info p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.btn {
  display: inline-block;
  padding: 10px 26px;
  background: var(--primary);
  color: #000;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: 1px;
  border: 3px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all .15s;
  cursor: pointer;
}
.btn:hover {
  background: var(--accent);
  color: var(--text);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
}

/* ============ Section ============ */
.sec { margin: 40px 0; }
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(201, 161, 90, 0.25);
}
.sec-title {
  font-family: var(--font-heading);
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--primary);
  text-transform: uppercase;
  position: relative;
  padding-left: 16px;
}
.sec-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 70%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  border-radius: 2px;
}
.sec-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border: 2px solid var(--border);
  padding: 5px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: all .15s;
}
.sec-more:hover {
  color: var(--text);
  border-color: var(--primary);
  transform: translate(-2px, -2px);
}

/* ============ Grid & Card ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 #000;
  border-color: var(--primary);
}
.card-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #000;
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.card:hover .card-cover img { transform: scale(1.06); }
.card-score {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--accent);
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  padding: 2px 8px;
  border: 2px solid var(--border);
  border-radius: 4px;
  box-shadow: 2px 2px 0 #000;
}
.card-info { padding: 10px 12px 12px; }
.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.card-meta {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ Cat List ============ */
.cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  font-size: 14px;
  transition: all .15s;
}
.cat-item:hover {
  border-color: var(--primary);
  transform: translate(-2px, -2px);
  color: var(--primary);
}
.cat-count {
  font-size: 11px;
  color: var(--muted);
  background: rgba(201, 161, 90, 0.12);
  padding: 1px 8px;
  border-radius: 10px;
}

/* ============ Rank List ============ */
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all .15s;
}
.rank-item:hover {
  border-color: var(--primary);
  transform: translateX(3px);
}
.rank-num {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--muted);
  min-width: 36px;
  text-align: center;
}
.rank-item:nth-child(1) .rank-num { color: var(--accent); text-shadow: 0 0 10px var(--accent); }
.rank-item:nth-child(2) .rank-num { color: var(--primary); }
.rank-item:nth-child(3) .rank-num { color: var(--glow-cyan); }
.rank-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-score {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--primary);
  font-weight: 700;
}

/* ============ Detail ============ */
.detail { margin: 28px 0; }
.detail-head {
  display: flex;
  gap: 28px;
  padding: 24px;
  background: var(--surface);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.detail-cover {
  flex-shrink: 0;
  width: 240px;
  aspect-ratio: 2 / 3;
  border: 3px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #000;
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-meta { flex: 1; min-width: 0; }
.detail-meta h1 {
  font-family: var(--font-heading);
  font-size: 36px;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 12px;
  text-shadow: 2px 2px 0 #000;
}
.detail-meta p { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.detail-meta p strong { color: var(--primary); font-weight: 600; }
.detail-score {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--accent);
  border: 3px solid var(--border);
  padding: 2px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin: 14px 0;
  text-shadow: 0 0 12px rgba(232, 53, 77, 0.5);
}
.detail-body {
  padding: 24px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  line-height: 1.8;
  color: var(--text);
  font-size: 15px;
}
.detail-body h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--primary);
  margin: 20px 0 12px;
  letter-spacing: 1px;
}
.detail-body h2:first-child { margin-top: 0; }
.detail-body p { margin-bottom: 12px; color: var(--muted); }

/* ============ Tag List ============ */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tag {
  font-size: 12px;
  padding: 4px 12px;
  background: rgba(201, 161, 90, 0.1);
  border: 2px solid rgba(201, 161, 90, 0.35);
  border-radius: 20px;
  color: var(--primary);
  transition: all .15s;
}
.tag:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--border);
  box-shadow: 2px 2px 0 #000;
}

/* ============ Pager ============ */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 36px 0;
  flex-wrap: wrap;
}
.pg {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-weight: 700;
  font-size: 14px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  transition: all .15s;
}
.pg:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translate(-2px, -2px);
}
.pg.current {
  background: var(--primary);
  color: #000;
  border-color: var(--border);
  box-shadow: 2px 2px 0 #000;
}
.pg.disabled {
  opacity: .35;
  pointer-events: none;
  box-shadow: none;
}

/* ============ Links ============ */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.link-item {
  font-size: 13px;
  color: var(--muted);
  padding: 4px 12px;
  border: 2px solid rgba(138, 126, 110, 0.3);
  border-radius: var(--radius);
  transition: all .15s;
}
.link-item:hover {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 2px 2px 0 #000;
}

/* ============ Footer ============ */
.footer {
  margin-top: 60px;
  padding: 40px 0 30px;
  background: var(--surface);
  border-top: 3px solid var(--border);
  box-shadow: 0 -4px 0 rgba(201, 161, 90, 0.12);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.9;
}
.footer a { color: var(--primary); }
.footer a:hover { color: var(--accent); }
.footer .wrap { display: flex; flex-direction: column; gap: 10px; align-items: center; }

/* ============ Crumbs ============ */
.crumbs {
  font-size: 13px;
  color: var(--muted);
  margin: 20px 0;
  padding: 10px 16px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.crumbs a { color: var(--primary); }
.crumbs a:hover { color: var(--accent); }

/* ============ Highlight ============ */
.hl {
  color: var(--accent);
  font-weight: 700;
  background: rgba(232, 53, 77, 0.12);
  padding: 0 3px;
  border-radius: 3px;
}

/* ============ Mobile ============ */
@media (max-width: 768px) {
  .wrap { padding: 0 14px; }
  .header .wrap {
    height: auto;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .logo { font-size: 22px; }
  .nav {
    order: 3;
    width: 100%;
    flex: none;
    padding-bottom: 4px;
  }
  .search-box { flex: 1; }
  .search-box input { width: 100%; min-width: 0; }
  .hero-slide { min-height: 300px; }
  .hero-slide img { height: 300px; }
  .hero-info { padding: 24px 18px; max-width: 100%; }
  .hero-info h2 { font-size: 28px; }
  .btn { font-size: 16px; padding: 8px 20px; }
  .sec-title { font-size: 22px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .detail-head {
    flex-direction: column;
    align-items: center;
    padding: 18px;
    gap: 18px;
  }
  .detail-cover { width: 180px; }
  .detail-meta h1 { font-size: 26px; text-align: center; }
  .detail-meta { text-align: center; }
  .detail-body { padding: 18px; }
  .rank-num { font-size: 20px; min-width: 28px; }
  .pg { min-width: 36px; height: 36px; font-size: 13px; }
}

@media (max-width: 420px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-info { padding: 8px 10px 10px; }
  .card-title { font-size: 13px; }
}