:root {
  --bg: #fffbeb;
  --bg-soft: #fff7ed;
  --surface: #ffffff;
  --text: #4a2a07;
  --muted: #8a5a19;
  --primary: #d97706;
  --primary-dark: #92400e;
  --primary-soft: #fde68a;
  --border: #f5d48b;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(251, 191, 36, 0.22), transparent 28rem),
    radial-gradient(circle at 85% 12%, rgba(249, 115, 22, 0.13), transparent 24rem),
    linear-gradient(180deg, #fffbeb 0%, #fff7ed 42%, #ffffff 100%);
}

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

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

main {
  min-height: 70vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(146, 64, 14, 0.08);
}

.header-inner {
  max-width: 1220px;
  height: 72px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--primary-dark);
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.26);
}

.brand-text {
  font-size: 20px;
}

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

.nav-link,
.mobile-link {
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  color: var(--primary-dark);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fff;
  background: var(--primary);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 270px;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.header-search button,
.mobile-search button,
.hero-action,
.section-action,
.play-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 750;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button,
.mobile-search button {
  height: 40px;
  padding: 0 16px;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-action:hover,
.section-action:hover,
.play-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(217, 119, 6, 0.34);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--primary-dark);
  background: #fff;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--border);
  background: #fffaf0;
  padding: 14px 22px 20px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

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

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

.hero {
  padding: 46px 0 36px;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.95), rgba(217, 119, 6, 0.78));
  box-shadow: var(--shadow);
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.12) 52%, rgba(0, 0, 0, 0.34)),
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.22), transparent 18rem);
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: 36px;
  align-items: center;
  padding: 64px;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

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

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(253, 230, 138, 0.6);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(0, 0, 0, 0.22);
  font-size: 14px;
  font-weight: 700;
}

.hero h1,
.hero h2 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0;
  max-width: 58em;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-meta span,
.detail-meta span,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff7d6;
  font-size: 13px;
  font-weight: 700;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
}

.hero-poster {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

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

.hero-slide.active .hero-poster img {
  transform: scale(1.04);
}

.hero-dots {
  position: absolute;
  left: 64px;
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 36px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dot.active {
  background: #fde68a;
}

.section {
  padding: 42px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1;
  color: var(--primary-dark);
}

.section-desc {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  white-space: nowrap;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary-dark);
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.chip:hover {
  transform: translateY(-2px);
  background: #fff;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(245, 212, 139, 0.8);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 28px rgba(146, 64, 14, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #f59e0b;
  box-shadow: 0 20px 46px rgba(146, 64, 14, 0.16);
}

.card-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #fed7aa, #fef3c7);
}

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

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

.card-poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
}

.card-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.68);
  font-size: 12px;
  font-weight: 750;
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  color: var(--primary-dark);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.card-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 750;
}

.card-tags {
  margin: 0;
  color: #b45309;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.rank-item a {
  display: grid;
  grid-template-columns: 50px 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item a:hover {
  transform: translateX(4px);
  box-shadow: 0 14px 32px rgba(146, 64, 14, 0.12);
}

.rank-no {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #92400e);
  font-weight: 900;
}

.rank-item img {
  width: 78px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  background: #fef3c7;
}

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

.rank-copy strong {
  color: var(--primary-dark);
  font-size: 15px;
  line-height: 1.4;
}

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

.panel {
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 36px rgba(146, 64, 14, 0.1);
}

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

.category-card {
  min-height: 160px;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #fff 0%, #fff7ed 62%, #fef3c7 100%);
  box-shadow: 0 12px 32px rgba(146, 64, 14, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-size: 22px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
  margin: 22px 0 24px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
}

.hidden-card {
  display: none !important;
}

.empty-state {
  display: none;
  margin: 24px 0;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 22px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
  text-align: center;
}

.empty-state.show {
  display: block;
}

.detail-hero {
  padding: 36px 0 20px;
}

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

.breadcrumb a {
  color: var(--primary-dark);
  font-weight: 700;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  background: #fef3c7;
  box-shadow: var(--shadow);
}

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

.detail-copy h1 {
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.detail-copy .lead {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.detail-meta span,
.tag {
  color: var(--primary-dark);
  background: #fef3c7;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.player-section {
  padding: 26px 0 14px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.24);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.play-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #fff;
  background: #111827;
}

.play-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.play-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.66));
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  font-size: 36px;
}

.play-cover:hover .play-button {
  transform: translate(-50%, -50%) scale(1.06);
}

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

.article-card {
  margin: 22px 0;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 34px rgba(146, 64, 14, 0.08);
}

.article-card h2 {
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-size: 26px;
}

.article-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.9;
}

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

.compact-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(146, 64, 14, 0.12);
}

.compact-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #fef3c7;
}

.compact-card span {
  display: -webkit-box;
  overflow: hidden;
  min-height: 42px;
  padding: 10px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.site-footer {
  margin-top: 44px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.78), #fff7ed);
}

.footer-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
}

.footer-inner strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 20px;
}

.footer-inner p {
  margin: 0;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  padding: 9px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
}

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

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 310px;
    padding: 46px;
  }
}

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

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

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

  .hero-shell {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 30px;
  }

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

  .hero-dots {
    left: 30px;
    bottom: 24px;
  }

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

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

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

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

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .header-inner {
    height: 64px;
    padding: 0 16px;
  }

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

  .hero {
    padding-top: 24px;
  }

  .hero-shell {
    border-radius: 24px;
  }

  .hero h1,
  .hero h2 {
    font-size: 34px;
  }

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

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

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

  .card-body {
    padding: 13px;
  }

  .card-title {
    font-size: 15px;
  }

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

  .rank-item img {
    width: 64px;
    height: 48px;
  }

  .article-card {
    padding: 20px;
  }
}
