:root {
  color-scheme: light;
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --pink-500: #ec4899;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f1d5dc;
  --surface: #ffffff;
  --soft: #fff7f9;
  --shadow: 0 20px 60px rgba(244, 63, 94, 0.14);
  --shadow-soft: 0 12px 32px rgba(31, 41, 55, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.65), #ffffff 24rem, rgba(255, 241, 242, 0.42));
}

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

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

button,
input {
  font: inherit;
}

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

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

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

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

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 22px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  position: relative;
  color: #596273;
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease;
}

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

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(320px, 28vw);
}

.header-search input,
.mobile-nav input,
.toolbar input,
.category-tools input {
  width: 100%;
  border: 1px solid rgba(244, 63, 94, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  outline: none;
  padding: 11px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-nav input:focus,
.toolbar input:focus,
.category-tools input:focus {
  border-color: rgba(244, 63, 94, 0.56);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.08);
}

.header-search button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  background: var(--rose-50);
  color: var(--rose-500);
  padding: 10px 12px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.hero-shell {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  background: linear-gradient(135deg, #ffe4e6, #fff7fb 50%, #fff1f2);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.42;
}

.hero-glow-a {
  top: 28px;
  left: 8%;
  width: 280px;
  height: 280px;
  background: var(--rose-400);
}

.hero-glow-b {
  right: 7%;
  bottom: -90px;
  width: 360px;
  height: 360px;
  background: var(--pink-500);
}

.hero-heading {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 72px 0 128px;
}

.hero-title-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.hero-title-line span {
  color: var(--rose-400);
  font-size: 28px;
}

.hero-heading h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500), var(--rose-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.045em;
}

.hero-heading p,
.page-hero p {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.hero-category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 30px;
}

.hero-category-strip a,
.filter-pills button,
.footer-tags a,
.tag-line span,
.tag-line a,
.genre-line span {
  border: 0;
  border-radius: 999px;
  color: #be123c;
  background: rgba(255, 255, 255, 0.78);
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(244, 63, 94, 0.08);
}

.hero-feature-wrap {
  margin-top: -92px;
  position: relative;
  z-index: 4;
}

.hero-feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-slider {
  position: relative;
  min-height: 500px;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.55s ease, transform 0.75s ease;
  pointer-events: none;
}

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

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.hero-slide.is-active .hero-image img {
  transform: scale(1.05);
}

.hero-image span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.8), rgba(2, 6, 23, 0.34), rgba(2, 6, 23, 0.08)), linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0));
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: end;
  max-width: 620px;
  padding: 52px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h2 {
  margin: 18px 0 12px;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.1;
}

.hero-copy p {
  max-width: 560px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 1.8;
}

.hero-tags,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-tags span,
.detail-meta span {
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.primary-button,
.light-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 13px 22px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: var(--rose-500);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.22);
}

.primary-button:hover,
.light-button:hover {
  transform: translateY(-2px);
}

.hero-hot-list {
  padding: 32px;
  background: linear-gradient(135deg, var(--rose-50), #fff7fb);
}

.section-block {
  padding: 58px 0;
}

.section-head-row,
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.section-title {
  justify-content: flex-start;
  margin-bottom: 26px;
}

.section-title.compact {
  margin-bottom: 18px;
}

.section-title h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.section-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 12px 22px rgba(244, 63, 94, 0.18);
}

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

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

.category-tile {
  min-height: 142px;
  display: grid;
  align-content: end;
  gap: 10px;
  border: 1px solid rgba(244, 63, 94, 0.1);
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, var(--rose-50));
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile span {
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
}

.category-tile small {
  color: var(--muted);
  line-height: 1.6;
}

.toolbar,
.category-tools {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
}

.toolbar input,
.category-tools input {
  max-width: 520px;
  border-radius: 18px;
  padding: 14px 18px;
}

.search-toolbar input {
  max-width: none;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pills button {
  cursor: pointer;
}

.filter-pills button.is-selected {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
}

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

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

.movie-card.is-hidden {
  display: none;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.04));
}

.year-badge,
.rank-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.year-badge {
  top: 12px;
  left: 12px;
  background: rgba(244, 63, 94, 0.92);
  padding: 6px 10px;
}

.rank-badge {
  top: 12px;
  right: 12px;
  background: rgba(2, 6, 23, 0.72);
  padding: 6px 10px;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

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

.meta-line {
  display: flex;
  gap: 8px;
  color: var(--rose-500);
  font-size: 12px;
  font-weight: 800;
}

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

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

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

.tag-line,
.genre-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-line span,
.tag-line a,
.genre-line span {
  padding: 7px 10px;
  background: var(--rose-50);
  box-shadow: none;
}

.large-tags span,
.large-tags a {
  font-size: 14px;
  padding: 10px 14px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: auto 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.74);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: #ffffff;
  transform: translateX(4px);
}

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

.rank-row img {
  width: 78px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-info {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.rank-info strong,
.rank-info small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info small {
  color: var(--muted);
}

.rank-more {
  color: var(--rose-500);
  font-size: 12px;
  font-weight: 900;
}

.cta-panel {
  margin-bottom: 66px;
  border-radius: 28px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500), var(--rose-400));
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 44px);
}

.cta-panel p {
  margin: 0 auto 24px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.light-button {
  color: var(--rose-500);
  background: #ffffff;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0;
}

.soft-hero {
  background: linear-gradient(135deg, var(--rose-100), #fff7fb 58%, #ffffff);
}

.hot-hero {
  color: #ffffff;
  background: linear-gradient(135deg, #be123c, var(--rose-500), var(--pink-500));
}

.hot-hero h1,
.hot-hero p {
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.category-overview-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-overview-card img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-overview-card:hover img {
  transform: scale(1.06);
}

.category-overview-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.08));
}

.category-overview-text {
  position: absolute;
  inset: auto 24px 24px 24px;
  color: #ffffff;
}

.category-overview-text strong {
  display: block;
  margin-bottom: 10px;
  font-size: 26px;
}

.category-overview-text small {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.category-top-layout {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 28px;
  margin-top: 42px;
}

.category-focus,
.category-tools,
.ranking-sidebar,
.detail-related,
.content-card {
  border: 1px solid rgba(244, 63, 94, 0.1);
  border-radius: 24px;
  background: #ffffff;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.category-tools {
  align-content: start;
}

.ranking-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 28px;
  padding: 54px 0;
}

.ranking-sidebar {
  height: max-content;
  position: sticky;
  top: 96px;
}

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

.detail-hero {
  padding: 48px 0;
  background: radial-gradient(circle at 20% 20%, rgba(244, 63, 94, 0.22), transparent 34%), linear-gradient(135deg, #111827, #312033 52%, #4a1026);
  color: #ffffff;
}

.detail-hero .breadcrumb,
.detail-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.74);
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: center;
  gap: 34px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-intro h1 {
  margin: 18px 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.detail-intro p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.85;
}

.player-section {
  padding: 50px 0 20px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.25));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  border-radius: 999px;
  color: var(--rose-500);
  background: #ffffff;
  font-size: 34px;
  box-shadow: 0 20px 50px rgba(255, 255, 255, 0.22);
}

.player-overlay strong {
  font-size: clamp(24px, 4vw, 40px);
}

.player-overlay small {
  color: rgba(255, 255, 255, 0.82);
}

.detail-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  padding: 34px 0;
}

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

.content-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.95;
  font-size: 16px;
}

.detail-related {
  height: max-content;
  position: sticky;
  top: 96px;
}

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

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(244, 63, 94, 0.12);
  background: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
  padding: 42px 0;
}

.footer-brand {
  margin-bottom: 16px;
}

.site-footer p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.no-results {
  grid-column: 1 / -1;
  border-radius: 22px;
  background: #ffffff;
  color: var(--muted);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

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

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

  .ranking-sidebar,
  .detail-related {
    position: static;
  }
}

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

  .mobile-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .mobile-nav.is-open {
    display: grid;
    gap: 14px;
  }

  .hero-heading {
    padding: 54px 0 110px;
  }

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

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

  .hero-copy {
    padding: 32px;
  }

  .category-overview-grid,
  .ranking-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .brand-text strong {
    font-size: 18px;
  }

  .hero-title-line span {
    display: none;
  }

  .movie-grid,
  .category-grid,
  .category-overview-grid,
  .ranking-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero-feature-wrap {
    margin-top: -70px;
  }

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

  .hero-hot-list {
    padding: 22px;
  }

  .rank-row {
    grid-template-columns: auto 70px minmax(0, 1fr);
  }

  .rank-more {
    display: none;
  }

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

  .player-card {
    border-radius: 18px;
  }

  .play-circle {
    width: 70px;
    height: 70px;
    font-size: 26px;
  }
}
