:root {
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --secondary-50: #f0fdfa;
  --secondary-100: #ccfbf1;
  --secondary-600: #0d9488;
  --accent-50: #fff7ed;
  --accent-600: #ea580c;
  --neutral-50: #fafaf9;
  --neutral-100: #f5f5f4;
  --neutral-200: #e7e5e4;
  --neutral-500: #78716c;
  --neutral-600: #57534e;
  --neutral-700: #44403c;
  --neutral-800: #292524;
  --neutral-900: #1c1917;
  --shadow-md: 0 12px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
  --radius-xl: 1.25rem;
  --radius-2xl: 1.75rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--neutral-900);
  background: linear-gradient(180deg, var(--neutral-50), #ffffff 36rem);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
}

.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  box-shadow: 0 18px 36px rgba(2, 132, 199, 0.25);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

.brand-text {
  display: grid;
  gap: 0.1rem;
}

.brand-text strong {
  font-size: 1.08rem;
  line-height: 1.1;
}

.brand-text em {
  font-style: normal;
  color: var(--neutral-500);
  font-size: 0.78rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  color: var(--neutral-700);
  font-weight: 700;
}

.desktop-nav > a,
.nav-dropdown > a {
  transition: color 0.2s ease;
}

.desktop-nav > a:hover,
.nav-dropdown > a:hover {
  color: var(--primary-600);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 13rem;
  padding: 0.55rem;
  margin-top: 0.9rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.6rem);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 0.62rem 0.8rem;
  border-radius: 0.7rem;
  color: var(--neutral-700);
  font-size: 0.92rem;
}

.dropdown-panel a:hover {
  color: var(--primary-700);
  background: var(--primary-50);
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(18rem, 24vw);
}

.nav-search input {
  width: 100%;
  border: 1px solid var(--neutral-200);
  border-radius: 999px;
  padding: 0.7rem 4rem 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.86);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.nav-search button {
  position: absolute;
  right: 0.25rem;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  color: #ffffff;
  background: var(--primary-600);
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 0.85rem;
  background: var(--neutral-100);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 0.27rem auto;
  border-radius: 1px;
  background: var(--neutral-800);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 1rem;
  padding: 1rem;
  border-radius: 1.2rem;
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.mobile-panel a {
  display: block;
  padding: 0.8rem 0.4rem;
  color: var(--neutral-700);
  font-weight: 700;
}

.mobile-panel form {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.6rem;
}

.mobile-panel input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--neutral-200);
  border-radius: 0.8rem;
  padding: 0.7rem 0.85rem;
}

.mobile-panel button {
  border: 0;
  border-radius: 0.8rem;
  padding: 0.7rem 1rem;
  color: #ffffff;
  background: var(--primary-600);
}

.page-main {
  padding-top: 5.5rem;
}

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

.hero {
  position: relative;
  height: min(80vh, 760px);
  min-height: 34rem;
  overflow: hidden;
  color: #ffffff;
  background: #000000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease, transform 1.2s ease;
  transform: scale(1.02);
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 30%, rgba(14, 165, 233, 0.22), transparent 28rem),
    linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.28));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 2rem));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(3rem, 8vh, 6rem);
}

.hero-copy {
  width: min(48rem, 100%);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--primary-600);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 14px 34px rgba(2, 132, 199, 0.32);
}

.hero h1 {
  margin: 1.15rem 0 1rem;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero p {
  width: min(42rem, 100%);
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.button-primary,
.button-soft,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button-primary {
  color: #ffffff;
  background: var(--primary-600);
  box-shadow: 0 18px 34px rgba(2, 132, 199, 0.32);
}

.button-primary:hover,
.button-soft:hover,
.button-ghost:hover {
  transform: translateY(-2px);
}

.button-soft {
  color: var(--primary-700);
  background: var(--primary-100);
}

.button-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-controls {
  position: absolute;
  z-index: 5;
  right: max(1rem, calc((100vw - 1180px) / 2));
  bottom: clamp(2rem, 7vh, 5rem);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(10px);
  font-size: 1.4rem;
}

.hero-dots {
  display: flex;
  gap: 0.45rem;
  padding: 0 0.4rem;
}

.hero-dot {
  width: 0.62rem;
  height: 0.62rem;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 2.1rem;
  background: #ffffff;
}

.content-space {
  padding: 4rem 0;
}

.content-space > section + section {
  margin-top: 4.6rem;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.16;
}

.section-head p {
  margin: 0.4rem 0 0;
  color: var(--neutral-600);
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary-600);
  font-weight: 800;
}

.section-more span {
  font-size: 1.5rem;
  transition: transform 0.2s ease;
}

.section-more:hover span {
  transform: translateX(0.2rem);
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-0.35rem);
  box-shadow: var(--shadow-lg);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-100), var(--secondary-100));
}

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

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 56%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.card-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
}

.card-year {
  right: 0.75rem;
}

.rank-badge {
  left: 0.75rem;
  background: linear-gradient(135deg, var(--accent-600), #ef4444);
}

.card-content {
  padding: 1rem;
}

.card-label {
  display: inline-flex;
  margin-bottom: 0.55rem;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  color: var(--primary-700);
  background: var(--primary-100);
  font-size: 0.78rem;
  font-weight: 800;
}

.card-content h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.card-content h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.card-content h3 a:hover {
  color: var(--primary-600);
}

.card-content p {
  display: -webkit-box;
  min-height: 3.05rem;
  margin: 0 0 0.75rem;
  overflow: hidden;
  color: var(--neutral-600);
  font-size: 0.92rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  color: var(--neutral-500);
  font-size: 0.82rem;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: minmax(10rem, 16rem) 1fr;
}

.movie-card-horizontal .card-cover {
  aspect-ratio: auto;
  height: 100%;
  min-height: 12rem;
}

.movie-card-horizontal .card-content {
  padding: 1.2rem;
}

.feature-panel {
  border-radius: var(--radius-2xl);
  padding: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
}

.horizontal-list {
  display: grid;
  gap: 1rem;
}

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

.category-card {
  border-radius: var(--radius-xl);
  padding: 1rem;
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.category-card-main {
  display: grid;
  gap: 0.55rem;
  padding: 1.1rem;
  border-radius: 1rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
}

.category-card-main span {
  font-size: 1.15rem;
  font-weight: 900;
}

.category-card-main strong {
  font-size: 0.93rem;
  font-weight: 500;
  opacity: 0.9;
}

.category-samples {
  display: grid;
  gap: 0.4rem;
  padding: 0.85rem 0.2rem 0.2rem;
}

.category-samples a {
  color: var(--neutral-600);
  font-size: 0.92rem;
}

.category-samples a:hover {
  color: var(--primary-600);
}

.page-hero {
  margin: 0 auto 2.5rem;
  padding: 4.5rem 0 2.2rem;
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.16), transparent 24rem),
    radial-gradient(circle at left, rgba(14, 165, 233, 0.14), transparent 28rem);
}

.page-hero h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.04em;
}

.page-hero p {
  width: min(54rem, 100%);
  margin: 0;
  color: var(--neutral-600);
  font-size: 1.05rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.8rem;
}

.filter-bar a,
.filter-bar button,
.filter-bar select,
.filter-bar input {
  border: 1px solid var(--neutral-200);
  border-radius: 999px;
  padding: 0.74rem 1rem;
  background: #ffffff;
  color: var(--neutral-700);
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.filter-bar a.is-active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
}

.filter-bar input {
  min-width: min(26rem, 100%);
  flex: 1;
}

.filter-bar button {
  color: #ffffff;
  border-color: transparent;
  background: var(--primary-600);
  cursor: pointer;
}

.ranking-list {
  display: grid;
  gap: 1rem;
}

.rank-row {
  display: grid;
  grid-template-columns: 4rem 12rem 1fr;
  gap: 1rem;
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.rank-number {
  display: grid;
  place-items: center;
  color: var(--primary-700);
  background: var(--primary-50);
  font-size: 1.35rem;
  font-weight: 900;
}

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

.rank-info {
  padding: 1rem 1rem 1rem 0;
}

.rank-info h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.rank-info p {
  margin: 0 0 0.75rem;
  color: var(--neutral-600);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
  color: var(--neutral-500);
  font-size: 0.93rem;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(18rem, 0.92fr);
  gap: 2rem;
  align-items: start;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 1.3rem;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: #000000;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  background: #000000;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(14, 165, 233, 0.32), transparent 18rem),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.34));
}

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

.player-play-button {
  position: relative;
  z-index: 2;
  width: 5rem;
  height: 5rem;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 20px 46px rgba(2, 132, 199, 0.42);
}

.player-message {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 5;
  display: none;
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(12px);
}

.player-message.is-visible {
  display: inline-flex;
}

.detail-title-card,
.text-panel,
.side-panel {
  border-radius: var(--radius-xl);
  padding: clamp(1.2rem, 3vw, 1.6rem);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.detail-title-card h1 {
  margin: 0.8rem 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.badge-row a,
.badge-row span {
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  color: var(--neutral-700);
  background: var(--neutral-100);
  font-size: 0.86rem;
  font-weight: 800;
}

.badge-row a:first-child {
  color: var(--primary-700);
  background: var(--primary-100);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  color: var(--neutral-600);
}

.text-panel h2,
.side-panel h2 {
  margin: 0 0 0.8rem;
  font-size: 1.3rem;
}

.text-panel p {
  margin: 0;
  color: var(--neutral-700);
  line-height: 1.92;
}

.related-stack {
  display: grid;
  gap: 0.9rem;
}

.related-mini {
  display: grid;
  grid-template-columns: 6.4rem 1fr;
  gap: 0.8rem;
  align-items: center;
}

.related-mini img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 0.8rem;
}

.related-mini h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  line-height: 1.35;
}

.related-mini p {
  margin: 0;
  color: var(--neutral-500);
  font-size: 0.82rem;
}

.search-status {
  margin-bottom: 1rem;
  color: var(--neutral-600);
  font-weight: 700;
}

.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 0;
  color: #ffffff;
  background: var(--neutral-900);
}

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

.footer-inner strong {
  font-size: 1.3rem;
}

.footer-inner p {
  width: min(42rem, 100%);
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem 1.2rem;
  max-width: 28rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.76);
}

.footer-links a:hover {
  color: #ffffff;
}

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

  .mobile-toggle {
    display: block;
  }

  .site-header.menu-open .mobile-panel {
    display: block;
  }

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

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

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 720px) {
  .brand-text em {
    display: none;
  }

  .brand-text strong {
    font-size: 0.98rem;
  }

  .hero {
    height: 72vh;
    min-height: 31rem;
  }

  .hero-controls {
    right: 1rem;
    left: 1rem;
    bottom: 1.1rem;
    justify-content: space-between;
  }

  .hero-dots {
    order: 2;
  }

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

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

  .movie-card-horizontal {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 3.2rem 7rem 1fr;
  }

  .rank-info p {
    display: none;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}
