:root {
  --bg: #fffaf0;
  --bg-soft: #fff7ed;
  --surface: #ffffff;
  --surface-strong: #fffbeb;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f3d6ad;
  --brand: #d97706;
  --brand-strong: #92400e;
  --brand-soft: #f59e0b;
  --shadow: 0 18px 45px rgba(146, 64, 14, 0.12);
  --radius: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

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

.nav-shell {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--brand-strong);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 10px 25px rgba(180, 83, 9, 0.3);
}

.logo-text {
  white-space: nowrap;
  font-size: 19px;
}

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

.main-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: #78350f;
  font-weight: 600;
}

.main-nav a:hover {
  color: #ffffff;
  background: var(--brand);
}

.top-search {
  display: flex;
  overflow: hidden;
  width: 280px;
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 999px;
  background: #ffffff;
}

.top-search input,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: #ffffff;
  font: inherit;
}

.top-search input {
  flex: 1;
  padding: 10px 14px;
}

.top-search button,
.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.top-search button,
.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.28);
}

.top-search button {
  padding: 0 16px;
}

.primary-btn,
.ghost-btn {
  min-height: 46px;
  padding: 0 22px;
}

.ghost-btn {
  color: var(--brand-strong);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(217, 119, 6, 0.28);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
}

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

.hero-section,
.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(245, 158, 11, 0.24), transparent 32%),
    radial-gradient(circle at 84% 16%, rgba(251, 191, 36, 0.28), transparent 34%),
    linear-gradient(135deg, #fff7ed 0%, #fffbeb 52%, #fef3c7 100%);
}

.hero-section::before,
.page-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -45% -10%;
  height: 68%;
  background: linear-gradient(90deg, transparent, rgba(217, 119, 6, 0.12), transparent);
  filter: blur(24px);
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  padding: 38px 0 48px;
}

.hero-slider,
.hero-rank,
.category-overview-card,
.movie-card,
.player-card,
.detail-article,
.detail-side,
.table-wrap,
.index-group {
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.hero-slider {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: center;
  padding: 42px;
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: var(--brand-strong);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-desc,
.page-hero p,
.detail-one-line {
  max-width: 700px;
  color: #7c4a12;
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span,
.score-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 700;
}

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

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(146, 64, 14, 0.26);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.18));
}

.hero-dots {
  position: absolute;
  right: 34px;
  bottom: 26px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(146, 64, 14, 0.3);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 30px;
  background: var(--brand);
}

.hero-rank {
  align-self: stretch;
  padding: 20px;
}

.hero-rank-head,
.section-title,
.rank-mini-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hero-rank-head {
  margin-bottom: 12px;
  color: var(--brand-strong);
  font-weight: 900;
}

.hero-rank-head a,
.section-more,
.text-link {
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
}

.rank-mini-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(217, 119, 6, 0.16);
}

.rank-mini-item span {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #ffffff;
  background: var(--brand-soft);
  font-weight: 900;
}

.rank-mini-item strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-mini-item em {
  color: var(--brand-strong);
  font-style: normal;
  font-weight: 900;
}

.section-pad {
  padding: 54px 0;
}

.muted-section {
  background: #fff7ed;
}

.section-title {
  margin-bottom: 24px;
}

.section-title h2 {
  margin: 0;
  color: var(--brand-strong);
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.section-title p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

.category-card {
  min-height: 150px;
  padding: 20px;
  border-radius: var(--radius);
  color: #78350f;
  background: linear-gradient(145deg, #ffffff, #fef3c7);
  box-shadow: 0 12px 28px rgba(146, 64, 14, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.movie-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(146, 64, 14, 0.18);
}

.category-card span {
  display: block;
  font-size: 20px;
  font-weight: 900;
}

.category-card strong {
  display: block;
  margin: 8px 0;
  color: var(--brand);
}

.category-card p {
  margin: 0;
  color: var(--muted);
}

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

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

.movie-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #fef3c7;
}

.poster img,
.hero-poster img,
.detail-poster img,
.category-covers img {
  transition: transform 0.45s ease;
}

.movie-card:hover .poster img,
.hero-poster:hover img,
.detail-poster:hover img,
.category-overview-card:hover .category-covers img {
  transform: scale(1.06);
}

.poster-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.65));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-mask {
  opacity: 1;
}

.score-pill {
  position: absolute;
  top: 10px;
  right: 10px;
}

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

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 46px;
  color: #111827;
  font-weight: 900;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-title:hover {
  color: var(--brand);
}

.movie-meta,
.movie-intro {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.movie-intro {
  display: -webkit-box;
  overflow: hidden;
  min-height: 42px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.page-hero.small-hero {
  padding: 64px 0 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #9a5a13;
  font-size: 14px;
  font-weight: 700;
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  min-height: 220px;
  background: #fef3c7;
}

.category-overview-body {
  padding: 24px;
}

.category-overview-body h2 {
  margin: 0 0 8px;
  color: var(--brand-strong);
  font-size: 28px;
}

.category-overview-body p {
  color: var(--muted);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 20px;
}

.filter-bar input,
.filter-bar select {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 999px;
}

.result-count {
  margin: 0 0 20px;
  color: var(--muted);
  font-weight: 700;
}

.detail-hero {
  padding: 56px 0;
}

.detail-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 26px;
  box-shadow: 0 24px 58px rgba(146, 64, 14, 0.22);
}

.detail-tags {
  margin-top: 18px;
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #111827;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.62));
  cursor: pointer;
}

.play-overlay.is-hidden {
  display: none;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.88);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  font-size: 28px;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 12px;
  margin: 0;
  color: #ffffff;
  font-size: 14px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.detail-article,
.detail-side {
  padding: 26px;
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 16px;
  color: var(--brand-strong);
}

.detail-article p {
  margin: 0 0 14px;
  color: #374151;
  font-size: 16px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

.detail-side dt {
  color: var(--muted);
  font-weight: 700;
}

.detail-side dd {
  margin: 0;
  font-weight: 700;
}

.table-wrap {
  overflow: auto;
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.rank-table th,
.rank-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(217, 119, 6, 0.16);
  text-align: left;
  white-space: nowrap;
}

.rank-table th {
  color: #78350f;
  background: #fef3c7;
}

.rank-table a {
  color: var(--brand-strong);
  font-weight: 800;
}

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

.index-group {
  padding: 22px;
}

.index-group h2 {
  margin: 0 0 12px;
  color: var(--brand-strong);
}

.index-group ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.index-group li a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #374151;
  border-bottom: 1px dashed rgba(217, 119, 6, 0.18);
  padding-bottom: 6px;
}

.index-group li span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  border-top: 1px solid rgba(217, 119, 6, 0.18);
  background: #fffbeb;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  padding: 40px 0;
}

.footer-grid p,
.footer-links a,
.footer-bottom {
  color: var(--muted);
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(217, 119, 6, 0.14);
  text-align: center;
}

.is-filter-hidden {
  display: none !important;
}

@media (max-width: 1050px) {
  .hero-shell,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-rank-head {
    grid-column: 1 / -1;
  }

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

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

@media (max-width: 820px) {
  .nav-shell {
    flex-wrap: wrap;
  }

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

  .main-nav {
    display: none;
    order: 4;
    width: 100%;
    margin-left: 0;
    padding-bottom: 12px;
  }

  .main-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-search {
    order: 5;
    width: 100%;
    margin-bottom: 12px;
  }

  .hero-slide {
    position: relative;
    display: none;
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .hero-slide.is-active {
    display: grid;
  }

  .hero-slider {
    min-height: 0;
  }

  .hero-poster {
    max-width: 260px;
  }

  .hero-dots {
    position: static;
    padding: 0 26px 24px;
  }

  .hero-rank,
  .category-overview-grid,
  .index-grid,
  .footer-grid,
  .detail-hero-grid {
    grid-template-columns: 1fr;
  }

  .category-overview-card {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .hero-shell {
    padding-top: 22px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 32px;
  }

  .movie-grid,
  .movie-grid-six,
  .category-grid,
  .index-group ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .category-covers {
    min-height: 180px;
  }

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

  .movie-title {
    min-height: 42px;
    font-size: 14px;
  }

  .detail-hero-grid {
    gap: 22px;
  }

  .detail-poster {
    max-width: 220px;
  }
}
