:root {
  --forest-950: #06130c;
  --forest-900: #152819;
  --forest-800: #224126;
  --forest-700: #2f5a33;
  --earth-950: #1f1811;
  --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-soft: 0 2px 15px -3px rgba(0, 0, 0, .18), 0 10px 20px -2px rgba(0, 0, 0, .12);
  --shadow-strong: 0 8px 40px -8px rgba(0, 0, 0, .38), 0 15px 50px -10px rgba(0, 0, 0, .25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--parchment-200);
  background:
    radial-gradient(circle at 15% 10%, rgba(109, 131, 80, .18), transparent 30%),
    linear-gradient(180deg, var(--forest-950), var(--forest-900) 45%, var(--earth-950));
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(47, 90, 51, .8);
  background: rgba(21, 40, 25, .92);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--parchment-100);
  background: var(--moss-700);
  box-shadow: var(--shadow-soft);
  font-weight: 800;
}

.brand-copy,
.footer-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong,
.footer-brand strong {
  color: var(--parchment-100);
  font-size: 20px;
  letter-spacing: .02em;
}

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

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

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

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

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(53, 43, 31, .7);
  color: var(--parchment-100);
  cursor: pointer;
}

.menu-button span {
  width: 20px;
  height: 2px;
  margin: 4px auto;
  display: block;
  border-radius: 2px;
  background: var(--parchment-100);
}

.mobile-nav {
  display: none;
  padding: 12px 16px 18px;
  border-top: 1px solid rgba(47, 90, 51, .75);
  background: rgba(21, 40, 25, .96);
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--parchment-200);
  background: rgba(53, 43, 31, .35);
}

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

.hero-stage,
.hero-slide,
.hero-img,
.hero-gradient {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-gradient {
  background:
    linear-gradient(90deg, rgba(6, 19, 12, .95) 0%, rgba(6, 19, 12, .72) 38%, rgba(6, 19, 12, .18) 100%),
    linear-gradient(0deg, var(--forest-950) 0%, rgba(21, 40, 25, .68) 45%, transparent 100%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 98px;
}

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

.hero-kicker {
  margin: 0 0 12px;
  color: var(--moss-400);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 18px;
  color: var(--parchment-100);
  font-size: clamp(40px, 7vw, 74px);
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 10px 28px rgba(0, 0, 0, .36);
}

.hero-desc {
  max-width: 660px;
  margin: 0 0 24px;
  color: var(--parchment-200);
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags span,
.card-tags span,
.detail-tags a {
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid rgba(109, 131, 80, .45);
  border-radius: 999px;
  color: var(--parchment-200);
  background: rgba(53, 43, 31, .56);
  font-size: 12px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 22px 0;
  color: var(--parchment-300);
}

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

.primary-button,
.ghost-button,
.panel-search button,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.primary-button,
.panel-search button,
.hero-search button {
  color: white;
  background: var(--moss-600);
  box-shadow: var(--shadow-soft);
}

.primary-button:hover,
.panel-search button:hover,
.hero-search button:hover {
  background: var(--moss-500);
  transform: translateY(-2px);
}

.ghost-button {
  color: var(--parchment-100);
  border: 1px solid rgba(223, 212, 193, .2);
  background: rgba(0, 0, 0, .36);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, .1);
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--moss-500);
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 74px;
  z-index: 7;
  width: min(560px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-search input,
.panel-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(109, 131, 80, .45);
  border-radius: 12px;
  outline: none;
  color: var(--parchment-100);
  background: rgba(6, 19, 12, .76);
  padding: 0 14px;
}

.site-section {
  padding: 72px 0;
}

.alt-section {
  background: rgba(53, 43, 31, .24);
  border-top: 1px solid rgba(47, 90, 51, .3);
  border-bottom: 1px solid rgba(47, 90, 51, .3);
}

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

.section-head span {
  color: var(--moss-400);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
}

.section-head h2 {
  margin: 5px 0 0;
  color: var(--parchment-100);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.18;
}

.section-more {
  color: var(--moss-400);
  font-weight: 800;
}

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

.movie-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(109, 131, 80, .18);
  border-radius: 16px;
  background: rgba(53, 43, 31, .42);
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.movie-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(109, 131, 80, .48);
  box-shadow: var(--shadow-strong);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--earth-800);
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

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

.card-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .1));
  transition: opacity .25s ease;
}

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

.movie-card:hover .card-shade,
.movie-card:hover .card-play {
  opacity: 1;
}

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: white;
  background: rgba(89, 105, 63, .95);
  box-shadow: var(--shadow-soft);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.card-body strong {
  color: var(--parchment-100);
  font-size: 18px;
  line-height: 1.35;
}

.card-body em {
  min-height: 46px;
  overflow: hidden;
  color: var(--parchment-300);
  font-style: normal;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.wide-card {
  display: grid;
  grid-template-columns: minmax(220px, 45%) 1fr;
}

.wide-card .card-cover {
  height: 100%;
  aspect-ratio: auto;
}

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

.category-chip-grid a,
.category-card {
  border: 1px solid rgba(109, 131, 80, .22);
  border-radius: 16px;
  background: rgba(53, 43, 31, .46);
  box-shadow: var(--shadow-soft);
}

.category-chip-grid a {
  display: flex;
  min-height: 126px;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  padding: 18px;
  transition: transform .2s ease, border-color .2s ease;
}

.category-chip-grid a:hover,
.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(109, 131, 80, .5);
}

.category-chip-grid strong,
.category-card-main span {
  color: var(--parchment-100);
  font-size: 20px;
}

.category-chip-grid small,
.category-card-main strong {
  color: var(--parchment-300);
  font-weight: 500;
  line-height: 1.6;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
  gap: 28px;
}

.rank-list,
.rank-table {
  display: grid;
  gap: 12px;
}

.rank-row,
.rank-table-row {
  display: grid;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(109, 131, 80, .2);
  border-radius: 14px;
  color: var(--parchment-200);
  background: rgba(21, 40, 25, .42);
  transition: transform .2s ease, background .2s ease;
}

.rank-row {
  grid-template-columns: 44px 1fr minmax(120px, .7fr);
  padding: 13px 16px;
}

.rank-table-row {
  grid-template-columns: 54px 1fr minmax(180px, .8fr) minmax(120px, .5fr);
  padding: 15px 18px;
}

.rank-row:hover,
.rank-table-row:hover {
  transform: translateX(4px);
  background: rgba(53, 43, 31, .66);
}

.rank-row b,
.rank-table-row b {
  color: var(--moss-400);
  font-size: 20px;
}

.rank-row span,
.rank-table-row span {
  color: var(--parchment-100);
  font-weight: 800;
}

.rank-row em,
.rank-table-row em,
.rank-table-row small {
  overflow: hidden;
  color: var(--parchment-400);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-panel,
.detail-card,
.side-card,
.filter-panel {
  border: 1px solid rgba(109, 131, 80, .2);
  border-radius: 18px;
  background: rgba(53, 43, 31, .44);
  box-shadow: var(--shadow-soft);
}

.search-panel {
  align-self: start;
  padding: 28px;
}

.search-panel h2,
.side-card h2,
.detail-card h2 {
  margin: 0 0 14px;
  color: var(--parchment-100);
}

.search-panel p {
  color: var(--parchment-300);
  line-height: 1.8;
}

.panel-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 22px;
}

.region-list {
  display: grid;
  gap: 34px;
}

.region-strip h3 {
  margin: 0 0 16px;
  color: var(--parchment-100);
  font-size: 24px;
}

.inner-hero {
  padding: 82px 0 62px;
  background:
    radial-gradient(circle at 70% 20%, rgba(109, 131, 80, .24), transparent 26%),
    linear-gradient(135deg, rgba(21, 40, 25, .96), rgba(53, 43, 31, .8));
  border-bottom: 1px solid rgba(109, 131, 80, .22);
}

.inner-hero p {
  margin: 0 0 12px;
  color: var(--moss-400);
  font-weight: 900;
  letter-spacing: .16em;
}

.inner-hero h1 {
  margin: 0 0 16px;
  color: var(--parchment-100);
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.1;
}

.inner-hero span {
  display: block;
  max-width: 760px;
  color: var(--parchment-300);
  font-size: 18px;
  line-height: 1.8;
}

.inner-actions {
  margin-top: 24px;
}

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}

.category-card-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-bottom: 1px solid rgba(109, 131, 80, .18);
}

.category-card-list {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.compact-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
}

.compact-card img {
  width: 86px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
}

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

.compact-card strong {
  color: var(--parchment-100);
  line-height: 1.35;
}

.compact-card small {
  margin-top: 4px;
  color: var(--parchment-400);
}

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

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--parchment-300);
  font-weight: 700;
}

.filter-keyword {
  margin-bottom: 14px;
}

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

.hidden-by-filter {
  display: none !important;
}

.detail-shell {
  padding: 42px 0 72px;
}

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

.breadcrumb a:hover {
  color: var(--parchment-100);
}

.breadcrumb strong {
  color: var(--parchment-200);
}

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

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
  box-shadow: var(--shadow-strong);
  aspect-ratio: 16 / 9;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: white;
  background: radial-gradient(circle, rgba(0, 0, 0, .12), rgba(0, 0, 0, .58));
  cursor: pointer;
}

.player-start span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(89, 105, 63, .95);
  box-shadow: var(--shadow-strong);
  font-size: 34px;
  transform: translateX(3px);
  transition: transform .2s ease, background .2s ease;
}

.player-start:hover span {
  transform: translateX(3px) scale(1.08);
  background: var(--moss-500);
}

.movie-player.is-playing .player-start {
  display: none;
}

.detail-card {
  margin-top: 26px;
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 16px;
  color: var(--parchment-100);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
}

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

.detail-meta span {
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--parchment-300);
  background: rgba(21, 40, 25, .7);
}

.lead-text {
  color: var(--parchment-200);
  font-size: 18px;
  line-height: 1.8;
}

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

.detail-tags {
  margin-top: 22px;
}

.detail-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}

.poster-img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: var(--shadow-strong);
}

.side-card {
  padding: 22px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  margin: 0 0 22px;
}

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

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

.primary-button.full {
  width: 100%;
}

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

.latest-grid .wide-card:first-child {
  grid-column: span 2;
}

.site-footer {
  border-top: 1px solid rgba(47, 90, 51, .75);
  background: var(--forest-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .8fr .8fr;
  gap: 32px;
  padding: 46px 0 28px;
}

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

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--parchment-100);
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--parchment-300);
}

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

.footer-bottom {
  padding: 20px 0 30px;
  border-top: 1px solid rgba(47, 90, 51, .55);
  color: var(--parchment-400);
}

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

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

  .detail-side {
    position: static;
  }
}

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

  .menu-button {
    display: block;
  }

  .hero {
    min-height: 660px;
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 156px;
  }

  .hero-gradient {
    background:
      linear-gradient(0deg, var(--forest-950) 0%, rgba(6, 19, 12, .82) 60%, rgba(6, 19, 12, .22) 100%);
  }

  .hero-arrow {
    display: none;
  }

  .hero-search {
    grid-template-columns: 1fr;
    bottom: 74px;
  }

  .movie-grid,
  .category-chip-grid,
  .category-page-grid,
  .top-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

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

  .rank-table-row em,
  .rank-table-row small {
    grid-column: 2;
  }

  .wide-card,
  .latest-grid .wide-card:first-child {
    grid-column: auto;
    display: block;
  }

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand-copy small {
    display: none;
  }

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

  .hero h1 {
    font-size: 38px;
  }

  .hero-desc,
  .inner-hero span,
  .lead-text {
    font-size: 16px;
  }

  .hero-meta {
    gap: 10px;
  }

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

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

  .rank-row em {
    grid-column: 2;
  }

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

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

  .player-start span {
    width: 72px;
    height: 72px;
  }
}
