:root {
  --bg: #0E0721;
  --surface: rgba(255, 255, 255, 0.08);
  --primary: #FF6EC7;
  --accent: #00E5FF;
  --text: #F0E9FF;
  --muted: #A08FC0;
  --radius: 16px;
  --shadow: 6px 6px 0 rgba(0, 0, 0, 0.55);
  --border: 2px solid rgba(255, 255, 255, 0.18);
  --font-heading: 'Bebas Neue', 'Impact', 'Arial Black', sans-serif;
  --font-body: 'Poppins', 'Segoe UI', 'Helvetica Neue', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(255, 110, 199, 0.22), transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(0, 229, 255, 0.16), transparent 50%),
    linear-gradient(180deg, #0E0721 0%, #150A2E 60%, #0E0721 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035) 0px,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: overlay;
}

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;
  position: relative;
  z-index: 2;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 7, 33, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid rgba(255, 110, 199, 0.35);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 30px;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(180deg, #fff 0%, var(--primary) 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.6));
}

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

.nav a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--muted);
  border: 2px solid transparent;
  border-radius: 10px;
  transition: all 0.2s ease;
}
.nav a:hover,
.nav a.active {
  color: var(--text);
  border-color: var(--primary);
  background: rgba(255, 110, 199, 0.14);
  box-shadow: 3px 3px 0 rgba(255, 110, 199, 0.35);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.search-box input {
  width: 180px;
  padding: 9px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box input::placeholder { color: var(--muted); }
.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.18);
}
.search-box button {
  padding: 9px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: #0E0721;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: 2px solid #000;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6);
  transition: transform 0.15s, box-shadow 0.15s;
}
.search-box button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.6);
}
.search-box button:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin: 28px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: relative;
  display: none;
  min-height: 380px;
  background-size: cover;
  background-position: center;
}
.hero-slide.active,
.hero-slide:first-child { display: block; }

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 7, 33, 0.92) 0%, rgba(14, 7, 33, 0.55) 45%, transparent 100%);
}

.hero-info {
  position: relative;
  z-index: 2;
  max-width: 520px;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-info h2 {
  font-family: var(--font-heading);
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.7);
}
.hero-info p {
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 11px 26px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: #0E0721;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: 2px solid #000;
  border-radius: 12px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.65);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.65);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.65);
}

/* ---------- Sections ---------- */
.sec { margin: 40px 0; }

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255, 110, 199, 0.3);
}

.sec-title {
  font-family: var(--font-heading);
  font-size: 30px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sec-title::before {
  content: "";
  width: 8px;
  height: 30px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border: 2px solid #000;
  border-radius: 4px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
}

.sec-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  padding: 6px 14px;
  border: 2px solid rgba(0, 229, 255, 0.4);
  border-radius: 10px;
  transition: all 0.2s;
}
.sec-more:hover {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--accent);
  box-shadow: 3px 3px 0 rgba(0, 229, 255, 0.3);
}

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

.card {
  position: relative;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.card:hover {
  transform: translate(-3px, -3px);
  border-color: var(--primary);
  box-shadow: 7px 7px 0 rgba(255, 110, 199, 0.35);
}

.card-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #1a0f33;
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.card:hover .card-cover img { transform: scale(1.06); }

.card-score {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 3px 9px;
  font-size: 13px;
  font-weight: 800;
  color: #0E0721;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  border: 2px solid #000;
  border-radius: 8px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
}

.card-info {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

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

/* ---------- Categories ---------- */
.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: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  background: var(--surface);
  border: var(--border);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
  transition: all 0.2s;
}
.cat-item:hover {
  border-color: var(--accent);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(0, 229, 255, 0.3);
}

.cat-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  padding: 2px 8px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 8px;
}

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

.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface);
  border: var(--border);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
  transition: all 0.2s;
}
.rank-item:hover {
  border-color: var(--primary);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(255, 110, 199, 0.3);
}

.rank-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 20px;
  color: #0E0721;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: 2px solid #000;
  border-radius: 8px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
}

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

.rank-score {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
}

/* ---------- Detail ---------- */
.detail {
  margin: 32px 0;
  padding: 28px;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.detail-head {
  display: flex;
  gap: 28px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 2px solid rgba(255, 110, 199, 0.25);
}

.detail-cover {
  flex-shrink: 0;
  width: 240px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
}
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.detail-meta h1 {
  font-family: var(--font-heading);
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6);
}
.detail-meta p {
  font-size: 14px;
  color: var(--muted);
}
.detail-meta p strong { color: var(--text); font-weight: 600; }

.detail-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 6px 16px;
  font-family: var(--font-heading);
  font-size: 24px;
  color: #0E0721;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  border: 2px solid #000;
  border-radius: 10px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6);
}

.detail-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}
.detail-body p { margin-bottom: 14px; }
.detail-body h2,
.detail-body h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 22px 0 12px;
  color: var(--primary);
}
.detail-body img { border-radius: 12px; margin: 12px 0; }

/* ---------- Tags ---------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.tag {
  display: inline-block;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 110, 199, 0.1);
  border: 2px solid rgba(255, 110, 199, 0.35);
  border-radius: 999px;
  transition: all 0.2s;
}
.tag:hover {
  background: rgba(255, 110, 199, 0.25);
  border-color: var(--primary);
  box-shadow: 2px 2px 0 rgba(255, 110, 199, 0.4);
}

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

.pg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
  transition: all 0.2s;
}
.pg:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 rgba(0, 229, 255, 0.3);
}

.pg.current {
  color: #0E0721;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: #000;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6);
  cursor: default;
}

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

/* ---------- Links ---------- */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0;
}

.link-item {
  font-size: 13px;
  color: var(--muted);
  padding: 5px 12px;
  border: 1px solid rgba(160, 143, 192, 0.3);
  border-radius: 8px;
  transition: all 0.2s;
}
.link-item:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0, 229, 255, 0.08);
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 48px;
  padding: 32px 0 40px;
  border-top: 2px solid rgba(255, 110, 199, 0.3);
  background: rgba(14, 7, 33, 0.6);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  position: relative;
  z-index: 2;
}
.footer a { color: var(--accent); }
.footer a:hover { text-decoration: underline; }
.footer p { margin: 6px 0; }

/* ---------- Crumbs ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
  font-size: 13px;
  color: var(--muted);
}
.crumbs a { color: var(--muted); transition: color 0.2s; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--text); }

/* ---------- Highlight ---------- */
.hl {
  color: #0E0721;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 700;
}

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

@media (max-width: 768px) {
  .wrap { padding: 0 14px; }

  .header .wrap {
    height: auto;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 10px;
  }
  .logo { font-size: 24px; }
  .nav {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .nav a { padding: 6px 12px; font-size: 13px; }
  .search-box { margin-left: auto; }
  .search-box input { width: 130px; }

  .hero { margin: 18px 0; }
  .hero-slide { min-height: 280px; }
  .hero-slide::after {
    background: linear-gradient(180deg, rgba(14, 7, 33, 0.4) 0%, rgba(14, 7, 33, 0.92) 100%);
  }
  .hero-info { padding: 24px 20px; max-width: 100%; }
  .hero-info h2 { font-size: 28px; }

  .sec { margin: 28px 0; }
  .sec-title { font-size: 22px; }
  .sec-title::before { height: 22px; width: 6px; }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-info { padding: 8px 10px 10px; }
  .card-title { font-size: 13px; }

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

  .rank-list { grid-template-columns: 1fr; }

  .detail { padding: 18px; }
  .detail-head { flex-direction: column; gap: 18px; }
  .detail-cover { width: 100%; max-width: 220px; margin: 0 auto; }
  .detail-meta h1 { font-size: 28px; text-align: center; }
  .detail-meta p { text-align: center; }
  .detail-score { align-self: center; }

  .pg { min-width: 38px; height: 38px; padding: 0 10px; font-size: 13px; }
}