:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-100: #f1f5f9;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --cyan-400: #22d3ee;
  --orange-500: #f97316;
  --white: #ffffff;
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 10px 24px rgba(15, 23, 42, 0.10);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(135deg, #f8fafc 0%, #f3f4f6 52%, #e2e8f0 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

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

.logo-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-500), var(--cyan-400));
  box-shadow: 0 12px 30px rgba(20, 184, 166, 0.35);
  font-size: 14px;
}

.logo-text {
  font-size: 20px;
  background: linear-gradient(90deg, var(--teal-400), var(--cyan-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
  background: rgba(20, 184, 166, 0.88);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.hero-carousel {
  position: relative;
  height: 68vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--slate-950);
}

.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-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.55) 46%, rgba(2, 6, 23, 0.16) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 72px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  color: var(--white);
}

.hero-content h1,
.hero-content h2 {
  max-width: 780px;
  margin: 14px 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 28px;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

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

.hero-kicker span:first-child,
.eyebrow,
.card-badge,
.feature-tags span:first-child {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  color: var(--white);
  background: var(--teal-500);
  font-weight: 700;
}

.hero-kicker span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

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

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

.btn-primary {
  color: var(--white);
  background: var(--teal-500);
  box-shadow: 0 18px 35px rgba(20, 184, 166, 0.32);
}

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

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(10px);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 24px;
  transform: translateY(-50%);
}

.hero-next {
  right: 24px;
  transform: translateY(-50%);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--teal-500);
}

.category-strip {
  margin-top: -34px;
  position: relative;
  z-index: 5;
}

.category-strip-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.category-tile {
  min-height: 116px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fafc, #ecfeff);
  border: 1px solid rgba(20, 184, 166, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.category-tile span {
  display: block;
  margin-bottom: 8px;
  color: var(--gray-900);
  font-size: 20px;
  font-weight: 800;
}

.category-tile small {
  color: var(--gray-600);
  line-height: 1.6;
}

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

.page-top {
  padding-top: 56px;
  padding-bottom: 72px;
}

.content-section {
  margin: 72px 0;
}

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

.section-head h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(26px, 3vw, 34px);
}

.section-head p {
  margin: 8px 0 0;
  max-width: 720px;
  color: var(--gray-600);
  line-height: 1.7;
}

.section-link {
  flex: 0 0 auto;
  color: var(--teal-600);
  font-weight: 800;
}

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

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

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

.feature-card,
.movie-card,
.category-card-large,
.rank-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.feature-card a,
.movie-card-link {
  display: block;
  height: 100%;
}

.feature-card {
  position: relative;
  height: 460px;
}

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

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

.feature-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 120px 24px 24px;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0));
}

.feature-overlay h3 {
  margin: 14px 0 8px;
  font-size: 28px;
  line-height: 1.2;
}

.feature-overlay p,
.card-body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.feature-overlay p {
  margin: 0;
  color: #e5e7eb;
  line-height: 1.6;
}

.feature-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

.feature-play,
.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--teal-500);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.feature-card:hover .feature-play,
.movie-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--slate-900);
}

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 58%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.card-badge,
.card-year {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  font-size: 12px;
}

.card-badge {
  left: 12px;
}

.card-year {
  right: 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

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

.card-body p {
  min-height: 46px;
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.65;
}

.card-meta {
  color: var(--gray-500);
  font-size: 13px;
}

.card-meta span + span::before {
  content: "·";
  margin-right: 10px;
}

.movie-card-horizontal .movie-card-link {
  display: grid;
  grid-template-columns: 170px 1fr;
}

.movie-card-horizontal .poster-wrap {
  height: 100%;
  aspect-ratio: auto;
}

.horizontal-list {
  display: grid;
  gap: 18px;
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
}

.ranking-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.ranking-list a {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}

.ranking-list a:hover {
  transform: translateX(4px);
}

.ranking-list strong {
  color: var(--teal-600);
  font-size: 22px;
}

.ranking-list span {
  font-weight: 800;
}

.ranking-list em {
  color: var(--gray-500);
  font-style: normal;
  font-size: 13px;
}

.page-title-block {
  padding: 38px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.38), transparent 32%), linear-gradient(135deg, var(--slate-900), var(--slate-800));
  box-shadow: var(--shadow-soft);
}

.page-title-block h1 {
  margin: 12px 0;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.04em;
}

.page-title-block p:last-child {
  max-width: 780px;
  margin: 0;
  color: #d1d5db;
  line-height: 1.8;
}

.eyebrow {
  margin: 0;
  padding: 7px 12px;
  font-size: 13px;
}

.category-overview-grid {
  margin-top: 34px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card-large {
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card-large:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.category-card-large h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.category-card-large p {
  margin: 0 0 18px;
  color: var(--gray-600);
  line-height: 1.7;
}

.category-card-large ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.category-card-large li a {
  color: var(--teal-600);
  font-weight: 700;
}

.filter-panel {
  margin: 28px 0 18px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
}

.filter-row input,
.filter-row select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--gray-900);
  background: var(--gray-50);
  outline: none;
}

.filter-row input:focus,
.filter-row select:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

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

.rank-grid {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.rank-card a {
  display: grid;
  grid-template-columns: 72px 170px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px;
}

.rank-card strong {
  color: var(--teal-600);
  font-size: 34px;
}

.rank-card img {
  width: 170px;
  height: 108px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-card p {
  margin: 0 0 10px;
  color: var(--gray-600);
  line-height: 1.6;
}

.rank-card span {
  color: var(--gray-500);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-950);
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.26;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px);
  transform: scale(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.80));
}

.detail-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: 580px;
  margin: 0 auto;
  padding: 70px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
}

.breadcrumb {
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #cbd5e1;
  font-size: 14px;
}

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

.detail-copy h1 {
  margin: 16px 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-copy p {
  max-width: 760px;
  color: #e5e7eb;
  font-size: 19px;
  line-height: 1.8;
}

.detail-meta {
  margin: 22px 0 30px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

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

.player-section {
  margin: 56px 0;
}

.player-section h2 {
  margin: 0 0 18px;
  font-size: 30px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: 0 25px 60px rgba(2, 6, 23, 0.35);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.48));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--teal-500);
  box-shadow: 0 20px 50px rgba(20, 184, 166, 0.42);
  font-size: 34px;
  transform: translateX(3px);
}

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

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.detail-article,
.detail-side {
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.detail-article {
  padding: 30px;
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.detail-article h2:not(:first-child) {
  margin-top: 30px;
}

.detail-article p {
  margin: 0;
  color: var(--gray-600);
  font-size: 17px;
  line-height: 1.9;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--teal-600);
  background: #ccfbf1;
  font-weight: 700;
}

.detail-side {
  padding: 24px;
}

.detail-side dl {
  margin: 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px 12px;
}

.detail-side dt {
  color: var(--gray-500);
}

.detail-side dd {
  margin: 0;
  color: var(--gray-900);
  font-weight: 700;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 34px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.footer-brand p {
  max-width: 420px;
  color: #cbd5e1;
  line-height: 1.7;
}

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

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

.footer-block a:hover {
  color: var(--teal-400);
}

.footer-bottom {
  border-top: 1px solid rgba(203, 213, 225, 0.18);
  padding: 24px;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .category-strip-inner,
  .movie-grid,
  .compact-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid,
  .split-section,
  .detail-content-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    max-width: 360px;
  }
}

@media (max-width: 760px) {
  .site-nav {
    min-height: 62px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 62px;
    display: none;
    padding: 12px 16px 18px;
    flex-direction: column;
    align-items: stretch;
    background: var(--slate-900);
  }

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

  .nav-link {
    padding: 12px 14px;
  }

  .hero-carousel {
    height: 74vh;
    min-height: 520px;
  }

  .hero-content {
    bottom: 70px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 40px;
  }

  .hero-arrow {
    display: none;
  }

  .category-strip-inner,
  .feature-grid,
  .movie-grid,
  .compact-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

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

  .movie-card-horizontal .movie-card-link,
  .rank-card a {
    grid-template-columns: 1fr;
  }

  .rank-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .detail-inner {
    min-height: auto;
    padding: 48px 0;
  }

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

  .page-title-block {
    padding: 28px;
  }
}
