:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-400: #fb923c;
  --amber-300: #fcd34d;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 26px 65px rgba(15, 23, 42, 0.22);
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 12px;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-800);
  background: linear-gradient(135deg, var(--slate-50), var(--slate-100));
  min-height: 100vh;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: rgba(255, 255, 255, 0.82);
}

.nav-link {
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange-400);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  flex-direction: column;
  gap: 14px;
}

.hero {
  position: relative;
  min-height: 600px;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(90deg, var(--slate-950), var(--slate-800), var(--slate-900));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 5s ease;
}

.hero-slide.is-active {
  opacity: 0.32;
  transform: scale(1);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 22%, rgba(249, 115, 22, 0.35), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.38));
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  gap: 48px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-300);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.7;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  box-shadow: 0 18px 32px rgba(249, 115, 22, 0.34);
}

.button-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.62);
  box-shadow: var(--shadow-strong);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px);
  padding: 22px;
}

.hero-panel h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.hero-pick {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-lg);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-pick:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.hero-pick img {
  width: 92px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-pick strong {
  display: block;
  color: var(--white);
  line-height: 1.35;
}

.hero-pick span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.hero-dot {
  width: 32px;
  height: 4px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
  cursor: pointer;
}

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

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

.section-narrow {
  width: min(920px, calc(100% - 32px));
}

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

.section-title {
  margin: 0;
  color: var(--slate-800);
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-desc {
  margin: 12px 0 0;
  color: var(--slate-600);
  line-height: 1.7;
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(249, 115, 22, 0.34);
  box-shadow: var(--shadow-strong);
  transform: translateY(-6px);
}

.movie-poster {
  position: relative;
  display: block;
  height: 255px;
  overflow: hidden;
  background: var(--slate-800);
}

.movie-grid.wide .movie-poster {
  height: 215px;
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(2, 6, 23, 0.68));
}

.poster-badge,
.poster-duration,
.rank-number {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
}

.poster-badge {
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  background: var(--orange-500);
}

.poster-duration {
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: rgba(2, 6, 23, 0.72);
}

.rank-number {
  left: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  font-size: 17px;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
}

.movie-card-body {
  padding: 18px;
}

.movie-card h3 {
  margin: 0 0 9px;
  color: var(--slate-800);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--orange-600);
}

.movie-meta,
.movie-desc {
  margin: 0;
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.65;
}

.movie-desc {
  min-height: 44px;
  margin-top: 9px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 700;
}

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

.dark-band .section-title,
.dark-band .section-desc {
  color: var(--white);
}

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

.category-card {
  min-height: 154px;
  padding: 22px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-card:hover {
  background: var(--orange-500);
  transform: translateY(-5px) scale(1.01);
}

.category-card b {
  display: block;
  margin-bottom: 9px;
  font-size: 18px;
}

.category-card span {
  font-size: 34px;
}

.category-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  line-height: 1.6;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 44px 104px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow);
}

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

.rank-row img {
  width: 104px;
  height: 68px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  color: var(--slate-800);
  font-size: 17px;
}

.rank-info em {
  margin-top: 5px;
  color: var(--slate-500);
  font-size: 13px;
  font-style: normal;
}

.rank-score {
  color: var(--orange-600);
  font-size: 22px;
  font-weight: 900;
}

.page-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.36), transparent 28%),
    linear-gradient(90deg, var(--slate-900), var(--slate-950));
}

.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.75;
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  color: var(--slate-500);
  font-size: 14px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 170px auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.search-box {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
}

.search-box input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  color: var(--slate-800);
  font: inherit;
  border: 0;
  outline: 0;
  background: transparent;
}

.filter-panel select {
  padding: 0 12px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
}

.filter-count {
  color: var(--slate-500);
  font-size: 14px;
  white-space: nowrap;
}

.detail-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 78% 22%, rgba(249, 115, 22, 0.3), transparent 28%),
    linear-gradient(90deg, var(--slate-950), var(--slate-800));
}

.detail-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: start;
}

.player-shell {
  overflow: hidden;
  background: #000000;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-strong);
}

.player-stage {
  position: relative;
  background: #000000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(2, 6, 23, 0.45);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 34px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.36);
  cursor: pointer;
}

.detail-copy {
  padding: 24px 0 0;
}

.detail-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: -0.04em;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.detail-tags span {
  padding: 7px 12px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.detail-side {
  padding: 20px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.detail-side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.detail-facts {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.detail-fact {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.article-block {
  padding: 28px;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.article-block + .article-block {
  margin-top: 22px;
}

.article-block h2 {
  margin: 0 0 14px;
  color: var(--slate-800);
  font-size: 25px;
}

.article-block p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.9;
}

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

.site-footer {
  margin-top: 60px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--slate-950);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}

.footer-brand {
  color: var(--white);
}

.footer-inner p {
  max-width: 520px;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 12px 28px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: rgba(255, 255, 255, 0.48);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

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

  .hero-panel {
    margin-bottom: 42px;
  }
}

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

  .menu-toggle {
    display: flex;
  }

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

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 72px 0 42px;
  }

  .hero-panel {
    padding: 16px;
  }

  .section {
    padding: 46px 0;
  }

  .section-head {
    display: block;
  }

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

  .movie-poster,
  .movie-grid.wide .movie-poster {
    height: 230px;
  }

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

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

  .rank-row img {
    width: 76px;
    height: 54px;
  }

  .rank-score {
    grid-column: 3;
    font-size: 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
