:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  --pink-600: #db2777;
  --ink: #16151f;
  --muted: #6b7280;
  --line: #f0d7dc;
  --card: #ffffff;
  --soft: #fff7f9;
  --shadow: 0 24px 60px rgba(190, 18, 60, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7fa 0%, #ffffff 36%, #fff7fa 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(244, 63, 94, 0.14);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rose-600), var(--pink-600));
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.26);
}

.brand-text {
  font-size: 20px;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  padding: 9px 13px;
  color: #4b5563;
  border-radius: 999px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--rose-700);
  background: var(--rose-50);
}

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

.header-search input,
.search-panel input,
.filter-input {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  outline: 0;
  background: #fff;
  min-width: 220px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input:focus,
.search-panel input:focus,
.filter-input:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.14);
}

.header-search button,
.primary-btn,
.secondary-btn,
.search-panel button {
  border: 0;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-600), var(--pink-600));
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.primary-btn:hover,
.search-panel button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(225, 29, 72, 0.27);
}

.secondary-btn {
  color: var(--rose-700);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--rose-50);
  color: var(--rose-700);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 21px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 22px 18px;
}

.mobile-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #4b5563;
  font-weight: 800;
}

.mobile-panel a:hover {
  background: var(--rose-50);
  color: var(--rose-700);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.45), transparent 24%), linear-gradient(135deg, #be123c 0%, #db2777 50%, #7c2d12 100%);
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(180deg, transparent, rgba(255, 247, 250, 1));
  pointer-events: none;
}

.hero-stage {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  min-height: 650px;
  padding: 88px 22px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 42px;
}

.hero-slide {
  display: none;
  animation: fadeUp 0.6s ease both;
}

.hero-slide.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(250px, 0.62fr);
  align-items: center;
  gap: 36px;
}

.hero-eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.section-eyebrow {
  color: var(--rose-700);
  background: var(--rose-50);
}

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

.hero-lead {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero-meta,
.detail-meta,
.card-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-meta span,
.detail-meta span,
.card-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.hero-meta span {
  background: rgba(255, 255, 255, 0.16);
}

.detail-meta span,
.card-tags span,
.tag-row span {
  color: var(--rose-700);
  background: var(--rose-50);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.hero-poster-wrap {
  position: relative;
}

.hero-poster {
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
  background: rgba(255, 255, 255, 0.18);
}

.hero-poster img {
  height: 100%;
  object-fit: cover;
}

.hero-float-card {
  position: absolute;
  left: -28px;
  bottom: 36px;
  max-width: 250px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.hero-thumbs {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 24px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  max-width: 850px;
}

.hero-thumb {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  min-height: 74px;
  padding: 12px;
  text-align: left;
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.hero-thumb.is-active,
.hero-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px);
}

.hero-thumb strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-thumb small {
  color: rgba(255, 255, 255, 0.72);
}

.section,
.page-hero,
.detail-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 76px 22px 0;
}

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

.page-hero-box,
.category-box,
.search-panel,
.detail-main,
.player-panel {
  border: 1px solid rgba(244, 63, 94, 0.13);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.page-hero-box {
  padding: 42px;
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.92), rgba(255, 255, 255, 0.9));
}

.page-hero h1,
.section-title h2,
.detail-title {
  margin: 10px 0;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
}

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

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

.section-title p,
.page-hero p,
.movie-card p,
.category-box p,
.detail-summary,
.review-box,
.footer-grid p {
  color: var(--muted);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 12px 32px rgba(190, 18, 60, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 46px rgba(190, 18, 60, 0.16);
}

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

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

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

.poster-year,
.poster-score {
  position: absolute;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(8px);
}

.poster-year {
  left: 12px;
}

.poster-score {
  right: 12px;
  background: linear-gradient(135deg, var(--rose-600), var(--pink-600));
}

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

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-title:hover,
.breadcrumb a:hover {
  color: var(--rose-700);
}

.card-tags {
  gap: 6px;
}

.card-tags span {
  padding: 3px 8px;
}

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

.category-box {
  padding: 22px;
  transition: all 0.22s ease;
}

.category-box:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 63, 94, 0.35);
}

.category-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.rank-no {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose-600), var(--pink-600));
}

.rank-title {
  font-weight: 900;
}

.rank-meta {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.search-panel {
  padding: 24px;
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}

.search-panel input,
.filter-input {
  flex: 1;
  border-radius: 18px;
  min-width: 0;
}

.detail-wrap {
  padding-top: 42px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 700;
}

.detail-main {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  padding: 30px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 20px 50px rgba(190, 18, 60, 0.16);
}

.detail-poster img {
  height: 100%;
  object-fit: cover;
}

.detail-title {
  font-size: clamp(34px, 5vw, 58px);
}

.detail-summary {
  font-size: 17px;
}

.review-box {
  margin-top: 20px;
  padding: 18px;
  border-radius: 22px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.player-panel {
  margin-top: 34px;
  padding: 24px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #0f0f17;
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f0f17;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.44));
}

.player-play {
  pointer-events: auto;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-600), var(--pink-600));
  box-shadow: 0 18px 46px rgba(225, 29, 72, 0.42);
  font-size: 30px;
  cursor: pointer;
}

.video-shell.is-ready .player-cover {
  display: none;
}

.site-footer {
  margin-top: 88px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-700), var(--pink-600));
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 22px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 34px;
}

.footer-grid p {
  color: rgba(255, 255, 255, 0.76);
  max-width: 540px;
}

.footer-grid h3 {
  margin: 0 0 12px;
}

.footer-grid a:not(.footer-brand) {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  margin: 6px 0;
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 22px 28px;
  color: rgba(255, 255, 255, 0.74);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .mobile-panel.is-open {
    display: block;
  }

  .hero-stage,
  .hero-slide.is-active,
  .detail-main,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-stage {
    min-height: auto;
    padding-top: 58px;
    padding-bottom: 146px;
  }

  .hero-poster-wrap {
    max-width: 360px;
  }

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

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

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

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

  .search-panel {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .header-inner {
    padding-inline: 16px;
  }

  .brand-text {
    font-size: 17px;
  }

  .hero-thumbs {
    display: none;
  }

  .hero-stage {
    padding-bottom: 50px;
  }

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

  .page-hero-box,
  .detail-main,
  .player-panel {
    padding: 20px;
    border-radius: 22px;
  }
}
