:root {
  color-scheme: dark;
  --bg-deep: #020617;
  --bg-mid: #0f172a;
  --bg-blue: #172554;
  --card: rgba(15, 23, 42, 0.82);
  --card-strong: rgba(15, 23, 42, 0.96);
  --border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --danger: #ef4444;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 8%, rgba(245, 158, 11, 0.16), transparent 24rem),
    radial-gradient(circle at 84% 12%, rgba(37, 99, 235, 0.18), transparent 28rem),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-blue) 46%, var(--bg-deep) 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(251, 191, 36, 0.18);
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: max-content;
}

.logo-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  overflow: hidden;
  border-radius: 1rem;
  color: #020617;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-light), var(--amber), #fde68a);
  box-shadow: 0 0 36px rgba(245, 158, 11, 0.28);
}

.logo-text {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #fde68a, var(--amber-light), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  color: #e2e8f0;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 180ms ease, transform 180ms ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--amber-light);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  color: #111827;
  font-weight: 800;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.18);
}

.nav-cta:hover {
  color: #111827 !important;
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--border);
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem 1.25rem;
}

.mobile-nav.is-open {
  display: grid;
  gap: 0.75rem;
}

.mobile-nav a {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.85);
}

.main-wrap {
  width: min(1280px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  border-bottom: 1px solid rgba(251, 191, 36, 0.14);
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 28%, rgba(245, 158, 11, 0.16), transparent 20rem),
    linear-gradient(135deg, #0f172a, #172554 45%, #020617);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  filter: saturate(1.12) contrast(1.03);
  transform: scale(1.035);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.68) 44%, rgba(2, 6, 23, 0.22) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.82));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 70vh;
  width: min(1280px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 5.5rem 0 4rem;
}

.hero-copy {
  width: min(720px, 100%);
}

.hero-eyebrow,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.08em;
  font-weight: 950;
}

.hero-title-gradient {
  display: block;
  background: linear-gradient(90deg, #ffffff 0%, #fde68a 52%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 2.4vw, 2.6rem);
  font-weight: 850;
}

.hero-summary {
  max-width: 46rem;
  margin: 0 0 1.4rem;
  color: #dbeafe;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.85;
}

.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.meta-pill,
.tag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.72);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.9rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.btn-primary {
  color: #111827;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.24);
}

.btn-ghost {
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: #fde68a;
  background: rgba(15, 23, 42, 0.6);
}

.btn-soft {
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.76);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  z-index: 4;
  display: flex;
  gap: 0.55rem;
  transform: translateX(-50%);
}

.hero-dot {
  width: 0.75rem;
  height: 0.75rem;
  padding: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.52);
  transition: width 220ms ease, background 220ms ease;
}

.hero-dot.is-active {
  width: 2rem;
  background: var(--amber-light);
}

.section {
  padding: 4.5rem 0 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-title h1,
.section-title h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.08;
  font-weight: 920;
  letter-spacing: -0.045em;
}

.section-title p {
  margin: 0.75rem 0 0;
  max-width: 50rem;
  color: var(--muted);
  line-height: 1.75;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.15rem;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--card);
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.22);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 22px 70px rgba(245, 158, 11, 0.12);
}

.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(245, 158, 11, 0.28), transparent 35%),
    linear-gradient(145deg, #111827, #172554 55%, #020617);
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

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

.poster-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  font-size: 1.05rem;
  font-weight: 850;
}

.poster img + .poster-fallback {
  display: none;
}

.card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  color: #111827;
  font-size: 0.78rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fde68a, var(--amber));
}

.card-body {
  padding: 0.85rem;
}

.card-title {
  display: -webkit-box;
  min-height: 2.75rem;
  overflow: hidden;
  margin: 0 0 0.45rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 850;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  color: var(--soft);
  font-size: 0.84rem;
}

.card-desc {
  display: -webkit-box;
  min-height: 3.7rem;
  overflow: hidden;
  margin: 0;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

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

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 11rem;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 88% 12%, rgba(245, 158, 11, 0.2), transparent 42%),
    rgba(15, 23, 42, 0.78);
  transition: transform 180ms ease, border-color 180ms ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.42);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.25rem;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.category-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.rank-item {
  display: grid;
  grid-template-columns: 3.25rem 4.25rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 1.05rem;
  background: rgba(15, 23, 42, 0.78);
  transition: transform 180ms ease, border-color 180ms ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(251, 191, 36, 0.4);
}

.rank-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  color: #111827;
  font-weight: 950;
  background: linear-gradient(135deg, #fde68a, var(--amber));
}

.rank-thumb {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, #111827, #172554);
}

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

.rank-info h3 {
  margin: 0 0 0.35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 850;
}

.rank-info p {
  margin: 0;
  color: var(--soft);
  font-size: 0.9rem;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 11rem 11rem;
  gap: 0.75rem;
  margin: 1.4rem 0 1.6rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  background: rgba(15, 23, 42, 0.76);
}

.search-input,
.filter-select {
  width: 100%;
  min-height: 3rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.95rem;
  color: var(--text);
  outline: none;
  background: rgba(2, 6, 23, 0.7);
}

.search-input {
  padding: 0 1rem;
}

.filter-select {
  padding: 0 0.85rem;
}

.search-input:focus,
.filter-select:focus {
  border-color: rgba(251, 191, 36, 0.62);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.empty-state {
  display: none;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  color: var(--muted);
  text-align: center;
  background: rgba(15, 23, 42, 0.72);
}

.empty-state.is-visible {
  display: block;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 2rem 0 1rem;
  color: var(--soft);
}

.breadcrumb a {
  color: #fde68a;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  padding-top: 2rem;
}

.detail-poster {
  position: sticky;
  top: 6.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: linear-gradient(145deg, #111827, #172554);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-content h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.detail-one-line {
  margin: 1rem 0 1.4rem;
  color: #dbeafe;
  font-size: 1.15rem;
  line-height: 1.8;
}

.player-panel {
  position: relative;
  overflow: hidden;
  margin-top: 1.35rem;
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 1.35rem;
  background: #000;
  box-shadow: var(--shadow);
}

.player-panel video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #111827;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.2), rgba(2, 6, 23, 0.76)),
    rgba(2, 6, 23, 0.52);
  cursor: pointer;
}

.play-cover.is-hidden {
  display: none;
}

.play-button-core {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 999px;
  color: #111827;
  font-size: 2.25rem;
  background: linear-gradient(135deg, #fde68a, var(--amber));
  box-shadow: 0 0 46px rgba(245, 158, 11, 0.42);
}

.article-box {
  margin-top: 1.35rem;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.74);
}

.article-box h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 900;
}

.article-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.article-box p + p {
  margin-top: 1rem;
}

.footer {
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.7);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1280px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2rem 0;
  color: var(--soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a:hover {
  color: var(--amber-light);
}

@media (max-width: 1180px) {
  .grid-cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

@media (max-width: 960px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero,
  .hero-content {
    min-height: 66vh;
  }

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

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

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

  .detail-poster {
    position: relative;
    top: auto;
    width: min(420px, 100%);
  }

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

@media (max-width: 720px) {
  .main-wrap,
  .hero-content,
  .footer-inner {
    width: min(100% - 1.5rem, 1280px);
  }

  .header-inner {
    padding: 0.8rem 0.75rem;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  .hero-content {
    padding: 4rem 0 4.25rem;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 14vw, 4rem);
  }

  .section {
    padding-top: 3.5rem;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

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

  .rank-item {
    grid-template-columns: 2.6rem 3.8rem minmax(0, 1fr);
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
