:root {
  --autumn-50: #fff7ed;
  --autumn-100: #ffedd5;
  --autumn-200: #fed7aa;
  --autumn-500: #f97316;
  --autumn-600: #ea580c;
  --autumn-700: #c2410c;
  --leaf-50: #fefce8;
  --leaf-200: #fef08a;
  --leaf-500: #eab308;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --shadow-soft: 0 18px 55px rgba(124, 45, 18, 0.13);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius-xl: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--autumn-50), #ffffff 36%, #ffffff);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.top-strip {
  padding: 8px 16px;
  text-align: center;
  color: #ffffff;
  font-size: 14px;
  background: linear-gradient(135deg, var(--autumn-500), var(--autumn-600), #fb923c);
}

.main-nav,
.mobile-nav,
.footer-grid,
.footer-bottom,
.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.main-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 800;
  color: var(--autumn-700);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--autumn-500), var(--autumn-700));
  box-shadow: 0 12px 22px rgba(234, 88, 12, 0.3);
}

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

.nav-links a,
.mobile-nav a {
  color: var(--gray-700);
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-nav a:hover {
  color: var(--autumn-600);
}

.nav-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.filter-input,
.sort-select {
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 10px 16px;
  background: #ffffff;
  color: var(--gray-800);
  outline: none;
}

.nav-search input:focus,
.mobile-search input:focus,
.filter-input:focus,
.sort-select:focus {
  border-color: var(--autumn-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.nav-search button,
.mobile-search button,
.btn,
.filter-button {
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 750;
  cursor: pointer;
}

.nav-search button,
.mobile-search button,
.filter-button {
  color: #ffffff;
  background: var(--autumn-600);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--autumn-100);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--autumn-700);
}

.mobile-nav {
  display: none;
  padding: 0 0 18px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--autumn-500), var(--autumn-600), #fb923c);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24) 0, transparent 28%), radial-gradient(circle at 80% 10%, rgba(254, 240, 138, 0.24) 0, transparent 30%), radial-gradient(circle at 45% 85%, rgba(255, 255, 255, 0.16) 0, transparent 34%);
  opacity: 0.9;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(0deg, #ffffff, rgba(255, 255, 255, 0));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  align-items: center;
}

.hero-slider {
  position: relative;
  min-height: 480px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.72fr);
  gap: 56px;
  align-items: center;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--leaf-200);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero h1,
.hero h2 {
  margin: 0 0 22px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero h2 span {
  color: var(--leaf-200);
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 24px;
  font-size: clamp(18px, 2.4vw, 25px);
  color: var(--autumn-100);
}

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

.hero-tags span,
.card-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 650;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

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

.btn-light {
  color: var(--autumn-700);
  background: #ffffff;
  box-shadow: 0 18px 30px rgba(124, 45, 18, 0.22);
}

.btn-ghost {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.05);
}

.btn:hover,
.filter-button:hover {
  transform: translateY(-1px);
}

.hero-poster {
  position: relative;
  display: block;
  min-height: 420px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(124, 45, 18, 0.38);
  transform: rotate(1.2deg);
}

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

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

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 0;
  bottom: 58px;
  display: flex;
  gap: 10px;
}

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

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

.section {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 66px 0;
}

.section-panel {
  width: min(1200px, calc(100% - 32px));
  margin: 26px auto;
  padding: 44px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
}

.section-heading p {
  margin: 0;
  color: var(--gray-600);
}

.section-heading a {
  flex: 0 0 auto;
  color: var(--autumn-700);
  font-weight: 800;
}

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

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

.movie-list {
  display: grid;
  gap: 18px;
}

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

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--autumn-100);
}

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

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

.poster-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 750;
  background: rgba(0, 0, 0, 0.68);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--autumn-700);
  font-size: 13px;
  font-weight: 750;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--autumn-700);
}

.card-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card-tags span {
  color: var(--gray-700);
  background: var(--gray-100);
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  color: var(--gray-500);
  font-size: 13px;
}

.card-foot a {
  color: var(--autumn-700);
  font-weight: 800;
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 190px 1fr;
}

.movie-card-wide .poster-link {
  aspect-ratio: auto;
  height: 100%;
  min-height: 172px;
}

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

.category-card {
  min-height: 190px;
  border-radius: 24px;
  padding: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.13);
}

.category-icon {
  font-size: 42px;
  margin-bottom: 16px;
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.65;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.compact-card {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: var(--gray-50);
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  background: var(--autumn-50);
  transform: translateY(-2px);
}

.compact-card img {
  width: 92px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card strong {
  margin-bottom: 8px;
  font-size: 16px;
}

.compact-card em {
  color: var(--gray-500);
  font-style: normal;
  font-size: 13px;
}

.rank-number {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  background: var(--autumn-600);
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(135deg, var(--autumn-500), var(--autumn-700));
}

.page-hero-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 62px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 56px);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--autumn-100);
  font-size: 20px;
  line-height: 1.8;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.filter-input {
  flex: 1 1 260px;
}

.sort-select {
  min-width: 170px;
}

.empty-state {
  display: none;
  padding: 42px;
  border-radius: 24px;
  text-align: center;
  color: var(--gray-600);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.empty-state.is-visible {
  display: block;
}

.detail-layout {
  width: min(1200px, calc(100% - 32px));
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.player-shell {
  overflow: hidden;
  border-radius: 24px;
  background: #0f172a;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.26);
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.18));
}

.play-overlay[hidden] {
  display: none;
}

.play-icon {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: var(--autumn-700);
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.play-overlay strong {
  font-size: 22px;
}

.detail-card,
.sidebar-card {
  border-radius: 24px;
  padding: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.detail-card {
  margin-top: 24px;
}

.detail-card h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--gray-200);
}

.detail-meta span,
.info-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  padding: 8px 12px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-weight: 650;
}

.detail-meta span:first-child,
.info-chip.hot {
  color: var(--autumn-700);
  background: var(--autumn-100);
}

.detail-card h2 {
  margin: 26px 0 12px;
  font-size: 22px;
}

.detail-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.9;
}

.detail-tags span {
  color: var(--gray-700);
  background: var(--gray-100);
}

.review-box {
  margin-top: 26px;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(90deg, var(--autumn-50), var(--leaf-50));
}

.sidebar-card {
  position: sticky;
  top: 112px;
}

.sidebar-card h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

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

.site-footer {
  margin-top: 80px;
  background: linear-gradient(180deg, var(--autumn-50), var(--autumn-100));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 34px;
  padding: 44px 0;
}

.footer-brand {
  margin-bottom: 12px;
  color: var(--autumn-700);
  font-size: 24px;
  font-weight: 850;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.site-footer p,
.site-footer a {
  display: block;
  margin: 0 0 10px;
  color: var(--gray-600);
  line-height: 1.7;
}

.site-footer a:hover {
  color: var(--autumn-700);
}

.footer-bottom {
  padding: 18px 0 32px;
  color: var(--gray-600);
  border-top: 1px solid rgba(124, 45, 18, 0.12);
}

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

  .nav-toggle {
    display: block;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-poster {
    display: none;
  }

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

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

  .sidebar-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .top-strip {
    font-size: 12px;
  }

  .main-nav {
    min-height: 64px;
  }

  .brand {
    font-size: 19px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .hero,
  .hero-inner {
    min-height: 560px;
  }

  .hero h1,
  .hero h2 {
    font-size: 42px;
  }

  .hero-dots {
    bottom: 36px;
  }

  .section,
  .section-panel {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .section-panel {
    padding-left: 18px;
    padding-right: 18px;
    border-radius: 22px;
  }

  .section-heading {
    display: block;
  }

  .section-heading a {
    display: inline-block;
    margin-top: 12px;
  }

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

  .movie-card-wide {
    grid-template-columns: 128px 1fr;
  }

  .movie-card-wide .poster-link {
    min-height: 190px;
  }

  .card-body {
    padding: 14px;
  }

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

@media (max-width: 480px) {
  .movie-card-wide {
    display: block;
  }

  .movie-card-wide .poster-link {
    aspect-ratio: 3 / 4;
  }

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