:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-400: #fb923c;
  --red-500: #ef4444;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--slate-900);
  background: linear-gradient(135deg, var(--slate-50), var(--slate-100));
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-800), var(--slate-900));
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
}

.header-inner {
  max-width: 1180px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--orange-500);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}

.nav-links a,
.mobile-nav a,
.site-footer a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-nav a:hover,
.site-footer a:hover {
  color: var(--orange-400);
}

.menu-toggle {
  display: none;
  color: var(--white);
  background: transparent;
  border: 0;
  font-size: 24px;
}

.mobile-nav {
  display: none;
  padding: 14px 20px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--slate-900);
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
}

.hero {
  position: relative;
  height: 650px;
  overflow: hidden;
  background: var(--slate-950);
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  height: 100%;
  margin: 0 auto;
  padding: 84px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.eyebrow {
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.16);
  border: 1px solid rgba(251, 146, 60, 0.35);
  backdrop-filter: blur(12px);
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 76px);
}

.hero p {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: clamp(17px, 2.4vw, 23px);
  color: #cbd5e1;
}

.hero-tags,
.tag-row,
.meta-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row a,
.detail-meta span,
.meta-row span {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}

.hero-tags span,
.tag-row a {
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.12);
}

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

.primary-btn,
.ghost-btn,
.small-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  min-height: 48px;
  padding: 0 28px;
  color: var(--white);
  background: var(--orange-500);
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.32);
}

.primary-btn:hover,
.small-btn:hover {
  transform: translateY(-2px);
  background: var(--orange-600);
}

.ghost-btn {
  min-height: 48px;
  padding: 0 24px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}

.hero-poster {
  position: absolute;
  z-index: 2;
  right: calc((100vw - 1180px) / 2 + 20px);
  bottom: 80px;
  width: min(32vw, 360px);
  height: 460px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  transform: rotate(2deg);
}

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

.hero-dot {
  width: 30px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.is-active {
  background: var(--orange-500);
}

.section-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 20px;
}

.search-panel,
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.search-panel h2,
.section-title h2,
.split-section h2,
.article-section h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  color: var(--slate-800);
}

.search-panel p,
.section-title p,
.split-section p,
.category-overview-card p,
.article-section p,
.page-hero p {
  margin: 8px 0 0;
  color: #64748b;
}

.search-panel input,
.filter-bar input,
.filter-bar select {
  min-height: 48px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: var(--white);
  padding: 0 18px;
  outline: none;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.search-panel input {
  width: min(420px, 100%);
}

.filter-bar input {
  flex: 1;
}

.filter-bar select {
  width: 180px;
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-title a {
  color: var(--orange-600);
  font-weight: 800;
}

.section-title.light h2,
.section-title.light p,
.section-title.light a {
  color: var(--white);
}

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

.category-tile,
.category-overview-card {
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.category-tile:hover {
  color: var(--white);
  transform: translateY(-4px);
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
}

.category-tile span,
.overview-title {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 900;
}

.category-tile p,
.category-overview-card p {
  font-size: 14px;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
}

.poster-wrap {
  position: relative;
  height: 248px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
}

.poster-wrap img {
  transition: transform 0.35s ease;
}

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

.poster-badge,
.duration {
  position: absolute;
  color: var(--white);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.poster-badge {
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  background: var(--red-500);
}

.duration {
  right: 12px;
  bottom: 12px;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.66);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.32;
  color: var(--slate-900);
}

.card-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: #64748b;
  font-size: 14px;
}

.meta-row span {
  color: #475569;
  background: #f1f5f9;
}

.dark-band {
  background: linear-gradient(90deg, var(--slate-800), var(--slate-900));
}

.band-inner .movie-card {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  backdrop-filter: blur(12px);
}

.band-inner .card-body h3,
.band-inner .card-body p {
  color: var(--white);
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

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

.compact-list.small {
  margin-top: 18px;
}

.compact-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.compact-card img {
  height: 72px;
  border-radius: 14px;
  background: var(--slate-800);
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card strong {
  color: var(--slate-900);
  font-size: 16px;
}

.compact-card em {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  padding: 72px 20px;
  text-align: center;
  color: var(--white);
  background: linear-gradient(120deg, var(--slate-900), var(--slate-800));
}

.page-hero h1,
.page-hero p {
  color: var(--white);
}

.page-hero p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: #cbd5e1;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #fed7aa;
  font-size: 14px;
}

.crumbs a:hover {
  color: var(--orange-400);
}

.category-overview-card {
  grid-column: span 1;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 92px 70px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.rank-cover {
  height: 78px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--slate-800);
}

.rank-index {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--white);
  font-size: 21px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
}

.rank-main h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.rank-main p {
  margin: 0 0 10px;
  color: #64748b;
}

.small-btn {
  padding: 10px 18px;
  color: var(--white);
  background: var(--orange-500);
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--slate-950);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
}

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  min-height: 560px;
  margin: 0 auto;
  padding: 70px 20px;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 42px;
  align-items: center;
  color: var(--white);
}

.detail-poster {
  height: 450px;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  background: var(--slate-800);
}

.detail-info h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.one-line {
  max-width: 760px;
  margin: 20px 0 0;
  color: #cbd5e1;
  font-size: 19px;
}

.detail-meta {
  margin-top: 22px;
}

.detail-meta span {
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.12);
}

.tag-row {
  margin: 22px 0 28px;
}

.player-section {
  padding-top: 46px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.22);
}

.player-shell video {
  width: 100%;
  min-height: 360px;
  max-height: 680px;
  background: #000;
  display: block;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: rgba(0, 0, 0, 0.28);
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 38px;
  background: var(--orange-500);
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.36);
}

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

.article-section {
  max-width: 900px;
}

.article-section h2 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 28px;
}

.article-section p {
  font-size: 17px;
  color: #334155;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 0;
}

.info-list div {
  padding: 18px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

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

.info-list dd {
  margin: 6px 0 0;
  font-weight: 800;
}

.site-footer {
  margin-top: 40px;
  padding: 48px 20px 24px;
  color: #cbd5e1;
  background: var(--slate-900);
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 30px;
}

.footer-logo {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 18px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  max-width: 1180px;
  margin: 32px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 14px;
}

.is-hidden-by-filter {
  display: none !important;
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-poster {
    display: none;
  }

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

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

@media (max-width: 820px) {
  .hero {
    height: 580px;
  }

  .search-panel,
  .filter-bar,
  .section-title,
  .split-section,
  .detail-inner,
  .footer-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .detail-inner {
    display: block;
    min-height: auto;
  }

  .detail-poster {
    max-width: 320px;
    height: 420px;
    margin: 0 auto 30px;
  }

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

  .rank-row {
    grid-template-columns: 76px 1fr;
  }

  .rank-index,
  .rank-row .small-btn {
    display: none;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 62px;
  }

  .logo {
    font-size: 18px;
  }

  .hero-content {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .movie-grid,
  .category-grid,
  .overview-grid,
  .info-list {
    grid-template-columns: 1fr;
  }

  .poster-wrap {
    height: 310px;
  }

  .compact-card {
    grid-template-columns: 70px 1fr;
  }

  .player-shell video {
    min-height: 240px;
  }
}
