:root {
  --color-amber: #d97706;
  --color-amber-dark: #92400e;
  --color-orange: #ea580c;
  --color-ink: #1f2937;
  --color-muted: #6b7280;
  --color-line: #e5e7eb;
  --color-soft: #f9fafb;
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
  --shadow-strong: 0 25px 60px rgba(15, 23, 42, 0.22);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--color-ink);
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
}

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

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

img.is-missing {
  opacity: 0;
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, var(--color-amber-dark), var(--color-orange));
  box-shadow: 0 8px 24px rgba(146, 64, 14, 0.28);
}

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

.site-logo,
.footer-logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

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

.nav-link {
  opacity: 0.9;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fef3c7;
  opacity: 1;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #111827;
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.58) 52%, rgba(0, 0, 0, 0.22) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0 0 88px;
}

.hero-copy {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: #fbbf24;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
}

.hero-desc {
  max-width: 760px;
  margin: 22px 0 0;
  color: #e5e7eb;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.7;
}

.hero-meta,
.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta {
  margin-top: 24px;
  color: #fff;
}

.hero-meta span:first-child,
.movie-score,
.rank-index {
  color: #fff;
  background: var(--color-amber);
}

.hero-meta span,
.movie-meta span,
.detail-meta span {
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-tags,
.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.movie-tags span,
.detail-tags span,
.chip-cloud a {
  border-radius: 999px;
  padding: 6px 10px;
  color: #92400e;
  background: #fef3c7;
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary {
  color: #fff;
  background: var(--color-amber);
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.32);
}

.btn-primary:hover {
  background: #b45309;
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.full-btn {
  width: 100%;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
  transform: translateY(-2px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.quick-search {
  position: relative;
  z-index: 6;
  margin-top: -34px;
}

.quick-search-panel,
.white-section,
.highlight-section,
.soft-section,
.side-card {
  border: 1px solid rgba(229, 231, 235, 0.88);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}

.quick-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.search-form {
  display: flex;
  gap: 12px;
}

.search-form input,
.local-tools input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 0 16px;
  outline: none;
  background: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus,
.local-tools input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.search-form button {
  min-width: 92px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--color-amber);
  font-weight: 800;
  cursor: pointer;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.quick-links a,
.category-overview-card span,
.rank-action {
  border-radius: 12px;
  padding: 10px 14px;
  color: #92400e;
  background: #fef3c7;
  font-size: 14px;
  font-weight: 800;
}

.page-stack {
  display: grid;
  gap: 64px;
  padding: 64px 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
}

.section-title p {
  margin: 6px 0 0;
  color: var(--color-muted);
}

.section-icon {
  min-width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--color-amber);
  font-weight: 900;
}

.movie-grid {
  display: grid;
  gap: 18px;
}

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

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

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

.mt-grid {
  margin-top: 20px;
}

.movie-card,
.movie-card-horizontal,
.rank-row,
.category-card,
.category-overview-card {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover,
.movie-card-horizontal:hover,
.rank-row:hover,
.category-card:hover,
.category-overview-card:hover {
  border-color: #fbbf24;
  box-shadow: var(--shadow-strong);
  transform: translateY(-4px);
}

.movie-cover,
.category-card,
.horizontal-cover,
.rank-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.movie-cover {
  aspect-ratio: 16 / 10;
}

.movie-card-compact .movie-cover {
  aspect-ratio: 3 / 4;
}

.movie-card-featured .movie-cover {
  aspect-ratio: 16 / 9;
}

.movie-cover img,
.category-card img,
.horizontal-cover img,
.rank-cover img,
.side-card img,
.category-cover-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .movie-cover img,
.category-card:hover img,
.movie-card-horizontal:hover img,
.rank-row:hover img {
  transform: scale(1.08);
}

.movie-score {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

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

.movie-card h3,
.movie-card-horizontal h3,
.rank-row h3,
.side-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card h3 a:hover,
.movie-card-horizontal h3 a:hover,
.rank-row h3 a:hover {
  color: var(--color-amber);
}

.movie-card p,
.movie-card-horizontal p,
.rank-row p,
.category-card p,
.category-overview-card p,
.side-card p {
  color: var(--color-muted);
  line-height: 1.65;
}

.movie-card p {
  display: -webkit-box;
  min-height: 52px;
  margin: 10px 0 14px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
}

.movie-meta {
  color: var(--color-muted);
  font-size: 13px;
}

.movie-meta span {
  background: #f3f4f6;
}

.movie-tags {
  margin-top: 12px;
}

.highlight-section {
  padding: 34px;
  background: linear-gradient(90deg, #fffbeb, #fff7ed);
}

.soft-section {
  padding: 34px;
  background: linear-gradient(135deg, #faf5ff, #fdf2f8);
}

.white-section {
  padding: 34px;
  background: #fff;
}

.region-layout {
  display: grid;
  gap: 28px;
}

.region-block h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 22px;
}

.region-block h3 span {
  width: 6px;
  height: 28px;
  border-radius: 999px;
  background: var(--color-amber);
}

.category-grid,
.category-overview-grid {
  display: grid;
  gap: 18px;
}

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

.category-card {
  min-height: 188px;
  padding: 18px;
  color: #fff;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.28));
}

.category-card img {
  position: absolute;
  inset: 0;
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 2;
}

.category-card span {
  display: inline-flex;
  margin-top: 78px;
  color: #fff;
  background: var(--color-amber);
}

.category-card p {
  margin: 12px 0 0;
  color: #e5e7eb;
  font-size: 14px;
}

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

.movie-card-horizontal,
.rank-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
}

.horizontal-cover,
.rank-cover {
  aspect-ratio: 4 / 5;
  border-radius: 14px;
}

.center-actions {
  margin-top: 28px;
  text-align: center;
}

.sub-page .page-stack {
  padding-top: 42px;
}

.page-hero {
  color: #fff;
  background: linear-gradient(135deg, #78350f, #ea580c);
}

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

.small-hero h1 {
  margin-bottom: 16px;
}

.small-hero p:not(.eyebrow) {
  max-width: 760px;
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.7;
}

.hero-inline-search,
.hero-local-tools {
  max-width: 720px;
  margin-top: 28px;
}

.local-tools {
  margin-bottom: 24px;
}

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

.category-overview-card {
  padding: 24px;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  height: 150px;
  margin-bottom: 18px;
}

.category-cover-stack img {
  border-radius: 14px;
}

.category-overview-card h2 {
  margin: 0;
  font-size: 26px;
}

.category-overview-card span {
  display: inline-flex;
  margin-top: 10px;
}

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

.rank-row {
  grid-template-columns: 54px 110px minmax(0, 1fr) auto;
  align-items: center;
}

.rank-index {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  font-weight: 900;
}

.rank-action {
  align-self: center;
}

.small-rank-list .rank-row:nth-child(n + 6) {
  display: none;
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.player-section {
  padding: 28px 0;
  background: #000;
}

.player-container {
  width: min(1120px, calc(100% - 32px));
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

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

.player-poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: #000;
}

.player-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.22));
}

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

.play-badge {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--color-amber);
  font-size: 34px;
  box-shadow: 0 20px 50px rgba(217, 119, 6, 0.42);
}

.player-shell.is-playing .player-poster {
  display: none;
}

.player-error {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.82);
  font-size: 18px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--color-muted);
  font-size: 14px;
}

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

.detail-main h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  font-weight: 900;
}

.detail-meta {
  margin-bottom: 22px;
  color: var(--color-muted);
}

.detail-meta span:first-child {
  color: #fff;
  background: var(--color-amber);
}

.detail-one-line {
  padding: 20px;
  border-radius: 18px;
  color: #78350f;
  background: #fffbeb;
  font-size: 18px;
  line-height: 1.75;
}

.detail-tags {
  margin: 22px 0;
}

.detail-main section {
  margin-top: 30px;
}

.detail-main h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.detail-main p {
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

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

.info-list div {
  padding: 16px;
  border-radius: 16px;
  background: #f9fafb;
}

.info-list dt {
  color: var(--color-muted);
  font-size: 13px;
}

.info-list dd {
  margin: 6px 0 0;
  font-weight: 800;
}

.side-card {
  position: sticky;
  top: 96px;
  padding: 18px;
  background: #fff;
}

.side-card img {
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  background: #111827;
}

.side-card h2 {
  margin-top: 16px;
}

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

.detail-pager a {
  padding: 14px;
  border-radius: 14px;
  color: #92400e;
  background: #fef3c7;
  font-weight: 800;
}

.related-section {
  margin-bottom: 60px;
}

.empty-state {
  margin: 28px 0 0;
  padding: 18px;
  border-radius: 16px;
  color: var(--color-muted);
  background: #f9fafb;
  text-align: center;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(90deg, #1f2937, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 42px 0;
}

.footer-logo {
  display: inline-block;
  color: #fff;
  margin-bottom: 12px;
}

.footer-grid p {
  max-width: 620px;
  margin: 0;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: center;
  justify-content: flex-end;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px;
  text-align: center;
  color: #9ca3af;
}

[hidden] {
  display: none !important;
}

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

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

  .side-card {
    position: static;
  }
}

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

  .site-logo {
    font-size: 20px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(120, 53, 15, 0.96);
    box-shadow: var(--shadow-strong);
  }

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

  .nav-link {
    padding: 14px 18px;
  }

  .hero {
    min-height: 660px;
  }

  .hero-content {
    padding-bottom: 96px;
  }

  .hero-arrow {
    top: auto;
    bottom: 28px;
    width: 44px;
    height: 44px;
    font-size: 28px;
  }

  .hero-prev {
    left: 20px;
  }

  .hero-next {
    right: 20px;
  }

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

  .search-form {
    flex-direction: column;
  }

  .quick-links {
    justify-content: flex-start;
  }

  .compact-grid,
  .standard-grid,
  .featured-grid,
  .category-grid,
  .category-overview-grid,
  .horizontal-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .highlight-section,
  .soft-section,
  .white-section {
    padding: 22px;
  }

  .movie-card-horizontal,
  .rank-row {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .rank-row {
    gap: 12px;
  }

  .rank-index,
  .rank-action {
    display: none;
  }

  .footer-grid,
  .detail-pager,
  .info-list {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .compact-grid,
  .standard-grid,
  .featured-grid,
  .category-grid,
  .category-overview-grid,
  .horizontal-list {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero-meta span,
  .detail-meta span {
    padding: 5px 9px;
    font-size: 13px;
  }

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