* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fafaf9;
  color: #1c1917;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #292524;
  color: #fafaf9;
  box-shadow: 0 12px 28px rgba(28, 25, 23, 0.24);
}

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

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

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #d97706;
  color: #fff7ed;
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}

.nav-link {
  color: #d6d3d1;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #f59e0b;
}

.search-box,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #44403c;
}

.search-box input,
.mobile-search input {
  width: 180px;
  border: 0;
  outline: 0;
  color: #fafaf9;
  background: transparent;
  padding: 6px 10px;
}

.search-box input::placeholder,
.mobile-search input::placeholder {
  color: #a8a29e;
}

.search-box button,
.mobile-search button,
.primary-button,
.ghost-button,
.section-link,
.filter-buttons button,
.player-controls button {
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.search-box button,
.mobile-search button {
  border-radius: 999px;
  background: #d97706;
  color: #fff7ed;
  padding: 7px 14px;
  font-weight: 700;
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: #fafaf9;
  font-size: 26px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid #44403c;
  padding: 14px 16px 20px;
}

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

.mobile-nav {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.mobile-nav a {
  padding: 10px 0;
  color: #e7e5e4;
}

.hero {
  position: relative;
  height: 540px;
  overflow: hidden;
  background: linear-gradient(135deg, #292524, #44403c 45%, #78350f);
}

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

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 35%, rgba(245, 158, 11, 0.32), transparent 36%),
    linear-gradient(90deg, rgba(28, 25, 23, 0.95), rgba(28, 25, 23, 0.76) 48%, rgba(28, 25, 23, 0.34));
}

.hero-content {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.hero-copy {
  max-width: 720px;
  color: #fff7ed;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.18);
  color: #fbbf24;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h2 {
  margin: 0 0 18px;
  color: #fde68a;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
}

.hero p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #e7e5e4;
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.card-tags span,
.tag-cloud a {
  border-radius: 999px;
  background: rgba(231, 229, 228, 0.14);
  color: #f5f5f4;
  padding: 5px 10px;
  font-size: 13px;
}

.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;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
}

.primary-button {
  background: #d97706;
  color: #fff7ed;
  box-shadow: 0 14px 32px rgba(217, 119, 6, 0.35);
}

.primary-button:hover,
.search-box button:hover,
.mobile-search button:hover,
.player-controls button:hover {
  background: #b45309;
  transform: translateY(-1px);
}

.ghost-button {
  border: 1px solid rgba(245, 245, 244, 0.28);
  color: #fafaf9;
  background: rgba(68, 64, 60, 0.38);
  backdrop-filter: blur(10px);
}

.ghost-button:hover {
  border-color: rgba(251, 191, 36, 0.72);
  color: #fbbf24;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: #f59e0b;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.category-strip a {
  border-radius: 999px;
  background: #fff;
  color: #44403c;
  padding: 10px 16px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(28, 25, 23, 0.08);
}

.category-strip a:hover {
  color: #b45309;
}

.section {
  padding: 56px 0;
}

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

.section-heading h2,
.rank-panel h2,
.content-card h2,
.related-section h2 {
  margin: 0;
  color: #1c1917;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.section-heading p,
.rank-panel p,
.content-card p,
.related-section p {
  margin: 8px 0 0;
  color: #78716c;
}

.section-link {
  border-radius: 999px;
  color: #b45309;
  background: #fffbeb;
  padding: 9px 14px;
  font-weight: 800;
}

.section-link:hover {
  color: #92400e;
  background: #fef3c7;
}

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

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

.movie-card-link {
  display: block;
  overflow: hidden;
  height: 100%;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(28, 25, 23, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(28, 25, 23, 0.16);
}

.card-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #d6d3d1;
}

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

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

.year-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 8px;
  background: rgba(28, 25, 23, 0.76);
  color: #fafaf9;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.88);
  color: #fff7ed;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.84);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card-link:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #1c1917;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #78716c;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  color: #57534e;
  font-size: 13px;
}

.card-tags span {
  background: #f5f5f4;
  color: #57534e;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 56px 0;
}

.split-main,
.rank-panel,
.filter-panel,
.detail-card,
.content-card,
.related-section {
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(28, 25, 23, 0.08);
}

.split-main,
.rank-panel {
  padding: 24px;
}

.update-list,
.rank-list {
  display: grid;
  gap: 12px;
}

.compact-card {
  display: grid;
  grid-template-columns: auto 88px 1fr;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  background: #fafaf9;
  padding: 10px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  background: #fef3c7;
  transform: translateX(2px);
}

.compact-card img {
  width: 88px;
  height: 56px;
  border-radius: 9px;
  object-fit: cover;
}

.compact-card strong {
  display: block;
  overflow: hidden;
  color: #1c1917;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compact-card em {
  display: block;
  color: #78716c;
  font-size: 13px;
  font-style: normal;
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #d97706;
  color: #fff7ed;
  font-weight: 900;
}

.page-hero {
  background: linear-gradient(135deg, #292524, #44403c 52%, #78350f);
  color: #fff7ed;
}

.compact-hero {
  padding: 74px 0;
}

.compact-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
}

.compact-hero p {
  max-width: 760px;
  margin: 0;
  color: #e7e5e4;
  font-size: 18px;
}

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

.category-card a {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 240px;
  border-radius: 18px;
  background: #292524;
  color: #fff7ed;
  box-shadow: 0 14px 32px rgba(28, 25, 23, 0.14);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transition: transform 0.3s ease;
}

.category-card a:hover img {
  transform: scale(1.08);
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 1;
  display: block;
}

.category-card span {
  padding: 110px 20px 8px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  padding: 0 20px 20px;
  color: #e7e5e4;
}

.filter-panel {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 26px;
  padding: 22px;
}

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

.filter-panel label,
.filter-panel span {
  display: block;
  margin-bottom: 10px;
  color: #44403c;
  font-weight: 800;
}

.filter-panel input {
  width: 100%;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  outline: 0;
  padding: 12px 14px;
  color: #292524;
  background: #fafaf9;
}

.filter-panel input:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

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

.filter-buttons button {
  border-radius: 999px;
  background: #f5f5f4;
  color: #57534e;
  padding: 8px 13px;
}

.filter-buttons button.active,
.filter-buttons button:hover {
  background: #d97706;
  color: #fff7ed;
}

.empty-message {
  display: none;
  margin: 32px 0 0;
  border-radius: 14px;
  background: #fff;
  color: #78716c;
  padding: 24px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(28, 25, 23, 0.08);
}

.empty-message.is-visible {
  display: block;
}

.detail-hero {
  padding: 20px 0;
  background: #292524;
  color: #d6d3d1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fbbf24;
}

.detail-layout {
  padding: 30px 0 58px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 18px 40px rgba(28, 25, 23, 0.24);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.52));
  cursor: pointer;
}

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

.overlay-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.94);
  color: #fff7ed;
  font-size: 34px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 10px;
  padding: 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.player-controls button {
  pointer-events: auto;
  border-radius: 999px;
  background: rgba(245, 245, 244, 0.16);
  color: #fafaf9;
  padding: 9px 14px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.detail-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 26px;
  margin-top: 26px;
  padding: 24px;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  object-fit: cover;
  background: #d6d3d1;
}

.detail-info h1 {
  margin: 0 0 14px;
  color: #1c1917;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
}

.lead {
  margin: 0 0 18px;
  color: #57534e;
  font-size: 18px;
  font-weight: 700;
}

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

.detail-meta span {
  border-radius: 999px;
  background: #f5f5f4;
  color: #44403c;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 800;
}

.tag-cloud a {
  background: #fffbeb;
  color: #92400e;
}

.content-card {
  margin-top: 22px;
  padding: 24px;
}

.content-card p {
  color: #44403c;
  font-size: 17px;
}

.related-section {
  margin-top: 22px;
  padding: 24px;
}

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

.site-footer {
  background: #1c1917;
  color: #d6d3d1;
  padding: 44px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #fafaf9;
}

.site-footer p {
  margin: 10px 0 0;
  color: #a8a29e;
}

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

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

.site-footer a:hover {
  color: #fbbf24;
}

.footer-bottom {
  margin-top: 34px;
  border-top: 1px solid #292524;
  color: #78716c;
  padding: 18px 0;
  text-align: center;
}

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

  .menu-button {
    display: inline-flex;
  }

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

  .split-section,
  .filter-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero {
    height: 620px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(28, 25, 23, 0.86), rgba(28, 25, 23, 0.82));
  }

  .hero-actions,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

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

  .compact-card {
    grid-template-columns: auto 74px 1fr;
  }

  .compact-card img {
    width: 74px;
    height: 50px;
  }

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

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

  .player-controls {
    padding: 12px;
  }

  .player-controls button {
    padding: 8px 10px;
    font-size: 13px;
  }
}
