:root {
  --bg: #fffaf0;
  --panel: rgba(255, 255, 255, 0.88);
  --paper: #ffffff;
  --text: #3f2a0c;
  --muted: #9a6a1f;
  --line: rgba(217, 119, 6, 0.22);
  --brand: #d97706;
  --brand-dark: #92400e;
  --brand-soft: #fef3c7;
  --shadow: 0 24px 70px rgba(120, 53, 15, 0.15);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.header-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #b45309 54%, #78350f);
  box-shadow: 0 14px 28px rgba(180, 83, 9, 0.28);
}

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

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

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

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #78350f;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: var(--brand-soft);
  color: var(--brand);
  transform: translateY(-1px);
}

.quick-search {
  display: flex;
  align-items: center;
  padding: 4px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
}

.quick-search input {
  width: 180px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 10px 8px 14px;
  color: var(--text);
}

.quick-search button,
.primary-btn,
.ghost-btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.quick-search button,
.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 14px 30px rgba(180, 83, 9, 0.24);
}

.quick-search button {
  padding: 9px 16px;
}

.primary-btn,
.ghost-btn {
  padding: 14px 22px;
}

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

.ghost-btn {
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(245, 158, 11, 0.32);
}

.ghost-btn.small {
  padding: 10px 16px;
  font-size: 14px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.mobile-panel {
  border-top: 1px solid var(--line);
  padding: 12px 20px 18px;
  background: rgba(255, 251, 235, 0.96);
}

.mobile-nav,
.mobile-cats {
  display: grid;
  gap: 8px;
}

.mobile-cats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.mobile-cats a {
  padding: 10px 12px;
  border-radius: 14px;
  background: #ffffff;
  color: var(--muted);
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #451a03;
}

.hero-track,
.hero-slide {
  min-height: 680px;
}

.hero-slide {
  display: none;
  position: relative;
  isolation: isolate;
  background-image:
    linear-gradient(90deg, rgba(69, 26, 3, 0.92) 0%, rgba(69, 26, 3, 0.72) 42%, rgba(69, 26, 3, 0.18) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  display: block;
  animation: fadeIn 0.6s ease both;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 80% 18%, rgba(245, 158, 11, 0.36), transparent 22rem),
    linear-gradient(180deg, transparent, rgba(69, 26, 3, 0.72));
}

.hero-content {
  max-width: 1380px;
  min-height: 680px;
  margin: 0 auto;
  padding: 96px 24px 90px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: 46px;
}

.hero-copy {
  max-width: 760px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: #b45309;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 12px;
}

.hero-copy .eyebrow,
.page-hero .eyebrow,
.detail-copy .eyebrow {
  color: #fbbf24;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

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

.tag-row span {
  color: #92400e;
  background: #fef3c7;
}

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

.hero-poster,
.detail-poster,
.poster-shell {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.32), rgba(120, 53, 15, 0.44)),
    #fef3c7;
}

.hero-poster {
  border-radius: 34px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35);
  aspect-ratio: 3 / 4;
  transform: rotate(2deg);
}

.hero-poster img,
.detail-poster img,
.poster-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster.is-empty::after,
.detail-poster.is-empty::after,
.poster-shell.is-empty::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: inherit;
}

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

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-prev,
.hero-next {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 28px;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 999px;
}

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

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

.intro-strip {
  margin-top: -42px;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.intro-strip h2,
.section-head h2,
.page-hero h1,
.article-card h2 {
  margin: 0;
  color: #78350f;
}

.intro-strip h2,
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.intro-strip p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.section-head.tight {
  margin-bottom: 18px;
}

.section-head a {
  color: var(--brand);
  font-weight: 900;
}

.category-grid,
.category-overview-grid {
  display: grid;
  gap: 18px;
}

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

.category-card,
.category-overview-card,
.article-card,
.ranking-panel,
.player-card {
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.category-card {
  min-height: 154px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.movie-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 70px rgba(120, 53, 15, 0.2);
}

.category-card span,
.category-title {
  color: #78350f;
  font-size: 22px;
  font-weight: 900;
}

.category-card em,
.category-overview-card p {
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 42px rgba(120, 53, 15, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-shell {
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 0;
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(120, 53, 15, 0.76);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  gap: 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.movie-card h3 {
  margin: 8px 0 0;
  color: #78350f;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p {
  min-height: 4.8em;
  margin: 10px 0 14px;
  color: #7c5a22;
  line-height: 1.6;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-panel {
  padding: 22px;
  position: sticky;
  top: 96px;
}

.ranking-panel.wide {
  position: static;
}

.rank-list {
  display: grid;
  gap: 10px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(254, 243, 199, 0.58);
}

.rank-item:hover {
  background: #fef3c7;
}

.rank-no {
  color: var(--brand);
  font-weight: 900;
}

.rank-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #78350f;
  font-weight: 800;
}

.rank-year {
  color: var(--muted);
  font-size: 12px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 104px 24px 72px;
  text-align: center;
  color: #ffffff;
  background:
    radial-gradient(circle at 70% 0%, rgba(245, 158, 11, 0.5), transparent 28rem),
    linear-gradient(135deg, #78350f, #451a03);
}

.page-hero.slim {
  padding-bottom: 86px;
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1;
}

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

.filter-pills {
  margin: 28px auto 0;
  max-width: 980px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.filter-pills button {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 9px 14px;
  color: #fff7ed;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
}

.filter-pills button.active,
.filter-pills button:hover {
  color: #78350f;
  background: #fef3c7;
}

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

.category-overview-card {
  padding: 26px;
}

.mini-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.mini-link-row a {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #fef3c7;
  font-size: 13px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 160px auto;
  gap: 12px;
  max-width: 820px;
  margin: 28px auto 0;
}

.search-panel input,
.search-panel select {
  min-height: 50px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 999px;
  padding: 0 18px;
  outline: 0;
  background: rgba(255, 255, 255, 0.96);
}

.search-status {
  margin-bottom: 22px;
  color: var(--muted);
  font-weight: 800;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #451a03;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image: var(--detail-image);
  background-position: center;
  background-size: cover;
  filter: blur(18px) scale(1.08);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(69, 26, 3, 0.96), rgba(69, 26, 3, 0.72));
}

.detail-inner {
  position: relative;
  max-width: 1380px;
  margin: 0 auto;
  padding: 46px 24px 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 30px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-poster {
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.detail-copy h1 {
  margin: 22px 0 0;
  font-size: clamp(38px, 7vw, 74px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.detail-copy p {
  max-width: 840px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.9;
  font-size: 18px;
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.player-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #0c0a09;
}

.main-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0c0a09;
}

.play-cover {
  position: absolute;
  inset: 0;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18), rgba(0, 0, 0, 0.34));
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
}

.play-cover.hidden {
  display: none;
}

.play-circle {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
}

.article-card {
  padding: 28px;
}

.article-card h2 {
  font-size: 26px;
  margin-top: 0;
  margin-bottom: 12px;
}

.article-card p {
  color: #6b4c1d;
  line-height: 1.92;
}

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

.info-grid div {
  padding: 14px;
  border-radius: 16px;
  background: #fffbeb;
}

.info-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.info-grid dd {
  margin: 6px 0 0;
  color: #78350f;
  font-weight: 800;
}

.site-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, #fffbeb, #fef3c7);
  border-top: 1px solid rgba(245, 158, 11, 0.24);
}

.footer-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: 40px;
}

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

.footer-links h2 {
  margin: 0 0 16px;
  color: #78350f;
}

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

.footer-grid a {
  padding: 10px 12px;
  border-radius: 14px;
  color: #78350f;
  background: rgba(255, 255, 255, 0.72);
}

.copyright {
  padding: 18px 24px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(245, 158, 11, 0.22);
}

[hidden] {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(1.01);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

  .two-column,
  .detail-main {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .hero,
  .hero-track,
  .hero-slide,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

  .hero-poster {
    max-width: 360px;
    justify-self: center;
  }

  .intro-strip,
  .section-head,
  .footer-inner {
    align-items: start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

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

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

  .detail-poster {
    width: min(260px, 78vw);
  }

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

@media (max-width: 560px) {
  .header-inner,
  .section-wrap,
  .detail-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .hero-content {
    padding: 56px 16px 82px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    letter-spacing: -0.03em;
  }

  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .compact-grid,
  .footer-grid,
  .mobile-cats,
  .info-grid,
  .rank-list.columns {
    grid-template-columns: 1fr;
  }

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

  .rank-year {
    display: none;
  }
}
