:root {
  --primary-50: #f0f9f4;
  --primary-100: #dcf2e4;
  --primary-200: #bce5cd;
  --primary-600: #267f56;
  --primary-700: #1f6546;
  --accent-100: #fcefd0;
  --accent-600: #cf6913;
  --ink-700: #4f4f4f;
  --ink-900: #1f1f1f;
  --paper-50: #fafaf9;
  --paper-100: #f5f3f0;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(20, 20, 20, .12);
  --soft-shadow: 0 10px 30px rgba(20, 20, 20, .09);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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, .94);
  border-bottom: 1px solid var(--primary-100);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(28, 81, 56, .08);
}

.nav-shell {
  width: min(1240px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(38, 127, 86, .28);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  letter-spacing: .02em;
}

.brand-copy small {
  color: #73706b;
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--ink-700);
  font-size: 15px;
  font-weight: 650;
}

.desktop-nav a {
  position: relative;
  padding: 23px 0;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary-600);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--primary-700);
}

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

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--primary-50);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--primary-700);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 12px 18px 18px;
  border-top: 1px solid var(--primary-100);
  background: var(--white);
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--ink-700);
  font-weight: 650;
}

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

.hero-slider {
  position: relative;
  min-height: 620px;
  height: 72vh;
  max-height: 820px;
  overflow: hidden;
  background: var(--ink-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s ease, transform .8s ease;
  transform: scale(1.02);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.52);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 10, .84) 0%, rgba(22, 52, 38, .64) 48%, rgba(10, 10, 10, .32) 100%);
}

.hero-glow {
  position: absolute;
  left: -16%;
  bottom: -26%;
  width: 58%;
  height: 58%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(38, 127, 86, .48), transparent 70%);
  filter: blur(18px);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  align-items: center;
  gap: 54px;
  color: var(--white);
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker,
.detail-kicker,
.page-hero span,
.section-head span,
.category-overview-head span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--accent-100);
  background: rgba(207, 105, 19, .88);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .04em;
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
}

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

.primary-button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 750;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  box-shadow: 0 16px 32px rgba(207, 105, 19, .24);
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover {
  transform: translateY(-2px);
}

.text-button {
  min-height: 40px;
  padding: 0 16px;
  color: var(--primary-700);
  background: var(--primary-50);
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 32px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .36);
}

.hero-card img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .5s ease;
}

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

.hero-card span {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--white);
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, .12);
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

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

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

.hero-dots button.is-active {
  background: var(--white);
}

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

.page-main .section-wrap:first-of-type {
  padding-top: 34px;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 12px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -.03em;
}

.section-head p {
  max-width: 720px;
  margin: 0;
  color: #716b64;
}

.home-search {
  margin-top: -64px;
  position: relative;
  z-index: 7;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
  gap: 16px;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid var(--primary-100);
  border-radius: 24px;
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--soft-shadow);
}

.search-line {
  display: grid;
  gap: 8px;
  color: var(--primary-700);
  font-size: 13px;
  font-weight: 760;
}

.search-line input,
.filter-grid select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--primary-200);
  border-radius: 15px;
  outline: none;
  background: var(--paper-50);
  color: var(--ink-900);
  font: inherit;
}

.search-line input {
  padding: 0 16px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.filter-grid select {
  padding: 0 12px;
}

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

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

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

.soft-grid {
  padding: 10px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .72);
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(188, 229, 205, .82);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.movie-card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .08) 58%, transparent);
}

.play-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--white);
  background: var(--primary-600);
  font-size: 13px;
  font-weight: 800;
}

.card-body {
  padding: 18px;
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--primary-700);
  font-size: 12px;
  font-weight: 750;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--primary-50);
}

.movie-card h3 {
  margin: 11px 0 7px;
  font-size: 18px;
  line-height: 1.3;
}

.compact h3 {
  font-size: 16px;
}

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

.movie-card p {
  min-height: 52px;
  margin: 0;
  color: #6d6861;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #7a4a12;
  background: var(--accent-100);
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span,
.detail-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .18);
}

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

.category-chip {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--primary-100);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, var(--white), var(--primary-50));
  box-shadow: var(--soft-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

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

.category-chip strong {
  display: block;
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.category-chip span {
  color: #6e6a63;
  font-size: 14px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
  border: 1px solid var(--primary-100);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.rank-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-weight: 850;
}

.rank-title span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.rank-title a {
  color: var(--primary-700);
  font-size: 13px;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid var(--paper-100);
}

.rank-row span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--primary-600);
  font-size: 12px;
  font-weight: 800;
}

.rank-row strong,
.rank-row em {
  grid-column: 2;
  min-width: 0;
}

.rank-row em {
  color: #7a756e;
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  min-height: 340px;
  display: grid;
  place-items: center start;
  padding: 80px max(16px, calc((100vw - 1240px) / 2));
  color: var(--white);
  background: linear-gradient(135deg, var(--ink-900), var(--primary-700));
  background-size: cover;
  background-position: center;
}

.small-hero {
  min-height: 300px;
}

.page-hero div {
  width: min(760px, 100%);
}

.page-hero h1 {
  margin: 16px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
}

.page-hero p {
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: 18px;
}

.stacked-list {
  display: grid;
  gap: 32px;
}

.category-overview-card {
  padding: 26px;
  border: 1px solid var(--primary-100);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.category-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.category-overview-head h2 {
  margin: 12px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
}

.category-overview-head p {
  max-width: 760px;
  margin: 0;
  color: #706c66;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #756f68;
  font-size: 14px;
}

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

.breadcrumb.light {
  color: rgba(255, 255, 255, .76);
}

.breadcrumb.light a {
  color: var(--accent-100);
}

.channel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.channel-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--primary-700);
  background: var(--primary-50);
  font-size: 13px;
  font-weight: 700;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border: 1px solid var(--primary-100);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.rank-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
}

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

.rank-cover span {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--white);
  background: var(--accent-600);
  font-weight: 850;
}

.rank-info h2 {
  margin: 12px 0 8px;
  font-size: 26px;
  line-height: 1.22;
}

.rank-info p {
  margin: 0 0 16px;
  color: #6c665f;
}

.detail-hero {
  min-height: 560px;
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.detail-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 64px;
}

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

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .36);
}

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

.detail-copy h1 {
  max-width: 880px;
  margin: 18px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
}

.lead-text {
  max-width: 830px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, .86);
  font-size: 19px;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 10px 18px;
  margin: 18px 0;
  color: rgba(255, 255, 255, .84);
}

.video-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #060606;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #060606;
  cursor: pointer;
}

.video-trigger {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .46));
  cursor: pointer;
}

.video-trigger span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
  font-size: 32px;
}

.video-box.is-playing .video-trigger {
  display: none;
}

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

.content-card {
  padding: 28px;
  border: 1px solid var(--primary-100);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.content-card h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.content-card p {
  margin: 0;
  color: #5f5a54;
}

.site-footer {
  margin-top: 28px;
  color: rgba(255, 255, 255, .8);
  background: var(--ink-900);
}

.footer-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 800;
}

.footer-shell p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, .68);
}

.footer-links {
  display: flex;
  gap: 16px;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--accent-100);
}

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

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

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 90px 0 70px;
  }

  .hero-card {
    display: none;
  }

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

  .rank-panel {
    position: static;
  }
}

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

  .menu-button {
    display: block;
  }

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

  .brand-copy strong {
    font-size: 18px;
  }

  .hero-slider {
    min-height: 640px;
    height: auto;
  }

  .hero-slide {
    min-height: 640px;
  }

  .hero-inner {
    min-height: 640px;
  }

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

  .hero-arrow {
    display: none;
  }

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

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

  .wide-grid,
  .movie-grid,
  .mini-grid,
  .category-cloud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .detail-poster {
    width: min(260px, 100%);
  }

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

  .ranking-card {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .rank-info h2 {
    font-size: 20px;
  }

  .footer-shell,
  .category-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .wide-grid,
  .movie-grid,
  .mini-grid,
  .category-cloud {
    grid-template-columns: 1fr;
  }

  .section-wrap {
    padding: 42px 0;
  }

  .page-hero {
    min-height: 260px;
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .ranking-card {
    grid-template-columns: 1fr;
  }

  .rank-cover {
    max-width: 180px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
