:root {
  --bg: #0C0608;
  --surface: #1A0E12;
  --primary: #E8354D;
  --accent: #FF7A8A;
  --text: #F5E9EC;
  --muted: #8C6A72;
  --radius: 20px;
  --radius-sm: 12px;
  --font-heading: 'Arial Black', 'Noto Sans SC', sans-serif;
  --font-body: 'Helvetica Neue', 'PingFang SC', sans-serif;
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.45);
}

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

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(ellipse 80% 50% at 50% -10%, rgba(232, 53, 77, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(255, 122, 138, 0.06), transparent 60%);
  background-attachment: fixed;
}

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 {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 6, 8, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  text-shadow: 0 0 18px rgba(232, 53, 77, 0.45);
}

.logo span, .logo em { color: var(--primary); font-style: normal; }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav::-webkit-scrollbar { display: none; }

.nav a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.25s, background 0.25s;
}

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

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  background: var(--surface);
  border: var(--glass-border);
  border-radius: 999px;
  padding: 6px 8px 6px 16px;
  box-shadow: var(--glass-highlight), inset 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.search-box:focus-within {
  border-color: rgba(232, 53, 77, 0.5);
  box-shadow: var(--glass-highlight), 0 0 0 3px rgba(232, 53, 77, 0.15);
}

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

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

.search-box button {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.2s, box-shadow 0.2s;
}

.search-box button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(232, 53, 77, 0.5);
}

/* ===== Hero Carousel ===== */
.hero {
  position: relative;
  width: 100%;
  margin: 24px 0 40px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: var(--glass-border);
  box-shadow: var(--glass-highlight), var(--shadow-soft);
}

.hero-slide {
  position: relative;
  display: none;
  width: 100%;
  aspect-ratio: 21 / 9;
  background-size: cover;
  background-position: center;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 6, 8, 0.92) 0%, rgba(12, 6, 8, 0.55) 45%, transparent 80%),
              linear-gradient(0deg, rgba(12, 6, 8, 0.85) 0%, transparent 55%);
}

.hero-info {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  max-width: 560px;
  padding: 40px;
}

.hero-info h2 {
  font-family: var(--font-heading);
  font-size: 38px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.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;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-body);
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(232, 53, 77, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.25s, box-shadow 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(232, 53, 77, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  border: var(--glass-border);
  box-shadow: var(--glass-highlight);
  color: var(--text);
}

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

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.sec-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.3px;
  position: relative;
  padding-left: 16px;
}

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

.sec-more {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
  border: var(--glass-border);
  background: var(--surface);
  transition: color 0.25s, border-color 0.25s;
  white-space: nowrap;
}

.sec-more:hover { color: var(--accent); border-color: rgba(232, 53, 77, 0.4); }

/* ===== Grid & Cards ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  background: var(--surface);
  border: var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--glass-highlight), 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s, border-color 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 53, 77, 0.35);
  box-shadow: var(--glass-highlight), 0 14px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(232, 53, 77, 0.15);
}

.card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #241016, #140a0d);
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-score {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #fff;
  background: linear-gradient(135deg, rgba(232, 53, 77, 0.95), rgba(255, 122, 138, 0.9));
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(232, 53, 77, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}

.card-info { padding: 12px 14px 14px; }

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
  transition: color 0.25s;
}

.card:hover .card-title { color: var(--accent); }

.card-meta {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Category list ===== */
.cat-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  background: var(--surface);
  border: var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--glass-highlight);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.25s, border-color 0.25s, color 0.25s;
}

.cat-item:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 53, 77, 0.4);
  color: var(--accent);
}

.cat-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(232, 53, 77, 0.14);
  padding: 2px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* ===== Ranking ===== */
.rank-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 32px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.25s;
  border-radius: 8px;
}

.rank-item:hover { background: rgba(232, 53, 77, 0.06); }

.rank-num {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  min-width: 44px;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--muted);
  flex-shrink: 0;
}

.rank-item:nth-child(1) .rank-num,
.rank-item:nth-child(2) .rank-num,
.rank-item:nth-child(3) .rank-num {
  -webkit-text-stroke: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rank-title {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s;
}

.rank-item:hover .rank-title { color: var(--accent); }

.rank-score {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 900;
  color: var(--primary);
  flex-shrink: 0;
}

/* ===== Detail ===== */
.detail {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  margin: 32px 0 48px;
  align-items: start;
}

.detail-head {
  display: contents;
}

.detail-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: var(--glass-border);
  box-shadow: var(--glass-highlight), var(--shadow-soft);
  background: linear-gradient(135deg, #241016, #140a0d);
}

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

.detail-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-meta h1 {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.detail-score {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  text-shadow: 0 0 24px rgba(232, 53, 77, 0.5);
}

.detail-score small {
  font-size: 14px;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 400;
}

.detail-meta p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

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

.detail-body {
  margin-top: 24px;
  padding: 28px;
  background: var(--surface);
  border: var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-highlight);
  font-size: 15px;
  line-height: 1.9;
  color: #d9c9ce;
}

.detail-body h2,
.detail-body h3 {
  font-family: var(--font-heading);
  color: var(--text);
  margin: 20px 0 10px;
}

.detail-body p { margin-bottom: 14px; }

/* ===== Tags ===== */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.tag {
  display: inline-block;
  padding: 5px 14px;
  font-size: 13px;
  color: var(--accent);
  background: rgba(232, 53, 77, 0.1);
  border: 1px solid rgba(232, 53, 77, 0.25);
  border-radius: 999px;
  transition: background 0.25s, color 0.25s;
}

.tag:hover {
  background: rgba(232, 53, 77, 0.22);
  color: #fff;
}

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

.pg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: var(--glass-border);
  border-radius: 12px;
  box-shadow: var(--glass-highlight);
  transition: color 0.25s, border-color 0.25s, transform 0.2s;
}

.pg:hover {
  color: var(--text);
  border-color: rgba(232, 53, 77, 0.4);
  transform: translateY(-2px);
}

.pg.current {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(232, 53, 77, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

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

/* ===== Links ===== */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 24px;
  background: var(--surface);
  border: var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-highlight);
}

.link-item {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.25s;
}

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

/* ===== Footer ===== */
.footer {
  margin-top: 60px;
  padding: 36px 0 40px;
  border-top: var(--glass-border);
  background: linear-gradient(180deg, transparent, rgba(26, 14, 18, 0.6));
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 2;
}

.footer a { color: var(--muted); transition: color 0.25s; }
.footer a:hover { color: var(--accent); }

/* ===== Crumbs ===== */
.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 20px 0 4px;
  font-size: 13px;
  color: var(--muted);
}

.crumbs a { color: var(--muted); transition: color 0.25s; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--text); }

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  body { font-size: 14px; }

  .header .wrap {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 16px;
    gap: 12px;
  }

  .logo { font-size: 19px; }

  .nav {
    order: 3;
    width: 100%;
    flex: none;
    gap: 4px;
    padding-bottom: 2px;
  }

  .nav a { padding: 6px 12px; font-size: 13px; }

  .search-box {
    margin-left: auto;
    padding: 5px 6px 5px 14px;
  }

  .search-box input { width: 110px; font-size: 13px; }
  .search-box button { padding: 6px 12px; font-size: 12px; }

  .hero { margin: 16px 0 28px; border-radius: 16px; }

  .hero-slide { aspect-ratio: 4 / 5; }

  .hero-slide::after {
    background: linear-gradient(0deg, rgba(12, 6, 8, 0.95) 0%, rgba(12, 6, 8, 0.4) 55%, transparent 90%);
  }

  .hero-info { padding: 24px 20px; max-width: 100%; }
  .hero-info h2 { font-size: 26px; }
  .hero-info p { font-size: 13px; margin-bottom: 16px; }
  .btn { padding: 10px 22px; font-size: 14px; }

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

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .card-info { padding: 10px 12px 12px; }
  .card-title { font-size: 14px; }
  .card-meta { font-size: 11px; }

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

  .rank-list { grid-template-columns: 1fr; gap: 0; }
  .rank-num { font-size: 24px; min-width: 36px; }
  .rank-item { padding: 12px 4px; gap: 12px; }

  .detail {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 20px 0 32px;
  }

  .detail-cover { max-width: 220px; margin: 0 auto; }
  .detail-meta h1 { font-size: 24px; }
  .detail-score { font-size: 32px; }
  .detail-body { padding: 20px; font-size: 14px; }

  .pager { gap: 6px; margin: 28px 0; }
  .pg { min-width: 36px; height: 36px; padding: 0 10px; font-size: 13px; }

  .links { padding: 18px; gap: 8px 14px; }
  .footer { margin-top: 40px; padding: 28px 0 32px; }
}