:root {
  --bg: #0B0714;
  --surface: #1A1030;
  --primary: #FF3CAC;
  --accent: #00F5C4;
  --text: #F0E9FF;
  --muted: #8A7BA8;
  --radius: 10px;
  --font-heading: Impact, 'Arial Black', 'Helvetica Neue', sans-serif;
  --font-body: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;
  --shadow-hard: 6px 6px 0 #000;
  --grad: linear-gradient(135deg, #FF3CAC 0%, #7B2FF7 55%, #00F5C4 100%);
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 60, 172, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 196, 0.05) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 0%, rgba(123, 47, 247, 0.35), transparent 60%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.18) 0px,
    rgba(0, 0, 0, 0.18) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.35;
}

a { color: var(--text); 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 16px;
}

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 7, 20, 0.92);
  border-bottom: 2px solid #000;
  box-shadow: 0 4px 0 rgba(255, 60, 172, 0.35);
  backdrop-filter: blur(6px);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 26px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(2px 2px 0 #000);
  white-space: nowrap;
  flex-shrink: 0;
}

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

.nav a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: bold;
  color: var(--muted);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--bg);
  background: var(--accent);
  box-shadow: 3px 3px 0 #000;
}

.search-box {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: var(--surface);
  border: 2px solid #000;
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 #000;
  overflow: hidden;
}

.search-box input {
  width: 160px;
  padding: 6px 10px;
  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 {
  padding: 6px 12px;
  background: var(--primary);
  border: none;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s;
}

.search-box button:hover { background: var(--accent); color: var(--bg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  margin: 20px auto;
  max-width: 1200px;
  border: 2px solid #000;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 21 / 8;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: heroFade 18s infinite;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 7, 20, 0.92) 0%, rgba(11, 7, 20, 0.4) 55%, transparent 100%);
}

@keyframes heroFade {
  0% { opacity: 0; }
  4% { opacity: 1; }
  30% { opacity: 1; }
  36% { opacity: 0; }
  100% { opacity: 0; }
}

.hero-info {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px 28px;
  max-width: 60%;
}

.hero-info h2,
.hero-info h3 {
  font-family: var(--font-heading);
  font-size: 36px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 3px 3px 0 #000;
  margin-bottom: 8px;
}

.hero-info p {
  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: 10px 22px;
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border: 2px solid #000;
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 #000;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
  background: var(--primary);
  color: #fff;
}

/* ============ SECTION ============ */
.sec { margin: 36px auto; }

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

.sec-title {
  font-family: var(--font-heading);
  font-size: 26px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff 0%, #FFB3E1 45%, #FF3CAC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(2px 2px 0 #000);
}

.sec-more {
  font-size: 13px;
  font-weight: bold;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 4px 12px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.sec-more:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 3px 3px 0 #000;
}

/* ============ GRID / CARD ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

.card {
  background: var(--surface);
  border: 2px solid #000;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
}

.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 #000;
}

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

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

.card-score {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 2px 8px;
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--bg);
  background: var(--accent);
  border: 2px solid #000;
  border-radius: 6px;
  box-shadow: 2px 2px 0 #000;
}

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

.card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0.5px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.card-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

/* ============ CAT LIST ============ */
.cat-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  background: var(--surface);
  border: 2px solid #000;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 0.18s, background 0.2s;
}

.cat-item:hover {
  transform: translate(-3px, -3px);
  background: linear-gradient(135deg, #2A1848, #1A1030);
  color: var(--accent);
}

.cat-count {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: bold;
  color: var(--bg);
  background: var(--primary);
  border: 2px solid #000;
  border-radius: 20px;
  padding: 1px 9px;
  box-shadow: 2px 2px 0 #000;
}

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

.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--surface);
  border: 2px solid #000;
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 #000;
  transition: transform 0.18s;
}

.rank-item:hover { transform: translate(-2px, -2px); }

.rank-num {
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1;
  min-width: 40px;
  text-align: center;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(2px 2px 0 #000);
}

.rank-item:nth-child(1) .rank-num,
.rank-item:nth-child(2) .rank-num,
.rank-item:nth-child(3) .rank-num {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

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

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

/* ============ DETAIL ============ */
.detail { margin: 24px auto; }

.crumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

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

.detail-head {
  display: flex;
  gap: 24px;
  padding: 20px;
  background: var(--surface);
  border: 2px solid #000;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  margin-bottom: 24px;
}

.detail-cover {
  flex-shrink: 0;
  width: 240px;
  aspect-ratio: 2 / 3;
  border: 2px solid #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 4px 4px 0 #000;
}

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

.detail-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.detail-meta h1 {
  font-family: var(--font-heading);
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff 0%, #FFB3E1 50%, #FF3CAC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(2px 2px 0 #000);
}

.detail-meta p { font-size: 14px; color: var(--muted); }
.detail-meta p strong { color: var(--text); }

.detail-score {
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--bg);
  background: var(--accent);
  border: 2px solid #000;
  border-radius: var(--radius);
  padding: 4px 16px;
  box-shadow: 4px 4px 0 #000;
}

.detail-body {
  padding: 20px;
  background: var(--surface);
  border: 2px solid #000;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

.detail-body h2,
.detail-body h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 18px 0 10px;
}

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

/* ============ TAGS ============ */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: bold;
  color: var(--text);
  background: rgba(255, 60, 172, 0.15);
  border: 2px solid var(--primary);
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
}

.tag:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 2px 2px 0 #000;
}

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

.pg {
  display: inline-block;
  min-width: 38px;
  padding: 6px 12px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: var(--text);
  background: var(--surface);
  border: 2px solid #000;
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 #000;
  transition: transform 0.15s, background 0.2s;
}

.pg:hover {
  transform: translate(-2px, -2px);
  background: var(--primary);
  color: #fff;
}

.pg.current {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 3px 3px 0 #000;
  pointer-events: none;
}

.pg.disabled {
  opacity: 0.4;
  pointer-events: none;
  box-shadow: none;
}

/* ============ LINKS ============ */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px;
  background: var(--surface);
  border: 2px solid #000;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}

.link-item {
  font-size: 13px;
  color: var(--muted);
  padding: 2px 10px;
  border: 1px dashed rgba(138, 123, 168, 0.5);
  border-radius: 6px;
  transition: color 0.2s, border-color 0.2s;
}

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

/* ============ FOOTER ============ */
.footer {
  margin-top: 40px;
  padding: 24px 0 30px;
  background: #08050F;
  border-top: 2px solid #000;
  box-shadow: 0 -4px 0 rgba(0, 245, 196, 0.25);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.footer a { color: var(--accent); }
.footer a:hover { text-decoration: underline; }
.footer p { margin: 4px 0; }

/* ============ HIGHLIGHT ============ */
.hl {
  color: var(--bg);
  background: var(--accent);
  border-radius: 3px;
  padding: 0 3px;
  font-weight: bold;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cat-list { grid-template-columns: repeat(2, 1fr); }
  .hero-info h2, .hero-info h3 { font-size: 28px; }
}

@media (max-width: 768px) {
  .header .wrap {
    height: auto;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 10px;
  }

  .logo { font-size: 22px; }

  .nav {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .nav a { padding: 5px 10px; font-size: 13px; }

  .search-box { margin-left: auto; }
  .search-box input { width: 110px; }

  .hero {
    aspect-ratio: 4 / 3;
    margin: 12px auto;
  }

  .hero-info {
    max-width: 100%;
    padding: 16px;
  }

  .hero-info h2, .hero-info h3 { font-size: 22px; }
  .hero-info p { font-size: 12px; -webkit-line-clamp: 2; }

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

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

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

  .sec { margin: 24px auto; }
  .sec-title { font-size: 20px; }

  .detail-head {
    flex-direction: column;
    gap: 16px;
    padding: 14px;
  }

  .detail-cover {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
  }

  .detail-meta h1 { font-size: 22px; }

  .detail-body { padding: 14px; font-size: 14px; }

  .card-title { font-size: 14px; }
  .card-score { font-size: 13px; padding: 1px 6px; }
}

@media (max-width: 380px) {
  .grid,
  .grid.two { grid-template-columns: 1fr; }
  .cat-list { grid-template-columns: 1fr; }
}