:root {
  --forest-950: #0a140d;
  --forest-900: #152819;
  --forest-800: #224126;
  --earth-950: #1c1710;
  --earth-900: #352b1f;
  --earth-800: #4a3d2b;
  --moss-700: #455234;
  --moss-600: #59693f;
  --moss-500: #6d8350;
  --moss-400: #8a9f6e;
  --parchment-100: #f5f2ed;
  --parchment-200: #ebe4d9;
  --parchment-300: #dfd4c1;
  --parchment-400: #d3c4a9;
  --shadow-medium: 0 4px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 30px -5px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 8px 40px -8px rgba(0, 0, 0, 0.35), 0 15px 50px -10px rgba(0, 0, 0, 0.25);
}

html {
  scroll-behavior: smooth;
}

.site-body {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--forest-950), var(--forest-900) 38%, var(--earth-950));
  color: var(--parchment-200);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(21, 40, 25, 0.95);
  border-bottom: 1px solid rgba(34, 65, 38, 0.95);
  box-shadow: var(--shadow-medium);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--parchment-100);
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--moss-700);
  color: var(--parchment-100);
  box-shadow: inset 0 0 0 1px rgba(245, 242, 237, 0.08);
}

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

.brand-copy strong {
  font-size: 20px;
  font-weight: 800;
}

.brand-copy small {
  margin-top: 2px;
  color: var(--parchment-400);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  color: var(--parchment-300);
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--parchment-100);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(53, 43, 31, 0.48);
  border: 1px solid rgba(223, 212, 193, 0.12);
}

.header-search input,
.mobile-search input,
.filter-main input,
.filter-main select {
  border: 0;
  outline: 0;
  color: var(--parchment-100);
  background: transparent;
}

.header-search input {
  width: 180px;
  padding: 7px 8px 7px 14px;
}

.header-search button,
.mobile-search button,
.primary-button,
.ghost-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 750;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.header-search button,
.mobile-search button,
.primary-button {
  padding: 10px 18px;
  color: #fff;
  background: var(--moss-600);
  box-shadow: var(--shadow-medium);
}

.header-search button:hover,
.mobile-search button:hover,
.primary-button:hover {
  transform: translateY(-1px);
  background: var(--moss-500);
}

.ghost-button {
  padding: 10px 18px;
  color: var(--parchment-100);
  border: 1px solid rgba(245, 242, 237, 0.22);
  background: rgba(10, 20, 13, 0.44);
}

.ghost-button:hover {
  background: rgba(245, 242, 237, 0.1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(245, 242, 237, 0.08);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--parchment-100);
}

.mobile-panel {
  display: none;
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(34, 65, 38, 0.9);
}

.mobile-panel.open {
  display: block;
  animation: slideDown 0.3s ease-out;
}

.mobile-nav,
.quick-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quick-link {
  padding: 7px 12px;
  color: var(--parchment-300);
  border-radius: 999px;
  background: rgba(53, 43, 31, 0.55);
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: var(--forest-950);
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(109, 131, 80, 0.26), transparent 28%), linear-gradient(0deg, var(--forest-950) 0%, rgba(10, 20, 13, 0.82) 42%, rgba(10, 20, 13, 0.28) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  padding: 0 0 90px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--moss-400);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 820px;
  margin: 0;
  color: var(--parchment-100);
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-summary {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--parchment-200);
  font-size: 19px;
  line-height: 1.7;
}

.hero-tags,
.detail-meta,
.tag-row,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-tags {
  margin-top: 26px;
}

.hero-tags span,
.tag-row span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--parchment-200);
  background: rgba(34, 65, 38, 0.72);
  border: 1px solid rgba(245, 242, 237, 0.1);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: var(--parchment-100);
  background: rgba(0, 0, 0, 0.46);
  font-size: 36px;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dot.active {
  width: 30px;
  background: var(--moss-400);
}

.intro-strip,
.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 36px;
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(34, 65, 38, 0.55), rgba(53, 43, 31, 0.46));
  border: 1px solid rgba(245, 242, 237, 0.09);
  box-shadow: var(--shadow-medium);
}

.intro-strip h2,
.page-hero h1,
.section-heading h2,
.ranking-panel h2,
.detail-content h1,
.detail-content h2,
.side-card h2,
.site-footer h2 {
  color: var(--parchment-100);
}

.intro-strip h2,
.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.intro-strip p,
.page-hero p {
  margin: 0;
  max-width: 760px;
  color: var(--parchment-300);
  line-height: 1.8;
}

.page-main {
  padding-bottom: 60px;
}

.small-hero {
  display: block;
  margin-top: 28px;
}

.section-block {
  padding: 64px 0;
}

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

.section-heading.slim {
  align-items: center;
}

.section-heading h2,
.ranking-panel h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 850;
}

.section-heading a,
.ranking-panel a,
.breadcrumb a,
.footer-links a,
.mini-links a,
.side-card a {
  color: var(--moss-400);
  transition: color 0.2s ease;
}

.section-heading a:hover,
.ranking-panel a:hover,
.breadcrumb a:hover,
.footer-links a:hover,
.mini-links a:hover,
.side-card a:hover {
  color: var(--parchment-100);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(53, 43, 31, 0.48);
  border: 1px solid rgba(245, 242, 237, 0.08);
  box-shadow: var(--shadow-medium);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(138, 159, 110, 0.45);
  background: rgba(53, 43, 31, 0.7);
}

.poster-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(145deg, var(--earth-800), var(--forest-800));
}

.poster-frame img,
.side-card img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-frame img {
  transition: transform 0.55s ease;
}

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

.type-badge,
.year-badge {
  position: absolute;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--parchment-100);
  font-size: 12px;
  font-weight: 750;
  background: rgba(21, 40, 25, 0.88);
  backdrop-filter: blur(6px);
}

.type-badge {
  left: 12px;
}

.year-badge {
  right: 12px;
}

.play-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #fff;
  background: rgba(89, 105, 63, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-content {
  padding: 18px;
}

.card-content h2 {
  margin: 0 0 8px;
  color: var(--parchment-100);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.card-content h2 a:hover {
  color: var(--moss-400);
}

.card-content p {
  min-height: 50px;
  margin: 0 0 14px;
  color: var(--parchment-300);
  line-height: 1.6;
  font-size: 14px;
}

.card-meta {
  gap: 12px;
  color: var(--parchment-400);
  font-size: 12px;
}

.category-band,
.ranking-band {
  background: rgba(53, 43, 31, 0.24);
}

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

.category-card,
.category-overview-card {
  padding: 24px;
  min-height: 210px;
  border-radius: 24px;
  color: var(--parchment-200);
  background: rgba(21, 40, 25, 0.62);
  border: 1px solid rgba(245, 242, 237, 0.08);
  box-shadow: var(--shadow-medium);
  transition: transform 0.25s ease, background 0.25s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  background: rgba(34, 65, 38, 0.7);
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 18px;
  color: var(--parchment-100);
  background: var(--moss-700);
  font-weight: 900;
  font-size: 24px;
}

.category-card strong,
.category-overview-card h2 {
  display: block;
  margin: 0 0 10px;
  color: var(--parchment-100);
  font-size: 22px;
  font-weight: 850;
}

.category-card p,
.category-overview-card p {
  color: var(--parchment-300);
  line-height: 1.7;
  margin: 0;
}

.category-chips,
.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-chips span {
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--parchment-300);
  background: rgba(0, 0, 0, 0.18);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.two-column,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
}

.ranking-panel,
.side-card,
.detail-content,
.filter-panel {
  border-radius: 24px;
  background: rgba(53, 43, 31, 0.48);
  border: 1px solid rgba(245, 242, 237, 0.08);
  box-shadow: var(--shadow-medium);
}

.ranking-panel {
  position: sticky;
  top: 88px;
  align-self: start;
  padding: 26px;
}

.rank-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 16px;
  color: var(--parchment-200);
  background: rgba(21, 40, 25, 0.58);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: rgba(34, 65, 38, 0.78);
  transform: translateX(3px);
}

.rank-number {
  color: var(--moss-400);
  font-weight: 900;
  font-size: 18px;
}

.rank-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--parchment-100);
  font-weight: 700;
}

.rank-meta {
  color: var(--parchment-400);
  font-size: 13px;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
}

.filter-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
}

.filter-main input,
.filter-main select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 16px;
  color: var(--parchment-100);
  background: rgba(10, 20, 13, 0.45);
  border: 1px solid rgba(245, 242, 237, 0.09);
}

.filter-main option {
  color: #111;
}

.search-empty {
  display: none;
  margin: 16px 0 0;
  color: var(--parchment-400);
}

.search-empty.visible {
  display: block;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--parchment-400);
}

.detail-layout {
  padding-top: 32px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: var(--shadow-strong);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000;
}

.player-shell.is-playing .player-cover {
  opacity: 0;
  pointer-events: none;
}

.player-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.18));
}

.player-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: #fff;
  background: rgba(89, 105, 63, 0.94);
  font-size: 34px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.detail-content {
  margin-top: 24px;
  padding: 28px;
}

.detail-content h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.detail-meta {
  margin-bottom: 18px;
  color: var(--parchment-400);
}

.detail-meta span {
  padding-right: 12px;
  border-right: 1px solid rgba(245, 242, 237, 0.12);
}

.detail-meta span:last-child {
  border-right: 0;
}

.detail-content h2 {
  margin: 30px 0 12px;
  font-size: 24px;
  font-weight: 830;
}

.detail-content p {
  margin: 0;
  color: var(--parchment-300);
  line-height: 1.9;
  font-size: 16px;
}

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

.side-card {
  overflow: hidden;
}

.side-card img {
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, var(--earth-800), var(--forest-800));
}

.side-card h2,
.side-card p,
.side-card dl {
  margin-left: 22px;
  margin-right: 22px;
}

.side-card h2 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 850;
}

.side-card p {
  color: var(--parchment-300);
  line-height: 1.7;
}

.side-card dl {
  margin-bottom: 22px;
}

.side-card dl div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid rgba(245, 242, 237, 0.08);
}

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

.side-card dd {
  margin: 0;
  color: var(--parchment-100);
}

.prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.prev-next a {
  padding: 16px;
  border-radius: 18px;
  color: var(--parchment-200);
  background: rgba(21, 40, 25, 0.6);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.prev-next a:last-child {
  text-align: right;
}

.site-footer {
  margin-top: 34px;
  background: var(--forest-950);
  border-top: 1px solid rgba(34, 65, 38, 0.95);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
  padding: 46px 0;
}

.site-footer p {
  max-width: 560px;
  color: var(--parchment-300);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 820;
}

.footer-links {
  flex-direction: column;
  align-items: flex-start;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(245, 242, 237, 0.08);
  color: var(--parchment-400);
  font-size: 14px;
}

@media (max-width: 1100px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

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

  .ranking-panel,
  .detail-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 22px, 1200px);
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-content {
    padding-bottom: 78px;
  }

  .hero-summary {
    font-size: 16px;
  }

  .hero-arrow {
    display: none;
  }

  .intro-strip,
  .page-hero,
  .section-heading,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

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

  .card-content {
    padding: 14px;
  }

  .card-content p {
    min-height: auto;
  }

  .player-button {
    width: 68px;
    height: 68px;
  }

  .prev-next {
    grid-template-columns: 1fr;
  }

  .prev-next a:last-child {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .wide-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .hero-tags span,
  .tag-row span {
    font-size: 12px;
  }
}
