:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  --pink-500: #ec4899;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 10px 30px rgba(225, 29, 72, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--slate-50);
  color: var(--slate-900);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, var(--rose-700), var(--rose-600), var(--pink-500));
  color: var(--white);
  box-shadow: 0 12px 35px rgba(190, 18, 60, 0.25);
}

.nav-shell {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.brand-text {
  font-size: 20px;
}

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

.desktop-nav a,
.mobile-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  padding: 10px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

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

main {
  min-height: 70vh;
}

.page-section,
.hero-inner,
.detail-shell,
.footer-grid,
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.18), transparent 26%),
    linear-gradient(135deg, #991b1b, #e11d48 48%, #ec4899);
}

.hero-slider::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--slate-50));
  pointer-events: none;
}

.hero-slide {
  display: none;
  min-height: 610px;
  position: relative;
}

.hero-slide.active {
  display: block;
  animation: fadeIn 0.6s ease both;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  filter: blur(4px) saturate(1.25);
  transform: scale(1.03);
}

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

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.86), rgba(190, 18, 60, 0.65), rgba(236, 72, 153, 0.22));
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 360px;
  align-items: center;
  gap: 56px;
  padding-top: 70px;
  padding-bottom: 90px;
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--rose-600);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #ffe4e6;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero-copy p {
  max-width: 690px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-tags span,
.tag-row span,
.detail-tag,
.category-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  backdrop-filter: blur(12px);
}

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

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), var(--pink-500));
  box-shadow: 0 16px 32px rgba(225, 29, 72, 0.28);
}

.secondary-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.ghost-button {
  border: 0;
  color: var(--rose-700);
  background: var(--rose-50);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.hero-poster-card {
  position: relative;
  border-radius: 34px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.20);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(14px);
}

.hero-poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
}

.hero-stat {
  position: absolute;
  left: -22px;
  bottom: 38px;
  min-width: 150px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--slate-900);
  box-shadow: var(--shadow-soft);
}

.hero-stat strong {
  display: block;
  color: var(--rose-600);
  font-size: 26px;
  line-height: 1;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

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

.hero-dot.active {
  width: 28px;
  background: var(--white);
}

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

.section-heading h2,
.detail-content h2,
.static-page h1 {
  margin: 0;
  color: var(--slate-900);
  line-height: 1.2;
}

.section-heading h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.section-heading p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--slate-500);
}

.section-more {
  color: var(--rose-600);
  font-weight: 800;
}

.page-section {
  padding-top: 54px;
  padding-bottom: 54px;
}

.filter-panel {
  max-width: var(--container);
  margin: -38px auto 44px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px auto;
  gap: 14px;
  align-items: end;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 5;
}

.search-field,
.select-field {
  display: grid;
  gap: 6px;
  color: var(--slate-700);
  font-size: 13px;
  font-weight: 800;
}

.search-field input,
.select-field select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 0 14px;
  background: var(--white);
  color: var(--slate-900);
  outline: none;
}

.search-field input:focus,
.select-field select:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), var(--slate-100));
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.poster-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.82), transparent);
}

.score,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 900;
}

.score {
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  color: var(--white);
  background: rgba(244, 63, 94, 0.95);
}

.rank-badge {
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  color: var(--rose-700);
  background: rgba(255, 255, 255, 0.92);
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0;
  min-height: 3em;
  font-size: 18px;
  line-height: 1.45;
}

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

.movie-meta,
.movie-line {
  margin: 8px 0 0;
  color: var(--slate-500);
  font-size: 14px;
}

.movie-line {
  min-height: 3.4em;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.tag-row span,
.detail-tag,
.category-pill {
  padding: 5px 9px;
  color: var(--rose-700);
  background: var(--rose-50);
}

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

.category-card {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--white), var(--rose-50));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card h3 {
  margin: 0;
  font-size: 22px;
}

.category-card p {
  margin: 8px 0 0;
  color: var(--slate-500);
}

.page-hero {
  padding: 74px 0 104px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-700), var(--rose-600), var(--pink-500));
}

.page-hero .page-section {
  padding-top: 0;
  padding-bottom: 0;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 70px 86px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.rank-number {
  color: var(--rose-600);
  font-size: 30px;
  font-weight: 900;
  text-align: center;
}

.rank-thumb img {
  width: 86px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.rank-title h3 {
  margin: 0;
  font-size: 20px;
}

.rank-title p {
  margin: 7px 0 0;
  color: var(--slate-500);
}

.rank-heat {
  color: var(--rose-600);
  font-weight: 900;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-900);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.28;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(5px) saturate(1.2);
  transform: scale(1.04);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(136, 19, 55, 0.7));
}

.detail-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  padding-top: 72px;
  padding-bottom: 72px;
}

.detail-cover {
  border-radius: 28px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 20px;
}

.detail-intro h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
}

.detail-intro .movie-meta {
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
}

.detail-intro .lead {
  max-width: 820px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}

.content-card,
.aside-card,
.player-card,
.static-page {
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.content-card,
.aside-card,
.static-page {
  padding: 26px;
}

.content-card + .content-card {
  margin-top: 22px;
}

.detail-content h2 {
  font-size: 26px;
}

.detail-content p {
  color: var(--slate-700);
}

.player-card {
  overflow: hidden;
  margin-bottom: 28px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: #05070d;
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #05070d;
}

.video-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(225, 29, 72, 0.42));
  cursor: pointer;
}

.video-start span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.34);
  font-size: 34px;
}

.video-start.is-hidden {
  display: none;
}

.player-info {
  padding: 16px 18px;
  color: var(--slate-500);
}

.related-list {
  display: grid;
  gap: 14px;
}

.related-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 68px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.related-item h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.42;
}

.related-item p {
  margin: 4px 0 0;
  color: var(--slate-500);
  font-size: 13px;
}

.search-results-note {
  margin: 14px 0 0;
  color: var(--slate-500);
}

.site-footer {
  margin-top: 70px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding-top: 44px;
  padding-bottom: 36px;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 17px;
}

.site-footer p,
.site-footer ul {
  margin: 0;
  padding: 0;
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-top: 18px;
  padding-bottom: 18px;
  text-align: center;
  color: #94a3b8;
}

.hidden-by-filter {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

  .hero-inner,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster-card {
    max-width: 360px;
    margin: 0 auto;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .hero-inner,
  .detail-shell {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-slide,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 48px;
  }

  .hero-poster-card {
    max-width: 280px;
  }

  .filter-panel {
    grid-template-columns: 1fr;
    margin-left: 18px;
    margin-right: 18px;
  }

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

  .movie-info {
    padding: 12px;
  }

  .movie-info h3 {
    font-size: 16px;
  }

  .detail-shell {
    padding-top: 40px;
    padding-bottom: 46px;
  }

  .detail-cover {
    max-width: 260px;
  }

  .rank-item {
    grid-template-columns: 44px 70px minmax(0, 1fr);
  }

  .rank-heat {
    grid-column: 2 / -1;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .brand-text {
    font-size: 17px;
  }
}
