:root {
  --bg: #f8fafc;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #d97706;
  --brand-dark: #b45309;
  --brand-light: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
  color: var(--ink);
  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%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, #d97706 0%, #f97316 100%);
  box-shadow: 0 12px 28px rgba(180, 83, 9, 0.25);
}

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

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

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

.mobile-nav .nav-link {
  display: block;
  padding: 10px 0;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.62) 42%, rgba(0, 0, 0, 0.14) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 86px;
}

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

.hero-copy h1 {
  margin: 14px 0 16px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.5);
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: clamp(16px, 2vw, 21px);
}

.hero-tags,
.tag-row,
.detail-meta,
.hero-meta,
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 12px;
  color: #92400e;
  background: #fffbeb;
  font-size: 13px;
  font-weight: 700;
}

.hero-meta span {
  color: #fef3c7;
  font-weight: 700;
}

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  padding: 12px 22px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, #f59e0b 0%, #f97316 100%);
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.32);
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

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

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

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

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

.search-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  margin-top: -38px;
  padding: 26px;
  position: relative;
  z-index: 6;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.search-copy h2 {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 900;
}

.search-copy p {
  margin: 0;
  color: var(--muted);
}

.search-box {
  display: grid;
  gap: 8px;
}

.search-box span {
  color: #92400e;
  font-weight: 800;
  font-size: 14px;
}

.search-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  background: #fff;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.page-section {
  padding: 58px 0;
}

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

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.heading-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #fff;
  background: var(--brand);
  font-weight: 900;
}

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

.section-heading p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
}

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

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

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

.movie-card a {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111827;
}

.movie-card.compact .poster-frame {
  aspect-ratio: 16 / 10;
}

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

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

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

.movie-body {
  padding: 16px;
}

.movie-body h3 {
  min-height: 48px;
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 850;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta,
.movie-line {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.movie-line {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wide-band {
  padding: 58px 0;
  background: linear-gradient(90deg, #fffbeb 0%, #fff7ed 100%);
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.rank-list,
.ranking-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.rank-item a,
.ranking-row a {
  display: grid;
  grid-template-columns: 44px 64px 1fr auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
  border-radius: 16px;
  padding: 10px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item a:hover,
.ranking-row a:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.rank-item img,
.ranking-row img {
  width: 64px;
  height: 84px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-num {
  color: var(--brand);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.rank-info {
  min-width: 0;
  display: grid;
  gap: 4px;
}

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

.rank-info em,
.rank-info small {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.rank-score {
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--brand);
  font-weight: 900;
}

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

.category-card {
  display: grid;
  gap: 8px;
  border: 1px solid #fde68a;
  border-radius: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #fff 0%, #fffbeb 100%);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card span {
  color: #f59e0b;
  font-weight: 900;
}

.category-card strong {
  font-size: 20px;
}

.category-card em {
  color: var(--muted);
  font-style: normal;
}

.inner-page {
  padding: 28px 0 70px;
}

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

.breadcrumb a {
  color: var(--brand-dark);
  font-weight: 700;
}

.breadcrumb span::before,
.breadcrumb a + span::before,
.breadcrumb a + a::before {
  content: "/";
  margin-right: 8px;
  color: #d1d5db;
}

.page-hero {
  border-radius: 28px;
  padding: 40px;
  color: #fff;
  background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.44), transparent 34%), linear-gradient(135deg, #92400e 0%, #f97316 100%);
  box-shadow: var(--shadow);
}

.small-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 900;
}

.small-hero p {
  max-width: 780px;
  margin: 0;
  color: #fffbeb;
}

.filter-bar {
  margin: 28px 0;
}

.inline-search {
  max-width: 520px;
}

.category-movies {
  align-items: stretch;
}

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

.ranking-list {
  margin-top: 26px;
}

.ranking-row a {
  grid-template-columns: 64px 96px 1fr auto;
  padding: 14px;
}

.ranking-row img {
  width: 96px;
  height: 126px;
}

.rank-info.wide strong {
  white-space: normal;
  font-size: 20px;
}

.rank-info.wide em {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-num.big {
  font-size: 30px;
}

.rank-score.big {
  font-size: 18px;
  padding: 8px 14px;
}

.detail-page {
  padding: 28px 0 70px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  align-items: stretch;
  border-radius: 30px;
  padding: 28px;
  color: #fff;
  background: linear-gradient(135deg, #111827 0%, #78350f 100%);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.detail-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.lead-text {
  max-width: 840px;
  margin: 0 0 22px;
  color: #f3f4f6;
  font-size: 18px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #fffbeb;
  font-weight: 700;
}

.large-tags span {
  background: #f59e0b;
  color: #fff;
}

.player-section {
  padding: 52px 0 24px;
}

.player-section h2 {
  margin: 0 0 18px;
  font-size: 30px;
  font-weight: 900;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  color: #fff;
  background: rgba(245, 158, 11, 0.94);
  font-size: 36px;
  box-shadow: 0 18px 48px rgba(245, 158, 11, 0.38);
  transform: translateX(2px);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 30px;
}

.content-card {
  border-radius: 24px;
  padding: 28px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.content-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 900;
}

.content-card p {
  margin: 0 0 14px;
  color: #374151;
  font-size: 16px;
}

.related-section {
  padding-bottom: 0;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(90deg, #1f2937 0%, #111827 100%);
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 32px;
  padding: 44px 0;
}

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

.site-footer p {
  margin: 0;
  color: #d1d5db;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

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

.footer-links a {
  color: #fde68a;
}

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

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

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

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

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

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

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

  .menu-toggle {
    display: block;
  }

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

  .hero-slider {
    height: 68vh;
    min-height: 500px;
  }

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

  .hero-arrow {
    display: none;
  }

  .search-panel {
    grid-template-columns: 1fr;
    margin-top: -28px;
  }

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

  .section-heading {
    display: grid;
  }

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

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

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

  .ranking-row a {
    grid-template-columns: 44px 70px 1fr;
  }

  .ranking-row img {
    width: 70px;
    height: 96px;
  }

  .ranking-row .rank-score {
    grid-column: 2 / 4;
    width: max-content;
  }
}

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

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

  .logo-mark {
    width: 32px;
    height: 32px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

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

  .hero-actions {
    align-items: stretch;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .page-hero,
  .detail-hero,
  .search-panel,
  .content-card {
    border-radius: 20px;
    padding: 22px;
  }

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

  .movie-card.compact .poster-frame {
    aspect-ratio: 16 / 9;
  }

  .rank-item a {
    grid-template-columns: 34px 58px 1fr;
  }

  .rank-score {
    display: none;
  }

  .play-circle {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}
