
:root {
  --primary-50: #f0f9f4;
  --primary-100: #dcf2e4;
  --primary-600: #267f56;
  --primary-700: #1f6546;
  --accent-100: #fcefD0;
  --accent-600: #cf6913;
  --accent-700: #ac4a12;
  --paper-50: #fafaf9;
  --paper-200: #e7e5e4;
  --paper-300: #d6d3d1;
  --ink-500: #6d6d6d;
  --ink-600: #5d5d5d;
  --ink-700: #4f4f4f;
  --ink-900: #3d3d3d;
  --shadow-soft: 0 18px 45px rgba(39, 65, 50, 0.12);
  --shadow-card: 0 10px 30px rgba(39, 65, 50, 0.10);
  --radius-lg: 18px;
  --radius-md: 14px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper-50);
  color: var(--ink-900);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--primary-100);
  box-shadow: 0 4px 20px rgba(31, 101, 70, 0.06);
}

.site-header__inner {
  max-width: 1180px;
  height: 64px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-logo__mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  box-shadow: 0 10px 20px rgba(38, 127, 86, 0.24);
}

.site-logo__text {
  font-size: 20px;
  color: var(--ink-900);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a,
.mobile-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink-700);
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.mobile-nav a:hover {
  background: var(--primary-100);
  color: var(--primary-700);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--primary-50);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 19px;
  height: 2px;
  background: var(--primary-700);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 16px;
}

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

.hero {
  position: relative;
  min-height: 70vh;
  max-height: 800px;
  overflow: hidden;
  background: var(--ink-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.66);
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.1));
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  min-height: 70vh;
  padding: 80px 20px;
  display: flex;
  align-items: center;
}

.hero__copy {
  width: min(680px, 100%);
  color: #fff;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: var(--paper-200);
}

.hero h1 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero__lead {
  margin: 0 0 18px;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--paper-200);
}

.hero__desc {
  margin: 0 0 28px;
  max-width: 560px;
  color: var(--paper-300);
  font-size: 18px;
}

.hero-feature {
  max-width: 620px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.22);
}

.hero-feature-slide {
  display: none;
}

.hero-feature-slide.is-active {
  display: block;
}

.hero-feature h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 28px;
}

.hero-feature p {
  margin: 0 0 18px;
  color: var(--paper-200);
}

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

.btn-primary,
.btn-secondary,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--primary-600);
  color: #fff;
  box-shadow: 0 12px 25px rgba(38, 127, 86, 0.22);
}

.btn-primary:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--accent-600);
  color: #fff;
}

.btn-light {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-search {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  max-width: 620px;
}

.hero-search input,
.search-panel input,
.category-filter input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(38, 127, 86, 0.16);
  border-radius: 14px;
  padding: 0 16px;
  outline: none;
  background: #fff;
  color: var(--ink-900);
  box-shadow: 0 8px 24px rgba(39, 65, 50, 0.06);
}

.hero-search input {
  background: rgba(255, 255, 255, 0.92);
}

.hero-control {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.32);
}

.hero-control--prev {
  left: 20px;
}

.hero-control--next {
  right: 20px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: #fff;
}

.page-hero {
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  color: #fff;
  padding: 70px 20px;
}

.page-hero__inner,
.main-wrap,
.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.12;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--primary-100);
  font-size: 18px;
}

.main-wrap {
  padding: 64px 20px;
}

.section-block {
  margin-bottom: 70px;
}

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

.section-heading h2 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.03em;
}

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

.section-link {
  flex: none;
  color: var(--primary-700);
  font-weight: 800;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card--featured {
  grid-column: span 2;
}

.movie-card__poster {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
}

.movie-card--featured .movie-card__poster {
  aspect-ratio: 16 / 9;
}

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

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

.movie-card__shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), transparent 70%);
  transition: opacity 0.25s ease;
}

.movie-card:hover .movie-card__shade {
  opacity: 1;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary-600);
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(207, 105, 19, 0.94);
  color: #fff;
  font-weight: 900;
}

.movie-card__body {
  padding: 18px;
}

.movie-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--ink-500);
  font-size: 13px;
}

.movie-card__meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--primary-50);
}

.movie-card h3 {
  margin: 0 0 8px;
  color: var(--ink-900);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 20px;
  line-height: 1.25;
}

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

.movie-card p {
  margin: 0 0 12px;
  color: var(--ink-600);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card__tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.movie-card__tags span,
.tag-list span {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-100);
  color: var(--accent-700);
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  min-height: 190px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff, var(--primary-50));
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.category-card__badge {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-600);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 25px;
}

.category-card p {
  margin: 0;
  color: var(--ink-600);
}

.search-panel,
.category-filter {
  margin-bottom: 30px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.search-panel form,
.category-filter {
  display: flex;
  gap: 12px;
}

.search-empty {
  display: none;
  padding: 28px;
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink-600);
  text-align: center;
  box-shadow: var(--shadow-card);
}

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

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink-900);
  box-shadow: var(--shadow-soft);
}

.player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.player-play {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  background: var(--primary-600);
  color: #fff;
  font-size: 34px;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-play:hover {
  transform: scale(1.06);
  background: var(--primary-700);
}

.player-status {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  color: var(--paper-200);
  text-align: center;
  pointer-events: none;
}

.movie-detail-card,
.side-panel {
  margin-top: 24px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.movie-detail-card h1 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.18;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--ink-600);
}

.detail-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--primary-50);
}

.movie-detail-card h2,
.side-panel h2 {
  margin: 26px 0 12px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 24px;
}

.movie-detail-card p {
  margin: 0 0 16px;
  color: var(--ink-700);
}

.breadcrumb {
  margin: 0 0 18px;
  color: var(--ink-600);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--primary-700);
  font-weight: 700;
}

.side-panel {
  position: sticky;
  top: 88px;
  margin-top: 0;
}

.side-panel .movie-grid {
  grid-template-columns: 1fr;
  gap: 18px;
}

.site-footer {
  margin-top: 40px;
  background: #fff;
  border-top: 1px solid var(--primary-100);
}

.site-footer__inner {
  padding: 34px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  margin: 6px 0 0;
  color: var(--ink-600);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.site-footer__links a {
  color: var(--primary-700);
  font-weight: 700;
}

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

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

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

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

  .side-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    padding: 0 16px;
  }

  .hero,
  .hero__content {
    min-height: 680px;
  }

  .hero__content {
    padding: 72px 16px 92px;
  }

  .hero-control {
    display: none;
  }

  .hero-search,
  .search-panel form,
  .category-filter {
    flex-direction: column;
  }

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

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

  .movie-card--featured {
    grid-column: auto;
  }

  .main-wrap {
    padding: 42px 16px;
  }

  .page-hero {
    padding: 54px 16px;
  }

  .movie-detail-card,
  .side-panel,
  .search-panel,
  .category-filter {
    padding: 20px;
  }
}
