:root {
  --bg: #fff7fb;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --rose: #e11d48;
  --rose-dark: #9f1239;
  --pink: #db2777;
  --purple: #6d28d9;
  --amber: #f59e0b;
  --line: rgba(225, 29, 72, 0.13);
  --shadow: 0 20px 55px rgba(136, 19, 55, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, #f9fafb 0%, #fff1f2 48%, #fdf2f8 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.83);
  box-shadow: 0 12px 35px rgba(136, 19, 55, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--purple));
  box-shadow: 0 14px 30px rgba(225, 29, 72, 0.32);
}

.brand-name {
  font-size: 22px;
  color: #111827;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--rose);
  background: #fff1f2;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff1f2;
  cursor: pointer;
}

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

.home-hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #1f1020;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  mix-blend-mode: overlay;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 28%, rgba(236, 72, 153, 0.45), transparent 30%),
    radial-gradient(circle at 18% 75%, rgba(109, 40, 217, 0.34), transparent 28%),
    linear-gradient(115deg, rgba(76, 5, 25, 0.94), rgba(136, 19, 55, 0.82) 48%, rgba(88, 28, 135, 0.85));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 360px;
  align-items: center;
  gap: 54px;
  min-height: 640px;
  color: #ffffff;
}

.hero-copy {
  max-width: 780px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #fbbf24;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.12;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.hero-actions,
.small-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

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

.primary-btn {
  min-height: 48px;
  padding: 0 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 18px 35px rgba(225, 29, 72, 0.34);
}

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

.ghost-btn {
  min-height: 48px;
  padding: 0 22px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.small-btn {
  min-height: 42px;
  padding-inline: 18px;
  font-size: 14px;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}

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

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

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

.section-block {
  padding: 70px 0;
}

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

.section-heading h2,
.filter-panel h2,
.content-card h2,
.detail-meta-card h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p,
.filter-panel p,
.category-preview p,
.content-card p,
.player-title-row p,
.detail-side dd,
.movie-card p,
.horizontal-card p {
  color: var(--muted);
}

.section-link,
.text-link {
  color: var(--rose);
}

.light-heading h2,
.light-heading p,
.light-link {
  color: #ffffff;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 174px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 45px rgba(136, 19, 55, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: auto -30px -48px auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.18), rgba(219, 39, 119, 0.1));
}

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

.category-icon {
  display: block;
  margin-bottom: 16px;
  font-size: 36px;
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  color: #111827;
  font-size: 21px;
}

.category-card em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(225, 29, 72, 0.1);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(136, 19, 55, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.movie-card:hover .poster-link img,
.horizontal-card:hover .horizontal-poster img,
.detail-cover:hover img {
  transform: scale(1.07);
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.play-chip {
  left: 12px;
  bottom: 12px;
  min-height: 30px;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(10px);
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-height: 28px;
  padding: 0 10px;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.24);
}

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

.movie-card-body h2,
.horizontal-card h2 {
  margin: 8px 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.3;
}

.compact-card .movie-card-body h2 {
  font-size: 16px;
}

.movie-card-body p,
.horizontal-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 12px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 800;
}

.meta-line span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff1f2;
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #9f1239;
  background: #fff1f2;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.ranking-band {
  background: linear-gradient(135deg, #881337, #be185d 52%, #581c87);
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(136, 19, 55, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.horizontal-poster {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 2 / 3;
}

.page-hero {
  padding: 92px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 76% 20%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(135deg, #9f1239, #db2777 52%, #6d28d9);
}

.page-hero h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 22px;
  margin-bottom: 32px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 38px rgba(136, 19, 55, 0.08);
}

.filter-panel h2 {
  font-size: 28px;
}

.filter-panel p {
  margin: 8px 0 0;
}

.filter-controls {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(120px, 0.7fr));
  gap: 12px;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(225, 29, 72, 0.17);
  border-radius: 16px;
  outline: 0;
  padding: 0 14px;
  color: #111827;
  background: #ffffff;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
}

.empty-state {
  margin: 30px 0 0;
  padding: 24px;
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}

.category-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-bottom: 70px;
}

.category-preview {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(136, 19, 55, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-preview-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.category-preview-head span {
  font-size: 34px;
}

.category-preview h2 {
  margin: 0 0 6px;
  color: #111827;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.inline-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--rose);
  background: #fff1f2;
  font-weight: 800;
  font-size: 13px;
}

.detail-wrap {
  padding: 30px 0 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--rose);
  font-weight: 800;
}

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

.player-card,
.detail-meta-card,
.content-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
}

.movie-player {
  position: relative;
  overflow: hidden;
  background: #050507;
  aspect-ratio: 16 / 9;
}

.movie-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050507;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.48));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 22px 48px rgba(225, 29, 72, 0.36);
  font-size: 34px;
  transform: translateX(3px);
}

.player-title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
}

.player-title-row h1 {
  margin: 0 0 8px;
  color: #111827;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
}

.player-title-row p {
  margin: 0;
}

.detail-side {
  display: grid;
  gap: 18px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  aspect-ratio: 2 / 3;
}

.detail-meta-card {
  padding: 22px;
}

.detail-meta-card h2 {
  margin-bottom: 18px;
  font-size: 24px;
}

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

.detail-meta-card div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(225, 29, 72, 0.18);
}

.detail-meta-card dt {
  color: var(--muted);
}

.detail-meta-card dd {
  margin: 0;
  color: #111827;
  text-align: right;
  font-weight: 800;
}

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

.content-card {
  padding: 26px;
}

.content-card h2 {
  margin-bottom: 14px;
  font-size: 28px;
}

.content-card p {
  margin: 0;
  color: #374151;
  font-size: 16px;
}

.detail-tags {
  margin-top: 18px;
}

.related-section {
  padding-top: 54px;
}

.site-footer {
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.76);
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  padding: 52px 0;
}

.footer-brand {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 24px;
}

.site-footer p {
  max-width: 480px;
  margin: 0;
}

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

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

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

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .category-grid,
  .movie-grid,
  .compact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .filter-panel,
  .detail-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    text-align: center;
  }

  .home-hero,
  .hero-content {
    min-height: 760px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 54px 0 82px;
  }

  .hero-poster {
    max-width: 260px;
    transform: none;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .horizontal-grid,
  .category-preview-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

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

  .home-hero,
  .hero-content {
    min-height: 720px;
  }

  .hero-copy p,
  .page-hero p {
    font-size: 17px;
  }

  .hero-actions,
  .small-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .horizontal-grid,
  .category-preview-grid,
  .footer-grid,
  .filter-controls {
    grid-template-columns: 1fr;
  }

  .horizontal-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

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

  .section-block {
    padding: 46px 0;
  }
}
