:root {
  --forest-950: #0a140d;
  --forest-900: #152819;
  --forest-800: #224126;
  --forest-700: #2f5a33;
  --earth-950: #1c1710;
  --earth-900: #352b1f;
  --earth-800: #4a3d2b;
  --moss-700: #455234;
  --moss-600: #59693f;
  --moss-500: #6d8350;
  --moss-400: #8a9f6e;
  --moss-300: #a8b892;
  --parchment-100: #f5f2ed;
  --parchment-200: #ebe4d9;
  --parchment-300: #dfd4c1;
  --parchment-400: #d3c4a9;
  --black: #050505;
  --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.25), 0 10px 20px -2px rgba(0, 0, 0, 0.22);
  --shadow-strong: 0 8px 40px -8px rgba(0, 0, 0, 0.42), 0 15px 50px -10px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--forest-950), var(--forest-900) 45%, var(--earth-950));
  color: var(--parchment-100);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, 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 var(--forest-700);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

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

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--moss-700);
  color: var(--parchment-100);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease, transform 0.25s ease;
}

.brand:hover .brand-mark {
  background: var(--moss-600);
  transform: translateY(-1px);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--parchment-100);
}

.brand-subtitle {
  margin-top: 3px;
  font-size: 12px;
  color: var(--parchment-300);
}

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

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

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

.header-search {
  position: relative;
  width: min(300px, 26vw);
}

.site-search-input,
.listing-search {
  width: 100%;
  border: 1px solid rgba(109, 131, 80, 0.38);
  outline: none;
  border-radius: 14px;
  background: rgba(10, 20, 13, 0.62);
  color: var(--parchment-100);
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-search-input:focus,
.listing-search:focus {
  border-color: var(--moss-400);
  box-shadow: 0 0 0 3px rgba(109, 131, 80, 0.22);
  background: rgba(10, 20, 13, 0.88);
}

.site-search-input::placeholder,
.listing-search::placeholder {
  color: var(--parchment-400);
}

.site-search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, 88vw);
  max-height: 420px;
  overflow: auto;
  display: none;
  padding: 8px;
  border: 1px solid rgba(109, 131, 80, 0.4);
  border-radius: 16px;
  background: rgba(21, 40, 25, 0.98);
  box-shadow: var(--shadow-strong);
}

.site-search-results.is-open {
  display: grid;
  gap: 6px;
}

.search-result-item {
  display: block;
  padding: 12px;
  border-radius: 12px;
  background: rgba(53, 43, 31, 0.52);
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-result-item:hover {
  background: rgba(74, 61, 43, 0.72);
  transform: translateY(-1px);
}

.search-result-item strong {
  display: block;
  color: var(--parchment-100);
  font-size: 15px;
}

.search-result-item span {
  display: block;
  margin-top: 4px;
  color: var(--parchment-400);
  font-size: 12px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: rgba(74, 61, 43, 0.52);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 99px;
  background: var(--parchment-100);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--forest-700);
}

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

.mobile-nav-inner {
  display: grid;
  gap: 14px;
  padding: 16px 0 20px;
}

.mobile-search {
  position: relative;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(0.9) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--forest-950) 0%, rgba(10, 20, 13, 0.82) 42%, rgba(10, 20, 13, 0.1) 100%), linear-gradient(90deg, rgba(10, 20, 13, 0.92), rgba(10, 20, 13, 0.45) 48%, rgba(10, 20, 13, 0.1));
}

.hero-content {
  position: absolute;
  inset: auto 0 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 56px 0 74px;
}

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

.hero-kicker,
.page-title-block span,
.section-heading span,
.search-panel span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--moss-400);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  color: var(--parchment-100);
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero p {
  width: min(720px, 100%);
  margin: 0 0 24px;
  color: var(--parchment-200);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.hero-meta,
.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--parchment-400);
}

.hero-meta span,
.movie-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(53, 43, 31, 0.64);
  padding: 6px 10px;
  font-size: 13px;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 28px;
}

.hero-tags span,
.detail-tags span {
  border-radius: 999px;
  background: rgba(34, 65, 38, 0.76);
  color: var(--parchment-200);
  padding: 7px 12px;
  font-size: 13px;
}

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

.primary-button,
.ghost-button,
.section-heading a,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  padding: 0 18px;
  font-weight: 750;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  background: var(--moss-600);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

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

.ghost-button,
.section-heading a,
.back-link {
  border: 1px solid rgba(223, 212, 193, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: var(--parchment-200);
}

.ghost-button:hover,
.section-heading a:hover,
.back-link:hover {
  border-color: rgba(223, 212, 193, 0.44);
  color: var(--parchment-100);
  transform: translateY(-1px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.68);
  transform: translateY(-1px);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.search-panel {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  align-items: center;
  gap: 28px;
  margin-top: -34px;
  position: relative;
  z-index: 5;
  border: 1px solid rgba(109, 131, 80, 0.34);
  border-radius: 22px;
  background: rgba(53, 43, 31, 0.86);
  box-shadow: var(--shadow-strong);
  padding: 28px;
  backdrop-filter: blur(12px);
}

.search-panel h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.large-search-wrap {
  position: relative;
}

.large-search {
  min-height: 56px;
  font-size: 16px;
}

.large-results {
  left: 0;
  right: auto;
  width: 100%;
}

.page-main {
  min-height: 68vh;
}

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

.page-band {
  background: rgba(53, 43, 31, 0.3);
}

.forest-band {
  background: rgba(21, 40, 25, 0.42);
}

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

.section-heading h2,
.page-title-block h1 {
  margin: 0;
  color: var(--parchment-100);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
}

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(109, 131, 80, 0.16);
  border-radius: 18px;
  background: rgba(53, 43, 31, 0.42);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

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

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

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

.movie-cover-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.18));
  transition: opacity 0.25s ease;
}

.movie-card-link:hover .movie-cover-overlay {
  opacity: 1;
}

.play-badge,
.player-play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  background: rgba(89, 105, 63, 0.92);
  color: #fff;
  font-size: 28px;
  box-shadow: var(--shadow-soft);
}

.movie-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.movie-tags span {
  border-radius: 8px;
  background: rgba(34, 65, 38, 0.9);
  color: var(--parchment-100);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.rank-number {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 34px;
  border-radius: 10px;
  background: rgba(89, 105, 63, 0.92);
  color: #fff;
  font-size: 16px;
}

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

.movie-card-body h3 {
  margin: 0 0 10px;
  color: var(--parchment-100);
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card-link:hover h3 {
  color: var(--moss-300);
}

.movie-card-body p {
  margin: 0 0 14px;
  color: var(--parchment-300);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  gap: 7px;
}

.movie-meta span {
  padding: 4px 8px;
  font-size: 12px;
}

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

.category-chip,
.category-panel {
  border: 1px solid rgba(109, 131, 80, 0.26);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(34, 65, 38, 0.78), rgba(53, 43, 31, 0.72));
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.category-chip {
  display: block;
  padding: 22px;
}

.category-chip:hover,
.category-panel:hover {
  border-color: rgba(168, 184, 146, 0.5);
  background: linear-gradient(135deg, rgba(47, 90, 51, 0.86), rgba(74, 61, 43, 0.76));
  transform: translateY(-2px);
}

.category-chip span,
.category-panel h2 {
  display: block;
  color: var(--parchment-100);
  font-size: 21px;
  font-weight: 800;
}

.category-chip small,
.category-panel p {
  display: block;
  margin-top: 9px;
  color: var(--parchment-300);
  font-size: 14px;
  line-height: 1.65;
}

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

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

.page-title-block {
  padding: 58px 0 28px;
}

.page-title-block p {
  width: min(760px, 100%);
  margin: 16px 0 0;
  color: var(--parchment-300);
  font-size: 17px;
  line-height: 1.75;
}

.category-panel {
  overflow: hidden;
}

.category-panel-main {
  display: block;
  padding: 24px;
}

.category-panel-main span {
  color: var(--moss-400);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.category-samples {
  display: grid;
  gap: 1px;
  background: rgba(10, 20, 13, 0.38);
}

.category-samples a {
  display: block;
  padding: 13px 24px;
  color: var(--parchment-300);
  background: rgba(53, 43, 31, 0.3);
  transition: color 0.2s ease, background 0.2s ease;
}

.category-samples a:hover {
  color: var(--parchment-100);
  background: rgba(34, 65, 38, 0.58);
}

.listing-tools {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  margin-bottom: 4px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  min-height: 38px;
  border: 1px solid rgba(109, 131, 80, 0.28);
  border-radius: 999px;
  background: rgba(53, 43, 31, 0.46);
  color: var(--parchment-200);
  padding: 0 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-button:hover,
.filter-button.is-active {
  background: var(--moss-600);
  color: #fff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 28px 0 18px;
  color: var(--parchment-400);
  font-size: 14px;
}

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

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

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.36));
  color: var(--parchment-100);
  font-size: clamp(18px, 3vw, 30px);
  font-weight: 800;
  text-align: center;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.detail-card,
.info-box {
  margin-top: 24px;
  border: 1px solid rgba(109, 131, 80, 0.2);
  border-radius: 20px;
  background: rgba(53, 43, 31, 0.42);
  box-shadow: var(--shadow-soft);
  padding: 26px;
}

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

.detail-meta {
  margin-bottom: 18px;
}

.detail-text h2,
.info-box h2 {
  margin: 28px 0 12px;
  color: var(--parchment-100);
  font-size: 22px;
}

.detail-text h2:first-child,
.info-box h2:first-child {
  margin-top: 0;
}

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

.detail-sidebar {
  position: sticky;
  top: 92px;
}

.info-box dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.info-box dt {
  color: var(--parchment-400);
  font-size: 13px;
}

.info-box dd {
  margin: 3px 0 0;
  color: var(--parchment-100);
  font-weight: 700;
}

.info-box dd a {
  color: var(--moss-300);
}

.poster-box {
  padding: 0;
  overflow: hidden;
}

.poster-box img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.related-section {
  padding-top: 56px;
}

.site-footer {
  border-top: 1px solid var(--forest-800);
  background: var(--forest-950);
}

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

.footer-brand p,
.footer-bottom p {
  color: var(--parchment-400);
  line-height: 1.7;
}

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

.site-footer a:not(.brand) {
  display: block;
  margin: 10px 0;
  color: var(--parchment-300);
  font-size: 14px;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--forest-800);
  padding: 20px 0 30px;
}

.is-hidden-card {
  display: none;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--earth-950);
}

::-webkit-scrollbar-thumb {
  background: var(--moss-500);
  border-radius: 999px;
}

::selection {
  background: var(--moss-500);
  color: var(--parchment-100);
}

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

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-search {
    width: min(360px, 40vw);
  }
}

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

  .hero {
    min-height: 76vh;
  }

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

  .hero-control {
    width: 42px;
    height: 42px;
  }

  .search-panel {
    grid-template-columns: 1fr;
    margin-top: 0;
    border-radius: 0;
    width: 100%;
  }

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

  .latest-grid .movie-card-wide {
    grid-column: span 1;
  }

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

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

  .detail-sidebar {
    position: static;
  }
}

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

  .brand-title {
    font-size: 17px;
  }

  .brand-subtitle {
    font-size: 11px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

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

  .hero-prev,
  .hero-next {
    top: auto;
    bottom: 24px;
  }

  .hero-prev {
    left: 16px;
  }

  .hero-next {
    right: 16px;
  }

  .hero-dots {
    bottom: 40px;
  }

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

  .page-section {
    padding: 48px 0;
  }

  .detail-card,
  .info-box {
    padding: 20px;
  }
}
