:root {
  --bg: #fff7ed;
  --panel: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #f3d8b9;
  --amber: #d97706;
  --amber-dark: #92400e;
  --orange: #ea580c;
  --deep: #251003;
  --soft: #fff3df;
  --shadow: 0 18px 45px rgba(146, 64, 14, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(245, 158, 11, 0.22), transparent 34rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 36%, #fffaf3 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.65;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(135deg, #92400e 0%, #b45309 48%, #ea580c 100%);
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #7c2d12;
  background: linear-gradient(135deg, #fef3c7, #fbbf24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.brand-text {
  font-size: 21px;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.nav-link {
  padding: 9px 10px;
  border-radius: 999px;
  opacity: 0.92;
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.nav-link.compact {
  display: inline-flex;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 2px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(120, 53, 15, 0.96);
}

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

.mobile-links {
  display: grid;
  gap: 8px;
  padding: 14px 0 18px;
}

.mobile-link {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: #1b0f05;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) saturate(1.14);
  transform: scale(1.05);
  opacity: 0.55;
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 36%, rgba(245, 158, 11, 0.42), transparent 28rem),
    linear-gradient(90deg, rgba(27, 15, 5, 0.98) 0%, rgba(27, 15, 5, 0.76) 45%, rgba(27, 15, 5, 0.46) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 56px;
  min-height: 620px;
  padding: 58px 0 76px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(251, 191, 36, 0.38);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(146, 64, 14, 0.32);
  backdrop-filter: blur(10px);
  font-size: 14px;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 760px;
  margin: 20px 0 0;
  color: #ffedd5;
  font-size: clamp(17px, 2.1vw, 22px);
}

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

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

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.hero-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #7c2d12;
  background: linear-gradient(135deg, #fef3c7, #f59e0b);
  box-shadow: 0 15px 36px rgba(245, 158, 11, 0.32);
}

.btn.ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

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

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

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

.section {
  padding: 64px 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.2), rgba(255, 237, 213, 0.58));
}

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

.section-kicker {
  margin: 0 0 5px;
  color: var(--amber-dark);
  font-size: 14px;
  font-weight: 800;
}

.section-heading h2,
.page-title h1 {
  margin: 0;
  color: #7c2d12;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.section-heading p,
.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 22px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.13);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(146, 64, 14, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  border-color: rgba(217, 119, 6, 0.32);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fed7aa;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.poster-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.68);
  font-size: 12px;
}

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

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.movie-card p {
  display: -webkit-box;
  min-height: 66px;
  margin: 10px 0 12px;
  overflow: hidden;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

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

.category-pill {
  display: inline-flex;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  min-height: 182px;
  padding: 22px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at right top, rgba(245, 158, 11, 0.18), transparent 11rem),
    #ffffff;
  box-shadow: 0 10px 30px rgba(146, 64, 14, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-card h3 {
  margin: 0;
  color: #7c2d12;
  font-size: 21px;
}

.category-card p {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.category-card span {
  color: var(--amber-dark);
  font-weight: 800;
}

.page-hero {
  padding: 62px 0 38px;
  background:
    radial-gradient(circle at 76% 0%, rgba(251, 191, 36, 0.32), transparent 24rem),
    linear-gradient(135deg, #fff7ed 0%, #fff 52%, #ffedd5 100%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #92400e;
  font-size: 14px;
}

.breadcrumb a {
  font-weight: 700;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px 180px;
  gap: 12px;
  margin: 24px 0 30px;
  padding: 14px;
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 35px rgba(146, 64, 14, 0.08);
}

.filter-bar input,
.filter-bar select {
  min-height: 46px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.result-count {
  margin: -12px 0 22px;
  color: var(--muted);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 92px 48px minmax(0, 1fr) 96px;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(146, 64, 14, 0.08);
}

.rank-cover {
  overflow: hidden;
  border-radius: 16px;
}

.rank-cover img {
  width: 92px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.rank-number {
  color: #f59e0b;
  font-size: 30px;
  font-weight: 900;
}

.rank-title {
  color: #111827;
  font-size: 19px;
  font-weight: 900;
}

.rank-title:hover {
  color: var(--amber);
}

.rank-content p {
  display: -webkit-box;
  margin: 6px 0 8px;
  overflow: hidden;
  color: #4b5563;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.rank-meta a {
  color: #9a3412;
  font-weight: 700;
}

.rank-score {
  text-align: center;
  color: #9a3412;
}

.rank-score strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.rank-score span {
  font-size: 12px;
}

.detail-hero {
  color: #ffffff;
  background: #1b0f05;
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 56px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

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

.detail-info h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.12;
}

.detail-info p {
  max-width: 820px;
  color: #ffedd5;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.12);
}

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

.content-panel,
.side-panel {
  border: 1px solid rgba(217, 119, 6, 0.13);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(146, 64, 14, 0.08);
}

.content-panel {
  padding: 26px;
}

.content-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  color: #7c2d12;
  font-size: 24px;
}

.content-panel p {
  margin: 0 0 20px;
  color: #374151;
}

.side-panel {
  padding: 18px;
}

.side-list {
  display: grid;
  gap: 12px;
}

.side-link {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: #fff7ed;
}

.side-link img {
  width: 58px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
}

.side-link strong {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.side-link span {
  color: var(--muted);
  font-size: 12px;
}

.player-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  border-radius: 26px;
  background: #050505;
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.player-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.28), transparent 18rem),
    rgba(0, 0, 0, 0.34);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-card.is-playing .player-overlay {
  visibility: hidden;
  opacity: 0;
}

.play-button {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #7c2d12;
  background: linear-gradient(135deg, #fef3c7, #f59e0b);
  box-shadow: 0 24px 60px rgba(245, 158, 11, 0.36);
  cursor: pointer;
}

.play-button span {
  margin-left: 5px;
  font-size: 34px;
}

.site-footer {
  padding: 44px 0 24px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.1fr;
  gap: 34px;
}

.footer-brand {
  color: #ffffff;
  margin-bottom: 12px;
}

.site-footer p {
  margin: 12px 0 0;
  max-width: 520px;
  color: #9ca3af;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #ffffff;
}

.site-footer a {
  display: block;
  margin: 6px 0;
  color: #d1d5db;
}

.site-footer a:hover {
  color: #fbbf24;
}

.footer-category-links {
  columns: 2;
}

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 30px auto 0;
  padding-top: 18px;
  border-top: 1px solid #374151;
  text-align: center;
  color: #9ca3af;
}

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

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

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

  .nav-link.compact {
    display: none;
  }

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

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

  .hero-slide {
    position: relative;
    display: none;
  }

  .hero-slide.active {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 48px 0 86px;
  }

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

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

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

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

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

  .rank-cover img {
    width: 76px;
  }

  .rank-number,
  .rank-score {
    display: none;
  }

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

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

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

@media (max-width: 520px) {
  .container {
    width: min(100% - 22px, 1200px);
  }

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

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

  .content-panel {
    padding: 20px;
  }
}
