:root {
  --site-bg: #f8fafc;
  --site-text: #1f2937;
  --site-muted: #6b7280;
  --site-line: #e5e7eb;
  --site-card: #ffffff;
  --site-amber: #f59e0b;
  --site-amber-dark: #d97706;
  --site-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
  --site-radius: 1.25rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.88);
  backdrop-filter: blur(16px);
}

.nav-shell {
  max-width: 80rem;
  margin: 0 auto;
  min-height: 4.5rem;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #111827;
}

.site-logo::before {
  content: "";
  width: 0.75rem;
  height: 1.75rem;
  margin-right: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #f59e0b, #ef4444);
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.36);
}

.desktop-nav,
.nav-pills {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.desktop-nav {
  margin-left: auto;
}

.nav-link,
.nav-pill,
.mobile-link {
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 0.65rem 0.95rem;
  font-size: 0.95rem;
  font-weight: 650;
  color: #4b5563;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: var(--site-amber);
}

.nav-pill {
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  color: #92400e;
  background: #fef3c7;
}

.nav-pill:hover {
  transform: translateY(-1px);
  background: #fde68a;
}

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: auto;
  border: 0;
  border-radius: 0.85rem;
  background: #f3f4f6;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
}

.menu-toggle span {
  width: 1.15rem;
  height: 0.12rem;
  border-radius: 999px;
  background: #111827;
}

.mobile-nav {
  display: none;
  padding: 0.35rem 1rem 1rem;
  border-top: 1px solid #f3f4f6;
}

.mobile-nav.is-open {
  display: grid;
  gap: 0.35rem;
}

.mobile-link {
  display: block;
  padding: 0.8rem 0.95rem;
  color: #374151;
  background: #f9fafb;
}

.section-shell,
.hero-content,
.footer-shell {
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.hero-carousel {
  position: relative;
  min-height: 34rem;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
  transform: scale(1.02);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.12)), linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 34rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 22rem;
  gap: 3rem;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.hero-copy {
  max-width: 44rem;
  color: #fff;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--site-amber);
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 42rem;
  margin: 1.35rem 0 1.8rem;
  color: #e5e7eb;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

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

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: var(--site-amber);
  box-shadow: 0 16px 32px rgba(245, 158, 11, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--site-amber-dark);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.hero-poster {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: inherit;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.55rem;
}

.hero-dot {
  width: 2rem;
  height: 0.32rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #fff;
}

.home-search {
  position: relative;
  z-index: 6;
  max-width: 80rem;
  margin: -2.2rem auto 0;
  padding: 0 1rem;
}

.search-panel,
.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--site-shadow);
  backdrop-filter: blur(14px);
}

.search-panel input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--site-line);
  border-radius: 999px;
  padding: 0 1rem;
  outline: none;
  background: #fff;
  color: #111827;
}

.search-panel input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--site-amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.search-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: var(--site-amber);
}

.section-shell {
  padding-top: 4rem;
  padding-bottom: 0;
}

.section-block {
  margin-bottom: 4.5rem;
}

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

.section-heading h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  color: #1f2937;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.section-heading p,
.page-hero p {
  margin: 0.45rem 0 0;
  color: var(--site-muted);
  line-height: 1.7;
}

.section-more {
  color: var(--site-amber-dark);
  font-weight: 800;
  white-space: nowrap;
}

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

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 1.1rem;
  background: var(--site-card);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.movie-card.is-hidden {
  display: none;
}

.card-link {
  display: block;
  height: 100%;
}

.card-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.card-poster img,
.horizontal-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .card-poster img,
.movie-card:hover .horizontal-poster img {
  transform: scale(1.06);
}

.card-badge,
.card-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.card-badge {
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.32rem 0.62rem;
  background: var(--site-amber);
}

.card-year {
  left: 0.7rem;
  bottom: 0.7rem;
  padding: 0.32rem 0.62rem;
  background: rgba(0, 0, 0, 0.68);
}

.rank-badge {
  top: 0.7rem;
  right: 0.7rem;
  width: 2.15rem;
  height: 2.15rem;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.28);
}

.card-body {
  padding: 1rem;
}

.card-body h3,
.horizontal-body h3 {
  margin: 0;
  color: #111827;
  font-weight: 850;
  line-height: 1.35;
}

.card-body h3 {
  min-height: 2.7em;
  font-size: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p,
.horizontal-body p {
  color: var(--site-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  min-height: 3.25em;
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0 0.52rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.76rem;
  font-weight: 750;
}

.gradient-block {
  padding: clamp(1.25rem, 3vw, 2.6rem);
  border-radius: 2rem;
  background: linear-gradient(135deg, #fff7ed, #fef3c7, #ecfeff);
}

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

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

.category-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1.3rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  min-height: 7rem;
}

.category-thumbs img {
  width: 100%;
  height: 7rem;
  object-fit: cover;
  border-radius: 0.85rem;
  background: #f3f4f6;
}

.category-text h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 900;
  color: #111827;
}

.category-text p {
  margin: 0.45rem 0 0;
  color: var(--site-muted);
  line-height: 1.65;
  font-size: 0.9rem;
}

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

.movie-card-horizontal {
  border-radius: 1.25rem;
}

.horizontal-link {
  display: grid;
  grid-template-columns: 8.2rem 1fr;
  height: 100%;
}

.horizontal-poster {
  position: relative;
  min-height: 11rem;
  overflow: hidden;
  background: #f3f4f6;
}

.horizontal-body {
  padding: 1.1rem;
}

.horizontal-body p {
  margin: 0.6rem 0 0;
  font-size: 0.92rem;
  -webkit-line-clamp: 3;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 3rem 5rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.ranking-number {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
}

.ranking-row img {
  width: 5rem;
  height: 6.8rem;
  object-fit: cover;
  border-radius: 0.75rem;
  background: #f3f4f6;
}

.ranking-row h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #111827;
}

.ranking-row p {
  margin: 0.35rem 0 0;
  color: var(--site-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-row .btn-primary {
  min-height: 2.5rem;
  padding: 0 1rem;
  font-size: 0.9rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #78350f 52%, #f59e0b);
  color: #fff;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -6rem -8rem auto;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  filter: blur(4px);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 80rem;
  margin: 0 auto;
  padding: 4.5rem 1rem;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
}

.page-hero p {
  max-width: 45rem;
  color: #fff7ed;
  font-size: 1.08rem;
}

.filter-panel {
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(8rem, 0.35fr));
  margin-bottom: 2rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  color: #6b7280;
  font-size: 0.92rem;
}

.breadcrumb a {
  color: #92400e;
  font-weight: 800;
}

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 1.45rem;
  background: #020617;
  box-shadow: var(--site-shadow);
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  background: #020617;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: 0;
  border: 0;
  background: #020617;
  cursor: pointer;
  transition: opacity 0.22s ease;
}

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

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.player-cover span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(4rem, 8vw, 6.5rem);
  height: clamp(4rem, 8vw, 6.5rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 20px 45px rgba(245, 158, 11, 0.32);
}

.detail-title {
  margin-top: 1.6rem;
  padding: 1.4rem;
  border-radius: 1.3rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.detail-title h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.detail-title p {
  margin: 0.85rem 0 0;
  color: var(--site-muted);
  line-height: 1.8;
  font-size: 1.02rem;
}

.detail-side {
  display: grid;
  gap: 1rem;
}

.detail-poster {
  overflow: hidden;
  border-radius: 1.35rem;
  background: #f3f4f6;
  box-shadow: var(--site-shadow);
}

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

.info-card {
  padding: 1.1rem;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.info-card h2,
.info-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.25rem;
  color: #111827;
}

.info-list {
  display: grid;
  gap: 0.65rem;
  color: #4b5563;
}

.info-list span {
  color: #111827;
  font-weight: 850;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0 0.68rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.82rem;
  font-weight: 800;
}

.article-card {
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: 1.35rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.article-card h2 {
  margin: 0 0 0.9rem;
  color: #111827;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.article-card p {
  margin: 0;
  color: #4b5563;
  line-height: 2;
}

.detail-main-flow {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.site-footer {
  margin-top: 5rem;
  background: #111827;
  color: #d1d5db;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 2.2rem;
  padding-bottom: 2.2rem;
}

.footer-shell strong {
  display: block;
  margin-bottom: 0.45rem;
  color: #fff;
  font-size: 1.25rem;
}

.footer-shell p {
  margin: 0;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-content: center;
}

.footer-links a {
  color: #fef3c7;
  font-weight: 750;
}

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

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

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

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

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

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

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

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

  .hero-carousel,
  .hero-content {
    min-height: 38rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 2rem;
  }

  .hero-poster {
    display: none;
  }

  .home-search {
    margin-top: -1.4rem;
  }

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

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

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

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

  .ranking-row {
    grid-template-columns: 2.8rem 4.4rem 1fr;
  }

  .ranking-row .btn-primary {
    grid-column: 2 / 4;
  }

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

  .detail-poster {
    max-width: 18rem;
  }

  .footer-shell {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .nav-shell {
    min-height: 4rem;
  }

  .site-logo {
    font-size: 1.18rem;
  }

  .hero-copy h1 {
    font-size: 2.45rem;
  }

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

  .horizontal-link {
    grid-template-columns: 6.5rem 1fr;
  }

  .category-thumbs img {
    height: 5.8rem;
  }
}
