:root {
  --primary-900: #5a3629;
  --primary-800: #6f4030;
  --primary-700: #854c34;
  --primary-600: #a05f3d;
  --primary-100: #f4e8d9;
  --primary-50: #faf5f0;
  --secondary-900: #223426;
  --secondary-800: #293f2e;
  --secondary-700: #2f4d35;
  --secondary-100: #dbe8db;
  --secondary-50: #f0f5f0;
  --accent-500: #ea7e20;
  --accent-50: #fef8ee;
  --text-main: #1f2937;
  --text-soft: #6b7280;
  --white: #ffffff;
  --line: #e5e7eb;
  --shadow: 0 20px 45px rgba(34, 52, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text-main);
  background: linear-gradient(180deg, var(--primary-50), #ffffff 28%, var(--secondary-50));
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--primary-800);
  white-space: nowrap;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-700), var(--secondary-700));
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(90, 54, 41, 0.22);
}

.brand-name {
  font-size: 18px;
  letter-spacing: 0.03em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  color: #374151;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-700);
  background: var(--primary-50);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.nav-search input {
  width: 210px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 10px;
  font-size: 14px;
}

.nav-search button,
.btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button {
  padding: 8px 14px;
  color: var(--white);
  background: var(--primary-700);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--primary-800);
  background: var(--white);
}

.mobile-nav {
  display: none;
  padding: 10px 16px 18px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.hero-slider {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-900), var(--secondary-900));
}

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

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

.hero-backdrop,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(34, 52, 38, 0.96), rgba(90, 54, 41, 0.82), rgba(34, 52, 38, 0.44)),
    var(--hero-image) center / cover no-repeat;
  transform: scale(1.04);
}

.hero-backdrop::after,
.detail-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(234, 126, 32, 0.22), transparent 28%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: 610px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 56px;
  padding: 80px 0 110px;
}

.hero-copy {
  max-width: 720px;
  color: var(--white);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin-bottom: 18px;
  color: #fde8d0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.hero-copy h1,
.compact-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 760px;
  margin: 22px 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.9;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  padding: 5px 10px;
  color: var(--primary-700);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span,
.detail-tags span {
  color: #fff3e5;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
}

.btn.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--accent-500), var(--primary-600));
  box-shadow: 0 14px 30px rgba(234, 126, 32, 0.28);
}

.btn.soft {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn:hover,
.nav-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(90, 54, 41, 0.18);
}

.hero-poster {
  position: relative;
  display: block;
  padding: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
}

.hero-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 22px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  transform: translateX(-50%);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dot.active {
  width: 28px;
  border-radius: 999px;
  background: var(--white);
}

.hero-category-row {
  position: absolute;
  left: 50%;
  bottom: 92px;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  transform: translateX(-50%);
}

.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  color: var(--primary-800);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.category-pill.active,
.category-pill:hover {
  color: var(--white);
  background: var(--primary-700);
}

.content-section,
.rank-panel,
.filter-box,
.article-section {
  margin: 44px 0;
}

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

.section-heading h2,
.article-section h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -0.03em;
}

.section-heading p,
.article-section p,
.compact-hero p {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.text-link {
  color: var(--primary-700);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(34, 52, 38, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-100), var(--secondary-100));
}

.poster-wrap img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.04);
}

.poster-wrap figcaption {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 9px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.rank-no {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--accent-500);
  border-radius: 50%;
}

.movie-card-body {
  padding: 14px 14px 16px;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.movie-line {
  min-height: 44px;
  margin: 0 0 10px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  color: #4b5563;
  font-size: 12px;
}

.meta-line span {
  padding: 3px 7px;
  background: #f9fafb;
  border-radius: 999px;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rank-list a,
.rank-card a {
  display: grid;
  grid-template-columns: 36px 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(34, 52, 38, 0.06);
}

.rank-list img,
.rank-card img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.rank-index,
.rank-large {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-700), var(--accent-500));
  border-radius: 50%;
  font-weight: 900;
}

.rank-info,
.rank-detail {
  min-width: 0;
}

.rank-info strong,
.rank-detail strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info small,
.rank-detail small,
.rank-detail em {
  display: block;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.category-card {
  padding: 18px;
  background: linear-gradient(145deg, #ffffff, var(--primary-50));
  border: 1px solid var(--primary-100);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(90, 54, 41, 0.08);
}

.category-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--primary-700);
  font-size: 20px;
  font-weight: 850;
}

.category-card strong {
  display: block;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
}

.category-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  color: #374151;
}

.page-hero {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-900), var(--secondary-900));
}

.compact-hero {
  padding: 72px 0 52px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.filter-box {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(34, 52, 38, 0.07);
}

.filter-box input,
.filter-box select {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  background: #ffffff;
}

.filter-box input {
  flex: 1 1 280px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
}

.compact-card .poster-wrap img {
  height: 100%;
}

.compact-card .movie-line {
  min-height: auto;
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 40px 0;
}

.rank-card a {
  grid-template-columns: 44px 92px minmax(0, 1fr);
}

.rank-large {
  width: 42px;
  height: 42px;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: var(--white);
  background: var(--secondary-900);
}

.detail-wrap {
  position: relative;
  z-index: 1;
  padding: 38px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 38px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.detail-main {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
}

.detail-poster {
  margin: 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 26px;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.3);
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 19px;
}

.detail-one-line {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.detail-container {
  margin-top: 38px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  background: #000;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: var(--white);
  background: linear-gradient(135deg, rgba(34, 52, 38, 0.68), rgba(90, 54, 41, 0.58));
  border: 0;
  cursor: pointer;
  text-align: center;
}

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

.play-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  color: var(--primary-800);
  background: var(--white);
  border-radius: 50%;
  font-size: 30px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.article-section {
  padding: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(34, 52, 38, 0.07);
}

.article-section p {
  font-size: 17px;
  color: #374151;
}

.site-footer {
  margin-top: 70px;
  padding: 36px 0;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(135deg, var(--secondary-900), var(--primary-900));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  max-width: 560px;
  margin: 8px 0 0;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

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

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

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

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

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

  .menu-button {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 52px;
  }

  .hero-poster {
    max-width: 220px;
  }

  .hero-category-row {
    display: none;
  }

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

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

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

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

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

  .hero-slider,
  .hero-content {
    min-height: 680px;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .hero-controls {
    bottom: 18px;
  }

  .movie-grid,
  .small-grid,
  .rank-list,
  .rank-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .compact-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

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