:root {
  --forest-950: #0a140d;
  --forest-900: #152819;
  --forest-800: #224126;
  --forest-700: #2f5a33;
  --earth-950: #1c1710;
  --earth-900: #352b1f;
  --earth-800: #4a3d2b;
  --moss-300: #a8b892;
  --moss-400: #8a9f6e;
  --moss-500: #6d8350;
  --moss-600: #59693f;
  --parchment-100: #f5f2ed;
  --parchment-200: #ebe4d9;
  --parchment-300: #dfd4c1;
  --parchment-400: #d3c4a9;
  --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, .24), 0 10px 20px -2px rgba(0, 0, 0, .18);
  --shadow-strong: 0 14px 45px -12px rgba(0, 0, 0, .45), 0 24px 70px -20px rgba(0, 0, 0, .42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--parchment-200);
  background: radial-gradient(circle at 20% 0%, rgba(109, 131, 80, .20), transparent 32rem), linear-gradient(180deg, var(--forest-950), var(--earth-950));
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 20, 13, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(47, 90, 51, .70);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--moss-500), var(--forest-700));
  color: var(--parchment-100);
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

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

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

.brand-sub {
  margin-top: 4px;
  color: var(--parchment-400);
  font-size: 12px;
}

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

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

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

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: var(--parchment-100);
  background: rgba(255, 255, 255, .05);
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid rgba(47, 90, 51, .65);
}

.mobile-nav.open {
  display: grid;
  gap: 10px;
  animation: slideDown .24s ease-out;
}

.mobile-link {
  padding: 10px 2px;
  color: var(--parchment-300);
  font-weight: 650;
}

.mobile-link.small {
  color: var(--moss-300);
  font-size: 14px;
}

.mobile-link.active {
  color: var(--parchment-100);
}

@keyframes slideDown {
  from {
    transform: translateY(-8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

main {
  min-height: 70vh;
}

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

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(.85) brightness(.82);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 20, 13, .96) 0%, rgba(10, 20, 13, .78) 38%, rgba(10, 20, 13, .26) 72%, rgba(10, 20, 13, .70) 100%), linear-gradient(0deg, var(--forest-950), transparent 34%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  top: 50%;
  transform: translateY(-50%);
  width: min(720px, calc(100% - 48px));
  padding: 34px;
  border: 1px solid rgba(109, 131, 80, .32);
  border-radius: 28px;
  background: rgba(21, 40, 25, .36);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-strong);
}

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

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

.hero-movie {
  margin-top: 16px !important;
  font-size: clamp(25px, 4vw, 42px) !important;
  letter-spacing: -0.03em !important;
}

.hero p:not(.eyebrow) {
  max-width: 670px;
  margin: 18px 0 0;
  color: var(--parchment-300);
  font-size: 17px;
  line-height: 1.8;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(109, 131, 80, .22);
  color: var(--parchment-200);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(138, 159, 110, .22);
}

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

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

.primary-button {
  color: var(--parchment-100);
  background: linear-gradient(135deg, var(--moss-500), var(--moss-600));
  box-shadow: var(--shadow-soft);
}

.ghost-button {
  color: var(--parchment-200);
  border: 1px solid rgba(235, 228, 217, .24);
  background: rgba(255, 255, 255, .06);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 999px;
  background: rgba(0, 0, 0, .42);
  color: var(--parchment-100);
  font-size: 34px;
  line-height: 1;
  transition: background .2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, .72);
}

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

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

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

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

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

.search-band,
.section,
.ranking-strip,
.watch-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.search-band {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: center;
  margin-top: 44px;
  padding: 28px;
  border: 1px solid rgba(109, 131, 80, .28);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(34, 65, 38, .82), rgba(53, 43, 31, .56));
  box-shadow: var(--shadow-soft);
}

.search-band h2,
.section-head h2,
.ranking-copy h2,
.page-hero h1,
.detail-copy h1,
.article-block h2 {
  margin: 0;
  color: var(--parchment-100);
  letter-spacing: -0.03em;
}

.search-band h2,
.section-head h2,
.ranking-copy h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.search-band p,
.section-head p,
.ranking-copy p,
.page-hero p,
.detail-line,
.article-block p {
  color: var(--parchment-300);
  line-height: 1.8;
}

.search-form,
.filter-panel {
  display: flex;
  gap: 12px;
}

.search-form input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid rgba(138, 159, 110, .28);
  border-radius: 999px;
  outline: none;
  color: var(--parchment-100);
  background: rgba(10, 20, 13, .52);
}

.search-form input::placeholder,
.filter-panel input::placeholder {
  color: var(--parchment-400);
}

.search-form button,
.filter-panel button {
  min-width: 92px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--parchment-100);
  background: var(--moss-600);
  font-weight: 800;
}

.section {
  padding: 58px 0;
}

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

.section-head p {
  margin: 8px 0 0;
}

.text-link {
  color: var(--moss-300);
  font-weight: 800;
}

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

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

.category-card {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(138, 159, 110, .24);
  background: linear-gradient(135deg, rgba(34, 65, 38, .92), rgba(53, 43, 31, .58));
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.category-card:hover,
.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 184, 146, .54);
  box-shadow: var(--shadow-strong);
}

.category-card span {
  color: var(--parchment-100);
  font-size: 22px;
  font-weight: 800;
}

.category-card small {
  color: var(--parchment-400);
  line-height: 1.6;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(138, 159, 110, .18);
  border-radius: 22px;
  background: rgba(34, 65, 38, .70);
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.movie-card.compact {
  border-radius: 18px;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--earth-900);
}

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

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

.play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--parchment-100);
  background: rgba(0, 0, 0, .64);
  border: 1px solid rgba(255, 255, 255, .18);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 36px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--parchment-100);
  background: rgba(109, 131, 80, .92);
  font-weight: 900;
}

.movie-body {
  padding: 17px;
}

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--moss-300);
  font-size: 12px;
  font-weight: 750;
}

.movie-meta span,
.detail-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .20);
}

.movie-card h3 {
  margin: 10px 0 8px;
  color: var(--parchment-100);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p {
  min-height: 54px;
  margin: 0 0 14px;
  color: var(--parchment-300);
  line-height: 1.65;
  font-size: 14px;
}

.ranking-strip {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 28px;
  align-items: stretch;
  padding: 42px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(21, 40, 25, .96), rgba(53, 43, 31, .72));
  border: 1px solid rgba(109, 131, 80, .28);
  box-shadow: var(--shadow-soft);
}

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

.ranking-list a {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .06);
}

.ranking-list span {
  color: var(--moss-300);
  font-weight: 900;
}

.ranking-list strong {
  color: var(--parchment-100);
}

.ranking-list small {
  color: var(--parchment-400);
}

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

.compact-hero > div {
  padding: 36px;
  border-radius: 28px;
  border: 1px solid rgba(109, 131, 80, .28);
  background: linear-gradient(135deg, rgba(34, 65, 38, .82), rgba(53, 43, 31, .58));
  box-shadow: var(--shadow-soft);
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.filter-panel {
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid rgba(138, 159, 110, .20);
  border-radius: 22px;
  background: rgba(10, 20, 13, .38);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 62px;
  background: var(--forest-950);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: .28;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) saturate(.85);
  transform: scale(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 20, 13, .98), rgba(10, 20, 13, .70), rgba(10, 20, 13, .96)), linear-gradient(0deg, var(--forest-950), transparent 50%);
}

.detail-wrap {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 38px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(235, 228, 217, .14);
}

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

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--parchment-400);
  font-size: 14px;
}

.crumb a {
  color: var(--moss-300);
}

.detail-copy h1 {
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.02;
}

.detail-line {
  max-width: 790px;
  margin: 18px 0;
  font-size: 18px;
}

.detail-copy .tag-row {
  margin: 18px 0 26px;
}

.watch-section {
  padding: 54px 0 10px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(138, 159, 110, .22);
  aspect-ratio: 16 / 9;
}

.video-player {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  border: 0;
  color: var(--parchment-100);
  background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .82));
  cursor: pointer;
}

.player-cover.hidden {
  display: none;
}

.big-play {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--parchment-100);
  background: rgba(109, 131, 80, .92);
  box-shadow: var(--shadow-soft);
  font-size: 34px;
}

.player-cover strong {
  max-width: 80%;
  text-align: center;
  font-size: clamp(24px, 4vw, 44px);
}

.detail-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.article-block {
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(138, 159, 110, .20);
  background: rgba(34, 65, 38, .54);
  box-shadow: var(--shadow-soft);
}

.article-block h2 {
  margin-bottom: 14px;
  font-size: 28px;
}

.article-block p {
  margin: 0;
  white-space: pre-line;
}

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

.site-footer {
  margin-top: 42px;
  border-top: 1px solid rgba(47, 90, 51, .70);
  background: rgba(10, 20, 13, .94);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 34px;
  padding: 38px 0;
}

.footer-brand {
  margin-bottom: 10px;
  color: var(--parchment-100);
  font-size: 24px;
  font-weight: 900;
}

.footer-inner p {
  margin: 0;
  color: var(--parchment-400);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 20px;
}

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

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

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

  .menu-button {
    display: block;
  }

  .hero-content {
    padding: 24px;
  }

  .search-band,
  .ranking-strip,
  .detail-wrap,
  .detail-text,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .detail-wrap {
    align-items: start;
  }

  .detail-poster {
    max-width: 300px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 64px;
  }

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

  .brand-sub {
    display: none;
  }

  .hero {
    min-height: 76vh;
  }

  .hero-content {
    left: 16px;
    width: calc(100% - 32px);
  }

  .hero-arrow {
    display: none;
  }

  .search-form,
  .filter-panel,
  .section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .category-grid,
  .category-grid.large,
  .card-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .search-band,
  .ranking-strip,
  .compact-hero > div,
  .article-block {
    padding: 22px;
  }

  .ranking-list a {
    grid-template-columns: 40px 1fr;
  }

  .ranking-list small {
    grid-column: 2;
  }

  .detail-hero {
    padding-top: 44px;
  }

  .detail-wrap {
    gap: 24px;
  }

  .detail-poster {
    max-width: 230px;
  }
}
