* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f9fafb;
  color: #111827;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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: 80;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.28);
  font-size: 14px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #374151;
  font-weight: 600;
}

.nav-menu a,
.mobile-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-menu a:hover,
.mobile-nav a:hover {
  color: #ea580c;
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  color: #374151;
  background: #f3f4f6;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: #374151;
  border-top: 1px solid #f3f4f6;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.28), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(124, 45, 18, 0.4), transparent 62%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  padding: 76px 0 56px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
  align-items: center;
  gap: 48px;
  min-height: 430px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeUp 0.55s ease both;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2.2vw, 24px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #f97316;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero-dark .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: #ea580c;
  box-shadow: 0 16px 32px rgba(234, 88, 12, 0.28);
}

.hero .btn-primary {
  color: #ea580c;
  background: #ffffff;
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.16);
}

.btn-ghost-dark {
  color: #ea580c;
  border: 1px solid rgba(234, 88, 12, 0.28);
  background: rgba(255, 247, 237, 0.9);
}

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

.btn-light {
  color: #ea580c;
  background: #fff7ed;
}

.hero-poster {
  position: relative;
  min-height: 460px;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 70px rgba(124, 45, 18, 0.38);
  transform: rotate(1.5deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 58%);
}

.hero-poster span {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  font-size: 24px;
  font-weight: 900;
}

.hero-search {
  width: min(720px, 100%);
  margin-top: 26px;
  padding: 8px;
  display: flex;
  gap: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 48px rgba(124, 45, 18, 0.25);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: #111827;
  background: transparent;
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 36px;
  background: #ffffff;
}

.section {
  padding: 64px 0;
}

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

.section-warm {
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

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

.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
}

.section-heading p {
  max-width: 720px;
  margin: 8px 0 0;
  color: #6b7280;
}

.section-more {
  flex: 0 0 auto;
  color: #ea580c;
  font-weight: 800;
}

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

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

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

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

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

.movie-card a {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card a:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

.movie-card figure {
  position: relative;
  height: 260px;
  margin: 0;
  overflow: hidden;
  background: #111827;
}

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

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

.region-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.region-badge {
  top: 14px;
  right: 14px;
  max-width: calc(100% - 28px);
  padding: 6px 10px;
  border-radius: 999px;
  background: #f97316;
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ea580c;
  box-shadow: 0 12px 26px rgba(234, 88, 12, 0.35);
}

.play-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-card-body h3 {
  min-height: 1.4em;
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 3em;
  margin: 0 0 14px;
  overflow: hidden;
  color: #6b7280;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.movie-meta span:last-child {
  color: #ea580c;
}

.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.card-tags span,
.detail-tags span {
  border-radius: 999px;
  padding: 4px 9px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

.movie-card-compact figure {
  height: 178px;
}

.movie-card-compact .movie-card-body {
  padding: 12px;
}

.movie-card-compact .movie-card-body h3 {
  font-size: 14px;
}

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

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

.category-card a {
  position: relative;
  min-height: 250px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 26px;
  color: #ffffff;
  background: #111827;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.66;
  transition: transform 0.35s ease;
}

.category-card a:hover img {
  transform: scale(1.08);
}

.category-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.08));
}

.category-card div {
  position: relative;
  z-index: 2;
  padding: 22px;
}

.category-card span {
  color: #fdba74;
  font-size: 13px;
  font-weight: 900;
}

.category-card h3 {
  margin: 8px 0 12px;
  font-size: 18px;
  line-height: 1.45;
}

.category-card p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.category-card p span {
  min-height: 0;
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  font-size: 12px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7ed, #ffffff 58%, #fef3c7);
}

.page-hero .container {
  padding: 64px 0;
}

.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.page-hero p,
.detail-copy .lead {
  max-width: 820px;
  margin: 18px 0 0;
  color: #4b5563;
  font-size: 18px;
}

.page-hero-dark {
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.38), transparent 36%), #111827;
}

.page-hero-dark h1,
.page-hero-dark p {
  color: #ffffff;
}

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

.page-hero-dark .breadcrumb {
  color: #fdba74;
}

.filter-panel {
  margin-top: 32px;
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.filter-panel h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
  gap: 14px;
  align-items: end;
}

.filter-grid label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-weight: 800;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  outline: 0;
  padding: 12px 14px;
  color: #111827;
  background: #f9fafb;
}

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.18);
}

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

.rank-page-section + .rank-page-section {
  padding-top: 0;
}

.detail-hero {
  padding: 56px 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.detail-cover {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.2);
}

.detail-cover img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.detail-cover span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(234, 88, 12, 0.92);
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 34px rgba(234, 88, 12, 0.35);
}

.detail-tags span {
  font-size: 13px;
}

.player-card {
  padding: 16px;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.16));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ea580c;
  box-shadow: 0 20px 40px rgba(234, 88, 12, 0.38);
  font-size: 34px;
}

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

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.content-card {
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

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

.content-card p {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
}

.site-footer {
  margin-top: 48px;
  color: #d1d5db;
  background: #111827;
}

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

.footer-grid h2 {
  margin: 0 0 14px;
  color: #f97316;
  font-size: 20px;
}

.footer-grid p {
  margin: 0;
  color: #9ca3af;
  font-size: 14px;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 9px;
}

.footer-links a {
  color: #9ca3af;
  font-size: 14px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 16px;
  color: #9ca3af;
  text-align: center;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .movie-grid,
  .category-grid,
  .category-grid-large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

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

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

  .mobile-nav.is-open {
    display: block;
  }

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

  .hero-slide,
  .hero-slide.is-active,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    min-height: 360px;
    transform: none;
  }

  .hero-poster img {
    min-height: 360px;
  }

  .filter-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .detail-cover img {
    height: 420px;
  }
}

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

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 36px;
  }

  .hero-search {
    flex-direction: column;
    border-radius: 24px;
  }

  .hero-search input {
    min-height: 46px;
  }

  .section {
    padding: 44px 0;
  }

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

  .movie-grid,
  .featured-grid,
  .rank-grid,
  .latest-grid,
  .wide-grid,
  .category-grid,
  .category-grid-large,
  .rank-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-card figure {
    height: 210px;
  }

  .movie-card-compact figure {
    height: 170px;
  }

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

  .movie-card-body p,
  .card-tags {
    display: none;
  }

  .page-hero .container,
  .detail-hero {
    padding: 44px 0;
  }

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

@media (max-width: 420px) {
  .movie-grid,
  .featured-grid,
  .rank-grid,
  .latest-grid,
  .wide-grid,
  .category-grid,
  .category-grid-large,
  .rank-list {
    grid-template-columns: 1fr;
  }
}
