* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #1f2937;
  background: #fff7fb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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%, #fb7185 50%, #fb923c 100%);
  box-shadow: 0 18px 45px rgba(244, 63, 94, 0.26);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #ec4899;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(190, 24, 93, 0.26);
  font-size: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #ffffff;
  font-weight: 700;
  margin-left: auto;
}

.nav-links a {
  padding: 8px 2px;
  opacity: 0.92;
}

.nav-links a:hover {
  opacity: 1;
  color: #fff7ed;
}

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

.top-search input {
  width: 220px;
  height: 40px;
  border-radius: 999px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.top-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.top-search button,
.btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  color: #be123c;
  background: #ffffff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(190, 24, 93, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search button:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(190, 24, 93, 0.26);
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(90deg, #ec4899, #fb7185, #fb923c);
}

.btn.ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 999px;
}

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

.hero {
  position: relative;
  min-height: 640px;
  color: #ffffff;
  overflow: hidden;
  background: radial-gradient(circle at 15% 25%, rgba(253, 186, 116, 0.52), transparent 28%), radial-gradient(circle at 86% 12%, rgba(244, 114, 182, 0.54), transparent 26%), linear-gradient(135deg, #831843 0%, #be123c 45%, #ea580c 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 10, 28, 0.15), rgba(16, 10, 28, 0.52));
}

.hero-inner {
  position: relative;
  width: min(1200px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 42px;
  align-items: center;
  padding: 64px 0 46px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.13);
  font-size: 14px;
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(34px, 5.6vw, 68px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-lead {
  max-width: 640px;
  margin: 22px 0 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.hero-stats a {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(14px);
}

.hero-stats strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.hero-stage {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(112, 26, 117, 0.32);
  opacity: 0;
  transform: translateX(24px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  backdrop-filter: blur(18px);
}

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

.hero-poster {
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 14px;
}

.hero-panel h2 {
  margin: 12px 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 950;
}

.hero-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 24px;
}

.hero-meta span,
.meta-row span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-meta span {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.hero-dots {
  position: absolute;
  right: 30px;
  bottom: 28px;
  display: flex;
  gap: 10px;
  z-index: 5;
}

.hero-dots button {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

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

.section {
  margin: 66px 0;
}

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

.section-head h2,
.page-hero h1,
.player-section h2,
.detail-section h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.18;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-head p,
.page-hero p {
  margin: 8px 0 0;
  max-width: 640px;
  color: #6b7280;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(244, 114, 182, 0.16);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(190, 24, 93, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(190, 24, 93, 0.15);
}

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

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

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

.score-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.score-pill {
  right: 12px;
  bottom: 12px;
  min-width: 44px;
  height: 30px;
  color: #ffffff;
  background: linear-gradient(90deg, #ec4899, #f97316);
  box-shadow: 0 8px 18px rgba(190, 24, 93, 0.28);
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  color: #be123c;
  background: #ffffff;
}

.card-content {
  padding: 16px;
}

.card-meta {
  margin: 0 0 6px;
  color: #ec4899;
  font-size: 13px;
  font-weight: 800;
}

.card-content h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.28;
  font-weight: 900;
}

.card-content p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.tag-row,
.detail-tags,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span,
.detail-tags span,
.meta-row span {
  color: #be123c;
  background: #ffe4e6;
}

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

.category-tile {
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-radius: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #fb7185, #fb923c);
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.18);
}

.category-tile span {
  font-size: 22px;
  font-weight: 950;
}

.category-tile small {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 650;
}

.page-hero {
  margin: 34px 0 38px;
  padding: 44px;
  border-radius: 34px;
  color: #ffffff;
  background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.24), transparent 32%), linear-gradient(135deg, #be123c, #ec4899, #f97316);
  box-shadow: 0 24px 70px rgba(190, 24, 93, 0.18);
}

.page-hero h1 {
  color: #ffffff;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.84);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-bar input {
  width: min(100%, 520px);
  height: 46px;
  padding: 0 18px;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  outline: none;
  color: #111827;
  background: #ffffff;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 60px 90px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(190, 24, 93, 0.08);
}

.rank-num {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #fb923c);
  font-size: 18px;
  font-weight: 950;
}

.rank-row img {
  width: 74px;
  height: 98px;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, #831843, #fb7185);
}

.rank-row h2,
.rank-row h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 950;
}

.rank-row p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.heat {
  color: #be123c;
  font-weight: 950;
}

.detail-hero {
  position: relative;
  margin: 34px 0 38px;
  padding: 28px;
  border-radius: 36px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 34px;
  color: #ffffff;
  overflow: hidden;
  background: radial-gradient(circle at 18% 10%, rgba(251, 146, 60, 0.42), transparent 32%), linear-gradient(135deg, #701a75, #be123c, #fb7185);
  box-shadow: 0 26px 76px rgba(190, 24, 93, 0.20);
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.22);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #831843, #fb7185);
}

.detail-info {
  align-self: center;
}

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

.detail-lead {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.player-section,
.detail-section {
  margin: 44px 0;
  padding: 26px;
  border: 1px solid rgba(244, 114, 182, 0.16);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(190, 24, 93, 0.08);
}

.player-frame {
  position: relative;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.25);
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0.72));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #be123c;
  background: #ffffff;
  font-size: 34px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

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

.text-block p {
  margin: 14px 0;
  color: #374151;
  font-size: 17px;
}

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

.mini-card {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 8px;
  padding: 12px;
  border: 1px solid #ffe4e6;
  border-radius: 22px;
  background: #fff7fb;
}

.mini-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, #831843, #fb7185);
  transition: transform 0.25s ease;
}

.mini-card span {
  color: #111827;
  font-weight: 950;
}

.mini-card small {
  color: #6b7280;
}

.site-footer {
  margin-top: 80px;
  color: #ffffff;
  background: linear-gradient(90deg, #be123c, #ec4899, #fb923c);
}

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

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  font-weight: 950;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.82);
}

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

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.20);
  color: rgba(255, 255, 255, 0.78);
}

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

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

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

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 20px 20px;
    background: linear-gradient(90deg, #ec4899, #fb7185, #fb923c);
  }

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

  .nav-links a {
    padding: 12px 6px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .hero-stage {
    min-height: 540px;
  }

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

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

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

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

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

@media (max-width: 640px) {
  .header-inner {
    width: min(100% - 22px, 1200px);
  }

  .brand {
    font-size: 19px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    position: relative;
    display: none;
  }

  .hero-slide.is-active {
    display: grid;
  }

  .hero-poster img {
    min-height: auto;
    aspect-ratio: 3 / 4;
  }

  .hero-stage {
    min-height: auto;
  }

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

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

  .page-hero,
  .detail-hero,
  .player-section,
  .detail-section {
    padding: 22px;
    border-radius: 26px;
  }

  .rank-row {
    grid-template-columns: 42px 70px minmax(0, 1fr);
  }

  .rank-row .heat {
    grid-column: 3;
  }
}

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