:root {
  --primary-50: #fef7ed;
  --primary-100: #fdecd0;
  --primary-500: #f17925;
  --primary-600: #e2591b;
  --primary-700: #bc3e18;
  --accent-50: #fff7d6;
  --accent-500: #f7ad24;
  --neutral-50: #fafaf9;
  --neutral-100: #f5f5f4;
  --neutral-200: #e7e5e4;
  --neutral-300: #d6d3d1;
  --neutral-500: #78716c;
  --neutral-600: #57534e;
  --neutral-700: #44403c;
  --neutral-800: #292524;
  --neutral-900: #1c1917;
  --shadow-soft: 0 18px 40px rgba(28, 25, 23, 0.12);
  --shadow-card: 0 10px 24px rgba(28, 25, 23, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--neutral-900);
  background: var(--neutral-50);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 14px rgba(28, 25, 23, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  width: min(1280px, calc(100% - 32px));
  height: 70px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  box-shadow: 0 10px 22px rgba(241, 121, 37, 0.28);
  font-size: 14px;
}

.brand-name {
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(90deg, var(--primary-600), var(--accent-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
}

.desktop-nav a,
.mobile-nav a {
  color: var(--neutral-700);
  font-weight: 650;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"],
.mobile-nav a:hover {
  color: var(--primary-600);
}

.nav-search {
  display: flex;
  align-items: center;
  width: min(340px, 30vw);
  min-width: 220px;
  border: 1px solid var(--neutral-300);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.nav-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  background: transparent;
}

.nav-search button {
  border: 0;
  color: #fff;
  background: var(--primary-500);
  padding: 10px 16px;
  transition: background 0.2s ease;
}

.nav-search button:hover {
  background: var(--primary-600);
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--neutral-800);
  background: transparent;
  font-size: 28px;
}

.mobile-nav {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px 24px 24px;
  border-top: 1px solid var(--neutral-200);
  background: #fff;
}

.mobile-nav.is-open {
  display: grid;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  color: #fff;
  background: #000;
}

.hero-media,
.hero-slide,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 0.55s ease;
}

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

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

.hero-shade {
  background:
    radial-gradient(circle at 75% 15%, rgba(247, 173, 36, 0.3), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.58) 45%, rgba(0, 0, 0, 0.18));
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(1280px, calc(100% - 32px));
  min-height: 70vh;
  margin: 0 auto;
  padding: 72px 0 90px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--primary-500);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy-list {
  position: relative;
  min-height: 230px;
}

.hero-copy {
  position: absolute;
  max-width: 720px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.hero-copy.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-copy h2 {
  margin: 10px 0 12px;
  font-size: clamp(30px, 4.5vw, 54px);
  line-height: 1.08;
}

.hero-copy p {
  max-width: 660px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.detail-tags span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 650;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: var(--primary-500);
  box-shadow: 0 14px 28px rgba(241, 121, 37, 0.32);
}

.primary-btn:hover,
.nav-search button:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
}

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.ghost-btn.dark {
  color: var(--neutral-900);
  background: var(--primary-100);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

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

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 32px;
  background: #fff;
}

.home-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: min(1280px, calc(100% - 32px));
  margin: -32px auto 0;
  position: relative;
  z-index: 5;
}

.home-shortcuts a {
  flex: 1 1 160px;
  padding: 18px 20px;
  border-radius: 18px;
  color: var(--neutral-900);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  font-weight: 800;
  text-align: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.home-shortcuts a:hover {
  color: var(--primary-600);
  transform: translateY(-3px);
}

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

.page-top {
  padding-top: 38px;
}

.home-sections,
.content-section {
  padding-top: 54px;
}

.content-section {
  margin-bottom: 18px;
}

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

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

.section-heading p {
  margin: 8px 0 0;
  color: var(--neutral-600);
}

.section-link {
  display: inline-flex;
  min-width: max-content;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--primary-700);
  background: var(--primary-100);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

.movie-grid.five-col {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.horizontal-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 22px;
  padding: 4px 0 16px;
  overflow-x: auto;
}

.highlight-panel {
  padding: 32px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
  box-shadow: var(--shadow-soft);
}

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transform: translateY(0);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 42px rgba(28, 25, 23, 0.18);
}

.movie-card[hidden] {
  display: none;
}

.card-search-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--neutral-200), var(--neutral-100));
}

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

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

.year-pill,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  right: auto;
  left: 12px;
  min-width: 32px;
  text-align: center;
  background: var(--primary-500);
}

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

.card-tags span,
.tag-cloud span {
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--primary-700);
  background: var(--primary-100);
  font-size: 12px;
  font-weight: 750;
}

.movie-title {
  display: -webkit-box;
  min-height: 52px;
  margin: 0;
  overflow: hidden;
  color: var(--neutral-900);
  font-size: 18px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-title {
  color: var(--primary-600);
}

.movie-summary {
  display: -webkit-box;
  min-height: 44px;
  margin: 0;
  overflow: hidden;
  color: var(--neutral-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--neutral-500);
  font-size: 13px;
}

.is-compact .card-body {
  padding: 14px;
}

.is-compact .movie-title {
  font-size: 16px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 56px;
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.16), transparent 35%),
    linear-gradient(135deg, var(--neutral-900), #3b1f11 55%, var(--primary-700));
  box-shadow: var(--shadow-soft);
}

.compact-hero {
  min-height: 240px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--neutral-600);
  font-size: 14px;
}

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

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.category-tile {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.category-main-link {
  display: block;
  padding: 28px 28px 18px;
}

.category-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  color: #fff;
  background: var(--primary-500);
}

.category-tile h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-tile p {
  margin: 0;
  color: var(--neutral-600);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 28px 28px;
}

.category-samples a {
  max-width: 100%;
  overflow: hidden;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--neutral-700);
  background: var(--neutral-100);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-samples a:hover {
  color: #fff;
  background: var(--primary-500);
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
  padding: 20px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--neutral-600);
  font-weight: 750;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--neutral-300);
  border-radius: 14px;
  outline: 0;
  padding: 12px 13px;
  background: var(--neutral-50);
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(241, 121, 37, 0.13);
}

.empty-state {
  margin: 18px 0;
  padding: 24px;
  border-radius: 18px;
  color: var(--neutral-700);
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.player-section {
  padding: 34px 0;
  color: #fff;
  background:
    radial-gradient(circle at 85% 10%, rgba(241, 121, 37, 0.28), transparent 34%),
    linear-gradient(135deg, #111, var(--neutral-900));
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 32px;
  align-items: center;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.62));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-icon {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-500);
  box-shadow: 0 18px 32px rgba(241, 121, 37, 0.35);
  font-size: 28px;
}

.play-overlay strong {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.detail-intro h1 {
  margin: 18px 0 14px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
}

.detail-one-line {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding-top: 40px;
}

.detail-main,
.detail-side {
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.detail-main {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  padding: 24px;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  object-fit: cover;
}

.detail-text {
  display: grid;
  gap: 28px;
}

.detail-text h2,
.detail-side h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.detail-text p {
  margin: 0;
  color: var(--neutral-700);
  font-size: 16px;
}

.detail-side {
  padding: 24px;
  height: fit-content;
}

.detail-side dl {
  display: grid;
  gap: 14px;
  margin: 0 0 20px;
}

.detail-side dl div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
}

.detail-side dt {
  color: var(--neutral-500);
}

.detail-side dd {
  margin: 0;
  color: var(--neutral-900);
  font-weight: 750;
}

.site-footer {
  margin-top: 72px;
  color: var(--neutral-300);
  background: var(--neutral-900);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 42px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
}

.footer-logo .brand-name {
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-brand p {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--neutral-300);
}

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

.footer-links h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 18px;
}

.footer-links a:hover {
  color: var(--primary-500);
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--neutral-500);
  text-align: center;
}

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

  .menu-toggle {
    display: block;
  }

  .nav-search {
    width: min(420px, 44vw);
  }

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

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

  .detail-side {
    order: 2;
  }
}

@media (max-width: 900px) {
  .movie-grid.four-col,
  .movie-grid.five-col,
  .feature-grid,
  .category-grid,
  .footer-inner,
  .detail-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .page-hero {
    padding: 36px;
  }

  .hero-arrow {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }

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

  .nav-search {
    order: 3;
    width: 100%;
    min-width: 0;
  }

  .mobile-nav,
  .movie-grid.four-col,
  .movie-grid.five-col,
  .feature-grid,
  .category-grid,
  .footer-inner,
  .detail-main {
    grid-template-columns: 1fr;
  }

  .hero,
  .hero-inner {
    min-height: 760px;
  }

  .hero-inner {
    justify-content: flex-end;
    padding-bottom: 120px;
  }

  .hero-copy-list {
    min-height: 340px;
  }

  .home-shortcuts {
    margin-top: 16px;
  }

  .highlight-panel {
    padding: 22px;
  }

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

  .page-hero {
    padding: 28px;
    border-radius: 24px;
  }

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

  .player-shell {
    border-radius: 18px;
  }
}
