:root {
  --page-bg: #fff7fb;
  --surface: #ffffff;
  --surface-soft: #fff1f7;
  --ink: #24202a;
  --muted: #6b6473;
  --line: rgba(219, 39, 119, 0.16);
  --pink: #ec4899;
  --rose: #f43f5e;
  --orange: #fb923c;
  --amber: #f59e0b;
  --shadow: 0 20px 45px rgba(149, 38, 91, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.12), transparent 30rem),
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.14), transparent 26rem),
    var(--page-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(255, 241, 247, 0.94), rgba(255, 247, 237, 0.94));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.08);
}

.nav-wrap {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 900;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.28);
}

.logo-text,
.footer-logo {
  font-size: 24px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #403746;
  font-weight: 700;
}

.main-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  color: var(--pink);
  border-color: var(--pink);
}

.nav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(149, 38, 91, 0.08);
}

.nav-search input,
.home-search input,
.search-panel input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
}

.nav-search input {
  width: 220px;
  padding: 8px 12px;
}

.nav-search button,
.home-search button,
.search-panel button,
.btn {
  border: 0;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 12px 22px rgba(236, 72, 153, 0.24);
  cursor: pointer;
}

.nav-search button {
  padding: 8px 16px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: #fff;
  border-radius: 12px;
  padding: 8px 11px;
  font-size: 22px;
  box-shadow: var(--shadow);
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #150c18;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 800ms ease, transform 900ms ease;
}

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(6px) saturate(1.1);
  transform: scale(1.04);
  opacity: 0.78;
}

.hero-mask,
.detail-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 10, 25, 0.94), rgba(64, 17, 55, 0.70), rgba(251, 146, 60, 0.24)),
    radial-gradient(circle at 72% 32%, rgba(236, 72, 153, 0.45), transparent 24rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.54fr);
  gap: 52px;
  align-items: center;
  padding: 82px 0 72px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 13px;
  color: #fff;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.72);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  padding: 6px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: none;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4.2;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.45), rgba(251, 146, 60, 0.35));
}

.hero-poster img,
.poster-frame img,
.category-card img,
.category-cover img,
.detail-poster img {
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #fce7f3, #fed7aa);
}

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

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

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

.quick-panel,
.section-block,
.page-main,
.detail-content {
  padding: 42px 0;
}

.quick-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.home-search,
.search-panel,
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
}

.home-search input,
.search-panel input,
.filter-bar input,
.filter-bar select {
  padding: 12px 16px;
}

.home-search button,
.search-panel button {
  flex: 0 0 auto;
  padding: 12px 22px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-links a,
.section-more,
.text-link {
  color: var(--pink);
  font-weight: 800;
}

.quick-links a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 30px rgba(149, 38, 91, 0.10);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(149, 38, 91, 0.18);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.15;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #fed7aa);
}

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.year-badge {
  right: 10px;
  bottom: 10px;
  padding: 5px 10px;
  background: rgba(20, 10, 25, 0.76);
}

.rank-badge {
  left: 10px;
  top: 10px;
  padding: 6px 10px;
  background: linear-gradient(135deg, var(--rose), var(--amber));
}

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

.movie-meta-line,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.movie-card h3 {
  margin: 8px 0 7px;
  min-height: 2.9em;
  font-size: 18px;
  line-height: 1.45;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 4.8em;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  padding: 4px 9px;
  color: #be185d;
  background: #fce7f3;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border-radius: var(--radius-lg);
  color: #fff;
  isolation: isolate;
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  filter: saturate(1.08);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(20, 10, 25, 0.88), rgba(20, 10, 25, 0.1));
}

.category-card strong {
  font-size: 22px;
}

.category-card em {
  color: rgba(255, 255, 255, 0.84);
  font-style: normal;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  padding: 54px;
  color: #fff;
  border-radius: 36px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 16rem),
    linear-gradient(135deg, #be185d, #fb923c);
  box-shadow: var(--shadow);
}

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

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.category-cover {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
}

.category-overview-card h2 {
  margin: 0 0 6px;
}

.category-overview-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.mini-list {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

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

.mini-list a {
  color: var(--ink);
  font-weight: 700;
}

.filter-bar {
  margin: 26px 0;
  border-radius: 22px;
}

.filter-bar select {
  width: auto;
  min-width: 160px;
}

.table-wrap {
  margin-top: 32px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.ranking-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.ranking-table th {
  color: #9f1239;
  background: #fff1f7;
}

.ranking-table a {
  font-weight: 800;
}

.search-panel {
  margin: 28px 0 10px;
}

.result-count {
  color: var(--muted);
}

.detail-main {
  background: #fff7fb;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #fff;
  background: #150c18;
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 44px;
  align-items: end;
  padding: 54px 0 70px;
  min-height: 620px;
}

.breadcrumbs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: #fff;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4.25;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 32px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
}

.detail-one-line {
  max-width: 820px;
  margin: 18px 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.detail-meta {
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 14px;
}

.detail-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.detail-info .btn {
  margin-top: 24px;
}

.detail-content {
  display: grid;
  gap: 24px;
}

.player-card,
.prose-card {
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.player-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.player-title-row h2,
.prose-card h2 {
  margin: 0;
}

.player-title-row span {
  padding: 5px 11px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  font-weight: 900;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #0f0b12;
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f0b12;
}

.play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.34);
  cursor: pointer;
}

.video-shell.is-playing .play-overlay {
  display: none;
}

.prose-card p {
  margin: 12px 0 0;
  color: #403746;
  font-size: 17px;
}

.related-block {
  padding: 0;
}

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

.site-footer {
  margin-top: 38px;
  padding: 42px 0;
  color: rgba(255, 255, 255, 0.74);
  background: #17111b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 12px;
  font-weight: 900;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: #fff;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .movie-grid,
  .movie-grid-featured,
  .movie-grid-related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .hero-poster {
    display: none;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav,
  .nav-search {
    display: none;
  }

  body.menu-open .main-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 78px;
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .hero-carousel,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    padding: 58px 0;
  }

  .quick-panel,
  .category-overview-card,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .filter-bar,
  .home-search,
  .search-panel {
    align-items: stretch;
    flex-direction: column;
    border-radius: 24px;
  }

  .filter-bar select {
    width: 100%;
  }

  .detail-layout {
    align-items: start;
  }

  .detail-poster {
    max-width: 260px;
  }
}

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

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

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

  .page-hero {
    padding: 32px 22px;
    border-radius: 26px;
  }

  .hero-copy p,
  .detail-one-line {
    font-size: 17px;
  }
}
