:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --card: #1e293b;
  --card-deep: #0f172a;
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --line: rgba(148, 163, 184, 0.16);
  --amber: #f59e0b;
  --amber-soft: #fbbf24;
  --red: #ef4444;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(245, 158, 11, 0.14), transparent 32rem),
    radial-gradient(circle at 90% 10%, rgba(239, 68, 68, 0.12), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #0f172a 44%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

img,
video {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #111827;
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted-strong);
  font-weight: 700;
}

.nav-links a {
  padding: 9px 4px;
  transition: color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.92);
}

.mobile-nav a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--muted-strong);
  font-weight: 700;
}

.mobile-nav a:hover {
  background: rgba(245, 158, 11, 0.1);
  color: var(--amber-soft);
}

.mobile-nav.is-open {
  display: block;
}

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

.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-carousel {
  position: relative;
  min-height: 660px;
}

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

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 36%, rgba(2, 6, 23, 0.24) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.08) 50%, rgba(2, 6, 23, 0.9)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto -8% -24% -8%;
  height: 260px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22), transparent 58%);
  filter: blur(18px);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 660px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 52px;
  padding: 78px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.13);
  color: var(--amber-soft);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  max-width: 800px;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.hero-title-accent {
  display: block;
  color: var(--amber-soft);
}

.hero-summary {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted-strong);
  font-size: clamp(16px, 2vw, 20px);
}

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

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

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

.button-primary {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #111827;
  box-shadow: 0 16px 34px rgba(239, 68, 68, 0.26);
}

.button-outline {
  border-color: rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
}

.button-outline:hover {
  border-color: rgba(251, 191, 36, 0.42);
  color: var(--amber-soft);
}

.hero-panel {
  position: relative;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-poster {
  min-height: 360px;
  border-radius: 22px;
  background-color: #111827;
  background-image:
    linear-gradient(180deg, transparent 20%, rgba(2, 6, 23, 0.92) 100%),
    var(--poster-image);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-mini {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(12px);
}

.hero-mini strong {
  display: block;
  font-size: 20px;
}

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

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

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.38);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--amber-soft);
}

.section {
  padding: 64px 0;
}

.section-tight {
  padding: 42px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-desc {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--muted);
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px) scale(1.01);
  border-color: rgba(251, 191, 36, 0.34);
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.35);
}

.poster {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #111827;
  background-image:
    linear-gradient(180deg, rgba(2, 6, 23, 0.02) 0%, rgba(2, 6, 23, 0.86) 100%),
    var(--poster-image);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.13), transparent 52%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster::after {
  opacity: 1;
}

.badge-row {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.92);
  color: #111827;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
}

.card-title {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.card-title:hover {
  color: var(--amber-soft);
}

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

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 14px;
  color: #64748b;
  font-size: 13px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  font-size: 12px;
}

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

.category-tile {
  min-height: 176px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(251, 191, 36, 0.35);
}

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  font-size: 23px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.82);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.rank-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber-soft);
  font-size: 20px;
  font-weight: 900;
}

.rank-title {
  display: block;
  font-weight: 900;
  color: #fff;
}

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

.rank-meta {
  color: #64748b;
  font-size: 14px;
  white-space: nowrap;
}

.page-hero {
  padding: 72px 0 32px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 15% 15%, rgba(245, 158, 11, 0.16), transparent 32rem),
    radial-gradient(circle at 85% 20%, rgba(239, 68, 68, 0.12), transparent 32rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--muted-strong);
}

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

.page-title {
  margin: 0;
  max-width: 900px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.page-desc {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--muted-strong);
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.5fr 0.5fr;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.82);
  color: var(--text);
  outline: none;
  padding: 0 14px;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(251, 191, 36, 0.5);
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -6px 0 24px;
}

.quick-filters button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: var(--muted-strong);
  cursor: pointer;
}

.quick-filters button.is-active,
.quick-filters button:hover {
  border-color: rgba(251, 191, 36, 0.45);
  color: var(--amber-soft);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #020617;
  cursor: pointer;
}

.video-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background-color: #0f172a;
  background-image:
    linear-gradient(180deg, rgba(2, 6, 23, 0.14), rgba(2, 6, 23, 0.9)),
    var(--poster-image);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #111827;
  font-size: 34px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 46px rgba(239, 68, 68, 0.32);
  transition: transform 0.2s ease;
}

.video-cover:hover .play-button {
  transform: scale(1.08);
}

.player-info {
  padding: 22px;
}

.player-info h2,
.detail-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.player-info p,
.detail-card p {
  margin: 0;
  color: var(--muted-strong);
}

.detail-card {
  padding: 22px;
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.detail-list div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.detail-list dt {
  color: #64748b;
  font-size: 13px;
}

.detail-list dd {
  margin: 0;
  color: #f8fafc;
  font-weight: 800;
}

.article-card {
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.82);
}

.article-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.article-card p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 17px;
}

.article-card p + p {
  margin-top: 18px;
}

.empty-state {
  display: none;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.72);
}

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

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #64748b;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

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

@media (max-width: 1024px) {
  .grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-wide,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-panel {
    max-width: 620px;
  }
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .header-inner {
    min-height: 64px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero,
  .hero-carousel,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    padding: 54px 0 80px;
  }

  .hero-mini {
    position: static;
    margin-top: 14px;
  }

  .hero-poster {
    min-height: 260px;
  }

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

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

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

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

  .rank-meta {
    grid-column: 2;
  }

  .page-hero {
    padding-top: 48px;
  }
}

@media (max-width: 520px) {
  .container,
  .header-inner,
  .mobile-nav,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 46px 0;
  }
}
