:root {
  --pink: #ec4899;
  --rose: #fb7185;
  --orange: #fb923c;
  --amber: #fbbf24;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #fff1f2;
  --surface: #ffffff;
  --line: rgba(236, 72, 153, 0.18);
  --shadow: 0 22px 60px rgba(244, 63, 94, 0.18);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 48%, #fdf2f8 100%);
}

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: linear-gradient(90deg, var(--pink), var(--rose), var(--orange));
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.28);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: white;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.03em;
  transition: transform 0.25s ease;
}

.brand:hover {
  transform: scale(1.04);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.desktop-nav a {
  color: white;
  font-weight: 700;
  opacity: 0.95;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
  color: #fff7ed;
  transform: translateY(-1px);
}

.top-search,
.mobile-search,
.hero-search,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.hero-search input,
.search-page-form input,
.filter-bar input {
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  min-width: 220px;
}

.top-search button,
.mobile-search button,
.hero-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--pink);
  background: white;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.search-page-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.35);
}

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

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: white;
}

.mobile-menu {
  padding: 0 16px 18px;
  background: linear-gradient(90deg, var(--pink), var(--rose), var(--orange));
}

.mobile-menu a {
  display: block;
  color: white;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 800;
}

.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-carousel {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: #111827;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.04));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 700px;
  color: white;
}

.hero-eyebrow,
.soft-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  color: white;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  font-weight: 800;
  box-shadow: 0 16px 38px rgba(236, 72, 153, 0.35);
}

.hero-copy h1 {
  margin: 24px 0 16px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

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

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

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

.hero-tags span,
.detail-tags span,
.tag-row span,
.genre-chips span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--pink);
  background: #ffe4e6;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

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

.primary-btn,
.ghost-btn,
.watch-link,
.panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 22px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.primary-btn,
.watch-link,
.panel-link {
  color: white;
  background: linear-gradient(90deg, var(--pink), var(--rose), var(--orange));
  box-shadow: 0 16px 34px rgba(236, 72, 153, 0.28);
}

.ghost-btn {
  color: white;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.primary-btn:hover,
.ghost-btn:hover,
.watch-link:hover,
.panel-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(244, 63, 94, 0.34);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  font-size: 38px;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.hero-control.prev {
  left: 24px;
}

.hero-control.next {
  right: 24px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--pink);
}

.intro-panel,
.section-block {
  margin-top: 54px;
}

.intro-panel {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 28px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.intro-panel h2,
.section-heading h2,
.page-hero h1,
.detail-copy h1 {
  margin: 12px 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.intro-panel p,
.page-hero p,
.detail-copy p,
.content-panel p,
.category-card-large p,
.category-tile em {
  color: var(--muted);
  line-height: 1.85;
}

.hero-search {
  justify-content: flex-end;
}

.hero-search input,
.search-page-form input {
  flex: 1;
  background: white;
  box-shadow: inset 0 0 0 1px var(--line);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.section-heading span {
  color: var(--pink);
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
}

.section-heading:after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.55), transparent);
}

.section-heading.small {
  display: block;
}

.section-heading.small:after {
  display: none;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 22px;
  background: white;
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 60px rgba(244, 63, 94, 0.2);
}

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

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

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

.poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.62));
}

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

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

.movie-card h3 {
  margin: 12px 0 8px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.35;
}

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

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

.tag-row {
  margin-bottom: 14px;
}

.watch-link {
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

.movie-strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-snap-type: x mandatory;
}

.movie-strip .movie-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}

.rank-panel,
.content-panel,
.info-panel,
.category-card-large,
.filter-bar,
.search-result-head {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 38px 58px 1fr;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  padding: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: #fff1f2;
  transform: translateX(3px);
}

.rank-item img {
  width: 58px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: white;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-weight: 900;
}

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

.rank-copy strong {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.panel-link {
  width: 100%;
  margin-top: 18px;
}

.editorial-panel {
  padding: 32px;
  border-radius: 30px;
  background: linear-gradient(90deg, rgba(252, 231, 243, 0.95), rgba(255, 237, 213, 0.95));
  box-shadow: var(--shadow);
}

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

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

.category-tile,
.category-card-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background: white;
  box-shadow: 0 15px 38px rgba(244, 63, 94, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-card-main:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(244, 63, 94, 0.22);
}

.category-icon,
.category-card-main span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  font-size: 24px;
  font-weight: 900;
}

.category-tile strong,
.category-card-main h2 {
  font-size: 24px;
  margin: 0;
}

.category-tile small,
.category-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tile small a,
.category-card-links a {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--pink);
  background: #ffe4e6;
  font-size: 12px;
  font-weight: 800;
}

.category-card-large {
  padding: 14px;
}

.category-card-main {
  min-height: 220px;
  box-shadow: none;
}

.category-card-links {
  padding: 16px 4px 4px;
}

.page-hero,
.detail-hero {
  padding: 64px 0;
  color: white;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.28), transparent 28%), linear-gradient(90deg, var(--pink), var(--rose), var(--orange));
}

.page-hero .container {
  max-width: 900px;
}

.breadcrumb {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.breadcrumb a:hover {
  color: white;
}

.page-hero h1 {
  margin: 14px 0;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.filter-bar {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
  padding: 22px;
}

.filter-bar label {
  display: grid;
  gap: 8px;
  color: var(--pink);
  font-weight: 900;
}

.filter-bar input {
  width: 100%;
  box-shadow: inset 0 0 0 1px var(--line);
}

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

.filter-pill {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--pink);
  background: #ffe4e6;
  font-weight: 900;
  cursor: pointer;
}

.filter-pill.is-active,
.filter-pill:hover {
  color: white;
  background: linear-gradient(90deg, var(--pink), var(--orange));
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.38);
  border-radius: 28px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
}

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

.detail-copy .soft-label {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.detail-copy p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.detail-tags {
  margin: 22px 0;
}

.stream-player {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #0f172a;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.34);
}

.stream-player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: white;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.72));
  cursor: pointer;
  transition: opacity 0.2s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: var(--pink);
  background: white;
  font-size: 42px;
  box-shadow: 0 20px 50px rgba(255, 255, 255, 0.32);
}

.player-overlay strong {
  font-size: 24px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  margin-top: 36px;
}

.content-panel,
.info-panel {
  padding: 28px;
}

.content-panel h2,
.info-panel h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.info-panel dl {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px 12px;
  margin: 0 0 20px;
}

.info-panel dt {
  color: var(--muted);
  font-weight: 900;
}

.info-panel dd {
  margin: 0;
  font-weight: 800;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: 0 15px 35px rgba(31, 41, 55, 0.08);
}

.ranking-cover {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

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

.ranking-cover span {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-weight: 900;
}

.ranking-card h2 {
  margin: 8px 0;
  font-size: 22px;
}

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

.ranking-card p {
  color: var(--muted);
  line-height: 1.7;
}

.search-page-form {
  align-items: stretch;
  margin-bottom: 22px;
}

.search-result-head {
  margin-bottom: 24px;
  padding: 18px 22px;
}

.search-result-head h2 {
  margin: 0;
}

.site-footer {
  margin-top: 70px;
  padding: 48px 0;
  color: white;
  background: linear-gradient(90deg, #db2777, #f43f5e, #f97316);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.8;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.86);
}

.site-footer a:hover {
  color: white;
}

@media (max-width: 1100px) {
  .top-search {
    display: none;
  }

  .movie-grid,
  .wide-grid,
  .compact-grid,
  .feature-grid,
  .category-grid,
  .category-page-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split-layout,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-shell {
    min-height: 62px;
  }

  .brand {
    font-size: 20px;
  }

  .hero-carousel {
    height: 560px;
  }

  .hero-copy h1 {
    font-size: 46px;
  }

  .hero-control {
    display: none;
  }

  .intro-panel,
  .detail-hero-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-search {
    justify-content: stretch;
  }

  .movie-grid,
  .wide-grid,
  .compact-grid,
  .feature-grid,
  .category-grid,
  .category-page-grid,
  .ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-cover {
    max-width: 280px;
  }
}

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

  .hero-carousel {
    height: 520px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-copy p,
  .detail-copy p,
  .page-hero p {
    font-size: 16px;
  }

  .intro-panel,
  .editorial-panel,
  .content-panel,
  .info-panel {
    padding: 20px;
  }

  .movie-grid,
  .wide-grid,
  .compact-grid,
  .feature-grid,
  .category-grid,
  .category-page-grid,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .ranking-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .search-page-form,
  .hero-search,
  .mobile-search {
    flex-direction: column;
  }

  .top-search input,
  .mobile-search input,
  .hero-search input,
  .search-page-form input {
    width: 100%;
    min-width: 0;
  }
}
