
* {
  box-sizing: border-box;
}

:root {
  --pink: #ec4899;
  --rose: #fb7185;
  --orange: #fb923c;
  --yellow: #fef3c7;
  --blue: #06b6d4;
  --green: #10b981;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff7ed;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(17, 24, 39, 0.13);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 40%, #ffedd5 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);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.logo-mark,
.footer-logo span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  color: var(--pink);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(255, 255, 255, 0.25);
  transition: transform 0.25s ease;
}

.logo:hover .logo-mark {
  transform: rotate(12deg) scale(1.05);
}

.logo-text {
  font-size: 1.45rem;
}

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

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #ffffff;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--pink);
  background: #ffffff;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

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

.nav-search input,
.mobile-search input,
.hero-search input,
.filter-search input {
  width: 250px;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 12px 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

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

.nav-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--pink);
  font-weight: 800;
  background: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.hero-search button:hover {
  transform: translateY(-1px);
  background: var(--yellow);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 14px;
  padding: 10px 13px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-nav.open {
  display: grid;
  gap: 10px;
}

.mobile-nav .nav-link {
  display: block;
  width: 100%;
}

.hero-carousel {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink), var(--rose), var(--orange));
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-image,
.detail-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  transform: scale(1.02);
}

.hero-overlay,
.detail-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.92), rgba(251, 113, 133, 0.82), rgba(251, 146, 60, 0.78));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  max-width: 850px;
  margin: 14px 0 18px;
  font-size: clamp(2.7rem, 7vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero-content p,
.page-hero p,
.detail-info p {
  max-width: 760px;
  margin: 0 0 24px;
  font-size: 1.18rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  color: #ffffff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 7px 12px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.tag-row span {
  color: var(--pink);
  background: #fff1f2;
  box-shadow: none;
}

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

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

.primary-button {
  color: var(--pink);
  background: #ffffff;
  box-shadow: 0 22px 45px rgba(17, 24, 39, 0.18);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
}

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

.primary-button:hover {
  background: var(--yellow);
}

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

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

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

.soft-section {
  padding: 72px 0;
}

.pink-section {
  background: linear-gradient(135deg, #fff1f2, #ffe4e6, #ffedd5);
}

.blue-section {
  background: linear-gradient(135deg, #ecfeff, #e0f2fe, #ccfbf1);
}

.green-section {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5, #ccfbf1);
}

.orange-section {
  background: linear-gradient(135deg, #fff7ed, #ffedd5, #fef3c7);
}

.white-section {
  background: #ffffff;
}

.black-section {
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #1f2937, #111827);
}

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

.heading-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.heading-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 18px 32px rgba(236, 72, 153, 0.25);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}

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

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pink);
  font-weight: 900;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.category-tile {
  position: relative;
  display: grid;
  min-height: 138px;
  place-items: center;
  overflow: hidden;
  border-radius: 28px;
  padding: 22px;
  text-align: center;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  background: linear-gradient(135deg, var(--pink), var(--rose), var(--orange));
  transition: opacity 0.25s ease;
}

.category-tile span,
.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 1;
}

.category-tile span {
  font-size: 2.3rem;
}

.category-tile strong {
  font-size: 1.05rem;
}

.category-tile em {
  color: var(--muted);
  font-style: normal;
}

.category-tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 55px rgba(17, 24, 39, 0.18);
}

.category-tile:hover::before {
  opacity: 1;
}

.category-tile:hover strong,
.category-tile:hover em {
  color: #ffffff;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card:hover {
  transform: translateY(-9px);
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.18);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fecdd3, #fed7aa);
}

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

.card-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.88;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.66), rgba(17, 24, 39, 0.02) 60%);
}

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

.play-pill {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  border-radius: 999px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  box-shadow: 0 12px 22px rgba(236, 72, 153, 0.35);
}

.rank-badge {
  position: absolute;
  z-index: 3;
  left: 14px;
  top: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: var(--pink);
  font-weight: 900;
  background: #ffffff;
  box-shadow: 0 12px 22px rgba(17, 24, 39, 0.18);
}

.card-body {
  padding: 18px;
}

.card-title {
  display: -webkit-box;
  min-height: 2.8em;
  overflow: hidden;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

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

.card-meta {
  margin: 9px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.card-body p {
  display: -webkit-box;
  min-height: 4.8em;
  margin: 0 0 14px;
  overflow: hidden;
  color: #4b5563;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose), var(--orange));
}

.compact-hero {
  padding: 86px 0 76px;
}

.filter-panel {
  display: grid;
  gap: 18px;
  margin-top: -38px;
  margin-bottom: 34px;
  border-radius: 30px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.filter-search input {
  width: 100%;
  color: var(--ink);
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px #fed7aa;
}

.filter-group {
  display: grid;
  gap: 10px;
}

.filter-group strong {
  color: var(--ink);
}

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

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #4b5563;
  background: #fff1f2;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-chip:hover {
  transform: translateY(-1px);
}

.filter-chip.active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  font-weight: 900;
}

.result-count {
  margin: -10px 0 24px;
  color: var(--muted);
  font-weight: 800;
}

.catalog-grid .movie-card.hidden {
  display: none;
}

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

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

.rank-list h2 {
  margin: 0 0 18px;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px 74px 1fr;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid #f3f4f6;
  padding: 12px 0;
}

.rank-row span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--rose));
}

.rank-row img {
  width: 74px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-row strong {
  display: block;
}

.rank-row em {
  display: block;
  grid-column: 3;
  color: var(--muted);
  font-style: normal;
}

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

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

.detail-bg::after {
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(236, 72, 153, 0.68), rgba(251, 146, 60, 0.55));
}

.detail-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: center;
  min-height: 580px;
  padding: 64px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 32px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.36);
}

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

.detail-info h1 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.player-container {
  display: grid;
  gap: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 16 / 9;
  background: #000000;
  box-shadow: 0 35px 75px rgba(0, 0, 0, 0.35);
}

.hls-video {
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
}

.video-overlay-button {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.28), rgba(0, 0, 0, 0.45));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.video-overlay-button span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  padding-left: 5px;
  font-size: 2.4rem;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 18px 38px rgba(236, 72, 153, 0.45);
  transition: transform 0.22s ease;
}

.video-overlay-button:hover span {
  transform: scale(1.08);
}

.player-shell.is-playing .video-overlay-button {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-copy h2 {
  margin: 0 0 10px;
  font-size: 2rem;
}

.player-copy p {
  max-width: 840px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 28px;
}

.story-card,
.meta-card {
  border-radius: 28px;
  padding: 30px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.story-card h2,
.meta-card h2 {
  margin: 0 0 16px;
}

.story-card p {
  margin: 0 0 28px;
  color: #374151;
  font-size: 1.05rem;
  line-height: 1.9;
}

.meta-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

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

.meta-card dd {
  margin: -8px 0 8px;
  color: var(--ink);
}

.next-prev {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.next-prev a {
  flex: 1;
  border-radius: 999px;
  padding: 12px;
  color: #ffffff;
  text-align: center;
  font-weight: 900;
  background: linear-gradient(90deg, var(--pink), var(--rose));
}

.hero-search {
  max-width: 720px;
  margin-top: 26px;
}

.hero-search input {
  flex: 1;
  width: auto;
  min-height: 54px;
}

.sitemap-wrap {
  display: grid;
  gap: 22px;
}

.sitemap-block {
  border-radius: 26px;
  padding: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.sitemap-block h2 {
  margin: 0 0 16px;
}

.sitemap-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 18px;
}

.sitemap-links a {
  overflow: hidden;
  color: #374151;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.site-footer {
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #1f2937, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 34px;
  padding: 52px 0 38px;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 1.08rem;
}

.site-footer p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.8;
}

.site-footer a {
  display: block;
  margin: 9px 0;
  color: #cbd5e1;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-logo {
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  color: #94a3b8;
  text-align: center;
}

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

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

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

  .detail-head {
    grid-template-columns: 260px 1fr;
  }

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

@media (max-width: 760px) {
  .site-nav {
    min-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .logo-text {
    font-size: 1.15rem;
  }

  .hero-carousel {
    height: 590px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: clamp(2.2rem, 14vw, 3.4rem);
  }

  .hero-content p,
  .page-hero p,
  .detail-info p {
    font-size: 1rem;
  }

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

  .category-grid,
  .four-col,
  .three-col,
  .rank-columns,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-grid {
    gap: 18px;
  }

  .detail-head {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

  .sitemap-links {
    grid-template-columns: 1fr;
  }

  .hero-search,
  .mobile-search {
    align-items: stretch;
    flex-direction: column;
  }

  .mobile-search input,
  .hero-search input {
    width: 100%;
  }
}
