:root {
  --bg: #0a0f1d;
  --panel: rgba(17, 24, 39, 0.82);
  --panel-strong: rgba(31, 41, 55, 0.94);
  --line: rgba(245, 158, 11, 0.18);
  --text: #f9fafb;
  --muted: #9ca3af;
  --muted-2: #d1d5db;
  --sunset: #f59e0b;
  --sunset-deep: #d97706;
  --twilight: #f97316;
  --danger: #ef4444;
  --radius: 20px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 8%, rgba(217, 119, 6, 0.28), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(249, 115, 22, 0.20), transparent 28%),
    linear-gradient(180deg, #050816 0%, #111827 42%, #0a0f1d 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(17, 24, 39, 0.92);
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.nav-wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 236px;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(249, 115, 22, 0.12));
  border: 1px solid rgba(245, 158, 11, 0.28);
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.22);
}

.logo-main {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(90deg, #f59e0b, #fb923c, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-sub {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted-2);
  font-size: 15px;
}

.nav-links a {
  transition: color .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--sunset);
}

.top-search {
  position: relative;
  width: 260px;
}

.search-input,
.select-input {
  width: 100%;
  border: 1px solid rgba(75, 85, 99, 0.82);
  background: rgba(31, 41, 55, 0.9);
  color: #e5e7eb;
  border-radius: 999px;
  padding: 11px 15px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.search-input:focus,
.select-input:focus {
  border-color: rgba(245, 158, 11, 0.75);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.16);
}

.mobile-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  color: #e5e7eb;
  background: rgba(31, 41, 55, 0.9);
  padding: 10px 12px;
}

.mobile-panel {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
}

.mobile-panel.open {
  display: block;
}

.mobile-panel a {
  display: block;
  color: var(--muted-2);
  padding: 12px 0;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  display: grid;
  align-items: stretch;
  border-bottom: 1px solid rgba(245, 158, 11, 0.10);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 22, 0.94) 0%, rgba(5, 8, 22, 0.78) 42%, rgba(5, 8, 22, 0.42) 100%),
    linear-gradient(0deg, #111827 0%, transparent 34%);
  z-index: 2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #111827, #7c2d12 50%, #111827);
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.05) contrast(1.05);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 70px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: center;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #fde68a;
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  letter-spacing: .04em;
}

.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.gradient-text {
  background: linear-gradient(90deg, #f59e0b, #fb923c, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 720px;
  color: #d1d5db;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-meta,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #f3f4f6;
  background: rgba(31, 41, 55, 0.72);
  border: 1px solid rgba(75, 85, 99, 0.62);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 20px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #111827;
  background: linear-gradient(90deg, #f59e0b, #fb923c);
  box-shadow: 0 18px 38px rgba(217, 119, 6, 0.25);
}

.btn-ghost {
  color: #f3f4f6;
  background: rgba(17, 24, 39, 0.48);
  border-color: rgba(245, 158, 11, 0.28);
}

.hero-side {
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.84), rgba(17, 24, 39, 0.66));
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(249, 115, 22, 0.10));
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.92) 0%, transparent 54%);
}

.hero-card-body {
  padding: 22px;
}

.hero-card-title {
  margin: 0 0 10px;
  font-size: 24px;
}

.hero-card-text {
  color: var(--muted-2);
  line-height: 1.72;
  margin: 0;
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.hero-dot {
  width: 36px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.hero-dot.active {
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.section {
  padding: 62px 0 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-title {
  margin: 12px 0 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

.section-desc {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.7;
  margin: 10px 0 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(31, 41, 55, 0.76);
  border: 1px solid rgba(75, 85, 99, 0.36);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.20);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.46);
  box-shadow: 0 22px 58px rgba(217, 119, 6, 0.12);
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.30), transparent 45%),
    linear-gradient(135deg, #1f2937, #7c2d12);
}

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.86) 0%, transparent 55%);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  color: #111827;
  background: linear-gradient(90deg, #f59e0b, #fb923c);
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 800;
  font-size: 12px;
}

.card-score {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(0, 0, 0, 0.58);
  padding: 6px 9px;
  font-size: 12px;
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-title a:hover {
  color: var(--sunset);
}

.card-line {
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  color: #d1d5db;
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(75, 85, 99, 0.45);
  font-size: 12px;
}

.h-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 340px);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 14px;
  scrollbar-width: none;
}

.h-scroll::-webkit-scrollbar {
  display: none;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.category-tile {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(31, 41, 55, 0.78));
  border: 1px solid rgba(245, 158, 11, 0.18);
  transition: transform .2s ease, border-color .2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.50);
}

.category-tile strong {
  font-size: 20px;
}

.category-tile span {
  color: var(--muted);
  font-size: 14px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(17, 24, 39, 0.66);
  border: 1px solid rgba(75, 85, 99, 0.32);
  margin-bottom: 24px;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-item {
  display: grid;
  grid-template-columns: 58px 120px 1fr auto;
  align-items: center;
  gap: 16px;
  border-radius: 20px;
  background: rgba(31, 41, 55, 0.72);
  border: 1px solid rgba(75, 85, 99, 0.36);
  padding: 12px;
}

.rank-no {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #111827;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  font-weight: 900;
}

.rank-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(249, 115, 22, 0.08));
}

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

.rank-title {
  font-size: 18px;
  font-weight: 800;
}

.rank-meta {
  color: var(--muted);
  margin-top: 6px;
  font-size: 14px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  padding-top: 28px;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--sunset);
}

.detail-hero {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 34px;
  align-items: center;
  padding: 36px 0 10px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(249, 115, 22, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: var(--shadow);
}

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

.detail-title {
  margin: 16px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.detail-intro {
  color: #d1d5db;
  line-height: 1.8;
  font-size: 18px;
}

.player-card {
  margin-top: 38px;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(17, 24, 39, 0.86);
  border: 1px solid rgba(245, 158, 11, 0.20);
  box-shadow: var(--shadow);
}

.video-shell {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22), rgba(0, 0, 0, 0.58));
  border: 0;
  color: #fff;
  cursor: pointer;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111827;
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  font-size: 34px;
  box-shadow: 0 24px 70px rgba(245, 158, 11, 0.25);
}

.player-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  color: var(--muted-2);
}

.content-panel {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 24px;
  margin-top: 30px;
}

.article-box,
.side-box {
  border-radius: 24px;
  background: rgba(31, 41, 55, 0.70);
  border: 1px solid rgba(75, 85, 99, 0.34);
  padding: 24px;
}

.article-box h2,
.side-box h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.article-box p {
  color: #d1d5db;
  line-height: 1.9;
  margin: 0 0 20px;
}

.side-link {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(75, 85, 99, 0.28);
  color: #e5e7eb;
}

.side-link:hover {
  color: var(--sunset);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.page-link {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.72);
  border: 1px solid rgba(75, 85, 99, 0.36);
  color: #e5e7eb;
}

.page-link:hover,
.page-link.active {
  color: #111827;
  background: linear-gradient(90deg, #f59e0b, #fb923c);
}

.site-footer {
  margin-top: 72px;
  padding: 34px 0;
  color: var(--muted);
  border-top: 1px solid rgba(75, 85, 99, 0.24);
  background: rgba(5, 8, 22, 0.34);
}

.empty-state {
  display: none;
  border-radius: 20px;
  padding: 24px;
  color: var(--muted-2);
  background: rgba(31, 41, 55, 0.70);
  border: 1px solid rgba(75, 85, 99, 0.34);
}

.card.is-hidden,
.rank-item.is-hidden {
  display: none;
}

@media (max-width: 980px) {
  .nav-links,
  .top-search {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .hero-content,
  .detail-hero,
  .content-panel {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 64px 0 48px;
  }

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

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

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 46px 96px 1fr;
  }

  .rank-item .btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 580px) {
  .logo-sub {
    display: none;
  }

  .logo {
    min-width: 0;
  }

  .logo-main {
    font-size: 18px;
  }

  .hero {
    min-height: auto;
  }

  .card-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .rank-item {
    grid-template-columns: 42px 1fr;
  }

  .rank-thumb {
    display: none;
  }
}
