:root {
  --bg: #fff7ed;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #fed7aa;
  --dark: #111827;
  --dark-soft: #1f2937;
  --accent: #f97316;
  --accent-2: #f59e0b;
  --radius: 22px;
  --shadow: 0 18px 55px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 42%, #ffedd5 100%);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 24, 39, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  color: #fff;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.38);
  letter-spacing: -0.05em;
}

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

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

.main-nav a,
.mobile-panel a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.mobile-panel a:hover {
  color: #fdba74;
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(340px, 30vw);
}

.header-search input,
.search-panel input,
.filter-select {
  width: 100%;
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  padding: 11px 16px;
  outline: none;
}

.header-search button,
.btn,
.play-button,
.search-panel button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
  padding: 11px 18px;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.btn:hover,
.play-button:hover,
.search-panel button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.34);
}

.mobile-toggle {
  display: none;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 20px;
}

.mobile-panel {
  display: none;
  padding: 0 24px 18px;
  gap: 14px;
  flex-wrap: wrap;
}

.mobile-panel.open {
  display: flex;
}

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 15% 15%, rgba(249, 115, 22, 0.32), transparent 30%), linear-gradient(135deg, #111827 0%, #1f2937 55%, #431407 100%);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.62), rgba(17, 24, 39, 0.82));
  z-index: 1;
}

.hero-slide {
  min-height: 620px;
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 1s ease;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  transform: scale(1);
}

.hero-slide img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.62fr);
  align-items: center;
  gap: 48px;
  padding: 72px 24px;
}

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

.hero-copy p {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.hero-meta {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 20px;
}

.hero-meta span,
.tag-row span,
.detail-tags span,
.category-pill,
.filter-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  color: #c2410c;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-meta span {
  background: rgba(255, 255, 255, 0.12);
  color: #fed7aa;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.hero-poster {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(1.5deg);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}

.hero-poster strong {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  font-size: 20px;
}

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

.hero-dot {
  width: 42px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.hero-dot.active {
  background: #fb923c;
}

.section,
.page-hero,
.detail-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px;
}

.page-hero {
  padding-top: 48px;
  padding-bottom: 28px;
}

.page-hero h1,
.section-title h1,
.section-title h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.page-hero p,
.section-title p {
  max-width: 840px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 24px;
}

.movie-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(249, 115, 22, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(249, 115, 22, 0.34);
}

.poster-link {
  position: relative;
  display: block;
  background: #111827;
}

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

.score {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.78);
  color: #fbbf24;
  font-weight: 900;
  font-size: 13px;
}

.card-body {
  padding: 16px;
}

.card-body h2 {
  margin: 8px 0;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
}

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

.card-meta {
  font-size: 12px;
}

.tag-row,
.detail-tags,
.category-grid,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.category-tile {
  min-height: 156px;
  border-radius: 26px;
  padding: 24px;
  background: linear-gradient(135deg, #ffffff, #ffedd5);
  border: 1px solid rgba(249, 115, 22, 0.16);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
}

.category-tile h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 950;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin: 20px 0 26px;
}

.filter-row {
  margin: 0 0 28px;
}

.filter-chip {
  border: 0;
  cursor: pointer;
  background: #fff;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.filter-chip.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.rank-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rank-item a {
  display: grid;
  grid-template-columns: 54px 72px minmax(0, 1fr) 60px;
  gap: 16px;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(249, 115, 22, 0.12);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.rank-num {
  color: #fb923c;
  font-size: 26px;
  font-weight: 950;
  text-align: center;
}

.rank-item img {
  width: 72px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-copy strong,
.rank-copy em {
  display: block;
}

.rank-copy strong {
  font-size: 18px;
  margin-bottom: 8px;
}

.rank-copy em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
}

.rank-score {
  color: #f59e0b;
  font-size: 22px;
  font-weight: 950;
}

.detail-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.42fr);
  gap: 34px;
  align-items: start;
}

.detail-main,
.detail-side,
.player-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(249, 115, 22, 0.14);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-main {
  overflow: hidden;
}

.player-card {
  padding: 18px;
  margin-bottom: 22px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
}

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

.play-button {
  margin-top: 14px;
  width: 100%;
  font-size: 16px;
}

.detail-content {
  padding: 28px;
}

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

.breadcrumb a {
  color: #c2410c;
  font-weight: 700;
}

.detail-content h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.detail-lead {
  color: #374151;
  font-size: 18px;
  line-height: 1.8;
  margin: 18px 0;
}

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

.detail-section h2 {
  font-size: 24px;
  margin: 0 0 14px;
}

.detail-section p {
  color: #374151;
  line-height: 2;
  margin: 0;
}

.detail-side {
  padding: 20px;
  position: sticky;
  top: 94px;
}

.detail-side img {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  margin-bottom: 18px;
}

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

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #ffedd5;
  padding-bottom: 10px;
}

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

.info-list dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.related-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.empty-state {
  padding: 34px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  text-align: center;
}

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

  .mobile-toggle {
    display: inline-flex;
    margin-left: auto;
  }

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

  .hero-poster {
    max-width: 360px;
    margin: 0 auto;
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 680px) {
  .header-inner {
    min-height: 64px;
    padding: 0 16px;
  }

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

  .hero-inner {
    padding: 48px 18px 72px;
  }

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

  .section,
  .page-hero,
  .detail-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .card-body {
    padding: 12px;
  }

  .rank-item a {
    grid-template-columns: 42px 58px minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }

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