* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #24160b;
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 48%, #fef3c7 100%);
  min-height: 100vh;
}

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

img {
  max-width: 100%;
  display: block;
  background: radial-gradient(circle at 30% 20%, rgba(251, 191, 36, .65), transparent 32%), linear-gradient(135deg, #78350f, #f59e0b 48%, #fef3c7);
}

img.image-empty {
  opacity: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #f59e0b 0%, #f97316 52%, #d97706 100%);
  box-shadow: 0 14px 36px rgba(146, 64, 14, .22);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #fff;
  letter-spacing: .04em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #f59e0b;
  background: #fff;
  box-shadow: 0 10px 20px rgba(120, 53, 15, .25);
}

.brand-text {
  font-size: 24px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  transition: background .25s ease, transform .25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(255, 255, 255, .2);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  padding: 8px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.mobile-panel .nav-link,
.mobile-cats a {
  display: inline-flex;
  margin: 6px 6px 0 0;
}

.mobile-cats a {
  color: #fff;
  background: rgba(255, 255, 255, .16);
  padding: 8px 12px;
  border-radius: 999px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
  background: #1c0f05;
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  filter: saturate(1.08);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .56) 46%, rgba(0, 0, 0, .22) 100%), linear-gradient(0deg, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, .06) 56%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 620px;
  margin: 0 auto;
  padding: 86px 20px 78px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 46px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 14px;
  background: rgba(245, 158, 11, .92);
  border-radius: 999px;
  color: #fff7ed;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(245, 158, 11, .28);
}

.hero h1 {
  margin: 20px 0 14px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: .98;
  max-width: 780px;
  letter-spacing: -.04em;
  text-shadow: 0 18px 36px rgba(0, 0, 0, .34);
}

.hero p {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .86);
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn-primary {
  color: #1f1308;
  background: #fbbf24;
  box-shadow: 0 16px 30px rgba(245, 158, 11, .32);
}

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

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

.hero-side-card {
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .28);
}

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

.hero-side-card h3 {
  margin: 14px 0 6px;
  font-size: 22px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, .13);
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, .16);
}

.hero-control {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .34);
  font-size: 26px;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, .54);
  transform: scale(1.04);
}

.hero-control.prev {
  left: 20px;
}

.hero-control.next {
  right: 20px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.hero-dots button.is-active {
  width: 32px;
  background: #fbbf24;
}

.search-panel {
  margin: -34px auto 36px;
  position: relative;
  z-index: 8;
  max-width: 1160px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 24px 60px rgba(146, 64, 14, .18);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
}

.search-panel input,
.search-panel select,
.inline-filter input,
.inline-filter select {
  width: 100%;
  border: 1px solid rgba(146, 64, 14, .18);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  color: #3a2411;
  outline: none;
  font-size: 15px;
}

.page-hero {
  padding: 72px 0 36px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -.04em;
}

.page-hero p {
  max-width: 820px;
  color: #6b4c2a;
  line-height: 1.8;
  font-size: 17px;
}

.section {
  padding: 34px 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -.035em;
}

.section-heading p {
  margin: 7px 0 0;
  color: #7c5d34;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(146, 64, 14, .08);
  box-shadow: 0 16px 38px rgba(146, 64, 14, .12);
  transition: transform .25s ease, box-shadow .25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(146, 64, 14, .20);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #78350f, #f59e0b 56%, #fef3c7);
}

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

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

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(245, 158, 11, .92);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .22);
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 18px;
  font-weight: 900;
  color: #28170a;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
  color: #9a661a;
  font-size: 13px;
  font-weight: 800;
}

.card-body p {
  margin: 0;
  color: #6f5130;
  line-height: 1.65;
  font-size: 14px;
}

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

.category-card {
  display: block;
  padding: 24px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #92400e 0%, #f97316 52%, #fbbf24 100%);
  box-shadow: 0 18px 40px rgba(146, 64, 14, .20);
  transition: transform .25s ease, box-shadow .25s ease;
  min-height: 170px;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 64px rgba(146, 64, 14, .27);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, .86);
  line-height: 1.65;
}

.category-card span {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 900;
}

.inline-filter {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin-bottom: 22px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 88px 1fr 130px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 14px 34px rgba(146, 64, 14, .10);
}

.rank-no {
  font-size: 26px;
  font-weight: 950;
  color: #d97706;
  text-align: center;
}

.rank-item img {
  width: 88px;
  height: 112px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-item h3 {
  margin: 0 0 8px;
}

.rank-item p {
  margin: 0;
  color: #71512d;
  line-height: 1.6;
}

.rank-heat {
  display: grid;
  gap: 6px;
  font-weight: 900;
  color: #b45309;
}

.heat-bar {
  height: 9px;
  border-radius: 999px;
  background: #fde68a;
  overflow: hidden;
}

.heat-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.detail-hero {
  position: relative;
  color: #fff;
  background: #1b1008;
  overflow: hidden;
}

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.08);
  opacity: .42;
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .86), rgba(0, 0, 0, .48)), linear-gradient(0deg, rgba(0, 0, 0, .70), transparent);
}

.detail-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 66px 20px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, .72);
  font-weight: 800;
}

.breadcrumb a:hover {
  color: #fbbf24;
}

.detail-title {
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 68px);
  letter-spacing: -.04em;
}

.detail-desc {
  max-width: 820px;
  color: rgba(255, 255, 255, .86);
  line-height: 1.85;
  font-size: 17px;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.meta-pills span,
.meta-pills a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  font-weight: 800;
}

.player-section {
  padding: 42px 0 20px;
}

.player-shell {
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 30% 20%, rgba(245, 158, 11, .35), transparent 36%), #080b11;
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #05070b;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(0,0,0,.62), rgba(0,0,0,.16));
  cursor: pointer;
  transition: opacity .25s ease, visibility .25s ease;
}

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

.player-start {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: #1f1308;
  background: #fbbf24;
  font-size: 34px;
  cursor: pointer;
  box-shadow: 0 20px 45px rgba(245, 158, 11, .35);
}

.player-info {
  padding: 18px 22px;
  color: #fff7ed;
  background: linear-gradient(90deg, #78350f, #92400e);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.article-box,
.side-box {
  padding: 26px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 18px 42px rgba(146, 64, 14, .10);
}

.article-box h2,
.side-box h2 {
  margin: 0 0 14px;
}

.article-box p {
  color: #5f4426;
  line-height: 1.9;
  font-size: 16px;
}

.side-links {
  display: grid;
  gap: 12px;
}

.side-links a {
  padding: 12px;
  border-radius: 16px;
  background: #fff7ed;
  color: #7c2d12;
  font-weight: 900;
}

.site-footer {
  margin-top: 52px;
  padding: 42px 0;
  color: #fff7ed;
  background: linear-gradient(135deg, #431407, #78350f 58%, #92400e);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 36px;
}

.footer-inner p {
  color: rgba(255, 247, 237, .76);
  line-height: 1.8;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
}

.empty-state {
  display: none;
  padding: 32px;
  text-align: center;
  border-radius: 22px;
  color: #8a5a18;
  background: rgba(255, 255, 255, .72);
}

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

  .hero-content,
  .detail-inner,
  .content-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-side-card {
    max-width: 360px;
  }
}

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

  .menu-toggle {
    display: grid;
    place-items: center;
  }

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

  .brand-text {
    font-size: 20px;
  }

  .hero,
  .hero-content {
    min-height: 680px;
  }

  .hero-content {
    padding-top: 62px;
    gap: 20px;
  }

  .hero-control {
    display: none;
  }

  .search-panel,
  .inline-filter {
    grid-template-columns: 1fr;
    margin-left: 20px;
    margin-right: 20px;
  }

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

  .card-body {
    padding: 13px;
  }

  .rank-item {
    grid-template-columns: 44px 72px 1fr;
  }

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

  .detail-inner {
    padding-top: 38px;
  }

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

  .article-box,
  .side-box {
    padding: 20px;
  }
}

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

  .hero-side-card {
    display: none;
  }

  .player-info {
    display: block;
  }
}
