:root {
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --pink: #db2777;
  --purple: #7c3aed;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff1f2;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff1f2 0%, #ffffff 32%, #eff6ff 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.header-inner {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 12px 22px rgba(244, 63, 94, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.desktop-nav a,
.mobile-nav a {
  font-weight: 700;
  color: #374151;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--rose);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 300px;
}

.header-search input,
.mobile-search input,
.search-page-form input,
.filter-input,
.filter-select {
  width: 100%;
  border: 1px solid #d1d5db;
  background: white;
  color: var(--ink);
  border-radius: 999px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.16);
}

.header-search button,
.mobile-search button,
.search-page-form button,
.primary-button {
  border: 0;
  color: white;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  box-shadow: 0 14px 28px rgba(244, 63, 94, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.ghost-button {
  border: 2px solid rgba(255, 255, 255, 0.74);
  color: white;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover {
  background: white;
  color: var(--rose);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff1f2;
  color: var(--rose);
  font-size: 24px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px 24px 22px;
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

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

.section-wrap {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #1f1020;
}

.hero-stage {
  position: relative;
  min-height: 650px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

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

.hero-content {
  width: min(1240px, calc(100% - 40px));
  min-height: 650px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  padding: 96px 0 120px;
}

.hero-kicker,
.section-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 900;
  color: white;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  letter-spacing: 0.04em;
}

.hero-content h1,
.hero-content h2 {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content h2 + p,
.hero-content h1 + h2 + p {
  margin-top: 24px;
}

.hero-content p {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-tags,
.detail-meta,
.movie-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin: 26px 0 34px;
}

.hero-tags span,
.detail-meta span,
.movie-meta span,
.tag-list span {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  color: #374151;
  background: rgba(255, 255, 255, 0.82);
}

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

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

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

.hero-dot.is-active {
  width: 58px;
  background: white;
}

.lift-panel {
  position: relative;
  z-index: 5;
  margin-top: -58px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

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

.compact-heading {
  margin: 0 0 20px;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.detail-content h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

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

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip-row a {
  border-radius: 999px;
  padding: 12px 18px;
  color: #374151;
  background: #fff7f8;
  border: 1px solid #ffe4e6;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chip-row a:hover {
  color: var(--rose);
  border-color: var(--rose);
  transform: translateY(-2px);
}

.featured-block {
  margin-top: 78px;
  padding: 34px;
  border-radius: 32px;
  background: white;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
}

.featured-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  margin: 18px 0 26px;
}

.featured-copy h2 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  margin: 18px 0 0;
  letter-spacing: -0.05em;
}

.featured-poster {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.featured-poster img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-poster:hover img {
  transform: scale(1.06);
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  height: 290px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4e6, #dbeafe);
}

.compact-card .poster-wrap {
  height: 210px;
}

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

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

.poster-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  padding: 7px 12px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  box-shadow: 0 10px 22px rgba(244, 63, 94, 0.28);
}

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

.movie-card-body h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
  min-height: 52px;
  transition: color 0.2s ease;
}

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

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

.movie-meta span {
  background: #f3f4f6;
  color: #4b5563;
  padding: 6px 10px;
}

.banner-strip {
  margin: 86px 0 72px;
  padding: 70px 0;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  color: white;
}

.banner-inner {
  text-align: center;
}

.banner-inner span {
  font-weight: 900;
  opacity: 0.84;
}

.banner-inner h2 {
  margin: 14px 0;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.05em;
}

.banner-inner p {
  max-width: 720px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 34px;
  align-items: start;
  margin-bottom: 82px;
}

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

.ranking-panel,
.large-rank-list {
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #f9fafb;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.rank-no {
  font-size: 20px;
  font-weight: 950;
  color: var(--rose);
}

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

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

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

.rank-info em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-score {
  color: var(--rose);
  font-weight: 900;
}

.page-hero {
  color: white;
  background: linear-gradient(120deg, #e11d48, #db2777 50%, #7c3aed);
}

.slim-hero {
  padding: 82px 0 64px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.breadcrumb a:hover {
  color: white;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 72px 0;
}

.category-tile {
  min-height: 280px;
  border-radius: 30px;
  padding: 30px;
  color: white;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile span {
  font-size: 28px;
  font-weight: 950;
}

.category-tile h2 {
  max-width: 680px;
  margin: 10px 0 20px;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.category-tile em {
  font-style: normal;
  font-weight: 900;
}

.filter-panel {
  position: sticky;
  top: 82px;
  z-index: 20;
  margin: 34px 0;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
}

.detail-hero {
  padding: 58px 0;
  background: radial-gradient(circle at top left, rgba(244, 63, 94, 0.22), transparent 36%), linear-gradient(135deg, #111827, #3b0a2a 54%, #1e1b4b);
  color: white;
}

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

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  height: 470px;
  object-fit: cover;
}

.detail-copy p {
  max-width: 860px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list span {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.player-start {
  position: absolute;
  inset: 0;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.32), rgba(2, 6, 23, 0.42));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-start span {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 34px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 24px 50px rgba(244, 63, 94, 0.35);
  padding-left: 6px;
}

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

.detail-content article {
  margin: 44px 0;
  padding: 34px;
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.detail-content p {
  color: #374151;
  line-height: 1.9;
  font-size: 17px;
}

.related-grid {
  margin-bottom: 78px;
}

.search-page-form {
  max-width: 760px;
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.search-status {
  margin: 34px 0 24px;
  color: var(--muted);
  font-weight: 800;
}

.is-filtered-out {
  display: none !important;
}

.site-footer {
  margin-top: 80px;
  background: #111827;
  color: #d1d5db;
}

.footer-inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 42px;
}

.footer-logo {
  margin-bottom: 18px;
}

.footer-brand p {
  line-height: 1.8;
  color: #9ca3af;
}

.footer-links h3 {
  margin: 0 0 18px;
  color: white;
}

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

.footer-links a {
  color: #9ca3af;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  text-align: center;
  color: #9ca3af;
}

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

  .header-search {
    margin-left: auto;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

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

@media (max-width: 760px) {
  .header-inner {
    height: auto;
    min-height: 66px;
    padding: 12px 18px;
  }

  .brand {
    font-size: 18px;
  }

  .header-search {
    display: none;
  }

  .section-wrap {
    width: min(100% - 28px, 1240px);
  }

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

  .hero-content {
    padding: 86px 0 110px;
  }

  .hero-tags span {
    font-size: 12px;
  }

  .lift-panel,
  .featured-block,
  .detail-content article,
  .ranking-panel,
  .large-rank-list {
    border-radius: 22px;
    padding: 20px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid,
  .home-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .poster-wrap {
    height: 220px;
  }

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

  .movie-card-body h3 {
    font-size: 16px;
    min-height: 44px;
  }

  .movie-card-body p {
    font-size: 13px;
  }

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

  .detail-poster img {
    height: 420px;
  }

  .player-start span {
    width: 74px;
    height: 74px;
    font-size: 28px;
  }

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

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

@media (max-width: 520px) {
  .movie-grid,
  .home-grid,
  .category-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 42px;
  }

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

  .detail-poster img {
    height: 360px;
  }

  .rank-item {
    grid-template-columns: 34px 52px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 3;
  }
}
