:root {
  --color-bg: #f8fafc;
  --color-panel: #ffffff;
  --color-text: #0f172a;
  --color-muted: #64748b;
  --color-line: #e2e8f0;
  --color-blue: #2563eb;
  --color-blue-dark: #1d4ed8;
  --color-blue-soft: #dbeafe;
  --color-slate: #111827;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 52%, #0f172a 100%);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.30);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-2deg);
}

.brand-text {
  font-size: 1.18rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.desktop-nav a,
.mobile-panel a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-panel a:hover,
.mobile-panel a.is-active {
  color: #93c5fd;
}

.header-search {
  position: relative;
  width: 250px;
}

.header-search input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.20);
  outline: none;
  border-radius: 999px;
  padding: 10px 42px 10px 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

.header-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.mobile-panel {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 16px 20px;
  background: rgba(15, 23, 42, 0.98);
}

.mobile-panel nav {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.mobile-search {
  display: flex;
  gap: 10px;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  padding: 10px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
}

.mobile-search button,
.page-filter button,
.search-panel button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  background: var(--color-blue);
  cursor: pointer;
}

.hero-section,
.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 72% 18%, rgba(59, 130, 246, 0.32), transparent 32%), linear-gradient(135deg, #0f172a 0%, #1e3a8a 52%, #0f172a 100%);
}

.hero-section {
  min-height: 680px;
  padding: 82px 0;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background-image: radial-gradient(circle at 1px 1px, #ffffff 1px, transparent 0);
  background-size: 36px 36px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 54px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: clamp(1.02rem, 2vw, 1.35rem);
  line-height: 1.8;
}

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

.btn {
  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:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary {
  color: #ffffff;
  background: var(--color-blue);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: var(--color-blue-dark);
}

.btn-glass {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(12px);
}

.btn-light {
  color: var(--color-blue);
  background: #ffffff;
}

.btn-soft {
  color: var(--color-blue);
  background: var(--color-blue-soft);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 560px;
  margin-top: 46px;
}

.hero-stats strong {
  display: block;
  color: #60a5fa;
  font-size: 1.9rem;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: #bfdbfe;
}

.hero-showcase {
  position: relative;
  min-height: 560px;
}

.hero-slides {
  position: relative;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  opacity: 0;
  transform: translateX(22px) scale(0.98);
  pointer-events: none;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  transition: opacity 0.55s ease, transform 0.55s ease;
  backdrop-filter: blur(18px);
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.hero-poster {
  position: relative;
  min-height: 310px;
  background: linear-gradient(135deg, #172554, #0f172a);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.82));
}

.hero-card-content {
  position: relative;
  z-index: 1;
  padding: 28px;
  background: rgba(15, 23, 42, 0.86);
}

.hero-badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.35);
}

.hero-card-content h2 {
  margin: 0 0 12px;
  font-size: 1.65rem;
}

.hero-card-content p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.7;
}

.hero-tags,
.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.movie-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.8rem;
}

.hero-tags span {
  padding: 5px 10px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.12);
}

.hero-card-link {
  display: inline-flex;
  margin-top: 20px;
  color: #93c5fd;
  font-weight: 800;
}

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

.hero-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 28px;
  background: #60a5fa;
}

.section {
  padding: 72px 0;
}

.section-white {
  background: #ffffff;
}

.section-soft {
  background: #f1f5f9;
}

.section-blue {
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  letter-spacing: -0.03em;
}

.section-heading a {
  color: var(--color-blue);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #e2e8f0);
}

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

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

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

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.86);
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.poster-year {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.70);
}

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

.movie-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--color-muted);
  font-size: 0.86rem;
}

.movie-card-meta a {
  color: var(--color-blue);
  font-weight: 800;
}

.movie-card h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.35;
}

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

.movie-card p {
  min-height: 3.4em;
  margin: 10px 0 14px;
  color: var(--color-muted);
  line-height: 1.7;
}

.movie-tags span {
  padding: 5px 9px;
  color: #475569;
  background: #f1f5f9;
}

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

.category-tile,
.category-overview-card {
  display: block;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile span,
.category-overview-title span {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.category-tile strong,
.category-overview-card h2 {
  display: block;
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.category-tile em,
.category-overview-card p {
  display: block;
  color: var(--color-muted);
  font-style: normal;
  line-height: 1.7;
}

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

.category-sample-links {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.category-sample-links a {
  color: var(--color-blue);
  font-weight: 700;
}

.category-more {
  display: inline-flex;
  color: var(--color-blue);
  font-weight: 800;
}

.rank-grid,
.ranking-list {
  display: grid;
  gap: 16px;
}

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

.rank-item {
  position: relative;
  display: grid;
  grid-template-columns: 116px 48px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.rank-cover {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: #dbeafe;
}

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

.rank-num {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.rank-info h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.rank-info p {
  margin: 0 0 8px;
  color: var(--color-muted);
  line-height: 1.6;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--color-muted);
  font-size: 0.86rem;
}

.rank-meta a {
  color: var(--color-blue);
  font-weight: 800;
}

.cta-section {
  padding: 78px 0;
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb, #1e40af);
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3rem);
}

.cta-inner p {
  margin: 0 auto 28px;
  max-width: 660px;
  color: #dbeafe;
  font-size: 1.12rem;
  line-height: 1.8;
}

.page-hero {
  padding: 70px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #bfdbfe;
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.page-filter,
.search-panel {
  display: flex;
  gap: 12px;
  max-width: 620px;
  margin-top: 28px;
}

.page-filter input,
.search-panel input,
.search-panel select {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  outline: none;
  border-radius: 999px;
  padding: 13px 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.page-filter input,
.search-panel input {
  flex: 1;
}

.search-panel select {
  color: var(--color-text);
  background: #ffffff;
}

.empty-result {
  margin-top: 24px;
  border-radius: var(--radius-md);
  padding: 24px;
  color: var(--color-muted);
  background: #f8fafc;
  text-align: center;
}

.detail-breadcrumb-wrap {
  padding: 18px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--color-line);
}

.detail-breadcrumb-wrap .breadcrumb {
  margin: 0;
  color: var(--color-muted);
}

.detail-section {
  padding: 34px 0 72px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 28px;
  align-items: start;
}

.player-panel,
.detail-card,
.side-card,
.prose-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.player-panel {
  overflow: hidden;
  margin-bottom: 22px;
  background: #000000;
}

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

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.60));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay span {
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 2rem;
  background: rgba(37, 99, 235, 0.88);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.42);
}

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

.detail-card {
  padding: 30px;
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.04em;
}

.detail-card h2,
.side-card h2 {
  margin: 28px 0 12px;
  font-size: 1.3rem;
}

.detail-card p {
  color: #334155;
  line-height: 1.9;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.detail-meta span,
.detail-meta a {
  padding: 7px 12px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
}

.detail-meta a {
  color: var(--color-blue);
  background: var(--color-blue-soft);
  font-weight: 800;
}

.one-line {
  padding-left: 18px;
  border-left: 4px solid var(--color-blue);
  color: #1e293b;
  font-size: 1.12rem;
  font-weight: 700;
}

.detail-tags span {
  padding: 8px 12px;
  color: #475569;
  background: #f1f5f9;
}

.side-card {
  padding: 20px;
  margin-bottom: 22px;
}

.cover-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: #dbeafe;
}

.cover-card h2 {
  margin-top: 16px;
}

.cover-card p {
  color: var(--color-muted);
  line-height: 1.7;
}

.sticky-card {
  position: sticky;
  top: 92px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 112px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  background: #dbeafe;
}

.related-item strong,
.related-item em {
  display: block;
}

.related-item strong {
  line-height: 1.4;
}

.related-item em {
  margin-top: 6px;
  color: var(--color-muted);
  font-size: 0.86rem;
  font-style: normal;
}

.prose-card {
  padding: 30px;
}

.prose-card p {
  color: #334155;
  line-height: 1.9;
}

.compact-actions {
  margin-top: 24px;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 52px 0;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer p {
  margin: 0;
  line-height: 1.8;
}

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

.site-footer a:hover {
  color: #60a5fa;
}

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #94a3b8;
}

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

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

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

  .hero-showcase {
    min-height: 540px;
  }

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

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero-section {
    min-height: auto;
    padding: 54px 0 72px;
  }

  .hero-inner {
    gap: 42px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-showcase {
    min-height: 520px;
  }

  .section {
    padding: 52px 0;
  }

  .section-heading,
  .page-filter,
  .search-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .featured-grid,
  .four-grid,
  .category-grid,
  .category-overview-grid,
  .rank-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 92px 40px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-info p {
    display: none;
  }

  .detail-card {
    padding: 22px;
  }

  .related-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .related-item img {
    width: 96px;
  }
}
