:root {
  --bg: #0A061A;
  --surface: #1B0E2E;
  --primary: #FF3CC8;
  --accent: #3EE6FF;
  --text: #F3E9FF;
  --muted: #9B86B8;
  --radius: 16px;
  --font-heading: 'Bebas Neue', 'Impact', 'Arial Black', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', 'PingFang SC', sans-serif;
  --grad: linear-gradient(135deg, #FF3CC8 0%, #3EE6FF 100%);
}
* { 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;
  background-image:
    linear-gradient(rgba(62,230,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62,230,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

/* header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,6,26,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,60,200,0.25);
}
.header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.logo {
  font-family: var(--font-heading);
  font-size: 26px;
  letter-spacing: 2px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav a:hover {
  color: var(--text);
  background: rgba(255,60,200,0.15);
}
.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid rgba(62,230,255,0.3);
  border-radius: 999px;
  padding: 4px 6px 4px 14px;
  flex-shrink: 0;
}
.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  width: 140px;
}
.search-box button {
  background: var(--grad);
  border: none;
  color: #0A061A;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
}

/* hero */
.hero {
  position: relative;
  margin: 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255,60,200,0.2);
  box-shadow: 0 0 40px rgba(255,60,200,0.15);
}
.hero-slide {
  position: relative;
  display: block;
  aspect-ratio: 16/7;
  overflow: hidden;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
}
.hero-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 24px;
  background: linear-gradient(to top, rgba(10,6,26,0.95), transparent);
}
.hero-info h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 44px);
  letter-spacing: 1px;
  line-height: 1.1;
  margin-bottom: 8px;
}
.hero-info p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
  max-width: 640px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad);
  color: #0A061A;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 14px;
  border: none;
  box-shadow: 0 0 20px rgba(255,60,200,0.4);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(62,230,255,0.6);
}

/* section */
.sec { margin: 40px 0; }
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}
.sec-title {
  font-family: var(--font-heading);
  font-size: 28px;
  letter-spacing: 2px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  padding-left: 14px;
}
.sec-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 22px;
  background: var(--grad);
  border-radius: 2px;
}
.sec-more {
  color: var(--accent);
  font-size: 14px;
  white-space: nowrap;
  transition: text-shadow .2s;
}
.sec-more:hover { text-shadow: 0 0 10px var(--accent); }

/* grid & card */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(155,134,184,0.15);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,60,200,0.5);
  box-shadow: 0 12px 30px rgba(255,60,200,0.25), 0 0 20px rgba(62,230,255,0.15);
}
.card-cover {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: #120a22;
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.card:hover .card-cover img { transform: scale(1.05); }
.card-score {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(10,6,26,0.8);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(62,230,255,0.5);
}
.card-info { padding: 10px 12px 14px; }
.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* cat-list */
.cat-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid rgba(62,230,255,0.2);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: background .2s, border-color .2s, transform .2s;
}
.cat-item:hover {
  background: rgba(255,60,200,0.12);
  border-color: var(--primary);
  transform: translateY(-3px);
}
.cat-count {
  font-size: 12px;
  color: var(--accent);
  background: rgba(62,230,255,0.1);
  padding: 2px 8px;
  border-radius: 999px;
}

/* rank-list */
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 10px 16px;
  border: 1px solid rgba(155,134,184,0.15);
  transition: border-color .2s, transform .2s;
}
.rank-item:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}
.rank-num {
  font-family: var(--font-heading);
  font-size: 24px;
  min-width: 34px;
  text-align: center;
  color: var(--muted);
}
.rank-item:nth-child(1) .rank-num { color: var(--primary); }
.rank-item:nth-child(2) .rank-num { color: var(--accent); }
.rank-item:nth-child(3) .rank-num { color: #B48CFF; }
.rank-title { flex: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-score { font-size: 13px; font-weight: 700; color: var(--accent); }

/* detail */
.detail { margin: 32px 0; }
.detail-head {
  display: flex;
  gap: 28px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(255,60,200,0.2);
}
.detail-cover {
  flex-shrink: 0;
  width: 220px;
  aspect-ratio: 2/3;
  border-radius: 12px;
  overflow: hidden;
  background: #120a22;
}
.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: clamp(26px, 3.5vw, 40px);
  letter-spacing: 1px;
  line-height: 1.15;
  margin-bottom: 10px;
}
.detail-score {
  display: inline-block;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid rgba(62,230,255,0.5);
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 14px;
  margin-bottom: 12px;
}
.detail-meta p { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.detail-meta p b { color: var(--text); font-weight: 600; }
.detail-body {
  margin-top: 24px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(155,134,184,0.15);
  line-height: 1.9;
  color: var(--text);
}
.detail-body h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: 1px;
  margin: 20px 0 10px;
  color: var(--accent);
}
.detail-body p { margin-bottom: 12px; color: #d9cdee; }

/* tag-list */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  font-size: 12px;
  color: var(--accent);
  background: rgba(62,230,255,0.08);
  border: 1px solid rgba(62,230,255,0.3);
  border-radius: 999px;
  padding: 4px 12px;
  transition: background .2s;
}
.tag:hover { background: rgba(62,230,255,0.2); }

/* 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;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid rgba(155,134,184,0.25);
  color: var(--text);
  font-size: 14px;
  transition: border-color .2s, background .2s;
}
.pg:hover { border-color: var(--primary); }
.pg.current {
  background: var(--grad);
  color: #0A061A;
  font-weight: 700;
  border-color: transparent;
}
.pg.disabled {
  opacity: .35;
  pointer-events: none;
}

/* links */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}
.link-item {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(155,134,184,0.2);
  transition: color .2s, border-color .2s;
}
.link-item:hover { color: var(--accent); border-color: var(--accent); }

/* footer */
.footer {
  margin-top: 48px;
  padding: 32px 0;
  border-top: 1px solid rgba(255,60,200,0.2);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.footer a { color: var(--accent); }
.footer p { margin-bottom: 6px; }

/* crumbs */
.crumbs {
  font-size: 13px;
  color: var(--muted);
  padding: 16px 0 0;
}
.crumbs a { color: var(--accent); }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 6px; opacity: .5; }

/* highlight */
.hl {
  color: #0A061A;
  background: var(--accent);
  border-radius: 3px;
  padding: 0 3px;
}

/* mobile */
@media (max-width: 768px) {
  .header .wrap {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 10px;
  }
  .logo { font-size: 22px; }
  .nav {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .search-box { margin-left: auto; }
  .search-box input { width: 90px; }
  .hero-slide { aspect-ratio: 4/3; }
  .hero-info { padding: 18px 16px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-list { grid-template-columns: repeat(2, 1fr); }
  .detail-head { flex-direction: column; padding: 16px; }
  .detail-cover { width: 100%; max-width: 240px; margin: 0 auto; }
  .sec-title { font-size: 22px; }
  .rank-item { padding: 8px 12px; gap: 10px; }
  .rank-num { font-size: 20px; min-width: 28px; }
}