:root {
  --bg: #121417;
  --surface: rgba(24, 27, 32, 0.72);
  --primary: #FF6A1A;
  --accent: #5AC8FA;
  --text: #F2F4F7;
  --muted: #8A919C;
  --radius: 10px;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --font-heading: "Oswald", "Arial Narrow", "PingFang SC", sans-serif;
  --font-body: "IBM Plex Mono", "SF Mono", "PingFang SC", monospace;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --glow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 12px 32px rgba(0, 0, 0, 0.5);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(90, 200, 250, 0.06), transparent 55%),
    radial-gradient(ellipse at 85% 10%, rgba(255, 106, 26, 0.07), transparent 50%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 3px);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-transform: uppercase;
}

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

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 20, 23, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo::before {
  content: "";
  width: 8px;
  height: 22px;
  background: var(--primary);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(255, 106, 26, 0.6);
}
.logo:hover { color: var(--text); }

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

.nav a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--muted);
  border-radius: 6px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
}

.search-box {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 4px 0 12px;
  height: 38px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s;
}
.search-box:focus-within { border-color: var(--primary); }

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  width: 150px;
  height: 100%;
}
.search-box input::placeholder { color: var(--muted); }

.search-box button {
  background: var(--primary);
  border: none;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: filter 0.2s;
}
.search-box button:hover { filter: brightness(1.12); }

/* ============ HERO ============ */
.hero {
  position: relative;
  margin: 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--glow);
}

.hero-slide {
  position: relative;
  display: none;
  aspect-ratio: 21 / 9;
  min-height: 280px;
  background: #0c0e10;
}
.hero-slide.active { display: block; }

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

.hero-info {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(to top, rgba(10, 12, 14, 0.96) 10%, rgba(10, 12, 14, 0.4) 60%, transparent);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.hero-info h2 {
  font-size: clamp(22px, 3.4vw, 40px);
  max-width: 720px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}
.hero-info p {
  color: var(--muted);
  max-width: 640px;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 20px rgba(255, 106, 26, 0.28);
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); color: #fff; }

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

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.sec-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56px;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(255, 106, 26, 0.7);
}

.sec-title {
  font-size: 20px;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sec-title::before {
  content: "";
  width: 4px;
  height: 18px;
  background: var(--primary);
  border-radius: 2px;
}

.sec-more {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sec-more:hover { color: var(--primary); }

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

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

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

.card-score {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(255, 106, 26, 0.5);
  letter-spacing: 0.04em;
}

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

.card-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  min-height: 2.7em;
}

.card-meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  letter-spacing: 0.02em;
}
.card-meta span { white-space: nowrap; }

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

.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color 0.2s, transform 0.2s;
}
.cat-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  color: var(--text);
}

.cat-count {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--primary);
  background: rgba(255, 106, 26, 0.12);
  border: 1px solid rgba(255, 106, 26, 0.3);
  border-radius: 20px;
  padding: 1px 8px;
  flex-shrink: 0;
}

/* ============ RANK LIST ============ */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s, transform 0.2s;
}
.rank-item:hover {
  border-color: var(--border-strong);
  transform: translateX(3px);
}

.rank-num {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--muted);
  min-width: 34px;
  text-align: center;
  letter-spacing: 0.04em;
  border-right: 1px solid var(--border);
  padding-right: 12px;
}
.rank-item:nth-child(1) .rank-num,
.rank-item:nth-child(2) .rank-num,
.rank-item:nth-child(3) .rank-num {
  color: var(--primary);
  text-shadow: 0 0 12px rgba(255, 106, 26, 0.5);
}

.rank-title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.detail-head {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--glow);
}

.detail-cover {
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #0c0e10;
}
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.detail-meta h1 {
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 0.03em;
}
.detail-meta .sub {
  color: var(--muted);
  font-size: 13px;
}
.detail-meta .info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  color: var(--muted);
}
.detail-meta .info-row b {
  color: var(--text);
  font-weight: 500;
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
}

.detail-score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 18px rgba(255, 106, 26, 0.45);
  line-height: 1;
}
.detail-score small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  text-shadow: none;
}

.detail-body {
  margin-top: 24px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  line-height: 1.85;
  color: #c8ced6;
  font-size: 14px;
}
.detail-body h2, .detail-body h3 {
  color: var(--text);
  margin: 20px 0 10px;
  font-size: 18px;
}
.detail-body h2:first-child, .detail-body h3:first-child { margin-top: 0; }
.detail-body p { margin-bottom: 12px; }
.detail-body a { color: var(--accent); }
.detail-body img { border-radius: var(--radius); margin: 12px 0; }

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

.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  letter-spacing: 0.03em;
  transition: color 0.2s, border-color 0.2s;
}
.tag:hover {
  color: var(--primary);
  border-color: rgba(255, 106, 26, 0.45);
}

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

.pg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.pg:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.pg.current {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(255, 106, 26, 0.35);
  cursor: default;
}

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

/* ============ LINKS ============ */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.link-item {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.link-item:hover { color: var(--accent); }

/* ============ FOOTER ============ */
.footer {
  margin-top: 56px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
  background: rgba(12, 14, 16, 0.6);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--primary); }
.footer p { line-height: 1.8; }

/* ============ CRUMBS ============ */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  padding: 16px 0 0;
  letter-spacing: 0.02em;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.crumbs span { color: var(--text); }

/* ============ HIGHLIGHT ============ */
.hl {
  color: var(--primary);
  background: rgba(255, 106, 26, 0.12);
  border-radius: 3px;
  padding: 0 2px;
  font-style: normal;
}

/* ============ SCANLINE OVERLAY ============ */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.015) 0 1px,
    transparent 1px 4px
  );
  opacity: 0.5;
}

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

  .header .wrap {
    height: auto;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .logo { font-size: 19px; }
  .nav {
    order: 3;
    flex-basis: 100%;
    gap: 2px;
    padding-bottom: 2px;
  }
  .nav a { padding: 5px 10px; font-size: 12px; }
  .search-box { margin-left: auto; height: 34px; }
  .search-box input { width: 110px; font-size: 12px; }

  .hero { margin: 16px 0; }
  .hero-slide { aspect-ratio: 16 / 10; min-height: 200px; }
  .hero-info { padding: 20px 16px; gap: 8px; }
  .hero-info h2 { font-size: 20px; }
  .hero-info p { font-size: 12px; -webkit-line-clamp: 2; }
  .btn { padding: 8px 16px; font-size: 12px; }

  .sec { margin: 28px 0; }
  .sec-title { font-size: 17px; }

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

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

  .rank-item { padding: 8px 10px; gap: 10px; }
  .rank-num { font-size: 17px; min-width: 28px; padding-right: 8px; }
  .rank-title { font-size: 13px; }

  .detail-head {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
  }
  .detail-cover { max-width: 200px; margin: 0 auto; }
  .detail-meta h1 { font-size: 22px; }
  .detail-score { font-size: 24px; }
  .detail-body { padding: 16px; font-size: 13px; }

  .pg { min-width: 34px; height: 34px; font-size: 12px; padding: 0 9px; }

  .links { padding: 14px; gap: 8px 14px; }
  .footer { margin-top: 36px; padding: 24px 0 30px; }
}