
:root {
  --earth-900: #573729;
  --earth-800: #6a4130;
  --earth-700: #814e34;
  --earth-600: #9b5f3c;
  --bronze-600: #8f6d42;
  --bronze-500: #a68558;
  --bronze-300: #d8c59e;
  --bronze-100: #f1ede3;
  --stone-900: #2b2925;
  --stone-700: #5f5a52;
  --stone-600: #776f65;
  --stone-200: #ddd9cc;
  --stone-100: #efede6;
  --stone-50: #f8f7f4;
  --white: #ffffff;
  --shadow-soft: 0 20px 45px rgba(61, 42, 29, 0.14);
  --shadow-card: 0 14px 34px rgba(68, 49, 36, 0.13);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--stone-50);
  color: var(--stone-900);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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: 100;
  background: linear-gradient(90deg, var(--earth-900), var(--earth-800));
  color: var(--white);
  box-shadow: 0 12px 30px rgba(42, 25, 15, 0.22);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--bronze-300), var(--bronze-500));
  color: var(--earth-900);
  font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link {
  padding: 10px 13px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 650;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.11);
  color: var(--bronze-300);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 2px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-panel.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-weight: 650;
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: var(--earth-900);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.65);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(216, 197, 158, 0.18), transparent 32%),
    linear-gradient(90deg, rgba(87, 55, 41, 0.96), rgba(106, 65, 48, 0.82) 42%, rgba(0, 0, 0, 0.24)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 46%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  align-items: center;
  gap: 54px;
  color: var(--white);
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bronze-300);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.sub-hero h1,
.detail-copy h1 {
  margin: 16px 0 18px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 700px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 22px);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bronze-100);
  color: var(--earth-800);
  font-size: 13px;
  font-weight: 750;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.14);
  color: var(--bronze-100);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.btn,
.jump-search button,
.panel-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary,
.jump-search button,
.panel-more {
  background: linear-gradient(135deg, var(--bronze-500), var(--bronze-600));
  color: var(--white);
  box-shadow: 0 16px 30px rgba(66, 40, 22, 0.22);
}

.btn.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn:hover,
.jump-search button:hover,
.panel-more:hover,
.text-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(66, 40, 22, 0.26);
}

.hero-poster {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.34);
  transform: rotate(1.5deg);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: var(--bronze-100);
  font-weight: 800;
  backdrop-filter: blur(10px);
}

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

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

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

.search-band,
.filter-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin-top: -42px;
  position: relative;
  z-index: 8;
  padding: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(221, 217, 204, 0.76);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.search-band h2,
.section-head h2,
.hot-panel h2,
.story-card h2,
.player-section h2,
.category-overview-card h2 {
  margin: 0;
  color: var(--earth-900);
  line-height: 1.18;
}

.search-band p,
.sub-hero p,
.category-overview-card p,
.story-card p,
.detail-copy .lead {
  color: var(--stone-600);
}

.jump-search {
  display: flex;
  min-width: min(460px, 100%);
  gap: 10px;
}

.jump-search input,
.filter-box input,
.filter-box select {
  min-height: 48px;
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  padding: 0 14px;
  background: var(--white);
  color: var(--stone-900);
  outline: none;
}

.jump-search input {
  flex: 1;
}

.jump-search input:focus,
.filter-box input:focus,
.filter-box select:focus {
  border-color: var(--bronze-500);
  box-shadow: 0 0 0 4px rgba(166, 133, 88, 0.14);
}

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

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

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-head a,
.text-link {
  color: var(--earth-700);
  font-weight: 800;
}

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

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

.movie-card {
  background: var(--white);
  border: 1px solid rgba(221, 217, 204, 0.82);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(61, 42, 29, 0.19);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--earth-800);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 46%);
}

.play-chip,
.rank-num {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 850;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--earth-800);
  font-size: 12px;
}

.rank-num {
  top: 12px;
  left: 12px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bronze-300), var(--bronze-500));
  color: var(--earth-900);
}

.card-body {
  padding: 16px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--bronze-600);
  font-size: 13px;
  font-weight: 800;
}

.card-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
}

.card-meta span:not(:last-child)::after,
.detail-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: var(--stone-200);
}

.card-body h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.32;
}

.card-body h2 a:hover {
  color: var(--earth-700);
}

.card-body p {
  display: -webkit-box;
  min-height: 52px;
  margin: 0 0 14px;
  color: var(--stone-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.large-card .card-body h2 {
  font-size: 24px;
}

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

.hot-panel {
  position: sticky;
  top: 98px;
  padding: 24px;
  background: linear-gradient(180deg, var(--earth-900), var(--earth-800));
  color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.panel-head span {
  color: var(--bronze-300);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hot-panel h2 {
  color: var(--white);
  margin: 4px 0 18px;
}

.rank-line {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rank-line span {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--bronze-300);
  font-weight: 900;
}

.rank-line strong {
  line-height: 1.3;
}

.rank-line em {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-style: normal;
}

.panel-more {
  width: 100%;
  margin-top: 18px;
}

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

.category-tile {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.tile-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.tile-images img {
  width: 100%;
  aspect-ratio: 1 / 1.25;
  object-fit: cover;
  border-radius: 10px;
}

.category-tile strong {
  color: var(--earth-900);
  font-size: 20px;
}

.category-tile small {
  color: var(--stone-600);
}

.sub-hero {
  padding: 72px 0 34px;
}

.sub-hero h1 {
  color: var(--earth-900);
}

.sub-hero p {
  max-width: 760px;
  font-size: 18px;
}

.filter-box {
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  margin-top: 0;
}

.wide-filter {
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--stone-600);
  text-align: center;
}

.empty-state.show {
  display: block;
}

.is-hidden {
  display: none !important;
}

.category-overview {
  display: grid;
  gap: 22px;
  padding-bottom: 28px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-card);
}

.overview-copy span {
  color: var(--bronze-600);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.mini-card {
  display: grid;
  gap: 8px;
}

.mini-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

.mini-card b,
.mini-card small {
  display: block;
}

.mini-card b {
  color: var(--earth-900);
  line-height: 1.32;
}

.mini-card small {
  color: var(--stone-600);
  font-size: 12px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-card);
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.rank-table th,
.rank-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--stone-200);
}

.rank-table th {
  background: var(--bronze-100);
  color: var(--earth-900);
}

.rank-table td:first-child {
  color: var(--bronze-600);
  font-weight: 900;
}

.rank-table a {
  color: var(--earth-800);
  font-weight: 800;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 36px 0 62px;
  background: var(--earth-900);
  color: var(--white);
}

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

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

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(87, 55, 41, 0.96), rgba(87, 55, 41, 0.84), rgba(0, 0, 0, 0.34));
}

.detail-top {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb a {
  color: var(--bronze-300);
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.38);
}

.detail-copy .lead {
  max-width: 800px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.detail-copy .section-kicker,
.detail-copy .detail-meta {
  color: var(--bronze-300);
}

.detail-tags {
  margin: 20px 0 28px;
}

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

.player-section h2 {
  margin-bottom: 18px;
  font-size: clamp(26px, 4vw, 38px);
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #080706;
  box-shadow: 0 28px 62px rgba(40, 24, 15, 0.28);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.2));
  cursor: pointer;
}

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

.play-button {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bronze-300), var(--bronze-500));
  color: var(--earth-900);
  font-size: 30px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.player-overlay strong {
  font-size: 22px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-top: 32px;
}

.story-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-card);
}

.story-card p {
  margin-bottom: 0;
}

.site-footer {
  margin-top: 78px;
  padding: 48px 0 0;
  background: linear-gradient(180deg, var(--earth-900), #3b261d);
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--bronze-300);
  font-size: 20px;
}

.site-footer p {
  max-width: 440px;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-bottom {
  margin-top: 36px;
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

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

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

  .hero-inner {
    grid-template-columns: 1fr 290px;
  }

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

  .hot-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero,
  .hero-inner {
    min-height: 760px;
  }

  .hero-inner,
  .detail-grid,
  .category-overview-card,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    width: min(320px, 86vw);
    margin: 0 auto;
  }

  .search-band,
  .filter-box,
  .wide-filter {
    grid-template-columns: 1fr;
  }

  .jump-search {
    min-width: 0;
  }

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

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

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

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

  .brand {
    font-size: 20px;
  }

  .hero,
  .hero-inner {
    min-height: 720px;
  }

  .hero-actions,
  .jump-search {
    flex-direction: column;
  }

  .movie-grid,
  .featured-grid,
  .category-grid,
  .mini-list,
  .mobile-panel.open {
    grid-template-columns: 1fr;
  }

  .search-band {
    margin-top: -22px;
  }

  .sub-hero {
    padding-top: 48px;
  }
}
