:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-200: #fed7aa;
  --orange-600: #ea580c;
  --white: #ffffff;
  --black: #050505;
  --text: #5b3210;
  --muted: #9a5a13;
  --shadow-sm: 0 1px 2px rgba(120, 53, 15, 0.08);
  --shadow-md: 0 8px 22px rgba(120, 53, 15, 0.12);
  --shadow-xl: 0 28px 55px rgba(120, 53, 15, 0.22);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--amber-50), var(--orange-50) 46%, var(--amber-100));
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button,
input,
select {
  font: inherit;
}

main {
  min-height: 60vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
  border-bottom: 1px solid rgba(253, 230, 138, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}

.site-nav {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--amber-700);
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.28);
  font-size: 16px;
}

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

.nav-links a {
  color: var(--amber-800);
  font-weight: 650;
  font-size: 15px;
}

.nav-links a:hover,
.site-logo:hover {
  color: var(--amber-600);
}

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

.nav-search input,
.filter-panel input,
.filter-panel select,
.search-large input {
  border: 1px solid var(--amber-200);
  background: rgba(255, 255, 255, 0.86);
  color: var(--amber-900);
  border-radius: 999px;
  outline: none;
  padding: 11px 16px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

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

.nav-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus,
.search-large input:focus {
  border-color: var(--amber-400);
  box-shadow: 0 0 0 4px rgba(253, 230, 138, 0.5);
  background: var(--white);
}

.nav-search button,
.hero-cta,
.primary-btn,
.search-large button,
.hero-nav,
.player-overlay span:first-child {
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.28);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.nav-search button {
  padding: 10px 18px;
  font-weight: 700;
}

.nav-search button:hover,
.hero-cta:hover,
.primary-btn:hover,
.search-large button:hover,
.hero-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(217, 119, 6, 0.35);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--amber-800);
  font-size: 28px;
  cursor: pointer;
}

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--black);
}

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

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.36) 45%, rgba(0, 0, 0, 0.08)), radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.45), transparent 34%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 78px;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  transform: translateX(-50%);
  color: var(--white);
}

.hero-pill,
.section-kicker,
.tag-pill,
.duration-badge,
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.96);
  color: var(--white);
  font-weight: 750;
  font-size: 13px;
  padding: 7px 13px;
}

.hero-title {
  max-width: 830px;
  margin: 18px 0 16px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-text {
  max-width: 760px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.65;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

.hero-cta,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 25px;
  font-weight: 800;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(0, 0, 0, 0.28);
  color: var(--white);
  backdrop-filter: blur(10px);
  font-weight: 750;
}

.secondary-btn:hover {
  background: rgba(0, 0, 0, 0.5);
}

.hero-nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  font-size: 28px;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dots button.is-active {
  width: 32px;
  background: var(--amber-400);
}

.page-wrap,
.section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 24px;
}

.section-wrap {
  display: grid;
  gap: 28px;
}

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

.section-head h1,
.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: var(--amber-900);
  letter-spacing: -0.045em;
}

.section-head h2,
.page-title h1 {
  font-size: clamp(30px, 4vw, 44px);
}

.section-head p,
.page-title p,
.category-intro p,
.detail-copy p,
.prose-card p {
  color: var(--amber-700);
  line-height: 1.75;
}

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

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

.movie-card,
.category-card,
.prose-card,
.player-card,
.horizontal-card,
.rank-item,
.side-related-card,
.search-card {
  background: var(--white);
  border: 1px solid rgba(253, 230, 138, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.28s, box-shadow 0.28s, border-color 0.28s;
}

.movie-card:hover,
.category-card:hover,
.horizontal-card:hover,
.rank-item:hover,
.side-related-card:hover,
.search-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(251, 191, 36, 0.86);
}

.poster-wrap {
  position: relative;
  display: block;
  height: 248px;
  overflow: hidden;
  background: var(--amber-100);
}

.movie-card-large .poster-wrap {
  height: 420px;
}

.poster-wrap img,
.horizontal-poster img,
.rank-item img,
.side-related-card img,
.search-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.movie-card:hover img,
.horizontal-card:hover img,
.rank-item:hover img,
.side-related-card:hover img,
.search-card:hover img {
  transform: scale(1.08);
}

.poster-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(0, 0, 0, 0.38);
  transition: opacity 0.25s;
}

.movie-card:hover .poster-mask {
  opacity: 1;
}

.play-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(245, 158, 11, 0.96);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.26);
}

.duration-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
}

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.movie-card-body strong,
.horizontal-info strong,
.rank-copy strong,
.side-related-card strong,
.search-card strong {
  color: var(--amber-900);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card:hover strong,
.horizontal-card:hover strong,
.rank-item:hover strong,
.side-related-card:hover strong,
.search-card:hover strong {
  color: var(--amber-600);
}

.movie-desc,
.horizontal-info span,
.rank-copy span,
.side-related-card span,
.search-card span {
  color: var(--amber-700);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-meta span,
.meta-chip {
  display: inline-flex;
  border-radius: 999px;
  background: var(--amber-100);
  color: var(--amber-700);
  font-size: 12px;
  font-weight: 750;
  padding: 5px 9px;
}

.rail {
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail-track {
  display: flex;
  gap: 18px;
  width: max-content;
}

.rail-track .movie-card {
  width: 310px;
}

.feature-panel {
  margin-left: -24px;
  margin-right: -24px;
  padding: 44px 24px;
  border-radius: 30px;
  background: linear-gradient(90deg, var(--amber-100), var(--orange-100));
}

.feature-panel.deep {
  background: linear-gradient(135deg, var(--amber-200), var(--orange-200));
}

.horizontal-list {
  display: grid;
  gap: 18px;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  padding: 0;
}

.horizontal-poster {
  display: block;
  height: 190px;
  overflow: hidden;
  background: var(--amber-100);
}

.horizontal-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 22px 22px 22px 0;
}

.horizontal-info em,
.rank-copy em {
  color: var(--amber-600);
  font-style: normal;
  font-size: 13px;
  font-weight: 650;
}

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

.category-card {
  min-height: 220px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 237, 0.9));
}

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  color: var(--amber-900);
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: var(--amber-700);
  line-height: 1.7;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.category-tags span {
  border-radius: 999px;
  color: var(--amber-700);
  background: var(--amber-100);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.page-title {
  display: grid;
  gap: 12px;
  margin-bottom: 34px;
}

.filter-panel,
.search-large {
  display: grid;
  grid-template-columns: 1fr 190px 190px 170px;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(253, 230, 138, 0.8);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}

.search-large {
  grid-template-columns: 1fr auto;
}

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

.search-large button {
  border: 0;
  padding: 12px 24px;
  font-weight: 750;
}

.empty-message {
  display: none;
  padding: 48px 24px;
  text-align: center;
  color: var(--amber-700);
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.empty-message.is-visible {
  display: block;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: start;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 128px 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px;
}

.rank-number {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--amber-100);
  color: var(--amber-700);
  font-weight: 900;
  font-size: 18px;
}

.rank-gold,
.rank-silver,
.rank-bronze {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.rank-item img {
  width: 128px;
  height: 82px;
  border-radius: 12px;
  background: var(--amber-100);
}

.rank-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: start;
}

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

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

.player-card {
  padding: 0;
  background: #000000;
}

.player-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: var(--radius);
  overflow: hidden;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.22));
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s, visibility 0.25s;
}

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

.player-overlay span:first-child {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.player-overlay strong {
  max-width: 86%;
  text-align: center;
  font-size: clamp(22px, 4vw, 36px);
  text-shadow: 0 10px 20px rgba(0, 0, 0, 0.38);
}

.prose-card {
  padding: 28px;
  margin-top: 22px;
}

.detail-title h1 {
  font-size: clamp(32px, 4vw, 48px);
}

.detail-meta,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-tags span {
  border-radius: 999px;
  color: var(--amber-700);
  background: var(--amber-100);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.detail-copy h2,
.prose-card h2,
.side-box h2 {
  margin: 0 0 14px;
  color: var(--amber-900);
}

.detail-copy p,
.prose-card p {
  margin: 0 0 16px;
}

.side-box {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid rgba(253, 230, 138, 0.82);
  box-shadow: var(--shadow-sm);
}

.side-related-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  padding: 8px;
}

.side-related-card img {
  width: 112px;
  height: 76px;
  border-radius: 12px;
  background: var(--amber-100);
}

.side-related-card span {
  font-size: 13px;
}

.recommend-grid {
  margin-top: 44px;
}

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

.search-card {
  display: grid;
  grid-template-rows: 220px 1fr;
}

.search-card img {
  width: 100%;
  height: 220px;
  background: var(--amber-100);
}

.search-card div {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.site-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, var(--amber-50), var(--orange-100));
  border-top: 1px solid rgba(253, 230, 138, 0.8);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 32px;
}

.footer-grid p {
  max-width: 410px;
  color: var(--amber-700);
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 16px;
  color: var(--amber-900);
  font-size: 18px;
}

.footer-grid a:not(.footer-logo) {
  display: block;
  margin-bottom: 10px;
  color: var(--amber-700);
}

.footer-grid a:hover {
  color: var(--amber-600);
}

.footer-category-links {
  columns: 2;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 32px;
  color: var(--amber-600);
  border-top: 1px solid rgba(253, 230, 138, 0.8);
  font-size: 14px;
}

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

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

  .side-box {
    position: static;
  }
}

@media (max-width: 900px) {
  .site-nav {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    padding: 14px 18px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    margin-left: 0;
    padding: 12px 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

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

  .nav-links a {
    padding: 12px 4px;
    border-top: 1px solid rgba(253, 230, 138, 0.55);
  }

  .nav-search {
    width: 100%;
  }

  .nav-search input {
    flex: 1;
    width: auto;
  }

  .hero-slider {
    min-height: 540px;
  }

  .hero-nav {
    display: none;
  }

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

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

  .horizontal-card {
    grid-template-columns: 1fr;
  }

  .horizontal-poster {
    height: 240px;
  }

  .horizontal-info {
    padding: 0 18px 20px;
  }

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

@media (max-width: 620px) {
  .site-logo,
  .footer-logo {
    font-size: 22px;
  }

  .hero-content {
    bottom: 64px;
    width: calc(100% - 32px);
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-text {
    font-size: 16px;
  }

  .page-wrap,
  .section-wrap {
    padding: 42px 16px;
  }

  .movie-grid,
  .movie-grid.three,
  .category-grid,
  .search-results {
    grid-template-columns: 1fr;
  }

  .poster-wrap {
    height: 290px;
  }

  .filter-panel,
  .search-large {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 42px 92px 1fr;
    gap: 10px;
  }

  .rank-item img {
    width: 92px;
    height: 68px;
  }

  .side-related-card {
    grid-template-columns: 96px 1fr;
  }
}
