* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #fff1f7 0%, #ffffff 34%, #fff1f7 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #ec4899 0%, #f43f5e 100%);
  box-shadow: 0 12px 35px rgba(244, 63, 94, 0.24);
}

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

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

.brand {
  color: #ffffff;
  font-size: 24px;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  transition: transform 0.25s ease;
}

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

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

.desktop-nav a {
  opacity: 0.94;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.header-search input {
  width: 210px;
  border: 0;
  outline: 0;
  padding: 8px 12px;
  color: #ffffff;
  background: transparent;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.82);
}

.header-search button,
.primary-button,
.ghost-button,
.play-start,
.section-more,
.search-panel button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.header-search button {
  padding: 8px 16px;
  border-radius: 999px;
  color: #db2777;
  font-weight: 700;
  background: #ffffff;
}

.menu-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 14px;
  justify-content: space-around;
  color: #ffffff;
  font-weight: 600;
}

.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  margin-bottom: 56px;
  color: #ffffff;
  background: #111827;
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #f9a8d4, #fb7185);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.88) 0%, rgba(17, 24, 39, 0.42) 45%, rgba(17, 24, 39, 0.12) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 72px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  z-index: 3;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #db2777;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #ffffff;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.78);
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.28);
}

.hero h1,
.hero h2 {
  max-width: 760px;
  margin: 0 0 16px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 1.8;
}

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

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, #ec4899, #f43f5e);
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.34);
}

.primary-button:hover,
.section-more:hover,
.play-start:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 36px rgba(236, 72, 153, 0.34);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 32px;
  background: #ffffff;
}

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

.page-hero {
  margin: 34px 0;
  padding: 34px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(244, 63, 94, 0.12);
}

.page-hero h1 {
  margin: 0 0 12px;
  color: #111827;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -0.03em;
}

.page-hero p {
  max-width: 850px;
  margin: 0;
  color: #6b7280;
  font-size: 17px;
  line-height: 1.8;
}

.content-section {
  margin: 0 0 58px;
}

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

.section-head h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -0.02em;
}

.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(90deg, #ec4899, #f43f5e);
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 42px rgba(236, 72, 153, 0.18);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #f9a8d4, #fecdd3);
}

.card-cover img,
.rank-cover img,
.detail-poster img,
.player-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.25s ease;
}

.movie-card:hover .cover-shade {
  background: rgba(0, 0, 0, 0.28);
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(236, 72, 153, 0.88);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-label {
  position: absolute;
  left: 12px;
  top: 12px;
  max-width: calc(100% - 24px);
  padding: 5px 10px;
  overflow: hidden;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: linear-gradient(90deg, #ec4899, #f43f5e);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 15px;
}

.card-body strong {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover .card-body strong,
.rank-item:hover strong {
  color: #db2777;
}

.card-body em,
.rank-info em,
.detail-meta span {
  color: #6b7280;
  font-size: 13px;
  font-style: normal;
}

.card-body small,
.rank-info small {
  display: -webkit-box;
  overflow: hidden;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag-row span,
.detail-tags span,
.filter-chip,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #db2777;
  font-size: 12px;
  font-weight: 700;
  background: #fce7f3;
}

.feature-band {
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(135deg, #fce7f3, #ffe4e6);
}

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

.category-card {
  min-height: 190px;
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(236, 72, 153, 0.18);
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  color: #111827;
  font-size: 22px;
}

.category-card p {
  margin: 0 0 18px;
  color: #6b7280;
  line-height: 1.7;
}

.category-card span {
  color: #db2777;
  font-weight: 800;
}

.search-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 22px 0 28px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

.search-panel input,
.search-panel select {
  min-height: 42px;
  border: 0;
  outline: 0;
  border-radius: 12px;
  color: #374151;
  background: #f3f4f6;
}

.search-panel input {
  flex: 1 1 260px;
  padding: 0 14px;
}

.search-panel select {
  padding: 0 14px;
}

.search-panel input:focus,
.search-panel select:focus {
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.16);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.filter-chip {
  min-height: 34px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
  color: #ffffff;
  background: linear-gradient(90deg, #ec4899, #f43f5e);
  transform: translateY(-1px);
}

.rank-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: start;
}

.rank-list {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.rank-item {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 14px;
  padding: 10px;
  border-radius: 18px;
  background: #fff7fb;
}

.rank-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #f9a8d4, #fecdd3);
}

.rank-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.rank-info strong {
  color: #111827;
  line-height: 1.4;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  margin: 36px 0;
  padding: 30px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(236, 72, 153, 0.14);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #f9a8d4, #fecdd3);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  color: #9ca3af;
  font-size: 14px;
}

.breadcrumbs a {
  color: #db2777;
  font-weight: 700;
}

.detail-hero h1 {
  margin: 0 0 16px;
  color: #111827;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.detail-summary {
  margin: 0 0 20px;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.8;
}

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

.meta-pill {
  color: #374151;
  background: #f3f4f6;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player-box {
  margin: 0 0 44px;
  padding: 24px;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 24px 56px rgba(17, 24, 39, 0.22);
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.22));
}

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

.play-start {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(90deg, #ec4899, #f43f5e);
}

.article-card {
  margin: 0 0 44px;
  padding: 30px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.08);
}

.article-card h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 26px;
}

.article-card p {
  margin: 0 0 16px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.9;
}

.no-result {
  display: none;
  padding: 38px;
  border-radius: 22px;
  color: #6b7280;
  text-align: center;
  background: #ffffff;
}

.site-footer {
  margin-top: 70px;
  padding: 44px 0 28px;
  background: linear-gradient(180deg, #fff7fb 0%, #fce7f3 100%);
}

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

.footer-grid h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 18px;
}

.footer-grid p {
  max-width: 380px;
  color: #6b7280;
  line-height: 1.8;
}

.footer-grid a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: #6b7280;
}

.footer-grid a:hover {
  color: #db2777;
}

.footer-brand {
  color: #db2777;
  font-size: 22px;
}

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

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

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

@media (max-width: 820px) {
  .nav-shell {
    min-height: 64px;
    gap: 12px;
  }

  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

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

  .brand {
    font-size: 20px;
  }

  .hero {
    height: 520px;
  }

  .hero-content {
    bottom: 62px;
  }

  .hero-arrow {
    display: none;
  }

  .movie-grid,
  .movie-grid.compact,
  .category-grid,
  .rank-layout,
  .footer-grid,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 280px;
  }

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

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

  .hero h1,
  .hero h2 {
    font-size: 34px;
  }

  .hero p {
    font-size: 15px;
  }

  .main-shell,
  .nav-shell,
  .mobile-nav,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .page-hero,
  .feature-band,
  .article-card,
  .detail-hero,
  .player-box {
    padding: 20px;
    border-radius: 22px;
  }

  .movie-grid,
  .movie-grid.compact {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 94px 1fr;
  }
}
