:root {
  --text: #1f2937;
  --muted: #667085;
  --soft: #fff7fb;
  --line: #fbcfe8;
  --pink: #ec4899;
  --rose: #f43f5e;
  --orange: #f97316;
  --yellow: #facc15;
  --shadow: 0 20px 50px rgba(236, 72, 153, 0.16);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(251, 207, 232, 0.82);
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--pink), var(--rose), var(--orange));
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.3);
}

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

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

.nav-link {
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

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

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  border: 1px solid var(--line);
  outline: none;
  color: #374151;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 220px;
  border-radius: 999px;
  padding: 10px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.15);
}

.header-search button,
.mobile-search button,
.nav-toggle,
.btn-primary,
.btn-ghost {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
}

.header-search button,
.mobile-search button,
.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.22);
}

.header-search button,
.mobile-search button {
  padding: 10px 15px;
}

.nav-toggle {
  display: none;
  color: var(--pink);
  background: #fff1f8;
  padding: 10px 14px;
}

.mobile-panel {
  display: none;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-links {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: #4b5563;
  font-weight: 800;
}

.mobile-link:hover,
.mobile-link.is-active {
  color: var(--pink);
  background: #fff1f8;
}

.home-main,
.page-main,
.detail-main {
  min-height: 60vh;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.54), rgba(17, 24, 39, 0.16));
}

.hero-content {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  color: #fff;
}

.hero-content > * {
  max-width: 690px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 950;
}

.hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-meta span,
.detail-meta span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 6px 12px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
}

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

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

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

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 5;
  display: flex;
  gap: 10px;
  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.25s ease, background 0.25s ease;
}

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

.section-wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 66px 0 0;
}

.section-wrap.no-pad {
  padding: 0;
}

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

.section-head h2,
.page-hero h1,
.detail-article h1 {
  margin: 0;
  color: #111827;
  font-weight: 950;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-head a {
  color: var(--pink);
  font-weight: 900;
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(251, 207, 232, 0.72);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(236, 72, 153, 0.45);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f8, #fff7ed);
}

.movie-card-compact {
  width: 280px;
  flex: 0 0 280px;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.05), rgba(17, 24, 39, 0.54));
}

.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-float {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.poster-tag,
.rank-pin {
  position: absolute;
  z-index: 2;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--pink), var(--rose));
}

.poster-tag {
  left: 12px;
  top: 12px;
  padding: 5px 10px;
}

.rank-pin {
  right: 12px;
  top: 12px;
  min-width: 34px;
  text-align: center;
  padding: 5px 8px;
}

.card-body {
  padding: 16px;
}

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

.card-body h2 a:hover,
.rank-info h2 a:hover,
.side-item:hover strong {
  color: var(--pink);
}

.card-body p {
  min-height: 46px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.card-meta span {
  color: #6b7280;
  border-radius: 999px;
  background: #f9fafb;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
}

.soft-panel,
.rank-panel {
  width: min(var(--max), calc(100% - 32px));
  border-radius: 34px;
  padding: 38px;
  background: linear-gradient(135deg, #fff1f8, #fff7ed);
}

.scroll-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.wide-band {
  margin-top: 66px;
  padding: 66px 0;
  background: linear-gradient(135deg, #eff6ff, #f5f3ff, #fff1f8);
}

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

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

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

.rank-card {
  display: grid;
  grid-template-columns: 58px 110px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(251, 207, 232, 0.75);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 14px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rank-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(244, 63, 94, 0.12);
}

.rank-num {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 16px;
  font-size: 22px;
  font-weight: 950;
  background: linear-gradient(135deg, #facc15, var(--orange));
}

.rank-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #fff1f8;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-thumb span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(17, 24, 39, 0.25);
}

.rank-info h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.category-block {
  padding-bottom: 66px;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-pills a {
  color: #be185d;
  border: 1px solid #f9a8d4;
  border-radius: 999px;
  background: #fff;
  padding: 10px 16px;
  font-weight: 900;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.page-main {
  padding-bottom: 72px;
}

.page-hero {
  width: min(var(--max), calc(100% - 32px));
  margin: 40px auto 0;
  border-radius: 34px;
  color: #fff;
  background: linear-gradient(135deg, #831843, #be185d, #ea580c);
  box-shadow: var(--shadow);
}

.compact-hero {
  padding: 54px;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(36px, 5vw, 58px);
}

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

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

.category-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
  border-radius: 28px;
  color: #fff;
  padding: 26px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.95), rgba(244, 63, 94, 0.92), rgba(249, 115, 22, 0.88));
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -46px;
  top: -46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

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

.category-card span,
.category-card h2,
.category-card p {
  position: relative;
  z-index: 2;
}

.category-card span {
  font-size: 13px;
  font-weight: 900;
  color: #fde68a;
}

.category-card h2 {
  margin: 8px 0;
  font-size: 26px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  margin: 0 0 28px;
  border: 1px solid rgba(251, 207, 232, 0.75);
  border-radius: 24px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.05);
}

.filter-panel > div {
  display: grid;
  gap: 7px;
}

.panel-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 46px;
  border-radius: 999px;
  padding: 0 15px;
}

.empty-state {
  margin: 18px 0;
  color: var(--muted);
  font-weight: 800;
}

.breadcrumb {
  width: min(var(--max), calc(100% - 32px));
  margin: 26px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--pink);
  font-weight: 800;
}

.detail-layout {
  width: min(var(--max), calc(100% - 32px));
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.detail-primary {
  min-width: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.36), rgba(17, 24, 39, 0.76));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.big-play {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.detail-article,
.detail-side .side-box,
.side-poster {
  border: 1px solid rgba(251, 207, 232, 0.76);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.05);
}

.detail-article {
  margin-top: 24px;
  padding: 28px;
}

.detail-title-row {
  display: flex;
  gap: 18px;
  align-items: start;
  justify-content: space-between;
}

.detail-article h1 {
  font-size: clamp(32px, 5vw, 48px);
}

.lead-text {
  margin: 16px 0 18px;
  color: #4b5563;
  font-size: 18px;
  font-weight: 700;
}

.detail-meta span {
  color: #6b7280;
  border-color: rgba(251, 207, 232, 0.9);
  background: #fff7fb;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 24px;
}

.tag-row span {
  color: #be185d;
  border-radius: 999px;
  background: #fce7f3;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 900;
}

.detail-article h2 {
  margin: 26px 0 10px;
  font-size: 24px;
}

.detail-article p {
  color: #374151;
}

.detail-side {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 100px;
}

.side-poster {
  overflow: hidden;
}

.side-poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.side-poster div,
.detail-side .side-box {
  padding: 18px;
}

.side-poster h2,
.side-box h2 {
  margin: 0 0 6px;
}

.side-poster p {
  margin: 0;
  color: var(--muted);
}

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

.side-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
}

.side-item img {
  width: 86px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
  background: #fff1f8;
}

.side-item strong {
  display: block;
  line-height: 1.35;
}

.side-item em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.related-section {
  padding-bottom: 72px;
}

.site-footer {
  color: #fff;
  background: linear-gradient(135deg, #831843, #9f1239, #9a3412);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 34px;
  padding: 52px 0 34px;
}

.footer-logo .brand-text {
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-brand p {
  max-width: 440px;
  color: #fce7f3;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-col h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.footer-col a {
  color: #fce7f3;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 18px 0 24px;
  color: #fce7f3;
  font-size: 14px;
}

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

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

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

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

  .home-rank-list {
    grid-template-columns: 1fr;
  }

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

  .detail-side {
    position: static;
  }
}

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

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

  .hero {
    height: 560px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.22), rgba(17, 24, 39, 0.86));
    align-items: flex-end;
    padding-bottom: 76px;
  }

  .section-wrap,
  .soft-panel,
  .rank-panel {
    width: min(100% - 24px, var(--max));
    padding-top: 42px;
  }

  .soft-panel,
  .rank-panel {
    padding: 24px;
  }

  .section-head,
  .detail-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .filter-panel {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .rank-card {
    grid-template-columns: 44px 86px 1fr;
    gap: 10px;
    padding: 10px;
  }

  .rank-num {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .rank-info p {
    display: none;
  }

  .compact-hero {
    padding: 34px 24px;
  }

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

@media (max-width: 520px) {
  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .movie-grid,
  .catalog-grid,
  .feature-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-compact {
    width: 245px;
    flex-basis: 245px;
  }

  .card-body p {
    min-height: auto;
  }

  .side-item {
    grid-template-columns: 74px 1fr;
  }

  .side-item img {
    width: 74px;
    height: 52px;
  }
}
