:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  --pink-600: #db2777;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow: 0 16px 40px rgba(190, 18, 60, 0.12);
  --shadow-soft: 0 10px 28px rgba(17, 24, 39, 0.08);
  --radius: 22px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, #ffffff 0%, var(--rose-50) 100%);
  line-height: 1.7;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--rose-600);
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.brand-mark span {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #ffffff;
  margin-left: 3px;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--gray-700);
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--rose-600);
  background: var(--rose-50);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--rose-50);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--rose-600);
  border-radius: 999px;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(251, 113, 133, 0.24), transparent 30%),
    radial-gradient(circle at 90% 15%, rgba(219, 39, 119, 0.18), transparent 34%),
    linear-gradient(180deg, #fff7f8 0%, #ffffff 50%, var(--rose-50) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(225, 29, 72, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225, 29, 72, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 80%);
}

.hero-shell {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  padding: 58px 0 76px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  gap: 48px;
  align-items: center;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeUp 0.55s ease both;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--rose-600);
  font-weight: 750;
  box-shadow: var(--shadow-soft);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero h1 span,
.gradient-text {
  color: transparent;
  background: linear-gradient(135deg, var(--rose-600), var(--pink-600));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead {
  max-width: 760px;
  margin: 0 0 28px;
  font-size: clamp(17px, 2vw, 22px);
  color: var(--gray-600);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-600), var(--pink-600));
  box-shadow: 0 18px 36px rgba(225, 29, 72, 0.24);
}

.btn-secondary {
  color: var(--rose-600);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn-ghost {
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.36);
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 42px rgba(225, 29, 72, 0.22);
}

.hero-visual {
  position: relative;
  min-height: 480px;
}

.hero-bg-card {
  position: absolute;
  inset: 12% -12% 10% 8%;
  border-radius: 38px;
  background-size: cover;
  background-position: center;
  filter: blur(16px);
  opacity: 0.28;
  transform: rotate(4deg);
}

.hero-poster-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  min-height: 480px;
  box-shadow: 0 28px 70px rgba(190, 18, 60, 0.3);
  background: var(--gray-200);
}

.hero-poster-card img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-poster-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(17, 24, 39, 0.78) 100%);
}

.hero-poster-info {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  color: #ffffff;
}

.hero-poster-info strong {
  display: block;
  font-size: 22px;
  margin-bottom: 4px;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 42px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.18);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 72px;
  background: linear-gradient(135deg, var(--rose-600), var(--pink-600));
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: linear-gradient(180deg, #ffffff 0%, var(--rose-50) 100%);
}

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

.section-title h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-title p,
.page-title p {
  margin: 8px 0 0;
  color: var(--gray-600);
}

.more-link {
  color: var(--rose-600);
  font-weight: 800;
}

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

.feature-card,
.category-card,
.content-card {
  background: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card {
  padding: 28px;
  text-align: center;
  background: linear-gradient(135deg, #fff7f8, #ffffff);
}

.feature-card:hover,
.category-card:hover,
.content-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: var(--rose-600);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  font-size: 26px;
}

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.10);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--gray-200);
}

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

.movie-card:hover .poster-wrap img {
  transform: scale(1.08);
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(17, 24, 39, 0.55) 100%);
  opacity: 0.82;
}

.poster-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(225, 29, 72, 0.88);
  font-size: 12px;
  font-weight: 800;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-card h3 {
  min-height: 46px;
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.55;
}

.movie-card h3 a:hover {
  color: var(--rose-600);
}

.card-meta,
.card-desc {
  margin: 0;
  color: var(--gray-500);
  font-size: 13px;
}

.card-desc {
  min-height: 42px;
  margin-top: 7px;
  color: var(--gray-600);
}

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

.tag-row span,
.detail-tag,
.filter-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--rose-50);
  color: var(--rose-600);
  font-size: 12px;
  font-weight: 700;
}

.page-hero {
  padding: 72px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.24), transparent 26%),
    linear-gradient(135deg, var(--rose-600), var(--pink-600));
}

.page-title {
  max-width: 780px;
}

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

.filter-panel {
  position: sticky;
  top: 78px;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(140px, 0.45fr));
  gap: 12px;
  padding: 16px;
  margin: -34px 0 34px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--gray-700);
  background: #ffffff;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(225, 29, 72, 0.48);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.10);
}

.category-card {
  overflow: hidden;
}

.category-cover-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  padding: 8px;
}

.category-cover-row img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.category-body {
  padding: 20px;
}

.category-body h2,
.category-body h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-body p {
  margin: 0 0 16px;
  color: var(--gray-600);
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.ranking-list {
  display: grid;
  gap: 12px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 52px 72px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.10);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
}

.rank-number {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--rose-600);
  background: var(--rose-50);
  font-weight: 900;
}

.top-one .rank-number,
.top-two .rank-number,
.top-three .rank-number {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-600), var(--pink-600));
}

.ranking-item img {
  width: 72px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: var(--gray-200);
}

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

.rank-content strong {
  font-size: 16px;
}

.rank-content em {
  margin-top: 4px;
  color: var(--gray-500);
  font-style: normal;
  font-size: 13px;
}

.detail-hero {
  padding: 36px 0 72px;
  background: linear-gradient(180deg, #fff7f8 0%, #ffffff 62%, var(--rose-50) 100%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--gray-500);
  font-size: 14px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-panel,
.article-card {
  background: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(225, 29, 72, 0.24), rgba(0, 0, 0, 0.58));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-action {
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  font-size: 30px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
  transition: transform 0.2s ease;
}

.play-action:hover {
  transform: scale(1.06);
}

.player-caption {
  padding: 20px 22px 24px;
}

.player-caption h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.22;
}

.player-caption p {
  margin: 0;
  color: var(--gray-600);
}

.detail-panel {
  padding: 18px;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 20px;
  background: var(--gray-200);
}

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

.meta-list {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
}

.meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-100);
}

.meta-list dt {
  color: var(--gray-500);
}

.meta-list dd {
  margin: 0;
  color: var(--gray-900);
  font-weight: 800;
  text-align: right;
}

.article-card {
  padding: 30px;
}

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

.article-card p {
  margin: 0 0 18px;
  color: var(--gray-600);
}

.related-section {
  padding: 0 0 72px;
}

.cta-card {
  overflow: hidden;
  position: relative;
  padding: 42px;
  border-radius: 28px;
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.22), transparent 26%),
    linear-gradient(135deg, var(--rose-600), var(--pink-600));
  box-shadow: var(--shadow);
}

.cta-card h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
}

.cta-card p {
  max-width: 700px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
}

.empty-state {
  display: none;
  padding: 36px;
  text-align: center;
  color: var(--gray-500);
  background: #ffffff;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.empty-state.is-visible {
  display: block;
}

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

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

  .hero-slide,
  .detail-grid,
  .ranking-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-poster-card,
  .hero-poster-card img {
    min-height: 420px;
  }
}

@media (max-width: 780px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .header-inner {
    min-height: 62px;
  }

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

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    padding: 12px 14px;
  }

  .hero-shell {
    min-height: auto;
    padding: 38px 0 72px;
  }

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

  .hero h1 {
    margin-top: 18px;
  }

  .hero-visual {
    margin-top: 34px;
    min-height: 360px;
  }

  .hero-poster-card,
  .hero-poster-card img {
    min-height: 360px;
  }

  .hero-dots {
    bottom: 24px;
  }

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

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

  .section {
    padding: 48px 0;
  }

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

  .filter-panel {
    position: static;
    grid-template-columns: 1fr;
    margin-top: -24px;
  }

  .ranking-item {
    grid-template-columns: 44px 62px 1fr;
  }

  .ranking-item img {
    width: 62px;
  }

  .article-card,
  .cta-card {
    padding: 24px;
  }

  .play-action {
    width: 68px;
    height: 68px;
  }
}

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

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

  .movie-card h3 {
    font-size: 14px;
  }

  .card-desc {
    display: none;
  }

  .hero-actions,
  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
