:root {
  --pink-50: #fff1f6;
  --pink-100: #ffe4ef;
  --pink-200: #fecddf;
  --pink-400: #fb7185;
  --pink-500: #ec4899;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-soft: 0 20px 45px rgba(244, 63, 94, 0.16);
  --shadow-card: 0 14px 32px rgba(31, 41, 55, 0.12);
  --radius-xl: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--pink-50) 0%, #ffffff 42%, var(--pink-50) 100%);
}

body.menu-open {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.25);
}

.header-inner {
  width: min(1220px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.site-logo {
  color: #ffffff;
  flex-shrink: 0;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.main-nav a {
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.header-search input {
  width: 190px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 7px 10px;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.header-search button,
.primary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button {
  padding: 8px 15px;
  color: var(--pink-500);
  background: #ffffff;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 16px 30px rgba(236, 72, 153, 0.35);
}

.primary-button:hover,
.header-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(244, 63, 94, 0.32);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.ghost-button.light {
  color: #ffffff;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 3px;
  background: #ffffff;
}

.hero {
  position: relative;
  margin-bottom: 56px;
}

.hero-stage {
  position: relative;
  height: 610px;
  overflow: hidden;
  background: var(--gray-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.52) 54%, rgba(244, 63, 94, 0.18) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
}

.hero-copy {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 96px;
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--pink-500);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-kicker {
  color: #ffe4ef;
}

.hero h1 {
  max-width: 780px;
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  text-shadow: 0 18px 34px rgba(0, 0, 0, 0.42);
}

.hero p {
  max-width: 720px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  line-height: 1.8;
}

.hero-tags,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.66);
  transform: translateY(-2px);
}

.hero-prev {
  left: 26px;
}

.hero-next {
  right: 26px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.page-section {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto 64px;
}

.soft-panel {
  padding: 38px;
  border-radius: 32px;
  background: linear-gradient(90deg, var(--pink-100), #ffe8ee);
  box-shadow: var(--shadow-soft);
}

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

.section-heading h2 {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(26px, 3vw, 36px);
}

.section-heading a {
  color: var(--pink-500);
  font-weight: 800;
}

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

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

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

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

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

.movie-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 20px;
  overflow-x: auto;
  padding: 4px 4px 18px;
}

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(31, 41, 55, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-100);
}

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

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

.play-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 44px;
  opacity: 0;
  background: rgba(17, 24, 39, 0.32);
  transition: opacity 0.25s ease;
}

.movie-card:hover .play-icon {
  opacity: 1;
}

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

.card-type {
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  background: var(--pink-500);
}

.rank-badge {
  right: 12px;
  top: 12px;
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
}

.card-body {
  padding: 16px;
}

.card-body h2 {
  margin: 0 0 9px;
  font-size: 17px;
  line-height: 1.4;
}

.card-body h2 a:hover {
  color: var(--pink-500);
}

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

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--gray-500);
  font-size: 12px;
}

.card-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--pink-500);
  background: var(--pink-50);
  font-size: 12px;
  font-weight: 700;
}

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

.channel-card,
.category-overview-card a {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 210px;
  padding: 24px;
  border-radius: 24px;
  color: #ffffff;
  background: var(--gray-900);
  box-shadow: var(--shadow-card);
}

.channel-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transition: transform 0.35s ease;
}

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

.channel-card::after,
.category-overview-card a::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.88), rgba(236, 72, 153, 0.28));
}

.channel-card span,
.channel-card p,
.category-overview-card strong,
.category-overview-card p,
.category-overview-card div {
  position: relative;
  z-index: 2;
}

.channel-card span,
.category-overview-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 900;
}

.channel-card p,
.category-overview-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.category-overview-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-overview-card div span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
}

.sub-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
  margin-bottom: 48px;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 30%), linear-gradient(135deg, var(--pink-500), var(--rose-600));
}

.sub-hero > div {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.sub-hero h1 {
  max-width: 860px;
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
}

.sub-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.sub-hero .section-kicker {
  color: #ffe4ef;
}

.compact-sub-hero {
  min-height: 280px;
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  padding: 20px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.08);
}

.filter-search input {
  width: 100%;
  border: 1px solid var(--pink-200);
  border-radius: 999px;
  padding: 14px 18px;
  outline: none;
  font-size: 15px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.filter-search input:focus {
  border-color: var(--pink-500);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

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

.filter-buttons button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--gray-700);
  background: var(--gray-100);
  cursor: pointer;
  font-weight: 700;
}

.filter-buttons button.is-active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
}

.empty-state {
  display: none;
  margin: 30px 0;
  padding: 34px;
  border-radius: 24px;
  color: var(--gray-500);
  text-align: center;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.08);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  color: #ffffff;
  background: var(--gray-900);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(7px);
  transform: scale(1.08);
  opacity: 0.52;
}

.detail-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.62));
}

.detail-wrap {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 120px 0 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

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

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

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

.detail-info h1 {
  max-width: 880px;
  margin: 0 0 16px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.06;
}

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

.player-section {
  margin-top: -22px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.3);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.28), rgba(0, 0, 0, 0.58));
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
}

.player-overlay.is-hidden {
  display: none;
}

.player-play-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 20px 40px rgba(236, 72, 153, 0.36);
}

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

.content-card {
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.08);
}

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

.content-card p {
  margin: 0;
  color: var(--gray-700);
  line-height: 2;
}

.meta-card {
  grid-column: 1 / -1;
}

.meta-card dl {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px 20px;
  margin: 0;
}

.meta-card dt {
  color: var(--gray-500);
  font-weight: 800;
}

.meta-card dd {
  margin: 0;
  color: var(--gray-800);
}

.site-footer {
  margin-top: 80px;
  background: linear-gradient(180deg, var(--pink-50), var(--pink-100));
  border-top: 1px solid var(--pink-200);
}

.footer-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  color: var(--gray-800);
  font-size: 21px;
}

.footer-logo .logo-mark {
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
}

.footer-brand p {
  max-width: 390px;
  margin: 14px 0 0;
  color: var(--gray-500);
  line-height: 1.8;
}

.footer-links h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-links a {
  display: block;
  margin: 9px 0;
  color: var(--gray-500);
}

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

.footer-bottom {
  padding: 22px 16px;
  color: var(--gray-500);
  text-align: center;
  border-top: 1px solid var(--pink-200);
}

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

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

@media (max-width: 860px) {
  .header-inner {
    min-height: 66px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
    box-shadow: var(--shadow-card);
  }

  body.menu-open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 14px;
    border-radius: 12px;
  }

  .main-nav a:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  .header-search {
    display: none;
  }

  .hero-stage {
    height: 560px;
  }

  .hero-copy {
    padding-bottom: 82px;
  }

  .hero-arrow {
    display: none;
  }

  .movie-grid,
  .featured-grid,
  .trio-grid,
  .catalog-grid,
  .ranking-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-grid,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(260px, 80%);
  }
}

@media (max-width: 560px) {
  .logo-text {
    font-size: 19px;
  }

  .hero-stage {
    height: 520px;
  }

  .hero p,
  .detail-one-line,
  .sub-hero p {
    font-size: 16px;
  }

  .page-section {
    margin-bottom: 44px;
  }

  .soft-panel {
    padding: 22px;
  }

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

  .card-cover {
    aspect-ratio: 16 / 9;
  }

  .sub-hero {
    min-height: 260px;
  }

  .detail-wrap {
    padding-top: 92px;
  }

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

  .content-card {
    padding: 22px;
  }

  .meta-card dl {
    grid-template-columns: 1fr;
  }
}
