:root {
  --forest-50: #f5f7f5;
  --forest-100: #e8ede7;
  --forest-600: #4a6644;
  --forest-700: #3c5238;
  --forest-800: #32432f;
  --earth-200: #ddd8ca;
  --earth-300: #c5bcaa;
  --earth-400: #aa9b85;
  --earth-800: #4e443a;
  --earth-900: #423a32;
  --deer-500: #a88558;
  --text: #172018;
  --muted: #66726a;
  --card: #ffffff;
  --soft-shadow: 0 2px 15px -3px rgba(0, 0, 0, .07), 0 10px 20px -2px rgba(0, 0, 0, .04);
  --hover-shadow: 0 18px 45px -18px rgba(25, 34, 27, .28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, var(--forest-50), #ffffff 42%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 1px 18px rgba(28, 45, 31, .08);
  backdrop-filter: blur(14px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--forest-800);
}

.brand-mark {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--forest-600);
  color: #ffffff;
  font-family: Georgia, serif;
  font-weight: 700;
}

.brand-text {
  font-family: Georgia, "Songti SC", serif;
  font-size: 1.25rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #34413a;
  font-size: .94rem;
  font-weight: 600;
}

.nav-link {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--forest-600);
  border-color: var(--forest-600);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 10px;
  background: var(--forest-50);
  color: var(--forest-700);
  padding: 9px 12px;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 12% 15%, rgba(168, 133, 88, .42), transparent 28%), linear-gradient(135deg, var(--earth-900), var(--forest-800) 58%, var(--forest-600));
  color: #ffffff;
}

.hero-glow {
  position: absolute;
  inset: auto -12% -18% auto;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: rgba(168, 133, 88, .28);
  filter: blur(36px);
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 72px 0 88px;
}

.hero-slide {
  display: none;
  width: 100%;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .8fr);
  gap: 56px;
  align-items: center;
  animation: fadeIn .55s ease;
}

.hero-slide.is-active {
  display: grid;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-weight: 800;
  letter-spacing: -.04em;
}

.hero-copy h1,
.hero-copy h2 {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 1.02;
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--earth-200);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: .82rem;
}

.hero-desc {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--forest-100);
  font-size: 1.08rem;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.detail-tags span {
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, .1);
  color: #ffffff;
  font-size: .86rem;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

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

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

.btn-primary {
  background: #ffffff;
  color: var(--forest-800);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .16);
}

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

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 460px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
  box-shadow: 0 28px 70px rgba(0, 0, 0, .34);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--forest-700), var(--earth-900));
}

.hero-dots {
  position: absolute;
  bottom: 38px;
  left: 0;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 38px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .32);
  cursor: pointer;
}

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

.quick-panel,
.content-section,
.detail-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-panel {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 18px;
  margin-top: -36px;
  position: relative;
  z-index: 3;
}

.home-search,
.rank-entry {
  display: flex;
  align-items: center;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.home-search {
  padding: 10px;
}

.home-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid #dfe5de;
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
  outline: none;
}

.home-search input {
  border: 0;
}

.home-search button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 16px;
  background: var(--forest-600);
  color: #ffffff;
  padding: 13px 20px;
  font-weight: 800;
  cursor: pointer;
}

.rank-entry {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 20px;
  color: var(--forest-800);
}

.rank-entry span {
  color: var(--muted);
  font-size: .9rem;
}

.content-section {
  padding: 70px 0 0;
}

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

.section-head h2 {
  margin: 0 0 6px;
  font-family: Georgia, "Songti SC", serif;
  color: var(--forest-800);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.12;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.section-more {
  flex: 0 0 auto;
  color: var(--forest-600);
  font-weight: 800;
}

.category-grid,
.category-wide-grid {
  display: grid;
  gap: 18px;
}

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

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

.category-tile,
.category-card-wide a {
  display: block;
  height: 100%;
  border: 1px solid #e4e9e2;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  padding: 22px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.category-tile:hover,
.category-card-wide a:hover,
.movie-card:hover,
.rank-row:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 102, 68, .32);
  box-shadow: var(--hover-shadow);
}

.category-tile span,
.category-card-wide h2 {
  margin: 0 0 10px;
  color: var(--forest-800);
  font-size: 1.12rem;
  font-weight: 800;
}

.category-tile p,
.category-card-wide p,
.category-card-wide span {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid #edf1ec;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--soft-shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

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

.poster-link img,
.rank-thumb img,
.side-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--forest-100), var(--earth-200));
}

.play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  color: #ffffff;
  font-size: 2.2rem;
  opacity: 0;
  transition: background .2s ease, opacity .2s ease;
}

.movie-card:hover .play-badge {
  background: rgba(0, 0, 0, .38);
  opacity: 1;
}

.type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 999px;
  background: var(--forest-600);
  color: #ffffff;
  padding: 4px 9px;
  font-size: .76rem;
  font-weight: 800;
}

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: .98rem;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-info h2 a:hover {
  color: var(--forest-600);
}

.card-desc {
  min-height: 42px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .84rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #718075;
  font-size: .8rem;
}

.meta-row span,
.meta-row a {
  border-radius: 999px;
  background: var(--forest-50);
  padding: 3px 8px;
}

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

.simple-hero,
.category-hero {
  padding: 76px max(16px, calc((100vw - 1180px) / 2)) 82px;
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  line-height: 1.05;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--forest-100);
  font-size: 1.04rem;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 160px 160px;
  gap: 12px;
  margin-bottom: 26px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  padding: 14px;
}

.rank-section {
  padding-top: 46px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 84px 1fr 110px;
  gap: 18px;
  align-items: center;
  border: 1px solid #e8eee6;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  padding: 14px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.rank-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--forest-600);
  color: #ffffff;
  font-weight: 900;
}

.rank-thumb {
  display: block;
  overflow: hidden;
  width: 84px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background: var(--forest-50);
}

.rank-info h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--muted);
}

.rank-score {
  justify-self: end;
  color: var(--forest-700);
  font-size: 1.25rem;
  font-weight: 900;
}

.detail-wrap {
  padding-top: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: .9rem;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.detail-main {
  min-width: 0;
}

.player-card,
.detail-card,
.side-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.player-card {
  padding: 14px;
}

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

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

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .42), rgba(0, 0, 0, .68));
  color: #ffffff;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: opacity .2s ease, visibility .2s ease;
}

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

.overlay-play {
  display: flex;
  width: 74px;
  height: 74px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--forest-600);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .24);
  font-size: 2rem;
}

.detail-card {
  margin-top: 22px;
  padding: 30px;
}

.detail-card h1 {
  margin: 0 0 14px;
  color: var(--forest-800);
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-meta span,
.detail-meta a {
  border-radius: 999px;
  background: var(--forest-50);
  color: var(--forest-700);
  padding: 6px 12px;
  font-weight: 700;
  font-size: .9rem;
}

.detail-card .detail-tags span {
  border-color: #dbe4d8;
  background: #ffffff;
  color: var(--forest-700);
}

.detail-card h2,
.side-card h2 {
  margin: 28px 0 10px;
  color: var(--forest-800);
  font-size: 1.25rem;
}

.detail-card p {
  margin: 0 0 16px;
  color: #334139;
}

.lead-text {
  font-weight: 800;
  color: var(--forest-700) !important;
}

.detail-side {
  position: sticky;
  top: 94px;
}

.side-card {
  padding: 16px;
}

.side-card img {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px 12px;
  margin: 14px 0 0;
  font-size: .92rem;
}

.side-card dt {
  color: var(--muted);
}

.side-card dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.related-section {
  width: 100%;
  padding-top: 52px;
}

.site-footer {
  margin-top: 82px;
  background: var(--earth-900);
  color: var(--earth-200);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 44px 0 28px;
}

.footer-inner p {
  max-width: 520px;
  margin: 12px 0 0;
  color: var(--earth-300);
}

.footer-brand {
  color: #ffffff;
  font-family: Georgia, "Songti SC", serif;
  font-size: 1.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: flex-start;
}

.footer-links a {
  color: var(--earth-200);
}

.footer-bottom {
  border-top: 1px solid var(--earth-800);
  padding: 18px 16px;
  text-align: center;
  color: var(--earth-400);
  font-size: .9rem;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--hover-shadow);
    padding: 12px;
  }

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

  .site-nav a {
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    border-bottom: 0;
  }

  .site-nav a:hover,
  .site-nav a.is-active {
    background: var(--forest-50);
  }

  .hero-inner {
    min-height: 0;
    padding: 54px 0 82px;
  }

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

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

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

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

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

  .rank-row {
    grid-template-columns: 44px 72px 1fr;
  }

  .rank-score {
    display: none;
  }

  .footer-inner,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .nav-wrap,
  .quick-panel,
  .content-section,
  .detail-wrap {
    width: min(100% - 22px, 1180px);
  }

  .brand-text {
    font-size: 1rem;
  }

  .home-search {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions,
  .page-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .movie-grid,
  .category-grid,
  .category-wide-grid {
    gap: 14px;
  }

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

  .rank-row {
    grid-template-columns: 40px 1fr;
  }

  .rank-thumb {
    display: none;
  }

  .detail-card {
    padding: 22px;
  }
}
