:root {
  --page-bg: #fff7ed;
  --soft-bg: #fffbeb;
  --card-bg: #ffffff;
  --ink: #1f1308;
  --muted: #7c5a3a;
  --brand: #d97706;
  --brand-dark: #92400e;
  --brand-soft: #fde68a;
  --line: rgba(146, 64, 14, 0.16);
  --shadow: 0 24px 60px rgba(146, 64, 14, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-dark);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #c2410c);
  box-shadow: 0 12px 28px rgba(194, 65, 12, 0.28);
}

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

.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #78350f;
  font-weight: 700;
  transition: 0.22s ease;
}

.nav-links a:hover {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.22);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--brand-dark);
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

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

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: radial-gradient(circle at 20% 30%, #f59e0b 0%, #7c2d12 46%, #111827 100%);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.1)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.9), transparent 58%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 70px;
  z-index: 3;
  max-width: 760px;
  color: #fff;
}

.hero-tags,
.detail-meta-row,
.movie-meta-line,
.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-meta-row span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: #fff;
  background: rgba(245, 158, 11, 0.74);
  backdrop-filter: blur(8px);
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.hero p {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.hero-actions,
.footer-links,
.sub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.22s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #c2410c);
  box-shadow: 0 18px 38px rgba(194, 65, 12, 0.35);
}

.btn-soft {
  color: #7c2d12;
  background: #fef3c7;
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.btn:hover,
.movie-card:hover,
.category-grid a:hover,
.rank-item:hover {
  transform: translateY(-3px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: 0.22s ease;
}

.hero:hover .hero-arrow {
  opacity: 1;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 28px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 46px;
  background: #f59e0b;
}

.section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
}

.intro-strip,
.feature-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: center;
}

.intro-strip h2,
.section-title h2,
.feature-panel h2,
.rank-section h2,
.text-block h2 {
  margin: 0;
  color: #431407;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.intro-strip p,
.feature-panel p,
.sub-hero p,
.text-block p,
.movie-card p {
  color: var(--muted);
}

.top-search,
.search-page-form {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
}

.top-search input,
.search-page-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 20px;
  color: #431407;
  background: transparent;
}

.top-search button,
.search-page-form button {
  border: 0;
  padding: 0 24px;
  color: #fff;
  background: var(--brand);
  font-weight: 900;
  cursor: pointer;
}

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

.section-title a,
.back-link {
  color: var(--brand-dark);
  font-weight: 900;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: 0 18px 44px rgba(146, 64, 14, 0.1);
  transition: 0.22s ease;
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: radial-gradient(circle at 25% 20%, #facc15, #fb923c 38%, #7c2d12 100%);
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.35s ease;
}

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

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(8px);
}

.poster-badge {
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 900;
}

.poster-play {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.movie-meta-line {
  color: #b45309;
  font-size: 12px;
  font-weight: 900;
}

.movie-card h3 {
  margin: 8px 0 8px;
  color: #431407;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 950;
}

.movie-card p {
  margin: 0 0 14px;
  font-size: 14px;
}

.tag-row span {
  min-height: 24px;
  padding: 2px 9px;
  font-size: 12px;
}

.feature-panel {
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 12% 20%, rgba(245, 158, 11, 0.24), transparent 28%),
    linear-gradient(135deg, #ffffff, #fffbeb);
  box-shadow: var(--shadow);
}

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

.category-grid a {
  display: block;
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  transition: 0.22s ease;
}

.category-grid strong {
  display: block;
  color: #7c2d12;
  font-size: 18px;
  font-weight: 950;
}

.category-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.rail {
  position: relative;
}

.rail-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding: 6px 4px 18px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.rail-track::-webkit-scrollbar {
  display: none;
}

.rail-btn {
  position: absolute;
  top: 42%;
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #92400e;
  box-shadow: 0 14px 30px rgba(146, 64, 14, 0.25);
  cursor: pointer;
}

.rail-left {
  left: -12px;
}

.rail-right {
  right: -12px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.rank-box {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.rank-item {
  display: grid;
  grid-template-columns: 42px 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(146, 64, 14, 0.1);
  transition: 0.22s ease;
}

.rank-item:last-child {
  border-bottom: 0;
}

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

.rank-item img {
  width: 56px;
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
  background: #fed7aa;
}

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

.rank-item strong {
  color: #431407;
  font-weight: 950;
}

.rank-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.sub-hero {
  background:
    radial-gradient(circle at 20% 15%, rgba(253, 186, 116, 0.6), transparent 30%),
    linear-gradient(135deg, #92400e, #c2410c 55%, #f59e0b);
  color: #fff;
}

.sub-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
}

.sub-hero h1 {
  margin: 14px 0;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.sub-hero p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.sub-tabs {
  margin-top: 28px;
}

.sub-tabs a {
  padding: 8px 14px;
  border-radius: 999px;
  color: #7c2d12;
  background: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 900;
}

.detail-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.detail-player-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18));
  cursor: pointer;
}

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

.play-ring {
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #c2410c);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  font-size: 36px;
}

.detail-content {
  padding: 30px;
}

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

.breadcrumb a {
  color: var(--brand-dark);
  font-weight: 900;
}

.detail-content h1 {
  margin: 14px 0 14px;
  color: #431407;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.detail-content .lead {
  color: #5c3518;
  font-size: 18px;
  font-weight: 700;
}

.detail-tags {
  margin: 18px 0 24px;
}

.text-block {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.text-block h2 {
  font-size: 28px;
}

.text-block p {
  color: #5f3a1a;
  font-size: 17px;
}

.sticky-box {
  position: sticky;
  top: 96px;
}

.rank-page {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.rank-section {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.rank-section h2 {
  margin-bottom: 12px;
  font-size: 30px;
}

.search-summary {
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 900;
}

.site-footer {
  margin-top: 40px;
  color: #fef3c7;
  background: linear-gradient(135deg, #431407, #78350f);
}

.footer-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
}

.footer-brand {
  color: #fff;
}

.footer-shell p {
  max-width: 520px;
  color: #fde68a;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

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

  .intro-strip,
  .feature-panel,
  .split-layout,
  .detail-shell,
  .rank-page,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .detail-side {
    order: 2;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    min-height: 64px;
    padding: 0 16px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 70px;
    display: none;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .hero {
    height: 560px;
  }

  .hero-content {
    left: 20px;
    right: 20px;
    bottom: 58px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-arrow {
    display: none;
  }

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

  .top-search,
  .search-page-form {
    border-radius: 22px;
    flex-direction: column;
  }

  .top-search input,
  .search-page-form input {
    min-height: 52px;
  }

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

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

  .movie-card-body {
    padding: 14px;
  }

  .movie-card h3 {
    font-size: 16px;
  }

  .movie-card p {
    display: none;
  }

  .detail-content {
    padding: 22px;
  }

  .detail-content h1 {
    font-size: 34px;
  }

  .play-ring {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }
}

@media (max-width: 440px) {
  .movie-grid,
  .category-movie-grid,
  .small-grid {
    grid-template-columns: 1fr;
  }
}
