:root {
  --rose: #f43f5e;
  --pink: #ec4899;
  --orange: #f97316;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #fff1f2;
  --line: rgba(244, 63, 94, 0.14);
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(244, 63, 94, 0.12), transparent 32rem),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 30rem),
    #fff7f7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.28);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link,
.mobile-nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 276px;
  padding: 6px;
  border: 1px solid rgba(244, 63, 94, 0.15);
  border-radius: 999px;
  background: #ffffff;
}

.header-search input,
.large-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.header-search input {
  padding: 8px 10px;
}

.header-search button,
.large-search button,
.primary-button,
.text-button {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.24);
}

.header-search button {
  padding: 8px 14px;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 14px;
  background: var(--soft);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--rose);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.hero {
  position: relative;
  height: min(680px, calc(100vh - 72px));
  min-height: 560px;
  overflow: hidden;
  background: #111827;
}

.hero-slides,
.hero-slide,
.hero-slide img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.75s ease, transform 1.4s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  filter: saturate(1.08);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.54), rgba(17, 24, 39, 0.16)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.76), transparent 58%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

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

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

.eyebrow {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: var(--rose);
  border-radius: 999px;
  background: rgba(255, 241, 242, 0.94);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

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

.hero-tags span,
.tag-list span,
.detail-meta span,
.movie-meta-row span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #be123c;
  background: #fff1f2;
  font-size: 12px;
  font-weight: 800;
}

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

.primary-button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.movie-card:hover,
.category-card:hover,
.overview-card:hover,
.ranking-row:hover {
  transform: translateY(-3px);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

.hero-panel {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 96px;
  z-index: 4;
  width: min(360px, calc(100% - 48px));
}

.hero-panel-card {
  padding: 24px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
}

.hero-panel-card span {
  color: #fecdd3;
  font-size: 13px;
  font-weight: 900;
}

.hero-panel-card strong {
  display: block;
  margin: 8px 0;
  font-size: 24px;
}

.hero-panel-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

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

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

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

.section-heading.centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-heading.compact {
  align-items: center;
  margin-bottom: 18px;
}

.section-heading h2,
.page-hero h1,
.detail-heading h1 {
  margin: 12px 0 0;
  color: #111827;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.intro-section p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.quick-search-panel,
.filter-bar,
.content-card,
.side-card,
.player-card,
.overview-card,
.ranking-row,
.ranking-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.quick-search-panel {
  max-width: 860px;
  margin: 28px auto 0;
  padding: 12px;
}

.large-search {
  display: flex;
  gap: 12px;
}

.large-search input {
  min-height: 56px;
  padding: 0 18px;
}

.large-search button {
  padding: 0 28px;
  white-space: nowrap;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  padding: 22px;
  color: #ffffff;
  border-radius: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  filter: saturate(1.08);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.18));
}

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

.category-card span {
  display: block;
  margin-top: 84px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4e6, #ffedd5);
}

.poster-link img {
  width: 100%;
  height: 100%;
  transition: transform 0.35s ease;
}

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.74);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

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

.movie-meta-row {
  gap: 6px;
}

.movie-meta-row span {
  color: #9f1239;
  background: #fff1f2;
}

.movie-card h2 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.movie-card p {
  min-height: 4.8em;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.wide-list {
  display: grid;
  gap: 16px;
}

.wide-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
}

.wide-card .poster-link {
  aspect-ratio: 1 / 1.26;
}

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

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

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #fff7f7;
}

.rank-number,
.ranking-number {
  color: #ffffff;
  font-weight: 900;
  text-align: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
}

.rank-number {
  padding: 10px 0;
}

.rank-title {
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-item small {
  grid-column: 2;
  color: var(--muted);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f2, #fffbeb);
}

.page-hero {
  padding: 86px 0;
}

.page-hero > div {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.slim-hero,
.ranking-hero,
.search-hero,
.category-hero {
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #be123c;
  font-weight: 800;
}

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

.overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.overview-cover img {
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.overview-content {
  padding: 24px;
}

.overview-content h2 {
  margin: 14px 0 8px;
  font-size: 28px;
}

.overview-content p {
  color: var(--muted);
  line-height: 1.7;
}

.compact-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.compact-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: #fff7f7;
}

.compact-item img {
  width: 56px;
  height: 76px;
  border-radius: 12px;
}

.compact-item strong,
.compact-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-item small {
  margin-top: 6px;
  color: var(--muted);
}

.text-button {
  margin-top: 18px;
  min-height: 42px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
  padding: 14px;
}

.filter-bar input,
.filter-bar select {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.empty-state {
  display: none;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.ranking-page-list {
  display: grid;
  gap: 16px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 96px 64px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  transition: transform 0.2s ease;
}

.ranking-cover img {
  width: 96px;
  height: 128px;
  border-radius: 18px;
}

.ranking-number {
  padding: 16px 0;
  font-size: 20px;
}

.ranking-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ranking-info p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.detail-hero {
  min-height: 580px;
  color: #ffffff;
  background: #111827;
}

.detail-bg,
.detail-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-bg {
  filter: blur(8px) saturate(1.08);
  transform: scale(1.05);
}

.detail-shade {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.66), rgba(17, 24, 39, 0.38)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.9), transparent 60%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 580px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  padding: 72px 0;
}

.detail-hero .breadcrumb {
  grid-column: 1 / -1;
  margin-bottom: -18px;
  color: #fecdd3;
}

.detail-poster img {
  width: 300px;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.detail-heading h1 {
  color: #ffffff;
  font-size: clamp(42px, 6vw, 76px);
}

.detail-heading p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.85;
}

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

.large-tags {
  margin-bottom: 28px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card {
  overflow: hidden;
  padding: 0;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #ffffff;
  border: 0;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.38));
}

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

.play-circle {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
  box-shadow: 0 18px 46px rgba(244, 63, 94, 0.35);
  font-size: 30px;
}

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

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

.detail-side {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 92px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.info-list dt {
  color: var(--muted);
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  font-weight: 900;
}

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

.small-card p {
  min-height: 3.2em;
}

.site-footer {
  margin-top: 64px;
  padding: 56px 0 24px;
  color: #fee2e2;
  background: #111827;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  display: inline-block;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.site-footer p {
  max-width: 420px;
  color: rgba(254, 226, 226, 0.78);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
}

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

.footer-links a {
  color: rgba(254, 226, 226, 0.82);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 36px auto 0;
  padding-top: 22px;
  color: rgba(254, 226, 226, 0.62);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

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

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

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

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

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .site-header-inner {
    gap: 12px;
  }

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

  .hero {
    height: auto;
    min-height: 640px;
  }

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

  .hero-panel {
    left: 16px;
    right: 16px;
    bottom: 64px;
    width: auto;
  }

  .category-grid,
  .movie-grid,
  .large-grid,
  .overview-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-card,
  .wide-card,
  .ranking-row,
  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

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

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

  .ranking-row {
    align-items: start;
  }

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

@media (max-width: 560px) {
  .section-wrap {
    width: min(100% - 24px, 1180px);
    padding: 38px 0;
  }

  .site-header-inner {
    width: min(100% - 24px, 1180px);
  }

  .brand-subtitle {
    display: none;
  }

  .hero-content h1,
  .detail-heading h1 {
    font-size: 40px;
  }

  .hero-content p,
  .detail-heading p {
    font-size: 16px;
  }

  .large-search {
    flex-direction: column;
  }

  .category-grid,
  .movie-grid,
  .large-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 190px;
  }

  .footer-grid {
    gap: 24px;
  }
}
