:root {
  --bg: #1C1C1E;
  --surface: #26262A;
  --primary: #FF5A1F;
  --accent: #2D6BE0;
  --text: #F2F2F0;
  --muted: #8A8A90;
  --line: #000;
  --radius: 2px;
  --shadow: 6px 6px 0 #000;
  --font-h: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-b: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

* { 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-b);
  font-size: 15px;
  line-height: 1.6;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0));
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

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

/* ---------- header ---------- */
.header {
  background: var(--surface);
  border-bottom: 2px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.logo {
  font-family: var(--font-h);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo::before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--primary);
  border: 2px solid var(--line);
  display: inline-block;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--muted);
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
}
.nav a:hover, .nav a.active {
  color: var(--text);
  background: var(--bg);
  border-color: var(--line);
}
.search-box {
  display: flex;
  align-items: center;
  border: 2px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}
.search-box input {
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-family: var(--font-b);
  font-size: 14px;
  padding: 8px 12px;
  width: 180px;
}
.search-box input::placeholder { color: var(--muted); }
.search-box button {
  background: var(--primary);
  border: 0;
  border-left: 2px solid var(--line);
  color: #000;
  font-family: var(--font-b);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 16px;
  cursor: pointer;
}
.search-box button:hover { filter: brightness(1.1); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  margin: 32px 0;
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
  overflow: hidden;
  border-radius: var(--radius);
}
.hero-slide {
  position: relative;
  display: block;
  aspect-ratio: 21 / 9;
  overflow: hidden;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28,28,30,0.95) 0%, rgba(28,28,30,0.6) 45%, rgba(28,28,30,0) 100%);
}
.hero-info {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 32px;
  max-width: 560px;
  z-index: 2;
}
.hero-info h2 {
  font-family: var(--font-h);
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.hero-info p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #000;
  font-family: var(--font-b);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 #000;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
}
.btn.ghost {
  background: transparent;
  color: var(--text);
}

/* ---------- section ---------- */
.sec { margin: 48px 0; }
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}
.sec-title {
  font-family: var(--font-h);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sec-title::before {
  content: "";
  width: 10px;
  height: 26px;
  background: var(--primary);
  border: 2px solid var(--line);
  display: inline-block;
}
.sec-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid var(--line);
  padding: 4px 12px;
  border-radius: var(--radius);
  background: var(--surface);
  white-space: nowrap;
}
.sec-more:hover { color: var(--text); background: var(--primary); }

/* ---------- grid & cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 #000;
}
.card-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 2px solid var(--line);
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.card:hover .card-cover img { transform: scale(1.04); }
.card-score {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--primary);
  color: #000;
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 13px;
  padding: 2px 8px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  line-height: 1.4;
}
.card-info { padding: 10px 12px 12px; }
.card-title {
  font-family: var(--font-h);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.card-meta span { white-space: nowrap; }

/* ---------- categories ---------- */
.cat-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 #000;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 14px;
  transition: transform .12s, background .12s;
}
.cat-item:hover { transform: translate(-2px, -2px); background: var(--accent); }
.cat-count {
  font-family: var(--font-h);
  font-size: 12px;
  font-weight: 800;
  background: var(--primary);
  color: #000;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 0 6px;
  line-height: 1.5;
}

/* ---------- ranking ---------- */
.rank-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  transition: transform .12s, background .12s;
}
.rank-item:hover { transform: translateX(3px); background: #2e2e33; }
.rank-num {
  font-family: var(--font-h);
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  min-width: 36px;
  text-align: center;
  line-height: 1;
}
.rank-title {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-score {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 0 8px;
}

/* ---------- detail ---------- */
.detail { margin: 32px 0; }
.detail-head {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  background: var(--surface);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}
.detail-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-meta h1 {
  font-family: var(--font-h);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 8px;
}
.detail-meta .sub {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 16px;
}
.detail-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #000;
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 20px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 14px;
  margin-bottom: 16px;
}
.detail-meta .info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 24px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}
.detail-meta .info b { color: var(--text); font-weight: 600; }
.detail-body {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
  line-height: 1.8;
}
.detail-body h2 {
  font-family: var(--font-h);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}
.detail-body p { color: #d0d0d2; margin-bottom: 12px; }

/* ---------- tags ---------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 3px 10px;
  transition: background .12s, color .12s;
}
.tag:hover { background: var(--accent); color: #fff; }

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

/* ---------- links ---------- */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0;
}
.link-item {
  font-size: 13px;
  color: var(--muted);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 12px;
  background: var(--surface);
  transition: color .12s, background .12s;
}
.link-item:hover { color: #000; background: var(--primary); }

/* ---------- footer ---------- */
.footer {
  margin-top: 64px;
  background: var(--surface);
  border-top: 2px solid var(--line);
  padding: 32px 0;
  font-size: 13px;
  color: var(--muted);
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--primary); }

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

/* ---------- highlight ---------- */
.hl {
  background: var(--primary);
  color: #000;
  padding: 0 2px;
  border-radius: var(--radius);
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .cat-list { grid-template-columns: repeat(3, 1fr); }
  .hero-info h2 { font-size: 30px; }
}

@media (max-width: 768px) {
  .wrap { padding: 0 14px; }
  .header .wrap {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 14px;
    gap: 10px;
  }
  .logo { font-size: 20px; }
  .nav {
    order: 3;
    width: 100%;
    flex: none;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .nav a { padding: 5px 10px; font-size: 13px; }
  .search-box { margin-left: auto; }
  .search-box input { width: 120px; padding: 6px 10px; font-size: 13px; }
  .search-box button { padding: 6px 12px; font-size: 13px; }

  .hero { margin: 20px 0; }
  .hero-slide { aspect-ratio: 4 / 3; }
  .hero-info { padding: 18px; }
  .hero-info h2 { font-size: 22px; margin-bottom: 8px; }
  .hero-info p { font-size: 13px; margin-bottom: 14px; }

  .sec { margin: 32px 0; }
  .sec-title { font-size: 20px; }
  .sec-title::before { height: 20px; width: 8px; }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cat-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-item { padding: 10px 12px; font-size: 13px; }

  .rank-list { grid-template-columns: 1fr; }
  .rank-num { font-size: 18px; min-width: 28px; }

  .detail-head {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px;
  }
  .detail-cover { max-width: 200px; margin: 0 auto; }
  .detail-meta h1 { font-size: 24px; }
  .detail-meta .info { grid-template-columns: 1fr; }
  .detail-body { padding: 16px; }

  .footer .wrap { flex-direction: column; align-items: flex-start; }
}