:root {
  --bg: #fffaf3;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --text: #1f2937;
  --muted: #64748b;
  --line: #f1e4d6;
  --brand: #ea580c;
  --brand-dark: #c2410c;
  --brand-soft: #ffedd5;
  --gold: #f59e0b;
  --green: #059669;
  --blue: #2563eb;
  --shadow: 0 18px 45px rgba(124, 45, 18, 0.13);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #fffaf3 0%, #ffffff 42%, #fff7ed 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

.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.92);
  border-bottom: 1px solid rgba(241, 228, 214, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
}

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--brand);
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: #475569;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--brand), var(--gold));
  transition: width 0.24s ease;
}

.nav-links a:hover {
  color: var(--brand);
}

.nav-links a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-mini {
  width: 190px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  outline: none;
  background: #fff7ed;
  color: var(--text);
}

.search-mini:focus {
  border-color: rgba(234, 88, 12, 0.45);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.1);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 14px;
  padding: 10px 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--gold));
}

.mobile-panel {
  display: none;
  padding: 0 0 18px;
}

.mobile-panel a {
  display: block;
  padding: 12px 4px;
  color: #475569;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.65s ease, transform 0.85s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.hero-slide::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    radial-gradient(circle at 78% 20%, rgba(245, 158, 11, 0.4), transparent 32%),
    linear-gradient(90deg, rgba(7, 10, 20, 0.96) 0%, rgba(73, 31, 11, 0.74) 43%, rgba(7, 10, 20, 0.42) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(270px, 0.55fr);
  align-items: center;
  gap: 42px;
  color: #ffffff;
  padding: 82px 0 74px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  color: #fed7aa;
  background: rgba(255, 247, 237, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.35);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero-title {
  max-width: 760px;
  margin: 22px 0 14px;
  font-size: clamp(38px, 7vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-title span {
  color: #fdba74;
}

.hero-summary {
  max-width: 690px;
  color: #e2e8f0;
  font-size: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 30px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff7ed;
  font-size: 14px;
  font-weight: 800;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  cursor: pointer;
  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: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  box-shadow: 0 18px 32px rgba(234, 88, 12, 0.33);
}

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

.btn-light {
  color: var(--brand-dark);
  background: #ffffff;
  border: 1px solid var(--line);
}

.hero-card {
  position: relative;
  border-radius: 28px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(20px);
}

.hero-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.hero-card-body {
  padding: 16px 4px 4px;
}

.hero-card-body strong {
  display: block;
  color: #ffffff;
  font-size: 20px;
}

.hero-card-body span {
  color: #fed7aa;
  font-weight: 800;
}

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

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

.hero-dot.is-active {
  background: #ffffff;
}

.section {
  padding: 76px 0;
}

.section-soft {
  background: linear-gradient(135deg, #fff7ed, #eff6ff);
}

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

.section-kicker {
  color: var(--brand);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-title {
  margin: 6px 0 0;
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.section-desc {
  max-width: 720px;
  color: var(--muted);
  margin: 8px 0 0;
}

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

.category-card {
  min-height: 174px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #0d9488, #2563eb);
  font-size: 22px;
}

.category-card h3,
.rank-card h3,
.movie-card h3 {
  margin: 0;
}

.category-card p {
  color: var(--muted);
  margin: 8px 0 0;
  font-size: 14px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 170px;
  gap: 14px;
  margin: 0 0 26px;
}

.toolbar input,
.toolbar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  outline: none;
  background: #ffffff;
  color: var(--text);
}

.toolbar input:focus,
.toolbar select:focus {
  border-color: rgba(234, 88, 12, 0.45);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.1);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #1f2937;
}

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

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

.movie-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(234, 88, 12, 0.94);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.movie-body {
  padding: 16px;
}

.movie-body h3 a {
  display: -webkit-box;
  overflow: hidden;
  min-height: 52px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 17px;
  line-height: 1.45;
}

.movie-body h3 a:hover {
  color: var(--brand);
}

.movie-line {
  display: -webkit-box;
  overflow: hidden;
  min-height: 47px;
  margin: 9px 0 12px;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.meta-chip {
  border-radius: 999px;
  padding: 4px 9px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.rank-card {
  display: grid;
  grid-template-columns: 60px 90px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 17px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  font-size: 20px;
  font-weight: 900;
}

.rank-card img {
  width: 90px;
  height: 118px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.heat {
  color: var(--brand);
  font-size: 14px;
  font-weight: 900;
}

.page-hero {
  padding: 76px 0 44px;
  color: #ffffff;
  background:
    radial-gradient(circle at 72% 30%, rgba(245, 158, 11, 0.45), transparent 28%),
    linear-gradient(135deg, #1f2937, #7c2d12 54%, #ea580c);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #fed7aa;
  font-weight: 800;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 15px 0 0;
  color: #ffedd5;
  font-size: 18px;
}

.detail-wrap {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 50px 0;
}

.detail-cover {
  position: sticky;
  top: 92px;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: var(--shadow);
}

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

.detail-info {
  border-radius: 28px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.detail-info h2 {
  margin: 0 0 12px;
  font-size: 30px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0;
}

.tag {
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 13px;
  font-weight: 800;
}

.content-block {
  margin-top: 28px;
}

.content-block h2,
.content-block h3 {
  margin: 0 0 12px;
}

.content-block p {
  color: #475569;
  margin: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  margin: 0 0 28px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.72));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  display: inline-grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  padding-left: 5px;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.42);
  font-size: 34px;
}

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

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

.footer {
  padding: 42px 0;
  color: #e2e8f0;
  background: #111827;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer a {
  color: #fdba74;
}

.no-results {
  display: none;
  border-radius: var(--radius);
  padding: 28px;
  background: #fff7ed;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

@media (max-width: 820px) {
  .nav-links,
  .search-mini {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

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

  .hero-content {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 92px 0 84px;
  }

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

  .hero-card {
    max-width: 310px;
  }

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

  .toolbar {
    grid-template-columns: 1fr;
  }

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

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

  .rank-list {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 48px 74px minmax(0, 1fr);
  }

  .rank-card img {
    width: 74px;
    height: 96px;
  }

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

  .detail-cover {
    position: static;
    max-width: 320px;
  }
}

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

  .logo {
    font-size: 21px;
  }

  .hero-title {
    font-size: 40px;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

  .section {
    padding: 52px 0;
  }
}
