:root {
  --cream-50: #fffaf0;
  --cream-100: #fff3d8;
  --cream-200: #f8e4b4;
  --cream-300: #efca84;
  --warm-300: #f0a85c;
  --warm-400: #d87a32;
  --warm-500: #b85c22;
  --soft-500: #6b6f6a;
  --soft-700: #363d39;
  --soft-900: #151916;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(82, 61, 32, 0.12);
  --shadow-hover: 0 24px 60px rgba(82, 61, 32, 0.2);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--soft-900);
  background: linear-gradient(180deg, var(--cream-50), var(--cream-100) 42%, #fff8e8);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 250, 240, 0.88);
  box-shadow: 0 12px 35px rgba(66, 50, 22, 0.1);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--cream-300), var(--warm-400));
  box-shadow: 0 12px 25px rgba(216, 122, 50, 0.3);
}

.brand-name {
  font-size: 22px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
}

.nav-link {
  padding: 10px 18px;
  color: var(--soft-700);
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--warm-500);
  background: rgba(240, 168, 92, 0.15);
  transform: translateY(-1px);
}

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

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--soft-900);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.hero {
  padding: 110px 0 36px;
}

.hero-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 36px;
  box-shadow: var(--shadow-soft);
  background: linear-gradient(135deg, #fff8e7, #f7dfaa);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 46px;
  padding: 64px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-backdrop,
.detail-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-backdrop::after,
.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.42), transparent 34%), linear-gradient(180deg, transparent, rgba(255, 248, 232, 0.9));
}

.hero-copy,
.hero-poster,
.hero-controls,
.detail-layout,
.breadcrumb {
  position: relative;
  z-index: 1;
}

.eyebrow,
.hero-copy .eyebrow,
.page-hero p,
.section-heading span,
.movie-tags span,
.category-panel p {
  color: var(--warm-500);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.2vw, 42px);
}

.hero-copy p,
.page-hero span,
.detail-copy p,
.content-card p,
.category-panel span,
.movie-body p {
  color: var(--soft-500);
  line-height: 1.8;
}

.hero-copy p {
  max-width: 690px;
  font-size: 18px;
}

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

.hero-tags span,
.movie-tags span,
.rank-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--warm-500);
  font-size: 13px;
}

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

.primary-button,
.ghost-button,
.wide-search button,
.hero-search button,
.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 24px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button,
.wide-search button,
.hero-search button,
.rank-action {
  color: white;
  background: linear-gradient(135deg, var(--warm-300), var(--warm-500));
  box-shadow: 0 14px 28px rgba(216, 122, 50, 0.28);
}

.ghost-button {
  color: var(--warm-500);
  background: rgba(255, 255, 255, 0.68);
}

.primary-button:hover,
.ghost-button:hover,
.wide-search button:hover,
.hero-search button:hover,
.rank-action:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.hero-poster {
  display: block;
  border-radius: 30px;
  overflow: hidden;
  transform: rotate(2deg);
  box-shadow: 0 28px 60px rgba(65, 42, 15, 0.28);
}

.hero-poster img {
  aspect-ratio: 3 / 4.35;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  color: white;
  background: rgba(216, 122, 50, 0.86);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  left: 64px;
  right: 64px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-controls button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  color: var(--warm-500);
  font-size: 24px;
  cursor: pointer;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  min-width: 11px;
  min-height: 11px;
  padding: 0;
  border-radius: 999px;
  background: rgba(216, 122, 50, 0.25) !important;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--warm-400) !important;
}

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

.section {
  padding: 34px 0;
}

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

.section-heading-center {
  display: block;
  text-align: center;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.content-card h2 {
  margin: 6px 0 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
}

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

.search-band {
  margin-top: 16px;
  padding: 34px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-soft);
}

.wide-search,
.hero-search {
  display: flex;
  gap: 12px;
}

.wide-search {
  max-width: 760px;
  margin: 24px auto 0;
}

.wide-search input,
.hero-search input,
.filter-card input {
  flex: 1;
  width: 100%;
  border: 1px solid rgba(216, 122, 50, 0.18);
  background: rgba(255, 255, 255, 0.85);
  min-height: 52px;
  border-radius: 999px;
  padding: 0 20px;
  outline: none;
  color: var(--soft-900);
}

.wide-search input:focus,
.hero-search input:focus,
.filter-card input:focus {
  border-color: rgba(216, 122, 50, 0.55);
  box-shadow: 0 0 0 4px rgba(216, 122, 50, 0.1);
}

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

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

.category-panel {
  min-height: 188px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 241, 205, 0.86));
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-panel::after {
  content: "";
  position: absolute;
  right: -52px;
  top: -52px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(240, 168, 92, 0.2);
}

.category-panel:hover,
.movie-card:hover,
.rank-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.category-panel h2 {
  margin: 8px 0 10px;
  font-size: 26px;
}

.category-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-preview span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--soft-700);
  font-size: 13px;
}

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: var(--cream-200);
}

.poster-wrap img {
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.year-badge,
.rank-badge,
.play-badge {
  position: absolute;
  border-radius: 999px;
  color: white;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.year-badge {
  left: 12px;
  top: 12px;
  padding: 8px 10px;
  background: rgba(21, 25, 22, 0.48);
  font-size: 12px;
}

.rank-badge {
  right: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(216, 122, 50, 0.86);
}

.play-badge {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(216, 122, 50, 0.86);
}

.movie-body {
  padding: 16px;
}

.movie-body h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

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

.movie-meta,
.rank-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--soft-500);
  font-size: 13px;
}

.movie-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(248, 228, 180, 0.45);
}

.rank-section {
  padding-bottom: 70px;
}

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

.rank-list.spacious {
  margin-top: 24px;
}

.rank-row {
  display: grid;
  grid-template-columns: 54px 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 30px rgba(82, 61, 32, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--warm-300), var(--warm-500));
  font-weight: 900;
}

.rank-row img {
  width: 78px;
  height: 104px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-row h3 {
  margin: 0 0 6px;
}

.rank-row p {
  margin: 0 0 10px;
  color: var(--soft-500);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-main {
  padding-top: 110px;
}

.page-hero,
.detail-hero {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff8e8, #f8e4b4);
  box-shadow: var(--shadow-soft);
}

.compact-hero {
  min-height: 260px;
  padding: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  align-items: end;
  gap: 24px;
}

.filter-card {
  margin-bottom: 22px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.detail-hero {
  min-height: 560px;
  padding: 36px 42px 50px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--soft-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--warm-500);
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
  min-height: 420px;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 26px 58px rgba(65, 42, 15, 0.25);
}

.detail-poster img {
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
}

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 64px);
}

.detail-copy p {
  max-width: 760px;
  font-size: 17px;
}

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

.player-stage {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: #111;
  box-shadow: 0 28px 70px rgba(20, 17, 12, 0.26);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: white;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.6));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-layer span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--warm-300), var(--warm-500));
  box-shadow: 0 20px 45px rgba(216, 122, 50, 0.36);
  font-size: 30px;
  padding-left: 5px;
}

.play-layer strong {
  font-size: 20px;
}

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

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
  gap: 20px;
}

.content-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.content-card h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.info-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  color: var(--soft-500);
}

.info-card dt {
  color: var(--warm-500);
  font-weight: 800;
}

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

.movie-card-compact .movie-body p {
  display: none;
}

.movie-card-compact .movie-body h3 {
  font-size: 16px;
}

.top-three .movie-card:first-child {
  grid-column: span 2;
}

.search-page .movie-grid:empty::before {
  content: "未找到匹配影片";
  display: block;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  color: var(--soft-500);
}

.site-footer {
  margin-top: 70px;
  padding: 48px 0 28px;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.2), rgba(239, 202, 132, 0.26));
  border-top: 1px solid rgba(216, 122, 50, 0.12);
}

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

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

.footer-grid p {
  color: var(--soft-500);
  line-height: 1.8;
}

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

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

.footer-links a {
  color: var(--soft-500);
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(216, 122, 50, 0.16);
  color: var(--soft-500);
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 1024px) {
  .hero-slide {
    grid-template-columns: 1fr 280px;
    padding: 44px;
  }

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

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

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

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

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

  .menu-toggle {
    display: block;
  }

  .mobile-nav.is-open {
    display: grid;
    gap: 6px;
  }

  .hero {
    padding-top: 92px;
  }

  .hero-shell {
    min-height: 720px;
    border-radius: 26px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 28px;
  }

  .hero-poster {
    width: min(240px, 76vw);
    margin: 0 auto;
  }

  .hero-controls {
    left: 28px;
    right: 28px;
    bottom: 22px;
  }

  .wide-search,
  .hero-search,
  .section-heading,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .compact-hero {
    grid-template-columns: 1fr;
    padding: 28px;
  }

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

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

  .rank-action {
    grid-column: 2 / -1;
  }

  .detail-hero {
    padding: 26px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
    padding-top: 28px;
  }

  .detail-poster {
    width: min(260px, 80vw);
  }

  .top-three .movie-card:first-child {
    grid-column: auto;
  }
}
