:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --orange-50: #fff7ed;
  --orange-500: #f97316;
  --blue-50: #eff6ff;
  --cyan-50: #ecfeff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(146, 64, 14, 0.12);
  --shadow-hover: 0 24px 55px rgba(146, 64, 14, 0.22);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-800);
  background: linear-gradient(180deg, #fffdf7 0%, #ffffff 38%, #fffaf0 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--amber-100);
  backdrop-filter: blur(16px);
}

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

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

.brand-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(217, 119, 6, 0.22);
}

.brand-name {
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link,
.mobile-link {
  color: var(--gray-700);
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-600);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--amber-50);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--amber-800);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 10px 16px 18px;
  border-top: 1px solid var(--amber-100);
  background: var(--white);
}

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

.mobile-link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
}

.mobile-link:hover,
.mobile-link.active {
  color: var(--amber-700);
  background: var(--amber-50);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 16px;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-50), #fef9c3);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  text-align: center;
}

.hero-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  filter: blur(38px);
  opacity: 0.28;
}

.hero-glow-left {
  top: 48px;
  left: 8%;
  background: var(--amber-500);
}

.hero-glow-right {
  right: 8%;
  bottom: 40px;
  background: var(--orange-500);
}

.hero-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  border-radius: 24px;
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 22px 40px rgba(217, 119, 6, 0.26);
  animation: floatPulse 3s ease-in-out infinite;
}

@keyframes floatPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.04);
  }
}

.hero h1,
.page-hero h1 {
  margin: 0 0 20px;
  color: var(--amber-900);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero p,
.page-hero p {
  width: min(760px, 100%);
  margin: 0 auto 32px;
  color: var(--amber-700);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.primary-btn,
.secondary-btn,
.light-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
  color: var(--white);
  background: var(--amber-600);
  box-shadow: 0 16px 28px rgba(217, 119, 6, 0.26);
}

.secondary-btn,
.light-btn {
  color: var(--amber-700);
  background: var(--white);
  box-shadow: 0 14px 26px rgba(146, 64, 14, 0.12);
}

.primary-btn:hover,
.secondary-btn:hover,
.light-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.hero-showcase {
  width: min(980px, 100%);
  margin: 44px auto 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.hero-slide {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0.74));
}

.hero-slide span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  color: var(--white);
  font-weight: 800;
  text-align: left;
  line-height: 1.35;
}

.hero-slide:hover,
.hero-slide.active {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

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

.content-section.tinted-blue,
.content-section.tinted-amber {
  width: 100%;
  margin: 0;
  padding: 64px max(16px, calc((100% - 1180px) / 2));
}

.tinted-blue {
  background: linear-gradient(90deg, var(--blue-50), var(--cyan-50));
}

.tinted-amber {
  background: linear-gradient(135deg, var(--amber-50), var(--orange-50));
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-title > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  border-radius: 12px;
  font-weight: 900;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  color: var(--gray-800);
}

.section-more,
.text-link {
  color: var(--amber-600);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 24px;
}

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

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

.movie-card,
.compact-card,
.rank-item,
.story-card,
.category-block {
  background: var(--white);
  border: 1px solid rgba(253, 230, 138, 0.72);
  box-shadow: var(--shadow-soft);
}

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-50));
}

.poster-link img,
.compact-poster img,
.rank-cover img,
.detail-poster img {
  transition: transform 0.4s ease;
}

.movie-card:hover .poster-link img,
.compact-card:hover img,
.rank-item:hover img {
  transform: scale(1.06);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  min-width: 38px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, #ef4444, var(--orange-500));
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.85rem;
}

.movie-info {
  padding: 16px;
}

.movie-info h3,
.compact-card h3,
.rank-content h2 {
  margin: 0;
  color: var(--gray-900);
  line-height: 1.35;
}

.movie-info h3 {
  display: -webkit-box;
  min-height: 2.7em;
  overflow: hidden;
  font-size: 1.02rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-info p,
.category-block p,
.story-card p,
.rank-content p {
  color: var(--gray-500);
  line-height: 1.7;
}

.movie-info p {
  display: -webkit-box;
  min-height: 3.4em;
  overflow: hidden;
  margin: 10px 0 12px;
  font-size: 0.92rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta-line,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--amber-700);
  font-size: 0.84rem;
  font-weight: 800;
}

.movie-meta-line span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--amber-50);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  color: var(--amber-800);
  font-size: 0.78rem;
}

.horizontal-list {
  display: grid;
  gap: 20px;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 145px 1fr;
}

.movie-card-horizontal .poster-link {
  aspect-ratio: 3 / 4;
}

.movie-card-horizontal .movie-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.movie-card-horizontal .movie-info h3 {
  min-height: auto;
  font-size: 1.3rem;
}

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

.category-tile {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0.74));
}

.category-tile span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 900;
}

.rank-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.cta-card {
  width: min(1180px, calc(100% - 32px));
  margin: 12px auto 72px;
  padding: 56px 24px;
  color: var(--white);
  text-align: center;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 28px 60px rgba(217, 119, 6, 0.26);
}

.cta-card h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.cta-card p {
  margin: 0 auto 26px;
  max-width: 650px;
  line-height: 1.7;
  opacity: 0.92;
}

.small-hero {
  padding: 52px 16px;
  text-align: center;
}

.small-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--amber-700);
  font-size: 0.92rem;
  font-weight: 800;
}

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

.category-overview {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  gap: 28px;
}

.category-block {
  padding: 26px;
  border-radius: 28px;
}

.category-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.category-block h2 {
  margin: 0 0 8px;
  color: var(--gray-900);
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.compact-card {
  display: grid;
  grid-template-columns: 68px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
}

.compact-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 13px;
  background: var(--amber-50);
}

.compact-card h3 {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.98rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-card p {
  margin: 6px 0 0;
  color: var(--gray-500);
  font-size: 0.84rem;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--amber-100);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--amber-800);
  font-size: 0.9rem;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--amber-100);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--gray-800);
  background: var(--amber-50);
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.movie-card.is-hidden,
.compact-card.is-hidden,
.rank-item.is-hidden {
  display: none;
}

.rank-page {
  width: min(1050px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 70px;
  display: grid;
  gap: 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: 72px 92px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px 20px 14px 14px;
  border-radius: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.rank-number {
  color: var(--amber-600);
  font-size: 1.5rem;
  font-weight: 900;
  text-align: center;
}

.rank-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: var(--amber-50);
}

.rank-content h2 {
  font-size: 1.25rem;
}

.rank-content p {
  margin: 8px 0 12px;
}

.rank-score {
  min-width: 58px;
  padding: 8px 10px;
  color: var(--white);
  background: linear-gradient(135deg, #ef4444, var(--orange-500));
  border-radius: 999px;
  font-weight: 900;
  text-align: center;
}

.detail-hero {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  color: var(--white);
  background: var(--gray-900);
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  filter: blur(6px);
  transform: scale(1.04);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.74), rgba(17, 24, 39, 0.54));
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 2 / 3;
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.4);
  background: var(--amber-50);
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.2rem;
  line-height: 1.8;
}

.detail-copy .breadcrumb,
.detail-copy .breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
}

.detail-meta span,
.detail-tags span {
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.12);
}

.detail-tags {
  margin: 20px 0 28px;
}

.detail-content {
  display: grid;
  gap: 28px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: var(--shadow-hover);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.68));
  cursor: pointer;
  font-weight: 900;
  font-size: 1.05rem;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  color: var(--amber-700);
  background: var(--white);
  border-radius: 999px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.story-card {
  padding: 30px;
  border-radius: 28px;
}

.story-card h2 {
  margin: 0 0 12px;
  color: var(--gray-900);
}

.story-card h2 + p {
  margin-top: 0;
}

.story-card p {
  margin-bottom: 26px;
  font-size: 1.04rem;
}

.site-footer {
  margin-top: 20px;
  color: #fef3c7;
  background: linear-gradient(135deg, var(--amber-900), #7c2d12);
}

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

.footer-brand {
  color: var(--white);
  font-size: 1.25rem;
}

.site-footer p {
  max-width: 430px;
  color: #fde68a;
  line-height: 1.7;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
}

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

.site-footer a:hover {
  color: var(--white);
}

@media (max-width: 1080px) {
  .six-grid,
  .rank-strip,
  .category-tile-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .hero-showcase {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .hero-slide {
    min-width: 150px;
  }

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

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

  .nav-toggle {
    display: block;
  }

  .brand-name {
    font-size: 1.3rem;
  }

  .hero {
    padding-top: 58px;
  }

  .hero-showcase {
    grid-template-columns: repeat(5, 150px);
    justify-content: flex-start;
  }

  .content-section,
  .category-overview,
  .rank-page,
  .cta-card {
    width: min(100% - 24px, 680px);
  }

  .content-section.tinted-blue,
  .content-section.tinted-amber {
    padding-left: 12px;
    padding-right: 12px;
  }

  .section-title,
  .category-block-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid,
  .six-grid,
  .four-grid,
  .rank-strip,
  .category-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .movie-card-horizontal {
    grid-template-columns: 116px 1fr;
  }

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

  .rank-item {
    grid-template-columns: 44px 74px 1fr;
    padding-right: 14px;
  }

  .rank-score {
    grid-column: 2 / -1;
    width: max-content;
  }

  .detail-inner {
    grid-template-columns: 1fr;
    padding: 44px 0;
  }

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

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

@media (max-width: 520px) {
  .movie-grid,
  .six-grid,
  .four-grid,
  .rank-strip,
  .category-tile-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal {
    grid-template-columns: 96px 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn,
  .light-btn {
    width: 100%;
  }
}
