:root {
  --bg: #fff7f8;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: #ffffff;
  --text: #27212a;
  --muted: #746b78;
  --soft: #fff1f2;
  --line: rgba(244, 63, 94, 0.16);
  --rose: #f43f5e;
  --rose-dark: #be123c;
  --pink: #ec4899;
  --shadow: 0 22px 60px rgba(190, 18, 60, 0.16);
  --radius: 26px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 4%, rgba(251, 113, 133, 0.26), transparent 30%),
    radial-gradient(circle at 86% 10%, rgba(236, 72, 153, 0.22), transparent 28%),
    linear-gradient(180deg, #fff1f2 0%, #ffffff 38%, #fff7f8 100%);
}

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

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.34);
}

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

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

.main-nav a,
.mobile-panel a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #6b5f70;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a.active,
.mobile-panel a:hover {
  color: var(--rose-dark);
  background: #ffe4e6;
}

.menu-button {
  display: none;
  border: 0;
  border-radius: 16px;
  padding: 9px 13px;
  color: var(--rose-dark);
  background: #ffe4e6;
  font-size: 20px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.mobile-panel.open {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  padding: 70px 0 40px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -24% -10% auto;
  height: 520px;
  background:
    radial-gradient(circle at 22% 42%, rgba(244, 63, 94, 0.34), transparent 26%),
    radial-gradient(circle at 70% 24%, rgba(236, 72, 153, 0.28), transparent 28%),
    linear-gradient(135deg, rgba(255, 228, 230, 0.72), rgba(253, 242, 248, 0.45));
  filter: blur(6px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 34px;
  align-items: stretch;
}

.hero-copy {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--rose-dark);
  background: rgba(255, 228, 230, 0.92);
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.hero h1 span {
  color: var(--rose);
}

.hero-lead {
  max-width: 620px;
  margin: 0 0 24px;
  color: #5b5261;
  font-size: 18px;
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 16px 32px rgba(244, 63, 94, 0.28);
}

.btn-light {
  color: var(--rose-dark);
  border-color: rgba(244, 63, 94, 0.18);
  background: rgba(255, 255, 255, 0.78);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 620px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(190, 18, 60, 0.12);
}

.search-box input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
}

.search-box button,
.filter-bar button {
  min-width: 92px;
  border: 0;
}

.hero-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-cats a {
  padding: 9px 13px;
  border: 1px solid rgba(244, 63, 94, 0.18);
  border-radius: 999px;
  color: #7a3146;
  background: rgba(255, 241, 242, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 580px;
  border-radius: 38px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.64)),
    linear-gradient(120deg, rgba(244, 63, 94, 0.35), transparent 52%);
}

.hero-slide-content {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  z-index: 3;
  color: #ffffff;
}

.hero-slide-content strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.1;
}

.hero-slide-content p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.slider-dots {
  position: absolute;
  right: 22px;
  top: 22px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
}

.slider-dots button.active {
  width: 28px;
  background: #ffffff;
}

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

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

.section-kicker {
  color: var(--rose);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section h2,
.section h1 {
  margin: 4px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.section-desc {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.category-card {
  min-height: 158px;
  padding: 22px;
  border: 1px solid rgba(244, 63, 94, 0.13);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(251, 113, 133, 0.18), transparent 38%),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 40px rgba(190, 18, 60, 0.09);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 63, 94, 0.36);
}

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

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 40px rgba(190, 18, 60, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 62px rgba(190, 18, 60, 0.15);
}

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

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

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

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  color: #241923;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  margin: 8px 0;
  color: var(--rose);
  font-size: 13px;
  font-weight: 800;
}

.movie-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 63px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

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

.tag-row span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #8f1237;
  background: #ffe4e6;
  font-size: 12px;
  font-weight: 700;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 24px;
  align-items: start;
}

.rank-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-card {
  padding: 20px;
  border: 1px solid rgba(244, 63, 94, 0.13);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 40px rgba(190, 18, 60, 0.09);
}

.rank-link {
  display: grid;
  grid-template-columns: 40px 58px minmax(0, 1fr) 46px;
  gap: 12px;
  align-items: center;
  min-height: 78px;
}

.rank-no {
  color: var(--rose);
  font-size: 20px;
  font-weight: 1000;
}

.rank-link img {
  height: 78px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-copy strong,
.rank-copy em {
  display: block;
}

.rank-copy strong {
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy em {
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  font-size: 14px;
  font-weight: 900;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 150px auto;
  gap: 12px;
  margin: 24px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 40px rgba(190, 18, 60, 0.09);
}

.filter-bar input,
.filter-bar select {
  padding: 0 14px;
  border-radius: 18px;
  background: #fff7f8;
}

.detail-hero {
  width: min(var(--max), calc(100% - 32px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 28px;
  align-items: start;
}

.detail-cover {
  overflow: hidden;
  border-radius: 34px;
  background: #ffe4e6;
  box-shadow: var(--shadow);
}

.detail-cover img {
  aspect-ratio: 3 / 4.05;
  object-fit: cover;
}

.detail-copy {
  padding: 30px;
  border: 1px solid rgba(244, 63, 94, 0.13);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

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

.breadcrumb a {
  color: var(--rose-dark);
}

.detail-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #8f1237;
  background: #ffe4e6;
  font-size: 13px;
  font-weight: 800;
}

.detail-copy p {
  color: #5c5161;
  line-height: 1.9;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: #130d14;
  box-shadow: 0 34px 80px rgba(31, 11, 19, 0.28);
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.64));
  cursor: pointer;
}

.play-cover.hidden {
  display: none;
}

.play-cover span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.38);
  font-size: 30px;
}

.article-panel {
  padding: 26px;
  border: 1px solid rgba(244, 63, 94, 0.13);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 40px rgba(190, 18, 60, 0.09);
}

.article-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.article-panel p {
  color: #5c5161;
  line-height: 1.9;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.related-grid .movie-card-body {
  padding: 12px;
}

.related-grid .movie-title {
  min-height: auto;
  font-size: 14px;
  -webkit-line-clamp: 2;
}

.related-grid .movie-desc,
.related-grid .tag-row {
  display: none;
}

.pagination-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.pagination-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--rose-dark);
  background: #ffe4e6;
  font-size: 13px;
  font-weight: 800;
}

.empty-state {
  display: none;
  padding: 30px;
  border-radius: 26px;
  color: var(--muted);
  background: #ffffff;
  text-align: center;
}

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

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

  .hero-inner,
  .detail-hero,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 520px;
  }
}

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

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

  .header-inner {
    height: 64px;
  }

  .hero {
    padding-top: 28px;
    min-height: auto;
  }

  .hero-copy {
    padding: 22px;
    border-radius: 28px;
  }

  .hero-slider {
    min-height: 420px;
    border-radius: 28px;
  }

  .search-box,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .search-box {
    display: grid;
  }

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

  .movie-card {
    border-radius: 22px;
  }

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

  .movie-title {
    min-height: 43px;
    font-size: 15px;
  }

  .movie-desc {
    display: none;
  }

  .section-head {
    display: block;
  }

  .detail-copy {
    padding: 22px;
  }
}

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