* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #111827;
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

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

.logo {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #f43f5e, #fb923c, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: #4b5563;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #e11d48;
}

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

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

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

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

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

.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  z-index: 2;
  left: max(24px, calc((100vw - 1180px) / 2));
  top: 50%;
  width: min(680px, calc(100% - 48px));
  transform: translateY(-50%);
  color: #fff;
}

.hero-kicker,
.section-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: #fb7185;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-content p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 24px);
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-tags span,
.tag-list span,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #ffe4e6;
  color: #be123c;
  font-size: 13px;
  font-weight: 750;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(10px);
}

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

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, #f43f5e, #fb923c);
  box-shadow: 0 16px 34px rgba(244, 63, 94, 0.28);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
}

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

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

.hero-dot.is-active {
  background: #fff;
}

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

.section-compact {
  padding: 60px 0;
}

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

.section-head h2,
.page-hero h1,
.detail-info h1,
.detail-text h2 {
  margin: 0;
  color: #1f2937;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-head p {
  margin: 8px 0 0;
  color: #6b7280;
}

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

.section-more {
  color: #e11d48;
  font-weight: 800;
}

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

.movie-card,
.feature-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f2, #ffedd5);
}

.poster img,
.feature-card img,
.category-tile img,
.rank-item img,
.rank-page-item img,
.detail-poster img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-card:hover img,
.feature-card:hover img,
.category-tile:hover img {
  transform: scale(1.08);
}

.poster img,
.feature-card img,
.category-tile img {
  transition: transform 0.5s ease;
}

.poster-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, 0.58);
  font-size: 12px;
  font-weight: 750;
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

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

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

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #6b7280;
  font-size: 13px;
}

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

.feature-card a {
  position: relative;
  display: block;
  height: 360px;
}

.feature-layer {
  position: absolute;
  inset: auto 0 0;
  padding: 28px;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.1));
}

.feature-layer span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 750;
}

.feature-layer h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.15;
}

.feature-layer p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-band {
  background: linear-gradient(135deg, #fff1f2, #ffedd5, #fef3c7);
}

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

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

.category-tile {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 22px;
  padding: 24px;
  color: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.16);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.18));
}

.category-tile img {
  position: absolute;
  inset: 0;
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
}

.category-tile span {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.category-tile-large {
  min-height: 260px;
}

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

.rank-item,
.rank-page-item {
  display: grid;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item {
  grid-template-columns: 52px 70px 1fr 56px;
  padding: 12px;
}

.rank-page-item {
  grid-template-columns: 70px 82px 1fr minmax(140px, 240px) 64px;
  padding: 14px;
}

.rank-item:hover,
.rank-page-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
}

.rank-num {
  color: #fb7185;
  font-weight: 950;
  font-size: 20px;
  text-align: center;
}

.rank-item img,
.rank-page-item img {
  height: 88px;
  border-radius: 14px;
}

.rank-title {
  color: #1f2937;
  font-weight: 800;
}

.rank-genre {
  color: #6b7280;
  font-size: 14px;
}

.rank-score {
  color: #f59e0b;
  font-weight: 900;
  text-align: right;
}

.page-main,
.detail-main {
  background: linear-gradient(180deg, #ffffff, #fff7ed 55%, #ffffff);
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0 26px;
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.page-hero p {
  max-width: 720px;
  margin: 14px 0 0;
  color: #6b7280;
  font-size: 18px;
}

.toolbar {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
}

.toolbar input,
.toolbar select {
  height: 48px;
  border: 1px solid #fecdd3;
  border-radius: 16px;
  padding: 0 16px;
  color: #111827;
  background: #fff;
  outline: none;
}

.toolbar input {
  flex: 1;
}

.toolbar select {
  min-width: 180px;
}

.movie-card.is-hidden {
  display: none;
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a {
  color: #e11d48;
  font-weight: 700;
}

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 48px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 46px;
  align-items: center;
}

.detail-poster {
  height: 470px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #fff1f2, #ffedd5);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.18);
}

.detail-info h1 {
  margin: 16px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
}

.detail-subtitle {
  max-width: 760px;
  margin: 0 0 20px;
  color: #4b5563;
  font-size: 20px;
}

.detail-meta {
  margin-bottom: 20px;
  font-weight: 720;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #030712;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.26);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #030712;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  color: #fff;
  background: #030712;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.18));
}

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

.play-circle {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f43f5e, #fb923c);
  box-shadow: 0 18px 42px rgba(244, 63, 94, 0.38);
  font-size: 34px;
  transform: translate(-50%, -50%);
}

.player-cover strong {
  position: absolute;
  z-index: 2;
  left: 32px;
  bottom: 26px;
  font-size: clamp(22px, 4vw, 38px);
  line-height: 1.1;
  text-align: left;
}

.detail-text {
  padding-top: 56px;
}

.detail-text h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 30px;
}

.detail-text p {
  margin: 0 0 28px;
  color: #374151;
  font-size: 18px;
}

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

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

  .menu-toggle {
    display: flex;
  }

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

  .rank-list,
  .rank-page-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .rank-page-item {
    grid-template-columns: 56px 72px 1fr 54px;
  }

  .rank-genre {
    display: none;
  }

  .detail-hero {
    grid-template-columns: 240px 1fr;
    gap: 28px;
  }

  .detail-poster {
    height: 360px;
  }
}

@media (max-width: 680px) {
  .hero-slider {
    height: 540px;
  }

  .hero-content {
    left: 18px;
    width: calc(100% - 36px);
  }

  .section {
    width: min(100% - 24px, 1180px);
    padding: 46px 0;
  }

  .section-head,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .feature-card a {
    height: 320px;
  }

  .rank-item {
    grid-template-columns: 44px 64px 1fr 46px;
  }

  .rank-item img,
  .rank-page-item img {
    height: 76px;
  }

  .rank-page-item {
    grid-template-columns: 48px 68px 1fr 46px;
    gap: 10px;
  }

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

  .detail-poster {
    height: 460px;
  }

  .player-shell {
    border-radius: 18px;
  }

  .play-circle {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }

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

.site-footer {
  background: linear-gradient(180deg, #f9fafb, #f3f4f6);
  border-top: 1px solid #f3f4f6;
}

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

.site-footer h2 {
  margin: 0 0 14px;
  color: #1f2937;
  font-size: 20px;
}

.site-footer p,
.site-footer a {
  color: #6b7280;
  font-size: 14px;
}

.site-footer a {
  display: block;
  margin: 7px 0;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 34px;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 14px;
  text-align: center;
}


@media (max-width: 680px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
