:root {
  --site-dark: #0f172a;
  --site-darker: #020617;
  --site-red: #dc2626;
  --site-red-dark: #991b1b;
  --site-text: #0f172a;
  --site-muted: #64748b;
  --site-border: #e2e8f0;
  --site-surface: #ffffff;
  --site-soft: #f8fafc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #0f172a, #1e293b);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.site-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--site-red);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.32);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #ef4444;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #f87171;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 10px 12px;
  font-size: 18px;
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(220, 38, 38, 0.46), transparent 32%), linear-gradient(135deg, #0f172a 0%, #7f1d1d 48%, #020617 100%);
  color: #ffffff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.72));
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 46px;
  align-items: center;
  padding: 54px 16px;
}

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

.hero-copy p {
  margin: 0 0 26px;
  max-width: 720px;
  color: #e2e8f0;
  font-size: 20px;
  line-height: 1.7;
}

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

.btn-primary,
.btn-secondary,
.btn-dark,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--site-red);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(220, 38, 38, 0.28);
}

.btn-primary:hover,
.btn-dark:hover {
  transform: translateY(-2px);
}

.btn-primary:hover {
  background: #b91c1c;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.28);
}

.btn-dark {
  background: #0f172a;
  color: #ffffff;
}

.btn-soft {
  background: #fee2e2;
  color: #991b1b;
}

.hero-search {
  margin: 28px 0 20px;
  max-width: 620px;
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 10px;
  backdrop-filter: blur(12px);
}

.hero-search input,
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 15px;
}

.hero-search input {
  background: #ffffff;
  color: #0f172a;
}

.hero-search button,
.search-box button {
  border: 0;
  cursor: pointer;
}

.quick-links a {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #f8fafc;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease;
}

.quick-links a:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-stage {
  position: relative;
}

.hero-panel {
  position: relative;
  min-height: 460px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.36);
  background: #020617;
}

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

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

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

.hero-slide-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.92));
}

.hero-slide-content h2 {
  margin: 10px 0 8px;
  font-size: 28px;
  line-height: 1.2;
}

.hero-slide-content p {
  margin: 0 0 18px;
  color: #cbd5e1;
  line-height: 1.65;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(220, 38, 38, 0.92);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.badge.light {
  background: #fee2e2;
  color: #991b1b;
}

.hero-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

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

.hero-dot.is-active {
  width: 28px;
  background: #ffffff;
}

.section {
  padding: 66px 0;
}

.section.white {
  background: #ffffff;
}

.section.dark {
  background: #0f172a;
  color: #ffffff;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--site-red);
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--site-muted);
  line-height: 1.7;
}

.section.dark .section-desc {
  color: #cbd5e1;
}

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

.movie-card {
  min-width: 0;
}

.movie-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: #e2e8f0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .movie-cover {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.18);
}

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

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

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.72));
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.movie-year,
.movie-rank {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 10px;
  border-radius: 8px;
  padding: 4px 8px;
  background: var(--site-red);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.movie-rank {
  left: 10px;
  right: auto;
  background: #f59e0b;
}

.movie-info {
  padding-top: 10px;
}

.movie-title {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.42;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-title {
  color: var(--site-red);
}

.movie-meta {
  margin: 6px 0 0;
  color: var(--site-muted);
  font-size: 12px;
  line-height: 1.5;
}

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

.feature-card,
.category-card,
.content-card,
.rank-list,
.search-panel {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.feature-card {
  overflow: hidden;
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feature-body {
  padding: 20px;
}

.feature-body h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

.feature-body p {
  margin: 0 0 16px;
  color: var(--site-muted);
  line-height: 1.7;
}

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

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

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.category-card p {
  margin: 0 0 16px;
  color: var(--site-muted);
  line-height: 1.7;
}

.page-hero {
  background: linear-gradient(135deg, #1e293b 0%, #7f1d1d 100%);
  color: #ffffff;
  padding: 70px 0;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.15;
}

.page-hero p {
  margin: 0;
  max-width: 760px;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.7;
}

.search-panel {
  padding: 20px;
  margin-bottom: 30px;
}

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

.search-box input {
  border: 1px solid var(--site-border);
}

.search-box button {
  white-space: nowrap;
}

.filter-empty {
  display: none;
  padding: 48px 20px;
  text-align: center;
  color: var(--site-muted);
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--site-border);
}

.rank-list {
  overflow: hidden;
}

.rank-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--site-border);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-num {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 900;
}

.rank-title {
  margin: 0 0 4px;
  font-weight: 900;
}

.rank-meta {
  margin: 0;
  color: var(--site-muted);
  font-size: 13px;
}

.detail-page {
  background: #0f172a;
  color: #ffffff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #cbd5e1;
  padding: 24px 0 14px;
  font-size: 14px;
}

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

.player-shell {
  background: #000000;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

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

.player-frame video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.poster-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(0, 0, 0, 0.34);
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.poster-play.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--site-red);
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(220, 38, 38, 0.38);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 30px 0 66px;
}

.detail-main,
.detail-side {
  min-width: 0;
}

.detail-card {
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 24px;
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.16;
}

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

.detail-text {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.9;
  font-size: 16px;
}

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

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

.recommend-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease;
}

.recommend-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.recommend-item img {
  width: 78px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: #334155;
}

.recommend-title {
  margin: 2px 0 6px;
  color: #ffffff;
  font-weight: 900;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recommend-meta {
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
}

.content-card {
  padding: 28px;
  margin-bottom: 22px;
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-card p,
.content-card li {
  color: #475569;
  line-height: 1.8;
}

.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 44px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 26px;
}

.footer-title {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.footer-text,
.footer-links a,
.footer-bottom {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .hero-inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 768px) {
  .site-nav {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.24);
  }

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

  .nav-links a {
    padding: 10px 12px;
    border-radius: 10px;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(255, 255, 255, 0.08);
  }

  .hero-inner {
    min-height: auto;
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .hero-panel {
    min-height: 390px;
  }

  .hero-search,
  .search-box {
    flex-direction: column;
  }

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

  .section-heading,
  .rank-item {
    align-items: flex-start;
  }

  .section-heading,
  .footer-bottom {
    flex-direction: column;
  }

  .rank-item {
    grid-template-columns: 48px 1fr;
  }

  .rank-item .btn-soft {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .logo {
    font-size: 20px;
  }

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

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

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-copy p,
  .page-hero p {
    font-size: 16px;
  }

  .detail-card,
  .content-card {
    padding: 20px;
  }
}
