* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: #111827;
  background: #ffffff;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #ec4899);
  box-shadow: 0 14px 24px rgba(236, 72, 153, 0.24);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(8deg);
}

.brand-text {
  font-size: clamp(20px, 2vw, 26px);
  background: linear-gradient(90deg, #f97316, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  font-size: 15px;
  font-weight: 700;
  color: #4b5563;
  transition: color 0.24s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #f97316;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #f97316;
}

main {
  min-height: 70vh;
}

.hero {
  position: relative;
  height: 90vh;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(135deg, #fb923c, #ec4899 55%, #8b5cf6);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.7) 0 2px, transparent 3px), radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.5) 0 1px, transparent 2px);
  background-size: 54px 54px, 72px 72px;
}

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.18) 52%, rgba(0, 0, 0, 0.58));
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding-top: 72px;
}

.hero-copy {
  width: min(660px, 100%);
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(8px);
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 span {
  display: block;
  margin-top: 12px;
  color: #fed7aa;
  font-size: clamp(28px, 4.6vw, 48px);
  letter-spacing: -0.035em;
}

.hero p {
  margin: 0 0 28px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

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

.btn-primary {
  background: #ffffff;
  color: #f97316;
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.24);
}

.btn-gradient {
  background: linear-gradient(90deg, #f97316, #ec4899);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(236, 72, 153, 0.22);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

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

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

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

.hero-bottom-fade {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(0deg, #ffffff, rgba(255, 255, 255, 0));
  pointer-events: none;
}

.section {
  padding: 88px 0;
}

.section-soft {
  background: #fff7ed;
}

.section-gradient {
  background: linear-gradient(135deg, #fb923c, #ec4899 55%, #8b5cf6);
  color: #ffffff;
}

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

.section-head {
  margin-bottom: 38px;
  text-align: center;
}

.section-head.left {
  text-align: left;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #ea580c;
  background: #ffedd5;
  font-weight: 800;
  font-size: 13px;
}

.section-gradient .section-kicker {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.section-head h1,
.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.section-head p {
  margin: 0 auto;
  max-width: 760px;
  color: #6b7280;
  font-size: 18px;
  line-height: 1.75;
}

.section-gradient .section-head p {
  color: rgba(255, 255, 255, 0.86);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 56px rgba(17, 24, 39, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #ffedd5, #fce7f3);
}

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

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

.year-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ea580c;
  background: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 25px;
  margin-bottom: 10px;
}

.tag-row span,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ea580c;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3 {
  margin: 0 0 9px;
  font-size: 19px;
  line-height: 1.32;
}

.movie-card h3 a:hover {
  color: #f97316;
}

.movie-card p {
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #6b7280;
  font-size: 13px;
}

.card-meta strong,
.rank-score {
  color: #f59e0b;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 24px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #ec4899);
  box-shadow: 0 18px 44px rgba(236, 72, 153, 0.18);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-card:nth-child(3n+2) {
  background: linear-gradient(135deg, #a78bfa, #ec4899);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -48px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(236, 72, 153, 0.24);
}

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

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

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

.rank-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.rank-feature {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  border-radius: 28px;
  color: #ffffff;
  background: #111827;
}

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

.rank-feature-content {
  position: absolute;
  inset: auto 0 0;
  padding: 32px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent);
}

.rank-feature h3 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.04em;
}

.rank-feature p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.75;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
  transition: transform 0.24s ease, color 0.24s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  color: #f97316;
}

.rank-number {
  color: #f97316;
  font-weight: 900;
  font-size: 18px;
}

.rank-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.page-hero {
  padding: 132px 0 54px;
  background: linear-gradient(135deg, #fff7ed, #fdf2f8 52%, #faf5ff);
}

.page-hero-card {
  padding: clamp(32px, 6vw, 72px);
  border-radius: 30px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ec4899 64%, #8b5cf6);
  box-shadow: 0 24px 56px rgba(236, 72, 153, 0.2);
}

.page-hero-card h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.page-hero-card p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.75;
}

.filter-panel {
  margin: -20px auto 34px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.09);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.search-box input,
.filter-controls select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  color: #111827;
  outline: none;
  transition: border-color 0.24s ease, box-shadow 0.24s ease;
}

.search-box input {
  padding: 0 16px;
}

.search-box input:focus,
.filter-controls select:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.15);
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-controls label {
  display: grid;
  gap: 6px;
  min-width: 150px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
}

.filter-controls select {
  padding: 0 12px;
  color: #374151;
}

.movie-grid-wrap {
  padding-bottom: 88px;
}

article[hidden] {
  display: none !important;
}

.detail-main {
  padding: 118px 0 88px;
  background: linear-gradient(180deg, #fff7ed, #ffffff 360px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: #6b7280;
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: 36px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(135deg, #ffedd5, #fce7f3);
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.12);
}

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

.detail-info {
  display: grid;
  gap: 22px;
}

.detail-info h1 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.detail-lead {
  margin: 0;
  color: #4b5563;
  font-size: 20px;
  line-height: 1.75;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.info-box {
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.08);
}

.info-box h2 {
  margin: 0 0 14px;
  font-size: 25px;
}

.info-box p {
  margin: 0;
  color: #4b5563;
  line-height: 1.85;
}

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

.info-item {
  padding: 14px;
  border-radius: 16px;
  background: #fff7ed;
}

.info-item span {
  display: block;
  margin-bottom: 5px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 800;
}

.info-item strong {
  color: #111827;
}

.player-card {
  margin-top: 34px;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 22px 54px rgba(17, 24, 39, 0.22);
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #030712;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-trigger {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ec4899);
  box-shadow: 0 18px 44px rgba(236, 72, 153, 0.4);
  cursor: pointer;
  transition: transform 0.24s ease;
}

.play-trigger:hover {
  transform: scale(1.08);
}

.play-trigger span {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 26px solid #ffffff;
}

.player-caption {
  padding: 18px 22px;
  color: #ffffff;
  font-weight: 800;
}

.related-section {
  margin-top: 76px;
}

.site-footer {
  padding: 42px 0;
  background: #111827;
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

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

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

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

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

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

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

  .filter-controls {
    width: 100%;
  }

  .filter-controls label {
    flex: 1 1 160px;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    height: 68px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 22px 54px rgba(17, 24, 39, 0.18);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    padding: 13px 14px;
    border-radius: 12px;
  }

  .nav-link:hover,
  .nav-link.is-active {
    background: #fff7ed;
  }

  .hero {
    min-height: 680px;
    height: auto;
  }

  .hero-content {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .hero-actions,
  .section-actions {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

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

  .rank-feature {
    min-height: 360px;
  }

  .rank-row {
    grid-template-columns: 42px 1fr;
  }

  .rank-score {
    grid-column: 2;
  }

  .page-hero {
    padding-top: 104px;
  }

  .detail-main {
    padding-top: 98px;
  }

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