:root {
  --pink: #ec4899;
  --pink-light: #f472b6;
  --purple: #a855f7;
  --purple-dark: #7c3aed;
  --yellow: #facc15;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #fdf2f8;
  --soft-purple: #faf5ff;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(31, 41, 55, 0.13);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, var(--soft), var(--soft-purple) 52%, var(--soft));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--pink-light));
  box-shadow: 0 12px 28px rgba(168, 85, 247, 0.24);
}

.site-nav {
  max-width: 1280px;
  height: 66px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-dark);
  background: var(--yellow);
  box-shadow: 0 8px 18px rgba(250, 204, 21, 0.28);
}

.brand-name {
  font-size: 24px;
}

.desktop-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
}

.nav-link {
  color: #fff;
  padding: 9px 14px;
  border-radius: 999px;
  transition: 0.25s ease;
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.18);
}

.nav-link.active {
  color: var(--pink);
  background: #fff;
  box-shadow: 0 10px 22px rgba(255, 255, 255, 0.22);
}

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

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

.nav-search input,
.mobile-search input,
.large-search input,
.filter-bar input,
.filter-bar select {
  border: 0;
  outline: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.93);
  padding: 11px 16px;
  color: var(--text);
}

.nav-search input {
  width: 230px;
}

.nav-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  color: var(--pink);
  background: #fff;
  padding: 10px 15px;
  cursor: pointer;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
}

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

.mobile-link {
  display: block;
  color: #fff;
  padding: 12px 14px;
  border-radius: 14px;
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.1);
}

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

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

.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.75), rgba(20, 10, 30, 0.56) 46%, rgba(0, 0, 0, 0.14));
}

.hero-content {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 760px;
  margin-left: calc((100vw - min(1280px, 100vw)) / 2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  color: #fff;
  padding: 8px 15px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.hero h1,
.detail-intro h1,
.page-hero-card h1 {
  margin: 18px 0 12px;
  color: #fff;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.04;
  font-weight: 900;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.hero p {
  max-width: 720px;
  margin: 0 0 20px;
  color: #e5e7eb;
  font-size: 20px;
  line-height: 1.7;
}

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

.hero-meta span,
.list-meta span,
.card-meta span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: #374151;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.25s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  padding: 13px 26px;
  box-shadow: 0 16px 32px rgba(236, 72, 153, 0.28);
}

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

.ghost-btn {
  color: #fff;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(8px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  font-size: 34px;
  cursor: pointer;
  transition: 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.38);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

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

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

.page-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.page-top {
  padding-top: 42px;
}

.section-block {
  margin: 52px 0;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  color: #1f2937;
  font-weight: 900;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
}

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

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

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

.grid-six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.09);
  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;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(0, 0, 0, 0.42);
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.play-bubble {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.88);
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  background: #fff;
  opacity: 0;
  transition: 0.25s ease;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

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

.badge {
  position: absolute;
  z-index: 2;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 800;
}

.badge-left {
  top: 12px;
  left: 12px;
  background: var(--pink);
}

.badge-right {
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.72);
}

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

.movie-card-title {
  min-height: 50px;
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.38;
  font-weight: 900;
  color: #1f2937;
}

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

.movie-card-desc {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta span {
  background: #fce7f3;
  color: #be185d;
}

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

.category-card {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  box-shadow: var(--shadow);
}

.category-card img,
.category-overview-cover img,
.list-poster img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.08));
}

.category-card div {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  display: -webkit-box;
  margin: 0;
  color: #f3f4f6;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.split-block {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.list-stack,
.ranking-list {
  display: grid;
  gap: 14px;
}

.list-card {
  display: grid;
  grid-template-columns: auto 116px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
  transition: 0.25s ease;
}

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

.list-poster {
  display: block;
  width: 116px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}

.list-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.35;
}

.list-card p {
  display: -webkit-box;
  margin: 0 0 9px;
  color: var(--muted);
  line-height: 1.55;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  font-weight: 900;
}

.ranking-panel,
.filter-card,
.article-card,
.page-hero-card {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.ranking-panel {
  padding: 20px;
  position: sticky;
  top: 90px;
}

.ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ranking-head h2 {
  margin: 0;
  font-size: 26px;
}

.ranking-head a,
.text-link {
  color: var(--pink);
  font-weight: 900;
}

.compact .list-card {
  grid-template-columns: auto 82px minmax(0, 1fr);
  padding: 10px;
}

.compact .list-poster {
  width: 82px;
}

.compact .list-card p {
  display: none;
}

.page-hero-card {
  overflow: hidden;
  padding: 46px;
  color: #fff;
  background: radial-gradient(circle at 20% 20%, rgba(250, 204, 21, 0.32), transparent 28%), linear-gradient(115deg, var(--pink), var(--purple), var(--pink-light));
}

.page-hero-card h1 {
  color: #fff;
}

.page-hero-card p {
  max-width: 780px;
  margin: 0;
  color: #fdf2f8;
  font-size: 18px;
  line-height: 1.75;
}

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 34px 0 56px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.09);
}

.category-overview-cover {
  min-height: 210px;
  overflow: hidden;
  background: #111827;
}

.category-overview-body {
  padding: 22px;
}

.category-overview-body h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-overview-body p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.mini-title-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.mini-title-list span,
.pill-link,
.tag-chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 11px;
  background: #fce7f3;
  color: #be185d;
  font-size: 13px;
  font-weight: 800;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.pill-link {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.pill-link.active {
  background: #fff;
  color: var(--pink);
}

.filter-card {
  padding: 22px;
  margin: 28px 0 58px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-bar input,
.filter-bar select {
  min-height: 46px;
  background: #fff;
  border: 1px solid #f3e8ff;
  box-shadow: 0 8px 18px rgba(31, 41, 55, 0.06);
}

.filter-bar input {
  flex: 1 1 260px;
}

.filter-bar select {
  flex: 0 1 170px;
}

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

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

.detail-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) brightness(0.45);
  transform: scale(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.62), rgba(17, 24, 39, 0.86));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.32);
  background: #111827;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #fce7f3;
  font-weight: 700;
}

.detail-one-line {
  max-width: 820px;
  color: #f3f4f6;
  font-size: 20px;
  line-height: 1.75;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.tag-chip {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.player-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #050505;
  box-shadow: var(--shadow);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050505;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.18));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  transition: opacity 0.25s ease;
}

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

.big-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: var(--pink);
  background: #fff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
  font-size: 34px;
}

.article-card {
  padding: 30px;
  margin-bottom: 48px;
}

.article-card h2 {
  margin: 0 0 12px;
  font-size: 27px;
}

.article-card p {
  color: #4b5563;
  line-height: 1.9;
  font-size: 17px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.detail-meta-grid div {
  border-radius: 18px;
  background: linear-gradient(135deg, #fdf2f8, #faf5ff);
  padding: 17px;
}

.detail-meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.detail-meta-grid strong {
  color: #1f2937;
}

.full .list-card {
  grid-template-columns: auto 128px minmax(0, 1fr);
}

.search-page .large-search {
  margin-top: 22px;
  align-items: stretch;
}

.large-search input {
  min-width: min(520px, 100%);
  background: rgba(255, 255, 255, 0.94);
}

.search-status {
  margin: 0 0 20px;
  color: #be185d;
  font-size: 18px;
  font-weight: 900;
}

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

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-brand {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 14px;
}

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

[data-card].is-hidden {
  display: none;
}

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

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

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

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

  .split-block {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .site-nav {
    padding: 0 16px;
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    margin-left: 0;
    padding: 0 22px;
  }

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

  .hero-arrow {
    display: none;
  }

  .grid-three,
  .grid-four,
  .grid-six,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-hero-inner {
    grid-template-columns: 1fr;
    padding: 36px 0;
  }

  .detail-poster {
    width: min(260px, 75vw);
  }

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

  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .category-overview-cover {
    min-height: 240px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .brand-name {
    font-size: 20px;
  }

  .page-shell {
    width: min(100% - 22px, 1280px);
  }

  .page-hero-card,
  .article-card,
  .filter-card {
    padding: 22px;
    border-radius: 20px;
  }

  .hero-actions,
  .filter-bar,
  .large-search {
    flex-direction: column;
    align-items: stretch;
  }

  .grid-three,
  .grid-four,
  .grid-six,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .list-card,
  .full .list-card,
  .compact .list-card {
    grid-template-columns: auto 92px minmax(0, 1fr);
    gap: 10px;
  }

  .list-poster,
  .compact .list-poster {
    width: 92px;
    aspect-ratio: 3 / 4;
  }

  .list-meta {
    display: none;
  }

  .rank-number {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

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