* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #15803d, #14532d);
  box-shadow: 0 12px 32px rgba(20, 83, 45, 0.22);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  font-size: 15px;
}

.desktop-nav a,
.mobile-nav a {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.top-search,
.mobile-search,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.search-page-form input,
.filter-bar input {
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 11px 16px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 0 0 1px rgba(22, 101, 52, 0.12);
}

.top-search input {
  width: 210px;
}

.top-search button,
.mobile-search button,
.search-page-form button,
.primary-btn,
.ghost-btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search button,
.mobile-search button,
.search-page-form button,
.primary-btn {
  color: #14532d;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.primary-btn:hover,
.top-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover {
  transform: translateY(-2px);
  background: #ecfdf5;
}

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

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.24);
}

.menu-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

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

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

.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(110deg, #14532d 0%, #15803d 46%, #064e3b 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(50px);
  opacity: 0.28;
  animation: pulseOrb 5s ease-in-out infinite;
}

.hero-orb-a {
  top: 46px;
  left: 6%;
  width: 220px;
  height: 220px;
  background: #ffffff;
}

.hero-orb-b {
  right: 6%;
  bottom: 70px;
  width: 320px;
  height: 320px;
  background: #facc15;
  animation-delay: 1.2s;
}

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

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

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

.hero-copy {
  padding: 48px 0 76px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #bbf7d0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 14px 0 10px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.05;
  font-weight: 900;
}

.hero-copy h2 {
  margin: 12px 0;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.12;
  font-weight: 900;
}

.hero-copy p,
.page-hero p,
.detail-info p {
  max-width: 720px;
  color: rgba(236, 253, 245, 0.92);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.tag-cloud,
.ranking-tags,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-cloud span,
.ranking-tags span,
.detail-meta span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
}

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

.slim-actions {
  justify-content: center;
}

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

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

.hero-poster span {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  font-weight: 800;
}

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

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

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

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 88px;
}

.content-section,
.category-band,
.overview-list,
.detail-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.content-section,
.category-band {
  padding: 58px 0;
}

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

.section-head.centered {
  justify-content: center;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 36px);
  color: #1f2937;
}

.section-head p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.section-link {
  color: #15803d;
  font-weight: 800;
  white-space: nowrap;
}

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

.movie-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.09);
  transform: translateY(0);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.poster-wrap img {
  transition: transform 0.45s ease;
}

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.58));
  transition: opacity 0.25s ease;
}

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

.movie-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  max-width: calc(100% - 24px);
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  background: #16a34a;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.34);
}

.rank-badge {
  left: auto;
  right: 12px;
  background: #0f172a;
}

.movie-info {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.movie-info strong {
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-info em {
  color: #64748b;
  font-style: normal;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-info span {
  color: #475569;
  line-height: 1.65;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-band {
  width: 100%;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(90deg, #dcfce7, #f0fdf4);
}

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

.category-chip,
.category-overview-card {
  display: grid;
  gap: 10px;
  border-radius: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 40px rgba(22, 101, 52, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-chip:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(22, 101, 52, 0.16);
}

.category-chip strong,
.category-title-link h2 {
  color: #14532d;
  font-size: 20px;
}

.category-chip span,
.category-title-link p {
  color: #64748b;
  line-height: 1.7;
}

.page-hero {
  color: #ffffff;
  text-align: center;
  padding: 78px 16px 88px;
  background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.22), transparent 36%), linear-gradient(110deg, #14532d, #15803d 54%, #064e3b);
}

.page-hero p {
  margin: 0 auto;
}

.page-hero .search-page-form {
  justify-content: center;
  margin-top: 28px;
}

.search-page-form input {
  min-width: min(440px, 70vw);
}

.overview-list {
  display: grid;
  gap: 28px;
  padding: 58px 0;
}

.category-overview-card {
  padding: 26px;
}

.category-title-link h2 {
  margin: 0 0 8px;
}

.category-title-link p {
  margin: 0;
}

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

.compact-card .movie-info span {
  display: none;
}

.filter-bar {
  margin: 0 0 26px;
}

.filter-bar input {
  width: min(520px, 100%);
  border: 1px solid #bbf7d0;
  background: #ffffff;
}

.ranking-list {
  display: grid;
  gap: 14px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 58px 96px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.ranking-row strong {
  color: #16a34a;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.ranking-row img {
  height: 72px;
  border-radius: 12px;
}

.ranking-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ranking-main b {
  color: #111827;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-main em,
.ranking-main span {
  color: #64748b;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.heat-value {
  color: #14532d;
  font-weight: 900;
  white-space: nowrap;
}

.ranking-entry {
  width: min(1180px, calc(100% - 32px));
  margin: 48px auto 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px;
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(110deg, #15803d, #14532d);
  box-shadow: 0 18px 60px rgba(20, 83, 45, 0.24);
}

.ranking-entry h2 {
  margin: 10px 0;
  font-size: clamp(26px, 4vw, 38px);
}

.ranking-entry p {
  margin: 0;
  max-width: 720px;
  color: rgba(236, 253, 245, 0.92);
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 28px 0 0;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a {
  color: #15803d;
  font-weight: 800;
}

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

.detail-cover {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}

.detail-info .eyebrow {
  color: #15803d;
}

.detail-info h1 {
  color: #111827;
}

.detail-info p {
  color: #475569;
}

.player-panel,
.story-panel {
  padding: 30px;
  margin-bottom: 36px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.09);
}

.player-panel h2,
.story-panel h2 {
  margin: 0 0 18px;
  color: #111827;
  font-size: 26px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(22, 163, 74, 0.18), rgba(2, 6, 23, 0.68));
  cursor: pointer;
}

.play-cover span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 34px;
  background: rgba(22, 163, 74, 0.96);
  box-shadow: 0 18px 48px rgba(22, 163, 74, 0.36);
}

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

.story-panel p {
  margin: 0 0 24px;
  color: #475569;
  font-size: 17px;
  line-height: 1.9;
}

.related-section {
  width: 100%;
  padding-top: 10px;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(90deg, #111827, #1f2937);
}

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

.site-footer h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 20px;
}

.site-footer p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.8;
}

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

.footer-links a:hover {
  color: #86efac;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 16px;
  text-align: center;
  color: #9ca3af;
}

.no-results {
  grid-column: 1 / -1;
  padding: 34px;
  border-radius: 20px;
  text-align: center;
  color: #64748b;
  background: #ffffff;
}

@keyframes pulseOrb {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

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

  .top-search {
    margin-left: auto;
  }

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

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

  .ranking-row {
    grid-template-columns: 52px 82px minmax(0, 1fr);
  }

  .ranking-tags,
  .heat-value {
    display: none;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    height: auto;
    min-height: 64px;
    padding: 12px 0;
  }

  .brand span:last-child {
    display: none;
  }

  .top-search {
    display: none;
  }

  .hero-carousel {
    min-height: 760px;
  }

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

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

  .hero-copy {
    padding: 38px 0 0;
  }

  .hero-poster {
    height: 280px;
    transform: none;
  }

  .hero-dots {
    bottom: 30px;
  }

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

  .section-head,
  .ranking-entry {
    display: grid;
    align-items: start;
  }

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

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

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

  .page-hero {
    padding: 58px 16px 66px;
  }

  .ranking-row {
    grid-template-columns: 42px 74px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-main span {
    display: none;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .mini-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .player-panel,
  .story-panel {
    padding: 20px;
    border-radius: 20px;
  }

  .play-cover span {
    width: 68px;
    height: 68px;
  }
}
