:root {
  --bg: #0D0D0F;
  --surface: #1A1B1E;
  --primary: #FF5C00;
  --accent: #39FF14;
  --text: #F2F2F2;
  --muted: #888A8F;
  --radius: 8px;
  --font-heading: 'Impact', 'Arial Black', 'Helvetica Neue', sans-serif;
  --font-body: 'Courier New', 'Consolas', 'Monaco', monospace;
  --border: 2px solid #000;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.015) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.25) 0 1px, transparent 1px 4px);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

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 16px;
}

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: var(--border);
  box-shadow: 0 4px 0 rgba(255,92,0,0.35);
}

.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;
  color: var(--text);
  white-space: nowrap;
  transform: skewX(-8deg);
}

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

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

.nav a {
  display: inline-block;
  padding: 6px 12px;
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: color .2s, background .2s, transform .2s, border-color .2s;
}

.nav a:hover,
.nav a.active {
  color: #000;
  background: var(--primary);
  border-color: #000;
  transform: skewX(-6deg);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.search-box input {
  width: 160px;
  padding: 7px 10px;
  background: var(--bg);
  color: var(--text);
  border: 2px solid #000;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: border-color .2s, width .2s;
}

.search-box input:focus {
  border-color: var(--primary);
  width: 190px;
}

.search-box button {
  padding: 7px 14px;
  background: var(--primary);
  color: #000;
  border: 2px solid #000;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  transform: skewX(-6deg);
  transition: transform .2s, box-shadow .2s;
}

.search-box button:hover {
  transform: skewX(-6deg) translateY(-2px);
  box-shadow: 3px 3px 0 var(--accent);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  margin: 24px 0;
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 6px 6px 0 rgba(255,92,0,0.25);
}

.hero-slide {
  position: relative;
  display: none;
  aspect-ratio: 21 / 9;
  background: #000;
}
.hero-slide.active,
.hero-slide:first-child { display: block; }

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

.hero-info {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 40px 28px 24px;
  background: linear-gradient(to top, rgba(13,13,15,0.95), transparent);
}

.hero-info h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 4vw, 40px);
  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: 13px;
  margin-bottom: 14px;
  max-width: 640px;
}

.btn {
  display: inline-block;
  padding: 9px 22px;
  background: var(--primary);
  color: #000;
  border: 2px solid #000;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transform: skewX(-8deg);
  transition: transform .2s, box-shadow .2s, background .2s;
}

.btn:hover {
  background: var(--accent);
  transform: skewX(-8deg) translateY(-2px);
  box-shadow: 4px 4px 0 #000;
}

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

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

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

.sec-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1.1em;
  background: var(--accent);
  transform: translateY(-50%) skewX(-12deg);
}

.sec-more {
  font-family: var(--font-heading);
  font-size: 14px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 12px;
  border: 2px solid var(--muted);
  border-radius: var(--radius);
  transition: all .2s;
}

.sec-more:hover {
  color: #000;
  background: var(--accent);
  border-color: #000;
  transform: skewX(-6deg);
}

/* ============ GRID / CARD ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}

.card:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 6px 6px 0 var(--primary);
}

.card-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  background: #000;
  overflow: hidden;
}

.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;
  padding: 2px 8px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-heading);
  font-size: 14px;
  border: 2px solid #000;
  border-radius: 4px;
  transform: skewX(-8deg);
}

.card-info {
  padding: 10px;
  border-top: 2px solid #000;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 15px;
  line-height: 1.25;
  color: var(--text);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  margin-top: 4px;
  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: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 15px;
  text-transform: uppercase;
  color: var(--text);
  transition: all .2s;
}

.cat-item:hover {
  background: var(--primary);
  color: #000;
  transform: skewX(-6deg);
}

.cat-count {
  padding: 1px 7px;
  background: var(--accent);
  color: #000;
  font-size: 12px;
  border-radius: 4px;
}

/* ============ RANK LIST ============ */
.rank-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

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

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: -4px 4px 0 var(--primary);
}

.rank-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #000;
  font-family: var(--font-heading);
  font-size: 18px;
  border: 2px solid #000;
  border-radius: 4px;
  transform: skewX(-8deg);
}

.rank-item:nth-child(1) .rank-num,
.rank-item:nth-child(2) .rank-num,
.rank-item:nth-child(3) .rank-num {
  background: var(--accent);
}

.rank-title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-heading);
  font-size: 15px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

.detail-head {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 6px 6px 0 rgba(255,92,0,0.25);
}

.detail-cover {
  aspect-ratio: 2 / 3;
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

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

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

.detail-meta h1 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3.5vw, 34px);
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--text);
}

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

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

.detail-score {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 14px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-heading);
  font-size: 20px;
  border: 2px solid #000;
  border-radius: 4px;
  transform: skewX(-8deg);
}

.detail-body {
  margin-top: 24px;
  padding: 20px;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  color: var(--text);
  line-height: 1.8;
}

.detail-body h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  text-transform: uppercase;
  color: var(--primary);
  margin: 16px 0 10px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}

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

.detail-body a {
  color: var(--primary);
  border-bottom: 1px dashed var(--primary);
}

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

.tag {
  display: inline-block;
  padding: 3px 12px;
  background: var(--bg);
  color: var(--muted);
  border: 2px solid var(--muted);
  border-radius: var(--radius);
  font-size: 12px;
  transition: all .2s;
}

.tag:hover {
  color: #000;
  background: var(--accent);
  border-color: #000;
}

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

.pg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--text);
  border: var(--border);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 15px;
  transition: all .2s;
}

.pg:hover {
  background: var(--primary);
  color: #000;
  transform: skewX(-6deg);
}

.pg.current {
  background: var(--accent);
  color: #000;
  transform: skewX(-6deg);
  box-shadow: 3px 3px 0 #000;
}

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

/* ============ LINKS ============ */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
}

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

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

/* ============ FOOTER ============ */
.footer {
  margin-top: 48px;
  padding: 28px 0;
  background: var(--surface);
  border-top: 3px solid var(--primary);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

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

/* ============ CRUMBS ============ */
.crumbs {
  padding: 12px 0;
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

/* ============ HIGHLIGHT ============ */
.hl {
  background: var(--accent);
  color: #000;
  padding: 0 2px;
  border-radius: 2px;
}

/* ============ MOBILE ============ */
@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: 120px; }
  .search-box input:focus { width: 140px; }

  .hero-slide { aspect-ratio: 4 / 3; }
  .hero-info { padding: 24px 16px 16px; }

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

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

  .detail-head {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .detail-cover {
    max-width: 200px;
    margin: 0 auto;
  }

  .detail-body { padding: 14px; }

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