:root {
  color-scheme: light;
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --surface: #ffffff;
  --surface-strong: #fff1d6;
  --text: #1f2937;
  --muted: #6b7280;
  --muted-strong: #4b5563;
  --line: #f1d9b5;
  --accent: #d97706;
  --accent-dark: #b45309;
  --accent-soft: #fef3c7;
  --orange: #ea580c;
  --red: #dc2626;
  --blue: #2563eb;
  --green: #059669;
  --shadow: 0 18px 45px rgba(146, 64, 14, 0.14);
  --shadow-soft: 0 10px 26px rgba(146, 64, 14, 0.10);
  --radius: 24px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 34rem),
    linear-gradient(180deg, #fffaf0 0%, #fff7ed 38%, #ffffff 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 8px 24px rgba(120, 53, 15, 0.08);
}

.header-shell {
  max-width: var(--container);
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 13px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.28);
}

.brand-text {
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #d97706, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: #374151;
  font-weight: 700;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-current {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 188px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(245, 158, 11, 0.16);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 700;
}

.nav-dropdown-menu a:hover {
  color: var(--accent-dark);
  background: #fff7ed;
}

.header-search {
  position: relative;
  width: 260px;
  flex-shrink: 0;
}

.header-search input,
.mobile-search input,
.page-filter input,
.search-page-form input {
  width: 100%;
  border: 1px solid rgba(217, 119, 6, 0.22);
  background: #ffffff;
  border-radius: 999px;
  outline: none;
  color: var(--text);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  height: 42px;
  padding: 0 46px 0 18px;
}

.header-search input:focus,
.mobile-search input:focus,
.page-filter input:focus,
.search-page-form input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.header-search button {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 13px;
  background: #fff7ed;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #92400e;
}

.mobile-panel {
  display: none;
  padding: 18px 20px 22px;
  border-top: 1px solid rgba(245, 158, 11, 0.16);
  background: #ffffff;
}

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

.mobile-panel a,
.mobile-category-title {
  display: block;
  padding: 10px 4px;
  color: #374151;
  font-weight: 700;
}

.mobile-category-title {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 10px;
}

.mobile-search input {
  height: 42px;
  padding: 0 16px;
}

.mobile-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  cursor: pointer;
}

.hero-slider {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: #111827;
}

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

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 52px;
  padding: 74px max(22px, calc((100vw - var(--container)) / 2)) 64px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.7s ease, visibility 0.7s ease, transform 1.1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-content {
  max-width: 680px;
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 12px 28px rgba(180, 83, 9, 0.28);
}

.hero-content h1,
.hero-content h2 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 950;
  text-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  max-width: 620px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

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

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 35px rgba(234, 88, 12, 0.28);
}

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

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

.button-soft {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.hero-cover {
  width: 100%;
  max-width: 330px;
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
  transform: rotate(2.5deg);
}

.hero-cover img {
  height: 100%;
  object-fit: cover;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #f59e0b;
}

.page-shell,
.home-shell {
  max-width: var(--container);
  margin: 0 auto;
  padding: 52px 20px;
}

.home-section,
.content-section {
  margin-bottom: 64px;
}

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

.section-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2,
.page-title h1,
.story-block h2,
.sidebar-card h2 {
  margin: 0;
  color: #1f2937;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-heading h2 {
  font-size: clamp(28px, 3.2vw, 42px);
}

.section-heading a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-dark);
  font-weight: 900;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid rgba(245, 158, 11, 0.12);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.72));
}

.card-year {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 54px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  background: rgba(217, 119, 6, 0.92);
  backdrop-filter: blur(8px);
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fff7ed;
}

.movie-card h2,
.ranking-copy h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.32;
  font-weight: 950;
}

.movie-card h2 a:hover,
.ranking-copy h2 a:hover,
.related-list a:hover {
  color: var(--accent-dark);
}

.movie-card p,
.ranking-copy p,
.category-card p,
.story-block p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.75;
}

.movie-card p {
  display: -webkit-box;
  min-height: 50px;
  overflow: hidden;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.card-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  background: #ffedd5;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 150px 1fr;
}

.movie-card-horizontal .movie-poster {
  aspect-ratio: auto;
  min-height: 224px;
}

.feature-band {
  padding: 34px;
  border-radius: 34px;
  background: linear-gradient(135deg, #fff7ed, #fef3c7, #ecfeff);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.12);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 24px;
  border-radius: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: var(--shadow-soft);
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #10b981, #059669);
}

.category-card:nth-child(4n) {
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.category-card h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 950;
}

.category-card p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 64px 90px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.12);
  box-shadow: var(--shadow-soft);
}

.ranking-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.ranking-poster {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
}

.ranking-poster img {
  height: 100%;
  object-fit: cover;
}

.ranking-copy p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-title {
  margin-bottom: 34px;
  padding: 42px;
  border-radius: 34px;
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.14);
}

.page-title h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.page-title p {
  max-width: 820px;
  margin: 16px 0 0;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.8;
}

.page-filter {
  margin: -8px 0 26px;
}

.page-filter input {
  max-width: 460px;
  height: 48px;
  padding: 0 18px;
}

.detail-hero {
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.detail-hero-inner {
  max-width: var(--container);
  min-height: 520px;
  margin: 0 auto;
  padding: 72px 20px;
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: end;
  gap: 42px;
}

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

.detail-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

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

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

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-lead {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.82;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.player-card,
.story-block,
.sidebar-card {
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.13);
  box-shadow: var(--shadow-soft);
}

.player-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  background: #111827;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.78));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 34px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 20px 44px rgba(234, 88, 12, 0.36);
}

.play-title {
  font-size: 19px;
  font-weight: 950;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

.story-block,
.sidebar-card {
  padding: 26px;
  margin-bottom: 24px;
}

.story-block h2,
.sidebar-card h2 {
  margin-bottom: 14px;
  font-size: 26px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f3e4cc;
}

.info-list dt {
  color: var(--muted);
  font-weight: 900;
}

.info-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

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

.related-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
}

.related-item img {
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
}

.related-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.38;
}

.related-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.search-page-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  max-width: 720px;
  margin: 24px 0 0;
}

.search-page-form input {
  height: 52px;
  padding: 0 20px;
}

.search-results-note {
  margin: 0 0 22px;
  color: var(--muted-strong);
  font-weight: 800;
}

.empty-state {
  padding: 42px;
  border-radius: 28px;
  background: #ffffff;
  color: var(--muted-strong);
  box-shadow: var(--shadow-soft);
}

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

  .mobile-toggle {
    display: flex;
  }

  .hero-slider {
    height: 650px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
    padding-top: 62px;
    padding-bottom: 70px;
  }

  .hero-cover {
    display: none;
  }

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

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

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

@media (max-width: 640px) {
  .header-shell {
    height: 64px;
  }

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

  .hero-slider {
    height: 600px;
  }

  .hero-content h1,
  .hero-content h2,
  .detail-copy h1 {
    font-size: 42px;
  }

  .hero-content p,
  .detail-lead,
  .page-title p {
    font-size: 16px;
  }

  .home-shell,
  .page-shell {
    padding: 34px 16px;
  }

  .page-title {
    padding: 28px;
    border-radius: 26px;
  }

  .feature-band {
    padding: 22px;
    border-radius: 28px;
  }

  .movie-grid,
  .movie-grid.three,
  .movie-grid.two,
  .category-strip {
    grid-template-columns: 1fr;
  }

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

  .ranking-item {
    grid-template-columns: 48px 72px 1fr;
    gap: 12px;
  }

  .ranking-index {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .detail-hero-inner {
    min-height: auto;
    padding: 40px 16px;
  }

  .story-block,
  .sidebar-card {
    padding: 20px;
  }

  .search-page-form {
    grid-template-columns: 1fr;
  }

  .search-page-form button {
    min-height: 48px;
  }
}
