:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --shadow: 0 20px 45px rgba(28, 25, 23, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--stone-50);
  color: var(--stone-900);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, 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: rgba(41, 37, 36, 0.96);
  color: var(--stone-50);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.logo {
  font-size: 21px;
}

.logo-mark {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  font-size: 13px;
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.35);
}

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

.nav-link {
  color: var(--stone-300);
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-400);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: var(--stone-700);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.header-search input,
.mobile-search input {
  width: 170px;
  border: 0;
  outline: 0;
  color: var(--stone-100);
  background: transparent;
  padding: 10px 4px 10px 16px;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: var(--stone-400);
}

.header-search button,
.mobile-search button {
  border: 0;
  background: var(--amber-600);
  color: #fff;
  padding: 10px 15px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover {
  background: var(--amber-700);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--stone-100);
  font-size: 26px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu-inner {
  display: grid;
  gap: 14px;
  padding: 18px 0 22px;
}

.mobile-search input {
  width: 100%;
  flex: 1;
}

.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--stone-800), var(--stone-700) 48%, #78350f);
}

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

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

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

.hero-shade,
.detail-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 34%, rgba(245, 158, 11, 0.32), transparent 28%),
    linear-gradient(90deg, rgba(28, 25, 23, 0.94), rgba(28, 25, 23, 0.72) 48%, rgba(28, 25, 23, 0.28));
}

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

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

.eyebrow,
.section-heading span,
.page-hero span {
  display: inline-block;
  color: var(--amber-400);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 36px);
}

.hero p {
  margin: 0 0 22px;
  color: var(--stone-200);
  font-size: 19px;
}

.hero-tags,
.detail-tags,
.tag-row,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.detail-tags a,
.tag-row span,
.quick-links a {
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-100);
  border: 1px solid rgba(245, 158, 11, 0.28);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

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

.primary-button,
.secondary-button,
.text-button,
.inline-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  color: #fff;
  background: var(--amber-600);
  padding: 11px 22px;
  box-shadow: 0 14px 26px rgba(217, 119, 6, 0.32);
}

.primary-button:hover {
  background: var(--amber-700);
  transform: translateY(-2px);
}

.secondary-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 10px 20px;
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.text-button {
  color: var(--amber-400);
}

.text-button:hover {
  color: var(--amber-100);
}

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

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

.hero-dot.active {
  width: 30px;
  background: var(--amber-400);
}

.quick-search-section {
  margin-top: -38px;
  position: relative;
  z-index: 3;
}

.quick-search-card,
.content-card,
.category-panel,
.movie-card,
.rank-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quick-search-card {
  padding: 26px;
}

.quick-search-card h2 {
  margin: 0 0 16px;
}

.large-search {
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid var(--stone-200);
  background: var(--stone-50);
}

.large-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 16px 20px;
}

.large-search button {
  border: 0;
  color: #fff;
  background: var(--amber-600);
  padding: 0 28px;
  cursor: pointer;
}

.quick-links {
  margin-top: 18px;
}

.quick-links a {
  color: var(--amber-800);
  background: var(--amber-50);
  border-color: var(--amber-100);
}

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
}

.section-heading a {
  color: var(--amber-700);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(28, 25, 23, 0.18);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--stone-300);
  overflow: hidden;
}

.compact-card .poster-frame {
  aspect-ratio: 3 / 4;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 34px;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  background: rgba(0, 0, 0, 0.34);
}

.poster-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.card-content {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px;
  color: var(--stone-900);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.card-title:hover {
  color: var(--amber-700);
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--stone-500);
  font-size: 12px;
}

.card-meta span {
  border-radius: 999px;
  background: var(--stone-100);
  padding: 4px 8px;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  color: var(--stone-700);
  background: var(--stone-100);
  border-color: var(--stone-200);
  padding: 4px 8px;
  font-size: 12px;
}

.dark-band {
  padding: 58px 0;
  color: #fff;
  background: var(--stone-900);
}

.light-heading h2 {
  color: #fff;
}

.light-heading a {
  color: var(--amber-400);
}

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

.rank-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  padding: 14px;
  color: var(--stone-900);
  box-shadow: none;
}

.rank-cover {
  position: relative;
  height: 112px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--stone-300);
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-cover span {
  position: absolute;
  top: 8px;
  left: 8px;
  color: #fff;
  background: var(--amber-600);
  border-radius: 999px;
  padding: 4px 8px;
  font-weight: 900;
  font-size: 12px;
}

.rank-body a {
  display: block;
  margin-bottom: 7px;
  font-size: 18px;
  font-weight: 900;
}

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

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

.category-tile,
.category-panel {
  overflow: hidden;
}

.category-tile {
  display: block;
  padding: 16px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.category-tile:hover,
.category-panel:hover {
  transform: translateY(-3px);
}

.category-thumbs,
.category-panel-cover {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.category-thumbs img,
.category-panel-cover img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--stone-300);
}

.category-tile strong,
.category-panel h2 {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.category-tile span,
.category-panel p {
  color: var(--stone-600);
  font-size: 14px;
}

.page-hero {
  position: relative;
  color: #fff;
  background: linear-gradient(135deg, var(--stone-800), var(--stone-700) 52%, #78350f);
}

.small-hero {
  padding: 72px 0;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--stone-200);
  font-size: 18px;
}

.page-filter {
  max-width: 660px;
  margin-top: 28px;
}

.page-search {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  outline: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  padding: 15px 20px;
}

.page-search::placeholder {
  color: var(--stone-300);
}

.filter-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-button {
  border: 0;
  border-radius: 999px;
  background: var(--stone-100);
  color: var(--stone-700);
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-button.active,
.filter-button:hover {
  background: var(--amber-600);
  color: #fff;
}

.category-panel {
  transition: transform 0.25s ease;
}

.category-panel-cover {
  margin: 0;
  padding: 16px 16px 0;
}

.category-panel-body {
  padding: 0 20px 22px;
}

.category-panel h2 {
  margin: 14px 0 8px;
}

.category-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.category-mini-links a {
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 700;
}

.inline-more {
  color: var(--amber-700);
  min-height: auto;
}

.feature-rank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-rank a {
  position: relative;
  display: block;
  height: 380px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--stone-300);
  box-shadow: var(--shadow);
}

.feature-rank img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.feature-rank:hover img {
  transform: scale(1.08);
}

.feature-rank a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.12));
}

.feature-rank span {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  background: var(--amber-600);
  padding: 7px 12px;
  font-weight: 900;
}

.feature-rank div {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  color: #fff;
}

.feature-rank strong {
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
}

.feature-rank p {
  margin: 0;
  color: var(--stone-300);
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--stone-900);
}

.detail-hero-content {
  position: relative;
  padding: 58px 0 54px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
  color: var(--stone-300);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--amber-400);
}

.detail-title-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
  align-items: end;
}

.detail-poster {
  width: 210px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38);
  background: var(--stone-300);
}

.detail-title-row h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.detail-title-row p {
  max-width: 820px;
  margin: 0 0 18px;
  color: var(--stone-200);
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 16px;
}

.detail-meta span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 48px 0 12px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--amber-600);
  color: #fff;
  font-size: 32px;
  box-shadow: 0 18px 40px rgba(217, 119, 6, 0.35);
}

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

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

.content-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: var(--stone-700);
  font-size: 16px;
}

.side-card {
  margin-top: 0;
  position: sticky;
  top: 92px;
}

.side-card dl {
  margin: 0;
}

.side-card dt {
  color: var(--stone-500);
  font-size: 13px;
  font-weight: 800;
}

.side-card dd {
  margin: 4px 0 16px;
  color: var(--stone-900);
  font-weight: 700;
}

.no-results {
  text-align: center;
  color: var(--stone-500);
  padding: 48px 0;
}

.site-footer {
  color: var(--stone-300);
  background: var(--stone-900);
  margin-top: 30px;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  color: #fff;
  font-size: 20px;
  margin-bottom: 14px;
}

.site-footer p {
  max-width: 520px;
  color: var(--stone-400);
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--stone-50);
  font-size: 18px;
}

.site-footer a {
  display: block;
  margin-bottom: 10px;
  color: var(--stone-300);
}

.site-footer a:hover {
  color: var(--amber-400);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--stone-800);
  color: var(--stone-500);
  text-align: center;
  font-size: 14px;
}

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

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

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

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

  .side-card {
    position: static;
  }
}

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

  .mobile-menu-button {
    display: block;
  }

  .header-inner {
    height: 64px;
  }

  .hero {
    height: 610px;
  }

  .hero-content {
    align-items: end;
    padding-bottom: 82px;
  }

  .hero-shade {
    background: linear-gradient(to top, rgba(28, 25, 23, 0.98), rgba(28, 25, 23, 0.65), rgba(28, 25, 23, 0.2));
  }

  .large-search {
    border-radius: 18px;
    flex-direction: column;
  }

  .large-search input,
  .large-search button {
    width: 100%;
    padding: 14px 18px;
  }

  .movie-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .category-grid,
  .category-panel-grid,
  .feature-rank-grid {
    grid-template-columns: 1fr;
  }

  .detail-title-row {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
  }

  .detail-poster {
    width: 120px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

  .logo {
    font-size: 18px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p,
  .page-hero p,
  .detail-title-row p {
    font-size: 16px;
  }

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

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

  .rank-card {
    grid-template-columns: 120px 1fr;
  }

  .rank-cover {
    height: 96px;
  }

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

  .detail-poster {
    width: 160px;
  }
}
