:root {
  color-scheme: light;
  --bg: #fff7fb;
  --bg-soft: #fff1f5;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f3d9e3;
  --red: #ef4444;
  --orange: #f97316;
  --pink: #ec4899;
  --purple: #8b5cf6;
  --blue: #60a5fa;
  --shadow: 0 20px 60px rgba(236, 72, 153, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(236, 72, 153, 0.18), transparent 28rem),
    radial-gradient(circle at 90% 4%, rgba(96, 165, 250, 0.18), transparent 30rem),
    linear-gradient(180deg, #fff7fb 0%, #f9fafb 42%, #fff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(255, 241, 245, 0.94), rgba(239, 246, 255, 0.94), rgba(245, 243, 255, 0.94));
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 10px 35px rgba(236, 72, 153, 0.12);
  backdrop-filter: blur(18px);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 18px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 26px rgba(239, 68, 68, 0.28);
}

.logo-text {
  font-size: 1.25rem;
  background: linear-gradient(90deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #374151;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--pink);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.13);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  display: grid;
  width: 280px;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(243, 217, 227, 0.8);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.18s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 16px;
}

.dropdown-panel a:hover {
  background: linear-gradient(90deg, #fff1f5, #f5f3ff);
}

.dropdown-panel span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.header-search {
  display: flex;
  align-items: center;
  width: min(280px, 26vw);
  padding: 4px;
  border: 1px solid rgba(243, 217, 227, 0.85);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.header-search input {
  min-width: 0;
  flex: 1;
  height: 36px;
  border: 0;
  outline: 0;
  padding: 0 12px;
  background: transparent;
}

.header-search button,
.btn-primary,
.btn-soft,
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--red), var(--orange));
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.22);
}

.btn-soft {
  color: var(--pink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.12);
}

.btn-line {
  color: #374151;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.24);
}

.btn-primary:hover,
.btn-soft:hover,
.btn-line:hover,
.header-search button:hover {
  transform: translateY(-2px) scale(1.01);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  color: #374151;
  font-size: 1.35rem;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(243, 217, 227, 0.85);
  background: rgba(255, 255, 255, 0.98);
}

.mobile-link,
.mobile-sub-link {
  display: block;
  padding: 12px 24px;
}

.mobile-link.is-active {
  color: var(--pink);
  background: #fff1f5;
}

.mobile-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 8px 16px 18px;
}

.mobile-sub-link {
  border-radius: 14px;
  color: #4b5563;
}

.mobile-sub-link:hover {
  background: #fff1f5;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  color: #fff;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
}

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

.hero-slide img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 5s ease;
}

.hero-slide.is-active img.hero-bg {
  transform: scale(1.12);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.62), rgba(17, 24, 39, 0.22)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.92), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  max-width: 760px;
  gap: 20px;
  padding: 118px 0 96px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #ffe4e6;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-content h1,
.hero-content h2 {
  margin: 0;
  font-size: clamp(2.55rem, 6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-content h2 {
  font-size: clamp(2.25rem, 5vw, 5rem);
}

.hero-content p {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.8;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span,
.movie-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.hero-meta span {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

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

.hero-dots button {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 62px;
  background: #fff;
}

.main-section {
  padding: 76px 0;
}

.main-section.tight {
  padding-top: 42px;
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading span {
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--pink);
  background: #fff1f5;
  font-weight: 800;
}

.section-heading.center span {
  margin-inline: auto;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

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

.category-card,
.movie-card,
.info-card,
.rank-item,
.detail-panel,
.filter-panel,
.player-shell {
  border: 1px solid rgba(243, 217, 227, 0.75);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.category-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  min-height: 190px;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(96, 165, 250, 0.18));
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.text-link {
  color: var(--pink);
  font-weight: 800;
}

.movie-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(236, 72, 153, 0.2);
}

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

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.45), transparent 56%);
  opacity: 0.78;
}

.play-float {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(239, 68, 68, 0.9);
  box-shadow: 0 18px 40px rgba(239, 68, 68, 0.35);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: 0.25s ease;
}

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

.duration-pill,
.rank-badge {
  position: absolute;
  z-index: 4;
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, 0.76);
  font-size: 0.78rem;
  font-weight: 800;
}

.rank-badge {
  left: 12px;
  right: auto;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.movie-title {
  color: #111827;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.35;
}

.movie-title:hover {
  color: var(--pink);
}

.movie-card-body p,
.rank-content p,
.detail-panel p,
.article-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.movie-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-meta span {
  color: #4b5563;
  background: #f3f4f6;
}

.tag-row span {
  color: #be185d;
  background: #fff1f5;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 26px;
  align-items: stretch;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  border-radius: 32px;
  color: #fff;
  background: #111827;
  box-shadow: var(--shadow);
}

.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.16));
}

.feature-card-content {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: grid;
  gap: 14px;
}

.feature-card-content h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.mini-card {
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(243, 217, 227, 0.75);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 35px rgba(236, 72, 153, 0.1);
}

.mini-card img {
  width: 138px;
  height: 86px;
  border-radius: 18px;
  object-fit: cover;
}

.mini-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.93rem;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 190px 190px;
  gap: 14px;
  margin: 0 0 26px;
  padding: 18px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #4b5563;
  font-size: 0.9rem;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(243, 217, 227, 0.95);
  border-radius: 16px;
  outline: 0;
  padding: 0 14px;
  background: #fff;
  color: #111827;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(236, 72, 153, 0.6);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.empty-state {
  margin: 32px 0;
  padding: 28px;
  border-radius: 24px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.9);
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 120px 64px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.rank-cover img {
  width: 120px;
  height: 78px;
  border-radius: 18px;
  object-fit: cover;
}

.rank-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-weight: 900;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 34px 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--pink);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 42px;
}

.player-shell {
  overflow: hidden;
  background: #111827;
}

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

.player-box video {
  width: 100%;
  height: 100%;
  background: #030712;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.25));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 26px 65px rgba(239, 68, 68, 0.38);
  font-size: 2rem;
}

.player-shell.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-caption {
  padding: 18px 22px;
  color: #fff;
  background: #111827;
}

.player-caption h1 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 4vw, 3.25rem);
  line-height: 1.08;
}

.player-caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.75;
}

.poster-panel {
  overflow: hidden;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

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

.detail-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.detail-panel h2 {
  margin: 0;
  font-size: 1.55rem;
}

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

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
}

.info-list strong {
  color: #111827;
}

.related-side {
  display: grid;
  gap: 14px;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid rgba(243, 217, 227, 0.85);
  background: linear-gradient(180deg, #fff, #fff1f5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 34px;
  padding: 44px 0;
}

.footer-grid p {
  max-width: 480px;
  color: var(--muted);
  line-height: 1.75;
}

.footer-grid h2 {
  margin: 0 0 16px;
  font-size: 1rem;
}

.footer-grid a:not(.site-logo) {
  display: block;
  margin: 8px 0;
  color: var(--muted);
}

.footer-grid a:hover {
  color: var(--pink);
}

.footer-bottom {
  padding: 18px 16px 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 16px 36px rgba(239, 68, 68, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

  .menu-toggle {
    display: grid;
    place-items: center;
  }

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

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

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

  .poster-panel img {
    min-height: 340px;
  }
}

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

  .nav-bar {
    min-height: 64px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .hero-carousel {
    min-height: 620px;
  }

  .hero-content {
    padding: 96px 0 82px;
  }

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

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

  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .rank-item .text-link {
    grid-column: 3;
  }

  .rank-cover img {
    width: 96px;
    height: 68px;
  }

  .rank-number {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .mini-card {
    grid-template-columns: 104px 1fr;
  }

  .mini-card img {
    width: 104px;
    height: 78px;
  }

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