:root {
  --canyon-50: #faf8f5;
  --canyon-100: #f5f0e8;
  --canyon-200: #e8dbc8;
  --canyon-600: #a6714a;
  --canyon-700: #8a5c3f;
  --canyon-800: #704c37;
  --canyon-900: #5c3f2f;
  --earth-700: #655545;
  --earth-800: #56483c;
  --earth-900: #4a3e34;
  --gold-300: #ffdf8f;
  --gold-400: #ffc94a;
  --gold-500: #ffb41e;
  --gold-600: #f09200;
  --sand-50: #fdfcfa;
  --sand-100: #faf7f0;
  --sand-200: #f5eedd;
  --ink: #231912;
  --muted: #765f4c;
  --white-soft: rgba(255, 255, 255, 0.82);
  --shadow: 0 4px 6px -1px rgba(138, 92, 63, 0.10), 0 2px 4px -1px rgba(138, 92, 63, 0.06);
  --shadow-lg: 0 16px 40px rgba(92, 63, 47, 0.16);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, var(--canyon-50), #ffffff 45%, var(--sand-50));
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--canyon-800), var(--canyon-900), var(--earth-900));
  box-shadow: var(--shadow-lg);
}

.nav-container {
  display: flex;
  align-items: center;
  min-height: 76px;
  gap: 22px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--canyon-900);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(255, 180, 30, 0.28);
}

.brand-text {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-300);
  transform: translateY(-1px);
}

.nav-link-soft {
  opacity: 0.86;
}

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

.header-search input {
  width: 230px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 10px 4px 10px 16px;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.header-search button {
  border: 0;
  color: #ffffff;
  background: var(--gold-600);
  padding: 10px 16px;
  font-weight: 700;
}

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

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

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

.mobile-panel a {
  display: block;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

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

.hero-carousel {
  position: relative;
  color: #ffffff;
  background: var(--canyon-900);
}

.hero-stage {
  position: relative;
  min-height: 590px;
  overflow: hidden;
}

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

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

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

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 201, 74, 0.22), transparent 32%),
    linear-gradient(0deg, rgba(28, 18, 12, 0.92) 0%, rgba(44, 26, 17, 0.58) 48%, rgba(44, 26, 17, 0.32) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 76px;
  transform: translateX(-50%);
  z-index: 2;
  max-width: 1180px;
}

.hero-eyebrow,
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-500);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
  width: min(850px, 100%);
  margin: 0 0 16px;
  font-size: clamp(34px, 7vw, 68px);
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.36);
}

.hero-feature-title {
  margin: -4px 0 12px;
  color: var(--gold-300);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 800;
}

.hero-summary {
  width: min(760px, 100%);
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.detail-tags,
.detail-tag-row,
.tag-row,
.quick-cats,
.card-meta,
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  box-shadow: 0 12px 28px rgba(240, 146, 0, 0.35);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover,
.row-button:hover {
  transform: translateY(-2px);
}

.hero-meta {
  margin-top: 20px;
}

.hero-meta span,
.detail-tags span,
.detail-tag-row span,
.tag-row span {
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--canyon-900);
  background: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

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

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
}

.hero-dot.active {
  width: 32px;
  background: var(--gold-500);
}

.hero-side {
  position: relative;
  z-index: 5;
  margin-top: -52px;
}

.hero-side-panel {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}

.hero-side-panel h2 {
  margin: 0 0 16px;
  color: var(--canyon-900);
  font-size: 26px;
}

.home-intro,
.page-hero,
.content-section,
.category-overview,
.ranking-page,
.detail-content,
.player-section {
  margin-top: 60px;
}

.home-intro {
  padding: 34px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, var(--sand-100));
  box-shadow: var(--shadow);
}

.home-intro h2,
.page-hero h1,
.section-heading h2,
.player-section h2,
.text-panel h2 {
  margin: 0;
  color: var(--canyon-900);
  line-height: 1.15;
}

.home-intro h2,
.page-hero h1 {
  font-size: clamp(30px, 5vw, 50px);
}

.home-intro p,
.page-hero p,
.section-heading p,
.text-panel p,
.category-overview-card p,
.ranking-row p {
  color: var(--muted);
}

.quick-cats {
  margin-top: 22px;
}

.quick-cats a,
.category-card,
.category-title,
.section-link,
.row-button {
  color: var(--canyon-900);
  background: #ffffff;
  border: 1px solid var(--canyon-200);
}

.quick-cats a {
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 750;
  box-shadow: var(--shadow);
}

.content-section {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

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

.section-heading h2 {
  font-size: clamp(26px, 4vw, 38px);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--canyon-200), var(--sand-200));
}

.large-card .poster-link {
  aspect-ratio: 21 / 9;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.70), transparent 55%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

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

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--gold-500);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

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

.year-badge,
.rank-badge,
.mini-rank {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
}

.year-badge {
  top: 12px;
  right: 12px;
  padding: 5px 10px;
}

.rank-badge {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  background: var(--gold-600);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: var(--canyon-900);
  font-size: 17px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--gold-600);
}

.card-body p {
  display: -webkit-box;
  min-height: 46px;
  overflow: hidden;
  margin: 0 0 12px;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  justify-content: space-between;
  color: var(--earth-700);
  font-size: 13px;
  font-weight: 700;
}

.tag-row {
  margin-top: 12px;
  gap: 6px;
}

.tag-row span {
  color: var(--earth-800);
  background: var(--sand-100);
  padding: 5px 9px;
}

.mini-list,
.ranking-strip {
  display: grid;
  gap: 12px;
}

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

.mini-card {
  position: relative;
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.mini-card img {
  width: 86px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--sand-200);
}

.mini-card strong {
  display: block;
  color: var(--canyon-900);
  line-height: 1.3;
}

.mini-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.mini-rank {
  left: 6px;
  top: 6px;
  padding: 2px 7px;
  background: var(--gold-600);
}

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

.category-card,
.category-overview-card {
  display: block;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, var(--sand-100));
  box-shadow: var(--shadow);
}

.category-card strong,
.category-title {
  display: block;
  margin-bottom: 8px;
  color: var(--canyon-900);
  font-size: 22px;
  font-weight: 850;
}

.category-card span {
  color: var(--muted);
}

.page-shell {
  padding-bottom: 40px;
}

.compact-hero {
  padding: 42px;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(135deg, #ffffff, var(--sand-100));
  box-shadow: var(--shadow);
}

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

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

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 170px 170px;
  gap: 12px;
  margin-top: 28px;
}

.full-filter {
  grid-template-columns: 1fr 170px 150px 170px;
}

.filter-bar input,
.filter-bar select {
  min-height: 48px;
  border: 1px solid var(--canyon-200);
  border-radius: 999px;
  outline: 0;
  background: #ffffff;
  padding: 0 16px;
  color: var(--canyon-900);
  box-shadow: var(--shadow);
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(255, 201, 74, 0.20);
}

.category-page-grid,
.search-grid {
  margin-top: 30px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 54px minmax(280px, 380px) 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.ranking-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  font-weight: 900;
}

.row-button {
  color: #ffffff;
  background: var(--canyon-800);
}

.detail-hero {
  position: relative;
  min-height: 560px;
  color: #ffffff;
  overflow: hidden;
  background: var(--canyon-900);
}

.detail-backdrop,
.detail-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-backdrop {
  object-fit: cover;
  filter: blur(2px);
  transform: scale(1.04);
}

.detail-mask {
  background: linear-gradient(90deg, rgba(36, 22, 14, 0.95), rgba(36, 22, 14, 0.72) 48%, rgba(36, 22, 14, 0.40));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 48px;
  padding-bottom: 64px;
}

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

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.1;
  font-weight: 900;
}

.detail-one {
  width: min(780px, 100%);
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.detail-copy .primary-button {
  margin-top: 22px;
}

.player-section h2 {
  margin-bottom: 18px;
  font-size: clamp(25px, 4vw, 36px);
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.68));
}

.play-cover.is-hidden {
  display: none;
}

.play-cover-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  box-shadow: 0 18px 45px rgba(240, 146, 0, 0.42);
  font-size: 32px;
}

.play-cover strong {
  font-size: clamp(20px, 4vw, 34px);
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.text-panel {
  padding: 26px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.text-panel h2 {
  margin-bottom: 12px;
  font-size: 26px;
}

.text-panel p {
  margin: 0;
  font-size: 17px;
}

.detail-tag-row {
  grid-column: 1 / -1;
}

.related-section {
  margin-top: 50px;
}

.site-footer {
  margin-top: 70px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--canyon-900), var(--earth-900), var(--canyon-800));
}

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

.footer-brand {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold-300);
  font-size: 24px;
  font-weight: 900;
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: var(--gold-300);
  font-size: 18px;
}

.footer-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links a:hover {
  color: var(--gold-300);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 18px;
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
}

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

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

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

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

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

  .large-card {
    grid-column: 1 / -1;
  }

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

  .ranking-row {
    grid-template-columns: 48px 1fr auto;
  }

  .ranking-row p {
    grid-column: 2 / -1;
  }
}

@media (max-width: 760px) {
  .container,
  .content-section,
  .mobile-panel {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-stage,
  .hero-slide img {
    min-height: 560px;
  }

  .hero-content {
    bottom: 76px;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .hero-prev {
    left: 10px;
  }

  .hero-next {
    right: 10px;
  }

  .hero-side {
    margin-top: 20px;
  }

  .home-intro,
  .compact-hero {
    padding: 24px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid.with-large,
  .category-grid,
  .category-overview,
  .ranking-strip,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar,
  .full-filter {
    grid-template-columns: 1fr;
  }

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

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

  .ranking-row {
    grid-template-columns: 44px 1fr;
  }

  .ranking-row p,
  .row-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .movie-grid {
    gap: 16px;
  }

  .mini-card {
    grid-template-columns: 76px 1fr;
  }

  .mini-card img {
    width: 76px;
    height: 52px;
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-hero-inner {
    padding-top: 28px;
  }
}
