:root {
  --bg: #0B0D0C;
  --surface: #151917;
  --primary: #00F5C4;
  --accent: #E4572E;
  --text: #F2EBD9;
  --muted: #8A908B;
  --radius: 4px 12px 4px 12px;
  --font-h: 'Inter', 'Helvetica Neue', 'Arial Black', sans-serif;
  --font-b: 'Inter', 'Helvetica Neue', Arial, 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-b);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(0,245,196,.05), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(228,87,46,.05), transparent 40%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { 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,13,12,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,245,196,.15);
}
.header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.logo {
  font-family: var(--font-h);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: .5px;
  color: var(--text);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
  border-radius: 2px;
}
.logo span { color: var(--primary); }

.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: 8px 14px;
  font-size: 14px;
  color: var(--muted);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: rgba(0,245,196,.08);
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid rgba(0,245,196,.2);
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}
.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-b);
  font-size: 14px;
  padding: 8px 12px;
  width: 160px;
}
.search-box input::placeholder { color: var(--muted); }
.search-box button {
  background: var(--primary);
  color: var(--bg);
  border: none;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background .2s;
}
.search-box button:hover { background: #00d6ab; }

/* ===== Hero ===== */
.hero {
  position: relative;
  margin: 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(0,245,196,.15);
}
.hero-slide {
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) contrast(1.05);
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,13,12,.95) 0%, rgba(11,13,12,.55) 45%, transparent 75%);
}
.hero-info {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 32px;
  max-width: 60%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-info h2 {
  font-family: var(--font-h);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text);
  text-shadow: 0 0 24px rgba(0,245,196,.25);
}
.hero-info p {
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-info .meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--primary);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 10px 22px;
  background: var(--primary);
  color: var(--bg);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,245,196,.35);
}

/* ===== Section ===== */
.sec { margin: 40px 0; }
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,245,196,.12);
}
.sec-title {
  font-family: var(--font-h);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sec-title::before {
  content: "";
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--primary);
}
.sec-more {
  font-size: 13px;
  color: var(--muted);
  transition: color .2s;
}
.sec-more:hover { color: var(--primary); }

/* ===== Grid & Card ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0,245,196,.08);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,245,196,.4);
  box-shadow: 0 10px 28px rgba(0,0,0,.5);
}
.card-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f1210;
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.card:hover .card-cover img { transform: scale(1.06); }
.card-score {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(11,13,12,.85);
  color: var(--primary);
  font-weight: 800;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: var(--radius);
  border: 1px solid rgba(0,245,196,.4);
  z-index: 2;
}
.card-info { padding: 10px 12px 12px; }
.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s;
}
.card:hover .card-title { color: var(--primary); }
.card-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Category list ===== */
.cat-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 10px;
  background: var(--surface);
  border: 1px solid rgba(0,245,196,.1);
  border-radius: var(--radius);
  text-align: center;
  transition: transform .2s, border-color .2s, background .2s;
}
.cat-item:hover {
  transform: translateY(-3px);
  border-color: rgba(0,245,196,.4);
  background: rgba(0,245,196,.05);
}
.cat-item .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.cat-count {
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
}

/* ===== Rank list ===== */
.rank-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid rgba(0,245,196,.08);
  border-radius: var(--radius);
  transition: transform .2s, border-color .2s;
}
.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(0,245,196,.35);
}
.rank-num {
  font-family: var(--font-h);
  font-size: 20px;
  font-weight: 900;
  color: var(--muted);
  min-width: 32px;
  text-align: center;
}
.rank-item:nth-child(1) .rank-num { color: var(--accent); }
.rank-item:nth-child(2) .rank-num { color: var(--primary); }
.rank-item:nth-child(3) .rank-num { color: #f5c542; }
.rank-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-score {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
}

/* ===== Detail ===== */
.detail { margin: 32px 0; }
.detail-head {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(0,245,196,.12);
}
.detail-cover {
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0,245,196,.2);
}
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.detail-meta h1 {
  font-family: var(--font-h);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.25;
}
.detail-meta .info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
  color: var(--muted);
}
.detail-meta .info b { color: var(--text); font-weight: 600; }
.detail-score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-h);
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  text-shadow: 0 0 20px rgba(0,245,196,.3);
}
.detail-score small { font-size: 14px; color: var(--muted); font-weight: 400; }
.detail-body {
  margin-top: 24px;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(0,245,196,.1);
  line-height: 1.9;
  color: #cfc9bb;
}
.detail-body h2 {
  font-family: var(--font-h);
  font-size: 18px;
  color: var(--text);
  margin: 20px 0 10px;
}
.detail-body h2:first-child { margin-top: 0; }
.detail-body p { margin-bottom: 12px; }

/* ===== Tags ===== */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--primary);
  background: rgba(0,245,196,.08);
  border: 1px solid rgba(0,245,196,.25);
  border-radius: var(--radius);
  transition: background .2s;
}
.tag:hover { background: rgba(0,245,196,.18); }

/* ===== Pager ===== */
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 32px 0;
}
.pg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid rgba(0,245,196,.15);
  border-radius: var(--radius);
  transition: background .2s, border-color .2s;
}
.pg:hover { border-color: var(--primary); color: var(--primary); }
.pg.current {
  background: var(--primary);
  color: var(--bg);
  font-weight: 700;
  border-color: var(--primary);
}
.pg.disabled {
  opacity: .35;
  pointer-events: none;
}

/* ===== Links ===== */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.link-item {
  padding: 6px 14px;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid rgba(0,245,196,.1);
  border-radius: var(--radius);
  transition: color .2s, border-color .2s;
}
.link-item:hover { color: var(--primary); border-color: rgba(0,245,196,.4); }

/* ===== Footer ===== */
.footer {
  margin-top: 48px;
  padding: 32px 0;
  border-top: 1px solid rgba(0,245,196,.12);
  background: rgba(21,25,23,.6);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 2;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--primary); }

/* ===== Crumbs ===== */
.crumbs {
  padding: 16px 0;
  font-size: 13px;
  color: var(--muted);
}
.crumbs a { color: var(--muted); transition: color .2s; }
.crumbs a:hover { color: var(--primary); }
.crumbs span { color: var(--primary); }

/* ===== Highlight ===== */
.hl {
  color: var(--accent);
  font-weight: 700;
  background: rgba(228,87,46,.12);
  padding: 0 2px;
  border-radius: 2px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .cat-list { grid-template-columns: repeat(4, 1fr); }
  .hero-info { max-width: 75%; padding: 24px; }
  .hero-info h2 { font-size: 26px; }
}

@media (max-width: 768px) {
  .header .wrap {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 16px;
    gap: 10px;
  }
  .logo { font-size: 18px; }
  .nav {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .search-box { order: 2; margin-left: auto; }
  .search-box input { width: 110px; }

  .hero-slide { aspect-ratio: 4 / 3; }
  .hero-slide::after {
    background: linear-gradient(0deg, rgba(11,13,12,.95) 0%, rgba(11,13,12,.4) 60%, transparent 100%);
  }
  .hero-info {
    max-width: 100%;
    padding: 18px;
    padding-top: 40px;
  }
  .hero-info h2 { font-size: 20px; }

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

  .sec { margin: 28px 0; }
  .sec-title { font-size: 17px; }

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

  .pg { min-width: 34px; height: 34px; font-size: 13px; }
}