:root {
  --amber-50: #fff7ed;
  --amber-100: #ffedd5;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-600: #ea580c;
  --blue-600: #2563eb;
  --cyan-600: #0891b2;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 8px 24px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 18px 45px rgba(17, 24, 39, 0.14);
  --radius-lg: 22px;
  --radius-md: 16px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(16px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--gray-800);
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.28);
}

.brand-text {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 9px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #92400e;
  background: var(--amber-100);
}

.top-search {
  display: flex;
  min-width: 280px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}

.top-search input,
.feature-search input,
.filter-bar input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--gray-800);
  background: transparent;
}

.top-search input {
  padding: 10px 14px;
}

.top-search button,
.feature-search button {
  border: 0;
  cursor: pointer;
  color: var(--white);
  background: var(--amber-600);
  font-weight: 800;
  padding: 0 18px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--amber-100);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--amber-600);
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: var(--white);
  background: var(--gray-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.12)), var(--hero-image);
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 18%, rgba(245, 158, 11, 0.22), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
  padding: 96px 0;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-500);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 16px 0 18px;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 660px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
}

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

.hero-meta span,
.detail-meta span,
.card-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-meta span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

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

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

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

.btn.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 18px 35px rgba(217, 119, 6, 0.32);
}

.btn.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  z-index: 3;
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.is-active {
  width: 56px;
  background: var(--amber-500);
}

.section {
  padding: 72px 0;
  background: var(--gray-50);
}

.section.white {
  background: var(--white);
}

.section.warm,
.section.soft {
  background: linear-gradient(135deg, var(--amber-50), #fffaf0);
}

.section.blue-strip {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-600));
}

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

.section-head h2,
.search-panel h2 {
  margin: 8px 0 0;
  color: var(--gray-800);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-head.inverse h2 {
  color: var(--white);
}

.more-link {
  color: var(--amber-600);
  font-weight: 900;
  white-space: nowrap;
}

.inverse-link {
  color: var(--white);
}

.search-band {
  padding: 34px 0;
  background: var(--white);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 30px;
  align-items: center;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff, var(--amber-50));
  box-shadow: var(--shadow-sm);
}

.search-panel p {
  margin: 10px 0 0;
  color: var(--gray-500);
}

.feature-search {
  display: flex;
  height: 56px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--gray-200);
}

.feature-search input {
  padding: 0 18px;
}

.feature-search button {
  min-width: 130px;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.card-cover,
.horizontal-cover,
.detail-poster {
  display: block;
  background-image: linear-gradient(135deg, rgba(17, 24, 39, 0.22), rgba(217, 119, 6, 0.2)), var(--poster-image);
  background-size: cover;
  background-position: center;
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.movie-card.compact .card-cover,
.movie-card.ranking .card-cover {
  aspect-ratio: 16 / 11;
}

.play-pill {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--white);
  background: rgba(245, 158, 11, 0.94);
  font-size: 0.82rem;
  font-weight: 900;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-pill {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  display: inline-grid;
  min-width: 38px;
  min-height: 32px;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, #ef4444, var(--amber-500));
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.card-body {
  padding: 16px;
}

.card-meta {
  gap: 8px;
  color: var(--amber-600);
  font-size: 0.82rem;
  font-weight: 900;
}

.card-body h3,
.horizontal-body h3 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.1em;
  margin: 9px 0 8px;
  color: var(--gray-900);
  font-size: 1.05rem;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body p,
.horizontal-body p,
.content-card p {
  margin: 0;
  color: var(--gray-500);
}

.card-body p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.2em;
  font-size: 0.94rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-tags,
.detail-tags {
  margin-top: 14px;
}

.card-tags span,
.detail-tags span {
  color: var(--gray-700);
  background: var(--gray-100);
}

.horizontal-card {
  width: 340px;
  flex: 0 0 340px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.horizontal-cover {
  aspect-ratio: 16 / 9;
}

.horizontal-body {
  padding: 16px;
}

.horizontal-body h3,
.horizontal-body p {
  color: var(--white);
}

.horizontal-body p {
  opacity: 0.82;
}

.scroll-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 0 18px;
  scroll-snap-type: x mandatory;
}

.page-hero {
  padding: 84px 0 74px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.page-hero.dark {
  background: linear-gradient(135deg, var(--gray-900), var(--gray-700));
}

.page-hero h1 {
  margin: 12px 0 12px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

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

.breadcrumb.light {
  color: rgba(255, 255, 255, 0.8);
}

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

.category-card a {
  display: block;
  min-height: 260px;
  border-radius: var(--radius-lg);
  padding: 26px;
  color: var(--gray-800);
  background: linear-gradient(135deg, var(--white), var(--amber-50));
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card a:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.category-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.category-card h2 {
  margin: 20px 0 10px;
  font-size: 1.45rem;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--gray-500);
}

.category-mini {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--amber-600);
  font-size: 0.92rem;
  font-weight: 800;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}

.filter-bar input {
  height: 52px;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--gray-200), var(--shadow-sm);
}

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

.filter-chip {
  height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 15px;
  color: var(--gray-700);
  background: var(--gray-100);
  cursor: pointer;
  font-weight: 800;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: var(--white);
  background: var(--amber-600);
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(17, 24, 39, 0.66), rgba(0, 0, 0, 0.38)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.detail-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.2), transparent 40%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 52px 0 72px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 38px;
  align-items: end;
}

.detail-poster {
  min-height: 440px;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.detail-copy h1 {
  margin: 12px 0 18px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-copy .lead {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.15rem;
}

.detail-meta {
  margin: 22px 0 0;
}

.detail-meta span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.detail-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.dark-player {
  padding: 50px 0;
  background: var(--gray-900);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  text-align: center;
  z-index: 3;
}

.player-shell.is-playing .player-cover {
  display: none;
}

.play-circle {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 18px 45px rgba(245, 158, 11, 0.34);
  font-size: 2rem;
}

.player-cover strong {
  max-width: 86%;
  font-size: clamp(1.2rem, 3vw, 2rem);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 24px;
}

.content-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.content-card h2 {
  margin: 10px 0 12px;
  color: var(--gray-900);
  font-size: 1.55rem;
}

.content-card p {
  font-size: 1.03rem;
  line-height: 1.9;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

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

.footer-logo {
  color: var(--white);
}

.footer-brand p {
  max-width: 420px;
  margin: 16px 0 0;
  color: #cbd5e1;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 1.08rem;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 18px 0;
  text-align: center;
  color: #9ca3af;
}

.footer-bottom p {
  margin: 0;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--amber-600);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  font-weight: 900;
}

.back-top.is-visible {
  display: block;
}

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

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

  .detail-layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .detail-poster {
    min-height: 360px;
  }
}

@media (max-width: 820px) {
  .site-nav {
    min-height: 66px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-panel {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    border-radius: 18px;
    padding: 18px;
    background: var(--white);
    box-shadow: var(--shadow-md);
  }

  .nav-panel.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  .top-search {
    min-width: 0;
  }

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

  .search-panel,
  .filter-bar,
  .two-column,
  .footer-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    max-width: 330px;
    min-height: 430px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

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

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

  .hero-copy {
    padding: 64px 0 92px;
  }

  .hero-actions,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

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

  .feature-search {
    flex-direction: column;
    height: auto;
    border-radius: 18px;
  }

  .feature-search input,
  .feature-search button {
    min-height: 52px;
  }

  .horizontal-card {
    width: 286px;
    flex-basis: 286px;
  }

  .page-hero {
    padding: 64px 0;
  }

  .detail-hero-inner {
    padding: 40px 0 56px;
  }

  .detail-poster {
    min-height: 360px;
  }
}
