:root {
  --brand-900: #7c2d12;
  --brand-800: #9a3412;
  --brand-700: #c2410c;
  --brand-600: #ea580c;
  --brand-500: #f97316;
  --brand-400: #fb923c;
  --gold-500: #f59e0b;
  --gold-200: #fde68a;
  --ink-900: #111827;
  --ink-700: #374151;
  --ink-500: #6b7280;
  --paper: #fffaf0;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(124, 45, 18, 0.18);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  color: var(--ink-900);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 40%, #fff7ed 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--brand-800), var(--brand-600), var(--gold-500));
  box-shadow: 0 12px 30px rgba(124, 45, 18, 0.24);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-mark,
.footer-brand span {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-700);
  background: var(--white);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 700;
}

.nav-links a,
.nav-dropdown > a {
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-dropdown:hover > a {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 18px);
  width: 180px;
  padding: 10px;
  border-radius: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  color: var(--ink-700);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
}

.dropdown-link:hover {
  color: var(--brand-700);
  background: #fff7ed;
}

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

.nav-search input {
  width: 250px;
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  color: var(--ink-900);
  background: rgba(255, 255, 255, 0.96);
}

.nav-search button,
.primary-btn,
.ghost-btn,
.filter-btn {
  cursor: pointer;
  border: 0;
  font: inherit;
}

.nav-search button,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(90deg, var(--brand-700), var(--gold-500));
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button {
  color: var(--brand-800);
  background: var(--gold-200);
  box-shadow: none;
}

.primary-btn:hover,
.nav-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(234, 88, 12, 0.38);
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: var(--white);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: var(--white);
  background: #111827;
}

.hero-slide {
  display: none;
  position: relative;
  min-height: 600px;
}

.hero-slide.is-active {
  display: block;
}

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

.hero-overlay,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 25%, rgba(251, 146, 60, 0.35), transparent 30%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(124, 45, 18, 0.70), rgba(17, 24, 39, 0.35)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.72), transparent 45%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: 48px;
  padding: 80px 0;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--brand-800);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: #ffedd5;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-movie-title {
  margin-top: 18px !important;
  color: #fed7aa;
  font-size: clamp(28px, 4vw, 48px) !important;
}

.hero-copy p {
  max-width: 740px;
  margin: 22px 0 0;
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.detail-meta,
.detail-tags,
.tag-row,
.card-meta,
.detail-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin: 24px 0 0;
}

.hero-tags span,
.detail-meta span,
.detail-tags span,
.tag-row span,
.card-meta span,
.card-meta a,
.detail-genres a {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-800);
  background: #ffedd5;
}

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

.hero-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-card span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--white);
}

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

.section-warm {
  width: 100%;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, #fff7ed, #fffbeb);
}

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

.section-head.tight {
  margin-bottom: 20px;
}

.section-head h2,
.simple-hero h1,
.detail-info h1,
.detail-article h2 {
  margin: 0;
  color: var(--ink-900);
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.04em;
}

.section-head a {
  color: var(--brand-700);
  font-weight: 900;
}

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

.genre-tile,
.category-card {
  min-height: 118px;
  padding: 22px;
  border-radius: var(--radius);
  color: var(--ink-900);
  background: linear-gradient(135deg, #ffffff, #ffedd5);
  box-shadow: 0 12px 28px rgba(124, 45, 18, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.genre-tile:hover,
.category-card:hover,
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 46px rgba(124, 45, 18, 0.20);
}

.genre-tile span,
.category-card span {
  display: block;
  font-size: 24px;
  font-weight: 900;
}

.genre-tile small,
.category-card small {
  display: block;
  margin-top: 8px;
  color: var(--brand-700);
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 32px rgba(124, 45, 18, 0.13);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #1f2937;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
}

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  background: rgba(234, 88, 12, 0.92);
}

.card-body {
  padding: 18px;
}

.card-title {
  display: -webkit-box;
  min-height: 52px;
  overflow: hidden;
  color: var(--ink-900);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover,
.rank-title:hover {
  color: var(--brand-700);
}

.card-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 10px 0 14px;
  overflow: hidden;
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span {
  color: var(--ink-700);
  background: #f3f4f6;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: start;
}

.rank-panel,
.catalog-tools,
.detail-article {
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #fff7ed;
}

.rank-num {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand-700), var(--gold-500));
}

.rank-poster img {
  width: 76px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-title {
  display: block;
  color: var(--ink-900);
  font-size: 16px;
  font-weight: 900;
}

.rank-item p {
  margin: 6px 0;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.55;
}

.rank-meta {
  color: var(--brand-700);
  font-size: 13px;
  font-weight: 800;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  color: var(--white);
  background: linear-gradient(135deg, var(--brand-900), var(--brand-600), var(--gold-500));
}

.simple-hero {
  padding: 78px max(16px, calc((100% - 1180px) / 2));
}

.simple-hero h1 {
  color: var(--white);
}

.simple-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.8;
}

.catalog-tools {
  margin-bottom: 28px;
}

.catalog-search-box {
  display: grid;
  gap: 10px;
  color: var(--ink-900);
  font-weight: 900;
}

.catalog-search-box input {
  width: 100%;
  border: 2px solid #fed7aa;
  border-radius: 18px;
  padding: 15px 16px;
  font: inherit;
  outline: none;
}

.catalog-search-box input:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.filter-btn {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--brand-800);
  font-weight: 900;
  background: #ffedd5;
}

.filter-btn.is-active,
.filter-btn:hover {
  color: var(--white);
  background: linear-gradient(90deg, var(--brand-700), var(--gold-500));
}

[data-card].is-hidden {
  display: none;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: #111827;
}

.detail-wrap {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  padding: 80px 0;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.44);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info h1 {
  color: var(--white);
  font-size: clamp(38px, 6vw, 72px);
}

.detail-one-line {
  max-width: 820px;
  margin: 18px 0 22px;
  color: #ffedd5;
  font-size: 20px;
  line-height: 1.75;
}

.detail-meta,
.detail-genres,
.detail-tags {
  margin-top: 14px;
}

.detail-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

.detail-info .primary-btn {
  margin-top: 28px;
}

.player-section {
  padding-top: 64px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(234, 88, 12, 0.35), rgba(0, 0, 0, 0.70));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--brand-700);
  font-size: 34px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.30);
}

.player-cover strong {
  font-size: 24px;
}

.article-section {
  padding-top: 0;
}

.detail-article {
  max-width: 980px;
}

.detail-article h2 {
  margin-top: 0;
  font-size: 28px;
}

.detail-article h2 + p {
  margin-top: 12px;
}

.detail-article p {
  color: var(--ink-700);
  font-size: 17px;
  line-height: 2;
}

.large-rank {
  max-width: 940px;
  margin: 0 auto;
}

.site-footer {
  color: var(--white);
  background: linear-gradient(90deg, var(--brand-900), var(--brand-700), var(--gold-500));
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 28px;
  padding: 48px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 22px;
  font-weight: 900;
}

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

.site-footer p,
.site-footer a {
  display: block;
  margin: 8px 0;
  color: #ffedd5;
  line-height: 1.7;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffedd5;
  text-align: center;
}

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

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

  .split-layout,
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 320px;
  }

  .nav-search input {
    width: 180px;
  }
}

@media (max-width: 820px) {
  .nav-wrap {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links,
  .nav-search {
    display: none;
    width: 100%;
  }

  .nav-links.is-open,
  .nav-search.is-open {
    display: grid;
  }

  .nav-links {
    gap: 12px;
    padding: 12px 0;
  }

  .dropdown-panel {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 10px;
  }

  .nav-search input {
    width: 100%;
  }

  .hero,
  .hero-slide,
  .hero-inner {
    min-height: 720px;
  }

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

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

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

@media (max-width: 560px) {
  .catalog-grid,
  .movie-grid,
  .compact-grid,
  .genre-grid,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .section-warm {
    padding-top: 46px;
    padding-bottom: 46px;
  }

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

  .hero-card {
    display: none;
  }

  .rank-item {
    grid-template-columns: 42px 64px minmax(0, 1fr);
  }

  .rank-poster img {
    width: 64px;
    height: 84px;
  }
}
