* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  color: #292524;
  background: linear-gradient(180deg, #fffbeb 0%, #f5f5f4 48%, #fafaf9 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff7ed;
  background: linear-gradient(90deg, #78350f 0%, #92400e 50%, #78350f 100%);
  box-shadow: 0 16px 36px rgba(41, 37, 36, 0.22);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #78350f;
  background: #fcd34d;
  box-shadow: 0 8px 22px rgba(251, 191, 36, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 21px;
  letter-spacing: 0.04em;
}

.brand-text small {
  margin-top: 4px;
  color: #fde68a;
  font-size: 12px;
}

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

.nav-link {
  color: #fff7ed;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fcd34d;
}

.header-search {
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.header-search input,
.mobile-search input {
  width: 160px;
  border: 0;
  color: #fff7ed;
  outline: 0;
  background: transparent;
  padding: 10px 12px;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 247, 237, 0.7);
}

.header-search button,
.mobile-search button {
  border: 0;
  color: #78350f;
  font-weight: 700;
  cursor: pointer;
  background: #fcd34d;
  padding: 10px 16px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

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

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

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

.mobile-link:hover,
.mobile-link.is-active {
  color: #fcd34d;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-search {
  display: flex;
  margin-top: 10px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #1c1917;
}

.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.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 64px;
  width: min(1240px, calc(100% - 40px));
  transform: translateX(-50%);
  color: #fff7ed;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fcd34d;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 820px;
  margin: 14px 0 18px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
}

.hero-content p {
  max-width: 820px;
  margin: 0 0 22px;
  color: #e7e5e4;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  color: #fff7ed;
  background: #d97706;
  box-shadow: 0 16px 32px rgba(217, 119, 6, 0.32);
}

.primary-button:hover {
  transform: translateY(-2px);
  background: #b45309;
}

.ghost-button {
  color: #fff7ed;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(8px);
}

.ghost-button:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.48);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

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

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

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 36px;
  background: #f59e0b;
}

.intro-strip,
.content-section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.intro-strip {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 45px rgba(120, 53, 15, 0.08);
}

.intro-strip strong {
  color: #92400e;
  font-size: 22px;
}

.intro-strip p {
  margin: 6px 0 0;
  color: #78716c;
  line-height: 1.7;
}

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

.quick-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-weight: 700;
}

.content-section {
  margin-top: 54px;
}

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

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-bar {
  width: 6px;
  height: 32px;
  border-radius: 99px;
  background: #d97706;
}

.section-heading h2 {
  margin: 0;
  color: #292524;
  font-size: clamp(24px, 3vw, 34px);
}

.section-more {
  color: #b45309;
  font-weight: 800;
}

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

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

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

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

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

.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.highlight-section {
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fef3c7 0%, #ffedd5 100%);
  box-shadow: 0 24px 54px rgba(120, 53, 15, 0.1);
}

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(68, 64, 60, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(68, 64, 60, 0.18);
}

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

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

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

.duration-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  color: #fff7ed;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.68);
  font-size: 12px;
  backdrop-filter: blur(4px);
}

.play-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 44px;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.1));
  transition: opacity 0.25s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.card-body h2,
.card-body h3 {
  margin: 0 0 8px;
  color: #292524;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h2 a:hover,
.card-body h3 a:hover {
  color: #b45309;
}

.card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #57534e;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #78716c;
  font-size: 13px;
  margin-top: auto;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 700;
}

.movie-card.horizontal {
  flex-direction: row;
  min-height: 178px;
}

.movie-card.horizontal .poster-link {
  width: 145px;
  flex: 0 0 145px;
  aspect-ratio: auto;
}

.movie-card.horizontal .card-body {
  padding: 18px;
}

.page-hero {
  color: #fff7ed;
  background: radial-gradient(circle at 22% 10%, rgba(251, 191, 36, 0.38), transparent 30%), linear-gradient(135deg, #292524 0%, #78350f 100%);
}

.page-hero > div {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
}

.page-hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(34px, 5vw, 56px);
}

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

.listing-section {
  margin-bottom: 70px;
}

.listing-tools {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 24px;
  padding: 20px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(68, 64, 60, 0.1);
}

.listing-tools label {
  display: grid;
  gap: 8px;
  min-width: min(100%, 380px);
  color: #57534e;
  font-weight: 700;
}

.listing-tools input {
  width: 100%;
  border: 1px solid #e7e5e4;
  border-radius: 14px;
  outline: 0;
  padding: 13px 14px;
}

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

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.filter-pills button {
  border: 0;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  cursor: pointer;
  padding: 10px 14px;
  font-weight: 800;
}

.filter-pills button.is-active,
.filter-pills button:hover {
  color: #fff7ed;
  background: #d97706;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 36px 0 0;
}

.pagination a,
.pagination strong,
.pagination span {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
  color: #92400e;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(68, 64, 60, 0.08);
}

.pagination strong {
  color: #fff7ed;
  background: #d97706;
}

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

.rank-item {
  position: relative;
  padding-left: 64px;
}

.rank-number {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff7ed;
  background: #d97706;
  font-weight: 900;
  transform: translateY(-50%);
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  filter: blur(4px);
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 25, 23, 0.96), rgba(28, 25, 23, 0.66));
}

.detail-inner {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #fde68a;
  margin-bottom: 26px;
  font-size: 14px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: center;
}

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

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

.detail-info h1 {
  margin: 12px 0 18px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
}

.detail-one-line {
  max-width: 820px;
  color: #e7e5e4;
  font-size: 20px;
  line-height: 1.7;
}

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

.detail-meta span {
  border-radius: 999px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 12px;
}

.detail-tags {
  margin-bottom: 26px;
}

.detail-section {
  margin-top: 46px;
}

.player-card {
  padding: 24px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(68, 64, 60, 0.12);
}

.player-card h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff7ed;
  cursor: pointer;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
}

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

.play-circle {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #78350f;
  background: #fcd34d;
  box-shadow: 0 18px 48px rgba(251, 191, 36, 0.35);
  font-size: 34px;
}

.detail-text {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.detail-text article,
.prose-card {
  padding: 26px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(68, 64, 60, 0.1);
}

.detail-text h2,
.prose-card h2 {
  margin: 0 0 14px;
  color: #292524;
}

.detail-text p,
.prose-card p {
  margin: 0 0 18px;
  color: #57534e;
  line-height: 1.9;
  font-size: 17px;
}

.site-footer {
  margin-top: 72px;
  color: #d6d3d1;
  background: linear-gradient(90deg, #1c1917 0%, #292524 50%, #1c1917 100%);
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 34px;
  margin: 0 auto;
  padding: 46px 0;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff7ed;
  font-size: 20px;
}

.footer-brand p {
  max-width: 460px;
  color: #a8a29e;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #fff7ed;
  font-size: 18px;
}

.site-footer a {
  display: block;
  margin: 9px 0;
  color: #d6d3d1;
}

.site-footer a:hover {
  color: #fcd34d;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  text-align: center;
  color: #a8a29e;
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1080px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-button {
    display: block;
    margin-left: auto;
  }

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

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

  .horizontal-grid,
  .two-columns,
  .detail-text {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 66px;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .hero-slider {
    height: 520px;
  }

  .hero-content {
    bottom: 72px;
  }

  .hero-arrow {
    display: none;
  }

  .intro-strip,
  .listing-tools {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .movie-card.horizontal {
    padding-left: 0;
  }

  .movie-card.horizontal .poster-link {
    width: 122px;
    flex-basis: 122px;
  }

  .card-body {
    padding: 13px;
  }

  .card-body h2,
  .card-body h3 {
    font-size: 16px;
  }

  .listing-tools {
    align-items: stretch;
  }

  .filter-pills {
    justify-content: flex-start;
  }

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

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

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

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

  .movie-card.horizontal {
    flex-direction: column;
  }

  .movie-card.horizontal .poster-link {
    width: 100%;
    flex-basis: auto;
    aspect-ratio: 16 / 9;
  }

  .rank-item {
    padding-left: 0;
  }

  .rank-number {
    top: 14px;
    transform: none;
  }
}
