: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;
  --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.18), 0 10px 20px -2px rgba(0, 0, 0, 0.16);
  --shadow-strong: 0 8px 40px -8px rgba(0, 0, 0, 0.36), 0 15px 50px -10px rgba(0, 0, 0, 0.30);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--parchment-200);
  background:
    radial-gradient(circle at 18% 8%, rgba(109, 131, 80, 0.22), transparent 32rem),
    radial-gradient(circle at 86% 18%, rgba(74, 61, 43, 0.38), transparent 28rem),
    linear-gradient(135deg, var(--forest-950), var(--earth-950) 55%, #050906);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(21, 40, 25, 0.94);
  border-bottom: 1px solid rgba(47, 90, 51, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--parchment-100);
  background: linear-gradient(135deg, var(--moss-500), var(--moss-700));
  font-weight: 900;
  font-size: 22px;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.24);
}

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

.brand-copy strong {
  color: var(--parchment-100);
  font-size: 21px;
  letter-spacing: 0.04em;
}

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

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  font-size: 15px;
  font-weight: 700;
  color: var(--parchment-200);
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--moss-400);
  transition: width 0.2s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--parchment-100);
  background: rgba(74, 61, 43, 0.72);
  cursor: pointer;
}

.hero-slider {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 32px auto 0;
  overflow: hidden;
  border: 1px solid rgba(47, 90, 51, 0.72);
  border-radius: 32px;
  background: rgba(10, 20, 13, 0.86);
  box-shadow: var(--shadow-strong);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1s ease;
  background-image:
    linear-gradient(90deg, rgba(10, 20, 13, 0.96) 0%, rgba(10, 20, 13, 0.80) 36%, rgba(10, 20, 13, 0.18) 100%),
    var(--hero-bg);
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 32%, rgba(109, 131, 80, 0.28), transparent 24rem),
    linear-gradient(0deg, rgba(10, 20, 13, 0.72), transparent 54%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(720px, 64%);
  padding: 86px 0 0 72px;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: var(--moss-300);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  color: var(--parchment-100);
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

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

.hero-tags,
.detail-tags,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.detail-tags span,
.badge-row span,
.rank-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  border: 1px solid rgba(138, 159, 110, 0.34);
  border-radius: 999px;
  color: var(--parchment-200);
  background: rgba(53, 43, 31, 0.58);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.card-action,
.section-link,
.play-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.primary-btn,
.card-action,
.play-link {
  color: white;
  background: linear-gradient(135deg, var(--moss-500), var(--moss-700));
  box-shadow: 0 12px 24px rgba(69, 82, 52, 0.34);
}

.ghost-btn,
.section-link {
  border: 1px solid rgba(223, 212, 193, 0.22);
  color: var(--parchment-100);
  background: rgba(255, 255, 255, 0.08);
}

.primary-btn:hover,
.ghost-btn:hover,
.card-action:hover,
.section-link:hover,
.play-link:hover {
  transform: translateY(-2px);
}

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

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 72px;
  bottom: 34px;
  z-index: 8;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--moss-400);
}

.hero-side-list {
  position: absolute;
  right: 62px;
  bottom: 34px;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(430px, 38%);
}

.hero-mini {
  overflow: hidden;
  border: 1px solid rgba(223, 212, 193, 0.16);
  border-radius: 16px;
  background: rgba(10, 20, 13, 0.62);
  box-shadow: var(--shadow-soft);
}

.hero-mini img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: rgba(74, 61, 43, 0.44);
}

.hero-mini span {
  display: block;
  padding: 8px 10px 10px;
  overflow: hidden;
  color: var(--parchment-100);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main,
.content-section,
.page-hero,
.detail-page,
.category-shell,
.ranking-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.content-section {
  padding: 64px 0 10px;
}

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

.section-head h2,
.page-hero h1,
.category-title h1,
.detail-title h1 {
  margin: 0;
  color: var(--parchment-100);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-head p,
.page-hero p,
.category-title p,
.detail-title p {
  margin: 8px 0 0;
  color: var(--parchment-300);
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid rgba(47, 90, 51, 0.58);
  border-radius: 20px;
  background: rgba(53, 43, 31, 0.42);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, border 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(138, 159, 110, 0.78);
  box-shadow: var(--shadow-strong);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(74, 61, 43, 0.60);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(0deg, rgba(10, 20, 13, 0.90), transparent);
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  min-width: 38px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #ad7d3b, var(--moss-600));
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.badge-row {
  margin-bottom: 10px;
}

.badge-row span {
  min-height: 24px;
  padding: 2px 9px;
  font-size: 12px;
}

.movie-card h2 {
  margin: 0;
  color: var(--parchment-100);
  font-size: 19px;
  line-height: 1.32;
}

.movie-card h2 a:hover {
  color: var(--moss-300);
}

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

.movie-meta {
  margin-top: auto;
  color: var(--parchment-400);
  font-size: 13px;
}

.card-action {
  align-self: flex-start;
  min-height: 36px;
  margin-top: 14px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
}

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

.category-tile {
  min-height: 160px;
  padding: 22px;
  border: 1px solid rgba(47, 90, 51, 0.58);
  border-radius: 22px;
  background:
    radial-gradient(circle at 80% 10%, rgba(109, 131, 80, 0.30), transparent 10rem),
    rgba(21, 40, 25, 0.62);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(138, 159, 110, 0.78);
}

.category-tile strong {
  display: block;
  color: var(--parchment-100);
  font-size: 22px;
}

.category-tile span {
  display: block;
  margin-top: 10px;
  color: var(--parchment-300);
  font-size: 14px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 18px;
  align-items: center;
  margin: 28px 0;
  padding: 18px;
  border: 1px solid rgba(47, 90, 51, 0.58);
  border-radius: 22px;
  background: rgba(10, 20, 13, 0.52);
  box-shadow: var(--shadow-soft);
}

.search-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--parchment-300);
  font-size: 13px;
  font-weight: 800;
}

.search-box input {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(138, 159, 110, 0.30);
  border-radius: 14px;
  outline: 0;
  color: var(--parchment-100);
  background: rgba(53, 43, 31, 0.72);
  padding: 0 15px;
}

.search-box input:focus {
  border-color: var(--moss-400);
  box-shadow: 0 0 0 3px rgba(109, 131, 80, 0.18);
}

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

.filter-buttons button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(223, 212, 193, 0.16);
  border-radius: 999px;
  color: var(--parchment-200);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.filter-buttons button.active,
.filter-buttons button:hover {
  color: white;
  border-color: rgba(138, 159, 110, 0.66);
  background: var(--moss-600);
}

.empty-state {
  padding: 24px;
  border: 1px dashed rgba(223, 212, 193, 0.28);
  border-radius: 18px;
  color: var(--parchment-300);
  text-align: center;
}

.page-hero,
.category-title {
  padding: 62px 0 22px;
}

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

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

.category-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 52px;
  padding-bottom: 28px;
}

.category-block {
  padding: 28px;
  border: 1px solid rgba(47, 90, 51, 0.58);
  border-radius: 28px;
  background: rgba(10, 20, 13, 0.42);
  box-shadow: var(--shadow-soft);
}

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

.category-block h2 {
  margin: 0;
  color: var(--parchment-100);
  font-size: 28px;
}

.category-block p {
  margin: 8px 0 0;
  color: var(--parchment-300);
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 54px 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(47, 90, 51, 0.54);
  border-radius: 18px;
  background: rgba(53, 43, 31, 0.42);
  transition: transform 0.2s ease, border 0.2s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  border-color: rgba(138, 159, 110, 0.78);
}

.ranking-num {
  color: var(--moss-300);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.ranking-row img {
  width: 96px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(74, 61, 43, 0.60);
}

.ranking-row h2 {
  margin: 0 0 6px;
  color: var(--parchment-100);
  font-size: 18px;
}

.ranking-row p {
  margin: 0;
  color: var(--parchment-300);
  font-size: 13px;
}

.detail-page {
  padding-bottom: 70px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.95fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 22px;
}

.player-card,
.detail-info,
.detail-text,
.related-shell {
  border: 1px solid rgba(47, 90, 51, 0.58);
  border-radius: 26px;
  background: rgba(10, 20, 13, 0.56);
  box-shadow: var(--shadow-soft);
}

.player-card {
  overflow: hidden;
}

.video-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: black;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: black;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: white;
  background:
    radial-gradient(circle at center, rgba(109, 131, 80, 0.28), transparent 18rem),
    rgba(0, 0, 0, 0.44);
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-icon {
  width: 80px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--moss-500), var(--moss-700));
  box-shadow: var(--shadow-strong);
  font-size: 36px;
  transform: translateX(2px);
}

.play-overlay strong {
  font-size: 19px;
  letter-spacing: 0.08em;
}

.detail-info {
  padding: 28px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 18px;
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: rgba(74, 61, 43, 0.60);
}

.detail-title h1 {
  margin-top: 0;
}

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

.meta-item {
  padding: 12px;
  border-radius: 14px;
  background: rgba(53, 43, 31, 0.56);
}

.meta-item span {
  display: block;
  color: var(--parchment-400);
  font-size: 12px;
}

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

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

.detail-text {
  margin-top: 28px;
  padding: 30px;
}

.detail-text h2,
.related-shell h2 {
  margin: 0 0 14px;
  color: var(--parchment-100);
  font-size: 26px;
}

.detail-text p {
  margin: 0 0 22px;
  color: var(--parchment-200);
}

.related-shell {
  margin-top: 28px;
  padding: 30px;
}

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

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

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

.site-footer p {
  color: var(--parchment-300);
}

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

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a:hover {
  color: var(--moss-300);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(47, 90, 51, 0.56);
  color: var(--parchment-400);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--moss-500);
}

@media (max-width: 1080px) {
  .nav-links {
    gap: 14px;
    font-size: 14px;
  }

  .hero-side-list {
    display: none;
  }

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

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

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

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 20px 20px;
    border-bottom: 1px solid rgba(47, 90, 51, 0.72);
    background: rgba(21, 40, 25, 0.98);
  }

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

  .nav-links a {
    width: 100%;
    padding: 11px 0;
  }

  .hero-slider {
    min-height: 560px;
    border-radius: 24px;
  }

  .hero-content {
    width: auto;
    padding: 62px 34px 0;
  }

  .hero-dots {
    left: 34px;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
    font-size: 30px;
  }

  .movie-grid,
  .ranking-list,
  .detail-hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 540px) {
  .nav-wrap,
  .hero-slider,
  .main,
  .content-section,
  .page-hero,
  .detail-page,
  .category-shell,
  .ranking-shell {
    width: min(100% - 20px, 1180px);
  }

  .brand-copy small {
    display: none;
  }

  .hero-slider {
    min-height: 520px;
    margin-top: 16px;
  }

  .hero-content {
    padding: 52px 22px 0;
  }

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

  .hero-dots {
    left: 22px;
    bottom: 24px;
  }

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

  .category-block,
  .detail-info,
  .detail-text,
  .related-shell {
    padding: 20px;
    border-radius: 22px;
  }

  .ranking-row {
    grid-template-columns: 44px 86px 1fr;
    gap: 10px;
  }
}
