:root {
  --bg: #fff7ed;
  --panel: #ffffff;
  --panel-soft: #fffbeb;
  --text: #3f2107;
  --muted: #8a5a27;
  --line: rgba(146, 64, 14, 0.14);
  --brand: #d97706;
  --brand-dark: #92400e;
  --accent: #ea580c;
  --shadow: 0 22px 60px rgba(120, 53, 15, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

img.is-missing {
  opacity: 0;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 14px 32px rgba(217, 119, 6, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 22px;
  color: var(--brand-dark);
}

.brand-text em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-link,
.nav-dropdown > button {
  position: relative;
  border: 0;
  padding: 10px 0;
  color: var(--brand-dark);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nav-link::after,
.nav-dropdown > button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-dropdown > button:hover {
  color: var(--accent);
}

.nav-link:hover::after,
.nav-link.is-active::after,
.nav-dropdown:hover > button::after {
  width: 100%;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  right: 0;
  top: 44px;
  width: 220px;
  padding: 12px;
  display: grid;
  gap: 6px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.25s ease;
}

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

.dropdown-panel a {
  padding: 10px 12px;
  color: var(--brand-dark);
  border-radius: 12px;
}

.dropdown-panel a:hover {
  background: var(--panel-soft);
  color: var(--accent);
}

.header-search,
.mobile-search,
.page-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.page-search input {
  min-width: 210px;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--text);
  background: #ffffff;
  outline: none;
  transition: 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.page-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.header-search button,
.mobile-search button,
.page-search button,
.primary-btn,
.ghost-btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
}

.header-search button,
.mobile-search button,
.page-search button,
.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.22);
}

.ghost-btn {
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.56);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--panel-soft);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  padding: 12px 22px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 251, 235, 0.98);
}

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(145deg, #7c2d12, #92400e 45%, #ea580c);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(67, 20, 7, 0.92), rgba(124, 45, 18, 0.62), rgba(234, 88, 12, 0.32)),
    radial-gradient(circle at 70% 30%, rgba(251, 191, 36, 0.26), transparent 22rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 124px 24px 130px;
  margin-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
}

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

.hero-tags span,
.tag-row span,
.detail-tags a,
.filter-chips button {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-content h1 {
  margin: 24px 0 18px;
  max-width: 760px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 700px;
  margin: 0;
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.9;
}

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

.hero-copy-card {
  position: absolute;
  right: max(24px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 96px;
  z-index: 3;
  width: min(360px, calc(100% - 48px));
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 32px 80px rgba(67, 20, 7, 0.28);
  backdrop-filter: blur(18px);
}

.hero-copy-card span {
  color: #fed7aa;
  font-size: 13px;
  font-weight: 900;
}

.hero-copy-card strong {
  display: block;
  margin: 8px 0;
  font-size: 30px;
}

.hero-copy-card p {
  margin: 0;
  color: #ffedd5;
  line-height: 1.8;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-controls > button,
.hero-dot {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 99px;
  transition: 0.25s ease;
}

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

.content-section,
.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 24px;
}

.page-main {
  padding-top: 34px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-head h2,
.page-hero h1,
.detail-info h1,
.detail-article h2,
.detail-side h2 {
  margin: 8px 0 0;
  color: var(--brand-dark);
  line-height: 1.15;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 42px);
}

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

.section-head > a {
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 900;
}

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

.category-tile,
.category-card-large a {
  display: block;
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #fffbeb);
  box-shadow: 0 16px 40px rgba(120, 53, 15, 0.08);
  transition: 0.25s ease;
}

.category-tile:hover,
.category-card-large a:hover,
.movie-card:hover,
.top-rank-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.category-tile span,
.category-card-large h2 {
  display: block;
  color: var(--brand-dark);
  font-size: 22px;
  font-weight: 900;
}

.category-tile p,
.category-card-large p {
  color: var(--muted);
  line-height: 1.7;
}

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

.category-card-large a {
  min-height: 240px;
}

.category-samples {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.category-samples span {
  display: block;
  overflow: hidden;
  color: var(--text);
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 14px 36px rgba(120, 53, 15, 0.08);
  transition: 0.25s ease;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #78350f, #f59e0b);
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .poster-link img,
.top-rank-card:hover img,
.detail-poster:hover img {
  transform: scale(1.07);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.68));
}

.type-badge,
.rank-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.type-badge,
.rank-badge {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.92);
}

.rank-badge {
  left: 12px;
  right: auto;
  background: rgba(124, 45, 18, 0.92);
}

.play-chip {
  left: 14px;
  bottom: 14px;
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

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

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
}

.movie-card h3 a {
  color: var(--brand-dark);
}

.movie-card h3 a:hover {
  color: var(--accent);
}

.movie-line {
  min-height: 52px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.movie-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span,
.detail-tags a,
.filter-chips button {
  color: #9a3412;
  background: #ffedd5;
}

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

.ranking-panel {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #fffbeb);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ranking-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  color: var(--brand-dark);
  font-weight: 900;
  border-bottom: 1px solid var(--line);
}

.ranking-title a {
  color: var(--accent);
  font-size: 13px;
}

.ranking-panel ol {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}

.ranking-panel li a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 18px;
}

.ranking-panel li a:hover {
  background: #fff7ed;
}

.ranking-panel b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.ranking-panel span,
.ranking-panel em {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-panel span {
  color: var(--brand-dark);
  font-weight: 800;
}

.ranking-panel em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 54px;
  border-radius: 32px;
  color: #ffffff;
  background:
    radial-gradient(circle at 75% 20%, rgba(253, 186, 116, 0.35), transparent 18rem),
    linear-gradient(135deg, #7c2d12, #d97706);
  box-shadow: var(--shadow);
}

.page-hero .eyebrow,
.page-hero h1,
.page-hero p {
  color: #ffffff;
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 58px);
}

.page-search {
  min-width: min(440px, 100%);
}

.page-search input {
  width: 100%;
  min-width: 0;
}

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

.top-rank-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: 28px;
  background: #78350f;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.top-rank-card a {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: #ffffff;
}

.top-rank-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.5s ease;
}

.top-rank-card a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(67, 20, 7, 0.92));
}

.top-rank-card span,
.top-rank-card h2,
.top-rank-card p {
  position: relative;
  z-index: 1;
}

.top-rank-card span {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 900;
}

.top-rank-card h2 {
  margin: 14px 0 8px;
  font-size: 28px;
}

.top-rank-card p {
  margin: 0;
  color: #ffedd5;
  line-height: 1.7;
}

.search-tools {
  padding-top: 24px;
  padding-bottom: 0;
}

.filter-chips button {
  border: 0;
  cursor: pointer;
}

.filter-chips button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--muted);
  font-weight: 800;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(135deg, #ffffff, #fffbeb);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #78350f, #f59e0b);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.detail-info h1 {
  font-size: clamp(34px, 5vw, 64px);
}

.detail-one-line {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 24px 0;
  list-style: none;
}

.detail-meta li {
  padding: 14px;
  border-radius: 16px;
  background: #fff7ed;
}

.detail-meta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-meta strong {
  display: block;
  margin-top: 6px;
  color: var(--brand-dark);
}

.player-section {
  margin-top: 34px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #111827;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.32);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #111827;
  object-fit: contain;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(217, 119, 6, 0.26), transparent 18rem),
    rgba(0, 0, 0, 0.38);
  cursor: pointer;
}

.player-start span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 50%;
  font-size: 34px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 18px 40px rgba(234, 88, 12, 0.35);
}

.player-start strong {
  font-size: 20px;
}

.player-shell.is-playing .player-start {
  opacity: 0;
  pointer-events: none;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  margin-top: 34px;
}

.detail-article,
.detail-side {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(120, 53, 15, 0.08);
}

.detail-article {
  padding: 30px;
}

.detail-article p {
  color: #5b3511;
  font-size: 17px;
  line-height: 2;
}

.detail-side {
  align-self: start;
  padding: 24px;
}

.side-links {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.side-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 15px;
  background: #fff7ed;
}

.side-links a:hover {
  color: var(--accent);
}

.side-links span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.side-links em {
  color: var(--muted);
  font-style: normal;
}

.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: rgba(255, 251, 235, 0.82);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner strong {
  color: var(--brand-dark);
  font-size: 22px;
}

.footer-inner p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
  justify-content: flex-end;
}

.footer-inner nav a {
  color: var(--accent);
  font-weight: 800;
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-copy-card {
    display: none;
  }

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

  .split-layout,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

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

  .brand-text em {
    display: none;
  }

  .hero-carousel {
    min-height: 560px;
  }

  .hero-content {
    margin-left: 0;
    padding: 92px 24px 110px;
  }

  .section-head,
  .page-hero,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero {
    padding: 34px 24px;
  }

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

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .detail-poster {
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
  }

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

@media (max-width: 540px) {
  .content-section,
  .page-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .hero-content h1 {
    letter-spacing: -0.03em;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-large-grid,
  .top-rank-grid {
    grid-template-columns: 1fr;
  }

  .mobile-search {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-inner nav {
    justify-content: flex-start;
  }
}
