:root {
  color-scheme: light;
  --rose: #e11d48;
  --rose-dark: #be123c;
  --red: #dc2626;
  --ink: #111827;
  --muted: #6b7280;
  --line: #f3dfe5;
  --paper: #ffffff;
  --soft: #fff1f2;
  --soft-2: #f9fafb;
  --shadow: 0 18px 45px rgba(190, 18, 60, 0.16);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fff7f8 0%, #ffffff 36%, #fff7f8 100%);
  color: var(--ink);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(244, 63, 94, 0.14);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo span {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--red));
  box-shadow: var(--shadow);
  font-size: 17px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #374151;
  font-weight: 700;
}

.main-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--rose);
  background: var(--soft);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  background: var(--soft);
  color: var(--rose);
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #0f172a;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.02);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 20%, rgba(244, 63, 94, 0.5), transparent 34%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(88, 28, 44, 0.76) 42%, rgba(15, 23, 42, 0.36) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.85), transparent 48%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 150px;
  margin-left: max(20px, calc((100% - 1200px) / 2));
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffe4e6;
  background: rgba(225, 29, 72, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 20px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: .98;
  letter-spacing: -0.065em;
  font-weight: 950;
}

.hero-copy p,
.page-hero p,
.lead-text {
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.86);
  max-width: 760px;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.tag-row {
  margin-top: 14px;
}

.tag-row span {
  background: var(--soft);
  color: var(--rose-dark);
}

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

.primary-btn,
.ghost-btn,
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 22px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--red));
  box-shadow: var(--shadow);
}

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

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.ghost-btn.light {
  color: var(--rose);
  background: #fff;
}

.primary-btn.wide {
  width: 100%;
  margin-top: 28px;
}

.hero-control {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(15, 23, 42, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  padding: 10px 14px;
  border-radius: 999px;
}

.hero-control button {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  width: 36px;
  height: 36px;
  border-radius: 999px;
}

.hero-dots {
  display: flex;
  gap: 7px;
}

.hero-dots .hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
}

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

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

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

.section-heading.center {
  text-align: center;
  margin-inline: auto;
  max-width: 760px;
}

.section-heading span {
  color: var(--rose);
  font-weight: 950;
  letter-spacing: .06em;
  font-size: 13px;
}

.section-heading h2 {
  margin: 8px 0 10px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.055em;
  font-weight: 950;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
}

.quick-search {
  margin-top: -54px;
  position: relative;
  z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(225, 29, 72, 0.12);
  border-radius: 34px;
  box-shadow: var(--shadow);
  padding: 42px;
}

.search-panel {
  display: flex;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto 18px;
  padding: 8px;
  border: 1px solid rgba(225, 29, 72, 0.16);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.search-panel input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 18px;
  min-width: 0;
  color: var(--ink);
}

.search-panel button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--red));
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 900;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-chip {
  border: 1px solid rgba(225, 29, 72, 0.16);
  background: #fff;
  color: var(--rose-dark);
  border-radius: 999px;
  padding: 9px 15px;
  font-weight: 800;
}

.filter-chip.active,
.filter-chip:hover {
  background: var(--rose);
  color: #fff;
}

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

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

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

.movie-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(225, 29, 72, 0.12);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease;
}

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

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

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

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

.poster-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, var(--rose));
  border-radius: 999px;
  font-style: normal;
  font-weight: 950;
}

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

.movie-meta {
  display: flex;
  justify-content: space-between;
  color: var(--rose);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
}

.movie-card h3 {
  margin: 0 0 9px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 950;
  letter-spacing: -0.03em;
}

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

.movie-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 26px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform .35s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 15%, rgba(15, 23, 42, .88) 100%);
  z-index: 1;
}

.category-tile:hover img {
  transform: scale(1.08);
}

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

.category-tile span {
  font-size: 21px;
  font-weight: 950;
}

.category-tile p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .82);
  line-height: 1.6;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 42px;
}

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

.mini-link {
  display: grid;
  grid-template-columns: auto 68px 1fr;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid rgba(225, 29, 72, 0.1);
  border-radius: 20px;
  padding: 10px;
  box-shadow: var(--shadow-soft);
}

.mini-link img {
  width: 68px;
  height: 86px;
  object-fit: cover;
  border-radius: 14px;
}

.mini-link strong {
  display: block;
  font-weight: 950;
  line-height: 1.25;
}

.mini-link small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}

.mini-rank {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--rose);
  font-weight: 950;
}

.more-link {
  color: var(--rose);
  background: var(--soft);
  margin-top: 18px;
}

.page-main,
.detail-main {
  padding-top: 28px;
}

.page-hero {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  border-radius: 34px;
  min-height: 330px;
  padding: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .75fr);
  gap: 32px;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(251, 113, 133, .42), transparent 35%),
    linear-gradient(135deg, #1f2937, #881337 55%, #e11d48);
  box-shadow: var(--shadow);
}

.page-hero.slim-hero,
.page-hero.category-hero {
  grid-template-columns: 1fr;
}

.page-hero p {
  color: rgba(255, 255, 255, .86);
}

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

.category-panel {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(225, 29, 72, .12);
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

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

.category-panel-cover img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
}

.category-panel span {
  color: var(--rose);
  font-weight: 950;
}

.category-panel h2 {
  margin: 8px 0;
  font-size: 27px;
  font-weight: 950;
  letter-spacing: -.04em;
}

.category-panel p {
  color: var(--muted);
  line-height: 1.7;
}

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

.rank-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  min-height: 210px;
  color: #fff;
}

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

.rank-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(15, 23, 42, .9));
}

.rank-hero-card span,
.rank-hero-card strong {
  position: absolute;
  z-index: 2;
}

.rank-hero-card span {
  top: 12px;
  left: 12px;
  background: var(--rose);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
}

.rank-hero-card strong {
  left: 14px;
  right: 14px;
  bottom: 14px;
  line-height: 1.25;
}

.breadcrumb {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--rose);
}

.detail-hero {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 28px;
  align-items: stretch;
}

.player-shell {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border-radius: 34px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  background: #0f172a;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(225, 29, 72, .22), rgba(15, 23, 42, .58));
  cursor: pointer;
  transition: opacity .2s ease, visibility .2s ease;
}

.player-overlay span {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--rose), var(--red));
  box-shadow: var(--shadow);
  font-size: 34px;
  padding-left: 6px;
}

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

.detail-info {
  border-radius: 34px;
  padding: 34px;
  background: linear-gradient(180deg, #1f2937, #881337);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.detail-info h1 {
  font-size: clamp(34px, 4vw, 58px);
}

.detail-tags span {
  background: rgba(255, 255, 255, .15);
  color: #ffe4e6;
}

.detail-content {
  width: min(1200px, calc(100% - 32px));
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.story-card {
  background: #fff;
  border: 1px solid rgba(225, 29, 72, .12);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow-soft);
}

.story-card h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 26px;
  font-weight: 950;
  letter-spacing: -.035em;
}

.story-card p {
  color: #374151;
  line-height: 2;
  font-size: 17px;
}

.accent-card {
  background: linear-gradient(180deg, #fff, var(--soft));
}

.detail-related {
  padding-top: 48px;
}

.empty-state {
  display: none;
  margin: 24px auto 0;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}

.empty-state.show {
  display: block;
}

.site-footer {
  margin-top: 50px;
  background: #111827;
  color: #e5e7eb;
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  gap: 22px;
}

.footer-inner strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 22px;
}

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

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.footer-links a:hover {
  background: var(--rose);
  color: #fff;
}

.copyright {
  font-size: 14px;
}

@media (max-width: 1024px) {
  .main-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid rgba(225, 29, 72, .14);
    border-radius: 22px;
    padding: 12px;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

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

  .hero {
    min-height: 620px;
  }

  .hero-copy {
    margin-left: 20px;
    padding-top: 120px;
  }

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

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

  .split-section,
  .detail-hero,
  .detail-content,
  .page-hero {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .header-inner,
  .section-wrap,
  .breadcrumb,
  .detail-hero,
  .detail-content,
  .page-hero {
    width: min(100% - 24px, 1200px);
  }

  .logo {
    font-size: 18px;
  }

  .logo span {
    width: 36px;
    height: 36px;
    border-radius: 13px;
  }

  .hero {
    min-height: 590px;
  }

  .hero-copy {
    width: calc(100% - 28px);
    margin-left: 14px;
    padding-top: 98px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 38px;
  }

  .hero-copy p,
  .page-hero p,
  .lead-text {
    font-size: 16px;
  }

  .hero-control {
    bottom: 18px;
  }

  .quick-search,
  .page-hero,
  .detail-info,
  .story-card {
    border-radius: 24px;
    padding: 24px;
  }

  .search-panel {
    border-radius: 22px;
    flex-direction: column;
  }

  .search-panel input {
    min-height: 46px;
  }

  .movie-grid,
  .compact-grid,
  .side-grid,
  .category-grid,
  .category-panel-grid,
  .rank-hero-grid {
    grid-template-columns: 1fr;
  }

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

  .player-shell,
  .movie-video {
    min-height: 260px;
  }

  .footer-links {
    align-items: flex-start;
  }
}
