:root {
  --amber: #f59e0b;
  --orange: #ea580c;
  --deep: #0f172a;
  --slate: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #ffffff;
  --soft: #fff7ed;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  color: #1f2937;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #f8fafc 100%);
}

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

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

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #f59e0b 0%, #f97316 46%, #d97706 100%);
  box-shadow: 0 14px 35px rgba(217, 119, 6, 0.28);
}

.nav-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #fff7ed;
  font-weight: 700;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 24px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 700;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.main-content {
  flex: 1;
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.35), transparent 35%), linear-gradient(135deg, #111827 0%, #78350f 46%, #111827 100%);
  color: #ffffff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -15% -35% 25%;
  height: 360px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.42), transparent 68%);
  filter: blur(12px);
  pointer-events: none;
}

.hero-slider {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: 610px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
  align-items: center;
  gap: 50px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fffbeb;
  background: rgba(245, 158, 11, 0.28);
  border: 1px solid rgba(251, 191, 36, 0.34);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.hero h1,
.hero-title {
  margin: 18px 0 16px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-desc {
  max-width: 680px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.85;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff7ed;
  font-size: 13px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 18px 34px rgba(249, 115, 22, 0.32);
}

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

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-poster {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  min-height: 520px;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
  background: #111827;
}

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

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

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

.hero-poster-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
}

.hero-poster-caption strong {
  display: block;
  font-size: 24px;
  margin-bottom: 6px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

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

.section {
  padding: 56px 0;
}

.section.compact {
  padding: 36px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  color: #111827;
  font-weight: 950;
  letter-spacing: -0.03em;
}

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

.search-panel {
  margin-top: -34px;
  position: relative;
  z-index: 3;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(18px);
}

.search-input,
.select-input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: #ffffff;
  color: #111827;
  outline: none;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  background: #fff7ed;
  color: #92400e;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

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

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.09);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 54px rgba(15, 23, 42, 0.16);
}

.card-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #78350f, #111827);
}

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

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.62) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-cover::after {
  opacity: 1;
}

.play-badge {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  transform: translate(-50%, -50%) scale(0.75);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.type-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 10px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.card-title {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

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

.card-desc {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 24px;
  border-radius: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 18px 45px rgba(249, 115, 22, 0.2);
}

.category-card::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.category-card h3 {
  position: relative;
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 950;
}

.category-card p {
  position: relative;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.category-card span {
  position: relative;
  font-weight: 900;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 88px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.12);
}

.rank-num {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  font-size: 18px;
  font-weight: 950;
}

.rank-cover {
  width: 88px;
  height: 118px;
  border-radius: 14px;
  overflow: hidden;
  background: #111827;
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-title {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.rank-desc {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-hero {
  padding: 66px 0;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.35), transparent 30%), linear-gradient(135deg, #111827, #7c2d12 50%, #1e293b);
}

.page-hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #fef3c7;
  font-weight: 800;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 170px 170px;
  gap: 12px;
  margin: 26px 0 28px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 28px;
}

.player-card,
.detail-card,
.side-card {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.player-card {
  overflow: hidden;
}

.video-shell {
  position: relative;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.42));
  cursor: pointer;
  z-index: 2;
}

.play-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-circle {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 22px 48px rgba(249, 115, 22, 0.36);
  font-size: 34px;
  transform: translateX(3px);
}

.player-info,
.detail-card,
.side-card {
  padding: 24px;
}

.player-info h2,
.detail-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 26px;
  font-weight: 950;
}

.detail-title {
  margin: 0 0 14px;
  color: #111827;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

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

.meta-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff7ed;
  color: #92400e;
  font-weight: 850;
  font-size: 13px;
}

.prose {
  color: #334155;
  font-size: 16px;
  line-height: 1.95;
}

.prose p {
  margin: 0 0 16px;
}

.side-poster {
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 18px;
  background: #111827;
}

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

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

.footer {
  margin-top: 60px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}

.footer h3,
.footer h4 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer p,
.footer li {
  color: #94a3b8;
  line-height: 1.75;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 20px;
  color: #94a3b8;
  font-size: 14px;
}

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

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

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

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .hero,
  .hero-slider {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 26px;
    align-content: center;
    padding-bottom: 70px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 320px;
  }

  .hero-dots {
    bottom: 22px;
  }

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

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

  .movie-grid,
  .movie-grid.six,
  .category-grid,
  .rank-list,
  .related-grid,
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .nav-inner {
    height: 62px;
  }

  .logo {
    font-size: 20px;
  }

  .hero,
  .hero-slider {
    min-height: 720px;
  }

  .hero h1,
  .hero-title {
    font-size: 40px;
  }

  .hero-desc,
  .page-hero p {
    font-size: 16px;
  }

  .movie-grid,
  .movie-grid.six,
  .category-grid,
  .rank-list,
  .related-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 44px 78px 1fr;
    gap: 12px;
  }

  .rank-cover {
    width: 78px;
    height: 104px;
  }
}
