:root {
  --bg: #0E0A0B;
  --surface: #1A1417;
  --primary: #E8354D;
  --accent: #00E5C0;
  --text: #F2E9E4;
  --muted: #9A8C92;
  --radius: 12px;
  --font-heading: 'DIN Condensed', 'Oswald', 'Impact', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --border: rgba(255, 255, 255, 0.08);
  --glow: 0 0 12px rgba(0, 229, 192, 0.35);
  --shadow: 0 8px 24px rgba(232, 53, 77, 0.18);
}

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

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: radial-gradient(rgba(255,255,255,0.6) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

img {
  display: block;
  max-width: 100%;
}

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

/* ============ Header ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 10, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(232, 53, 77, 0.5);
}

.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: block;
  padding: 6px 12px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(232, 53, 77, 0.14);
  box-shadow: inset 0 0 0 1px rgba(232, 53, 77, 0.35);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 6px 4px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: var(--glow);
}

.search-box input {
  width: 150px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
}

.search-box input::placeholder {
  color: var(--muted);
}

.search-box button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: filter 0.2s ease;
}

.search-box button:hover {
  filter: brightness(1.12);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  margin: 24px 0 40px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.hero-slide {
  position: relative;
  display: none;
  aspect-ratio: 16 / 7;
  background: #000;
}

.hero-slide:first-child,
.hero-slide.active {
  display: block;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero-info {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 40px 32px 28px;
  background: linear-gradient(to top, rgba(14,10,11,0.96) 10%, rgba(14,10,11,0) 100%);
}

.hero-info h2 {
  font-family: var(--font-heading);
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-info p {
  max-width: 620px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn {
  display: inline-block;
  padding: 9px 24px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(232, 53, 77, 0.35);
  color: #fff;
}

.btn.ghost {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
}

.btn.ghost:hover {
  background: rgba(0, 229, 192, 0.1);
  box-shadow: var(--glow);
}

/* ============ Section ============ */
.sec {
  margin-bottom: 44px;
}

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sec-title {
  position: relative;
  font-family: var(--font-heading);
  font-size: 26px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding-left: 14px;
}

.sec-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: linear-gradient(var(--primary), var(--accent));
  box-shadow: 0 0 10px rgba(232, 53, 77, 0.6);
}

.sec-more {
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 14px;
  transition: all 0.2s ease;
}

.sec-more:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--glow);
}

/* ============ Grid / Card ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 53, 77, 0.5);
  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 0.4s ease;
}

.card:hover .card-cover img {
  transform: scale(1.05);
}

.card-score {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(14, 10, 11, 0.78);
  border: 1px solid rgba(0, 229, 192, 0.5);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.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;
  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: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  transition: all 0.2s ease;
}

.cat-item:hover {
  border-color: var(--accent);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.cat-count {
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0 8px;
  border-radius: 999px;
}

/* ============ Rank List ============ */
.rank-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.rank-item:hover {
  border-color: rgba(232, 53, 77, 0.5);
  transform: translateX(4px);
}

.rank-num {
  flex: 0 0 30px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-style: italic;
  color: var(--primary);
  text-align: center;
  text-shadow: 0 0 10px rgba(232, 53, 77, 0.5);
}

.rank-item:nth-child(-n+3) .rank-num {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 229, 192, 0.6);
}

.rank-title {
  flex: 1;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-score {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

/* ============ Detail ============ */
.detail {
  margin: 28px 0 44px;
}

.detail-head {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.detail-cover {
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-meta h1 {
  font-family: var(--font-heading);
  font-size: 36px;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.detail-score {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--accent);
  margin-bottom: 12px;
  text-shadow: 0 0 14px rgba(0, 229, 192, 0.5);
}

.detail-meta p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}

.detail-meta p strong {
  color: var(--text);
  font-weight: 600;
  margin-right: 6px;
}

.detail-body {
  margin-top: 24px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
}

.detail-body h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  text-transform: uppercase;
  margin: 20px 0 10px;
  color: var(--accent);
}

.detail-body p {
  margin-bottom: 12px;
  color: var(--muted);
}

/* ============ Tag List ============ */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  display: inline-block;
  padding: 3px 12px;
  font-size: 12px;
  color: var(--accent);
  background: rgba(0, 229, 192, 0.08);
  border: 1px solid rgba(0, 229, 192, 0.3);
  border-radius: 999px;
  transition: all 0.2s ease;
}

.tag:hover {
  background: rgba(0, 229, 192, 0.18);
  box-shadow: var(--glow);
}

/* ============ Pager ============ */
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 32px 0;
}

.pg {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-size: 14px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.pg:hover {
  color: var(--text);
  border-color: var(--accent);
  box-shadow: var(--glow);
}

.pg.current {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.pg.disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: not-allowed;
}

/* ============ Links ============ */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.link-item {
  font-size: 13px;
  color: var(--muted);
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.2s ease;
}

.link-item:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ============ Footer ============ */
.footer {
  margin-top: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: rgba(26, 20, 23, 0.5);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.footer a {
  color: var(--muted);
}

.footer a:hover {
  color: var(--accent);
}

.footer p {
  margin-bottom: 6px;
}

/* ============ Breadcrumbs ============ */
.crumbs {
  font-size: 13px;
  color: var(--muted);
  padding: 18px 0 6px;
}

.crumbs a {
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--accent);
}

.crumbs span {
  margin: 0 6px;
  opacity: 0.5;
}

/* ============ Highlight ============ */
.hl {
  color: var(--primary);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(232, 53, 77, 0.5);
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .detail-head {
    grid-template-columns: 200px 1fr;
    gap: 22px;
  }
  .hero-info h2 {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .header .wrap {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 16px;
    gap: 10px;
  }
  .logo {
    font-size: 22px;
  }
  .nav {
    order: 3;
    width: 100%;
    flex: 0 0 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .search-box {
    margin-left: auto;
  }
  .search-box input {
    width: 110px;
  }
  .hero {
    margin: 16px 0 28px;
  }
  .hero-slide {
    aspect-ratio: 4 / 3;
  }
  .hero-info {
    padding: 24px 18px 18px;
  }
  .hero-info h2 {
    font-size: 24px;
  }
  .hero-info p {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }
  .sec-title {
    font-size: 21px;
  }
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .card-info {
    padding: 8px 10px 10px;
  }
  .card-title {
    font-size: 13px;
  }
  .card-meta {
    font-size: 11px;
  }
  .rank-list {
    grid-template-columns: 1fr;
  }
  .cat-list {
    gap: 8px;
  }
  .cat-item {
    padding: 8px 14px;
    font-size: 13px;
  }
  .detail-head {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .detail-cover {
    max-width: 200px;
    margin: 0 auto;
  }
  .detail-meta h1 {
    font-size: 26px;
    text-align: center;
  }
  .detail-score {
    display: block;
    text-align: center;
  }
  .detail-body {
    padding: 16px;
  }
  .pg {
    min-width: 34px;
    height: 34px;
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-info h2 {
    font-size: 20px;
  }
  .search-box input {
    width: 84px;
  }
}