:root {
  --rose: #e11d48;
  --rose-dark: #be123c;
  --pink: #ec4899;
  --purple: #8b5cf6;
  --amber: #f59e0b;
  --dark: #111827;
  --muted: #6b7280;
  --soft: #fff1f2;
  --line: #f3d4dc;
  --shadow: 0 18px 45px rgba(120, 35, 65, 0.16);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #1f2937;
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 45%, #fdf2f8 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 241, 242, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(244, 114, 182, 0.22);
  box-shadow: 0 10px 35px rgba(190, 18, 60, 0.08);
}

.header-inner {
  max-width: 1220px;
  height: 76px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb7185, #ec4899);
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.32);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-4deg);
}

.brand-text strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text small {
  color: #6b7280;
  font-size: 12px;
}

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

.nav-link {
  position: relative;
  color: #374151;
  font-weight: 700;
  padding: 10px 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--rose);
  transition: width 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select,
.search-panel input,
.search-panel select {
  border: 2px solid #fecdd3;
  border-radius: 999px;
  background: #ffffff;
  color: #374151;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 230px;
  padding: 10px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: #fb7185;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.16);
}

.header-search button,
.mobile-search button,
.search-panel button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.24);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #374151;
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 14px 22px 22px;
  border-top: 1px solid rgba(244, 114, 182, 0.22);
  background: rgba(255, 255, 255, 0.96);
}

.mobile-nav.open {
  display: block;
}

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 12px;
}

.mobile-search input {
  padding: 11px 14px;
}

.mobile-link {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #ffe4e6;
  color: #374151;
  font-weight: 700;
}

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

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

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.48) 52%, rgba(0, 0, 0, 0.06));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 44px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #ffffff;
  max-width: 1220px;
}

.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fbbf24;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
  max-width: 760px;
  margin: 10px 0 0;
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.46);
}

.hero-content h1 + h2 {
  font-size: clamp(28px, 4vw, 54px);
  color: #ffe4e6;
}

.hero-content p {
  max-width: 720px;
  margin: 20px 0 0;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 24px);
}

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

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

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

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 52px;
  padding: 0 28px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  box-shadow: 0 18px 36px rgba(225, 29, 72, 0.38);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

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

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

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

.category-pills-section,
.content-section,
.wide-feature,
.detail-layout {
  width: min(1220px, calc(100% - 44px));
  margin: 0 auto;
}

.category-pills-section {
  padding: 34px 0 10px;
}

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

.section-heading.compact {
  align-items: center;
}

.section-heading.slim {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(26px, 3vw, 38px);
  color: #1f2937;
}

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

.category-pills {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.category-pills::-webkit-scrollbar,
.movie-strip::-webkit-scrollbar {
  display: none;
}

.category-pills a {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 13px 24px;
  color: #4b5563;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.category-pills a:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  transform: translateY(-2px);
}

.content-section {
  padding: 54px 0;
}

.wide-feature {
  margin-top: 10px;
  padding: 42px;
  border-radius: 34px;
  background: linear-gradient(135deg, #faf5ff, #fff1f2);
  box-shadow: var(--shadow-soft);
}

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

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

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

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

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

.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);
}

.score-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
}

.score-badge {
  right: 12px;
  bottom: 12px;
  min-width: 46px;
  padding: 7px 10px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #ef4444, #8b5cf6);
}

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

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

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

.movie-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 48px;
  overflow: hidden;
  margin: 9px 0 12px;
  color: #6b7280;
  font-size: 14px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #6b7280;
  font-size: 13px;
}

.movie-meta span {
  border-radius: 8px;
  padding: 4px 8px;
  background: #f9fafb;
}

.tag-chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  color: #be123c;
  background: linear-gradient(90deg, #ffe4e6, #fdf2f8);
  font-size: 12px;
  font-weight: 800;
}

.movie-strip {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.strip-item {
  flex: 0 0 300px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}

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

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

.category-tile {
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-main-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #111827;
}

.category-main-link span {
  font-size: 24px;
  font-weight: 900;
}

.category-main-link strong {
  border-radius: 999px;
  padding: 8px 12px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  font-size: 13px;
}

.category-tile p {
  color: #6b7280;
  margin: 12px 0 18px;
}

.category-samples {
  display: grid;
  gap: 8px;
}

.category-samples a {
  color: #be123c;
  font-weight: 700;
}

.ranking-panel {
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.sticky-panel,
.detail-side {
  position: sticky;
  top: 102px;
}

.side-list {
  display: grid;
  gap: 14px;
}

.side-card {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #fff7f8;
}

.side-poster {
  height: 72px;
  overflow: hidden;
  border-radius: 14px;
  background: #ffe4e6;
}

.side-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-card h3 {
  margin: 0 0 4px;
  color: #111827;
  font-size: 15px;
  line-height: 1.3;
}

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

.side-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 4px;
  color: #6b7280;
  font-size: 12px;
}

.side-card span:not(.side-rank) {
  color: #9ca3af;
  font-size: 12px;
}

.side-rank {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--purple));
  font-size: 12px;
  font-weight: 900;
}

.page-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(251, 113, 133, 0.9), transparent 34%), linear-gradient(135deg, #be123c, #7c3aed);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.08));
}

.page-hero > div {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 44px));
  margin: 0 auto;
}

.page-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #ffe4e6;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

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

.filter-bar,
.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 190px;
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-bar input,
.filter-bar select,
.search-panel input,
.search-panel select {
  width: 100%;
  padding: 13px 16px;
}

.search-panel {
  grid-template-columns: minmax(0, 1fr) 220px auto;
}

.search-summary {
  margin-bottom: 20px;
  color: #6b7280;
  font-weight: 800;
}

.detail-hero {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-bg,
.detail-shade {
  position: absolute;
  inset: 0;
}

.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) saturate(1.08);
  transform: scale(1.04);
}

.detail-shade {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.28));
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 44px));
  min-height: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-hero h1 {
  max-width: 900px;
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.08;
}

.detail-hero p {
  max-width: 820px;
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: 20px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  padding: 48px 0 64px;
}

.detail-main,
.detail-side {
  min-width: 0;
}

.player-card {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.26);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.72));
}

.player-cover.hidden {
  display: none;
}

.play-circle {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding-left: 6px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 18px 45px rgba(225, 29, 72, 0.36);
  font-size: 34px;
}

.player-cover strong {
  max-width: 80%;
  text-align: center;
  font-size: 22px;
}

.detail-content-card {
  margin-top: 26px;
  padding: 30px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.detail-meta span {
  border-radius: 12px;
  padding: 8px 12px;
  color: #4b5563;
  background: #f9fafb;
  font-weight: 700;
}

.detail-content-card h2,
.detail-side h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 26px;
}

.detail-content-card p {
  margin: 0 0 26px;
  color: #374151;
  font-size: 18px;
  line-height: 1.9;
}

.detail-side {
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

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

  .menu-toggle {
    display: block;
  }

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

  .two-column,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .sticky-panel,
  .detail-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 68px;
    padding: 0 16px;
  }

  .brand-icon {
    width: 42px;
    height: 42px;
  }

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

  .hero {
    min-height: 620px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.48));
  }

  .hero-content,
  .category-pills-section,
  .content-section,
  .wide-feature,
  .detail-layout,
  .detail-hero-content,
  .page-hero > div {
    width: min(100% - 32px, 1220px);
  }

  .hero-actions {
    gap: 10px;
  }

  .primary-btn,
  .ghost-btn {
    min-height: 46px;
    padding: 0 18px;
  }

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

  .poster-wrap {
    height: 220px;
  }

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

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

  .wide-feature {
    padding: 26px 16px;
    border-radius: 24px;
  }

  .strip-item {
    flex-basis: 260px;
  }

  .filter-bar,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .detail-hero,
  .detail-hero-content {
    min-height: 420px;
  }

  .detail-hero p {
    font-size: 17px;
  }

  .detail-content-card,
  .detail-side {
    padding: 22px;
  }

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

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

  .poster-wrap {
    height: 280px;
  }

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

  .hero-content h1,
  .hero-content h2,
  .page-hero h1,
  .detail-hero h1 {
    word-break: break-word;
  }
}
