:root {
  --bg: #fffaf3;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(245, 158, 11, 0.22);
  --brand: #d97706;
  --brand-strong: #ea580c;
  --brand-deep: #7c2d12;
  --shadow: 0 24px 70px rgba(124, 45, 18, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.16), transparent 38rem),
    linear-gradient(180deg, #fffaf3 0%, #ffffff 42%, #fff7ed 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 10px 32px rgba(146, 64, 14, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 16px 35px rgba(234, 88, 12, 0.28);
}

.brand-text {
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #b45309, #ea580c);
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #4b5563;
}

.nav-link {
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  transition: width 0.24s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-strong);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: #9a3412;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mobile-link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: #4b5563;
  font-weight: 700;
}

.mobile-link:hover,
.mobile-link.active {
  color: #ea580c;
  background: #fff7ed;
}

.hero-shell {
  width: min(1240px, calc(100% - 28px));
  margin: 24px auto 0;
}

.hero-slider {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border-radius: 34px;
  background: #111827;
  box-shadow: 0 34px 90px rgba(124, 45, 18, 0.24);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  min-height: 650px;
  padding: 72px clamp(28px, 7vw, 92px);
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.75s ease;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(251, 191, 36, 0.18), transparent 24rem),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.70) 45%, rgba(17, 24, 39, 0.22));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: #fde68a;
  font-size: 0.83rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: #b45309;
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5.5vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.hero-content h2 {
  margin: 0 0 14px;
  color: #fbbf24;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.hero-desc {
  max-width: 660px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.06rem;
  line-height: 1.9;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.24);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

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

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

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

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.27);
}

.btn.ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.btn.ghost.light {
  color: #9a3412;
  background: #fff;
  border-color: rgba(245, 158, 11, 0.28);
}

.btn.small {
  min-height: 42px;
  padding-inline: 18px;
}

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.hero-arrow.prev {
  left: 18px;
}

.hero-arrow.next {
  right: 18px;
}

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

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

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

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

.page-main .section-wrap:first-of-type {
  margin-top: 36px;
}

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

.section-title h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  letter-spacing: -0.045em;
}

.section-title a {
  color: #b45309;
  font-weight: 900;
}

.section-title.mini {
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
}

.section-title.mini h2 {
  max-width: 700px;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0;
  color: #6b7280;
  font-weight: 600;
}

.search-panel,
.filter-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 50px rgba(146, 64, 14, 0.1);
  backdrop-filter: blur(18px);
}

.search-panel h2 {
  margin: 0;
  font-size: 1.35rem;
}

.search-box {
  flex: 1;
  min-width: 220px;
}

.search-box input {
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(217, 119, 6, 0.24);
  border-radius: 999px;
  outline: 0;
  color: #1f2937;
  background: #fff;
  font-size: 1rem;
  box-shadow: inset 0 2px 10px rgba(217, 119, 6, 0.05);
}

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

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

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 20px 52px rgba(124, 45, 18, 0.13);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  opacity: 0.78;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.05), rgba(17, 24, 39, 0.88));
}

.tile-copy {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  color: #fff;
}

.tile-copy strong,
.tile-copy em,
.tile-copy small {
  display: block;
}

.tile-copy strong {
  margin-bottom: 8px;
  font-size: 1.35rem;
  font-style: normal;
  font-weight: 900;
}

.tile-copy em {
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  line-height: 1.5;
}

.tile-copy small {
  margin-top: 8px;
  color: #fde68a;
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 38px rgba(146, 64, 14, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.38);
  box-shadow: 0 26px 70px rgba(146, 64, 14, 0.16);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #f97316);
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(17, 24, 39, 0.58));
  opacity: 0;
  transition: opacity 0.24s ease;
}

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

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #fff;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.92);
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rank-num {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 12px 24px rgba(124, 45, 18, 0.25);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: #b45309;
  font-size: 0.76rem;
  font-weight: 900;
}

.card-body h3 {
  margin: 0 0 10px;
  color: #1f2937;
  font-size: 1.1rem;
  line-height: 1.34;
  letter-spacing: -0.02em;
}

.card-body h3 a:hover {
  color: #ea580c;
}

.card-body p {
  min-height: 3.9em;
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.65;
}

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

.compact-grid .card-body h3 {
  font-size: 0.98rem;
}

.compact-grid .tag-row {
  display: none;
}

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

.page-hero {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px);
  color: #fff;
  border-radius: 34px;
  background:
    radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.24), transparent 24rem),
    linear-gradient(135deg, #7c2d12, #b45309 50%, #ea580c);
  box-shadow: var(--shadow);
}

.page-hero.slim {
  padding-block: 62px;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  line-height: 1.85;
}

.filter-bar {
  align-items: stretch;
  flex-direction: column;
}

.sticky-filter {
  position: sticky;
  top: 88px;
  z-index: 20;
}

.page-search.full,
.page-search {
  width: 100%;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chips button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  cursor: pointer;
  font-weight: 800;
}

.filter-chips button:hover {
  color: #fff;
  background: #ea580c;
}

.stacked {
  display: grid;
  gap: 42px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  color: #92400e;
  font-size: 0.92rem;
  font-weight: 800;
}

.breadcrumb strong {
  color: #1f2937;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: #fed7aa;
  box-shadow: 0 24px 60px rgba(124, 45, 18, 0.2);
}

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

.detail-info h1 {
  margin: 0 0 18px;
  color: #1f2937;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.075em;
}

.lead {
  margin: 0 0 20px;
  color: #4b5563;
  font-size: 1.12rem;
  line-height: 1.9;
}

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

.detail-meta-grid span {
  padding: 14px;
  border-radius: 18px;
  color: #92400e;
  background: #fff7ed;
}

.detail-meta-grid b {
  display: block;
  margin-bottom: 4px;
  color: #7c2d12;
  font-size: 0.78rem;
}

.player-section {
  margin: 34px 0;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: #0f172a;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.26);
  aspect-ratio: 16 / 9;
}

.movie-player,
.player-cover,
.player-cover img,
.cover-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-player {
  z-index: 1;
  background: #0f172a;
}

.player-cover {
  z-index: 3;
  border: 0;
  cursor: pointer;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

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

.player-cover img {
  object-fit: cover;
  opacity: 0.72;
}

.cover-shade {
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.16), transparent 18rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.78));
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 0 26px 0 10px;
  color: #fff;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.94);
  box-shadow: 0 20px 48px rgba(234, 88, 12, 0.35);
  transform: translate(-50%, -50%);
}

.play-button i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: #ea580c;
  background: #fff;
  font-style: normal;
}

.play-button b {
  font-size: 1.05rem;
}

.detail-copy {
  width: 100%;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 16px 46px rgba(146, 64, 14, 0.08);
}

.detail-copy h2 {
  margin: 0 0 16px;
  font-size: 1.65rem;
  color: #1f2937;
  letter-spacing: -0.035em;
}

.detail-copy p {
  margin: 0 0 20px;
  color: #4b5563;
  font-size: 1.02rem;
  line-height: 2;
}

.site-footer {
  margin-top: 80px;
  padding: 44px 0 28px;
  color: #4b5563;
  background: #fff7ed;
  border-top: 1px solid rgba(245, 158, 11, 0.18);
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 36px;
}

.footer-brand p {
  max-width: 440px;
  margin: 16px 0 0;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 22px;
  font-weight: 800;
}

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

.copyright {
  width: min(1200px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(245, 158, 11, 0.18);
  text-align: center;
  font-size: 0.92rem;
}

.movie-card.is-hidden {
  display: none;
}

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

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

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

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

  .menu-toggle {
    display: block;
  }

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

  .hero-slider,
  .hero-slide {
    min-height: 620px;
  }

  .hero-slide {
    padding: 64px 28px;
  }

  .hero-arrow {
    display: none;
  }

  .search-panel {
    align-items: stretch;
    flex-direction: column;
  }

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

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

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

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

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

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

  .brand-text {
    font-size: 1.2rem;
  }

  .hero-shell,
  .section-wrap,
  .page-hero,
  .detail-main {
    width: min(100% - 22px, 1200px);
  }

  .hero-slider,
  .page-hero,
  .detail-hero,
  .player-box {
    border-radius: 24px;
  }

  .hero-slider,
  .hero-slide {
    min-height: 590px;
  }

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

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

  .player-box {
    aspect-ratio: 4 / 3;
  }

  .play-button {
    min-height: 56px;
    padding-right: 18px;
  }
}
