* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: #111827;
  background: #fff7f8;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 8% 10%, rgba(244, 63, 94, 0.18), transparent 30%),
    radial-gradient(circle at 92% 18%, rgba(236, 72, 153, 0.16), transparent 28%),
    linear-gradient(180deg, #fff7f8 0%, #ffffff 42%, #fff7f8 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 38px rgba(127, 29, 29, 0.08);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 74px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #ef4444, #ec4899);
  box-shadow: 0 14px 30px rgba(225, 29, 72, 0.28);
}

.brand-text,
.footer-brand {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #dc2626, #db2777);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  white-space: nowrap;
}

.nav-link,
.desktop-nav a {
  color: #4b5563;
  font-weight: 700;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.desktop-nav a:hover,
.nav-link.active {
  color: #dc2626;
}

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

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  border: 1px solid rgba(156, 163, 175, 0.5);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  outline: none;
  color: #111827;
}

.header-search input {
  width: 220px;
  padding: 10px 16px;
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  padding: 10px 16px;
  font-weight: 800;
  background: linear-gradient(135deg, #ef4444, #ec4899);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #dc2626;
  background: #fff1f2;
  font-size: 22px;
}

.mobile-nav {
  display: none;
  padding: 18px 24px 24px;
  border-top: 1px solid rgba(244, 63, 94, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

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

.mobile-nav a {
  padding: 10px 2px;
  color: #374151;
  font-weight: 800;
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #1f0710;
}

.hero-track,
.hero-slide {
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(290px, 0.56fr);
  align-items: center;
  gap: 48px;
  padding: 112px max(24px, calc((100vw - 1280px) / 2 + 24px)) 88px;
  color: #fff;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.75s ease;
}

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

.hero-content {
  max-width: 720px;
  animation: slideUp 0.55s ease both;
}

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

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.hero-summary,
.detail-lead,
.page-hero p {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.hero-tags,
.card-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

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

.tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #be123c;
  background: #ffe4e6;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags .tag-chip {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

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

.primary-button,
.secondary-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 900;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #ec4899);
  box-shadow: 0 18px 40px rgba(225, 29, 72, 0.34);
}

.primary-button:hover,
.header-search button:hover,
.mobile-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(225, 29, 72, 0.28);
}

.secondary-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.hero-poster {
  justify-self: center;
  width: min(340px, 78vw);
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.48);
  transform: rotate(2.5deg);
}

.hero-poster img,
.detail-poster,
.movie-card img,
.ranking-link img,
.rank-card img,
.player-cover img {
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #fecdd3, #fff1f2);
}

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 34px;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 76px 24px;
}

.narrow-top {
  padding-top: 60px;
  padding-bottom: 66px;
}

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

.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.section-heading p {
  max-width: 640px;
  margin: 12px 0 0;
  color: #6b7280;
}

.section-link {
  color: #dc2626;
  background: #fff;
  border: 1px solid #fecdd3;
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.08);
}

.section-link span {
  transition: transform 0.2s ease;
}

.section-link:hover span {
  transform: translateX(4px);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(254, 205, 211, 0.72);
  box-shadow: 0 18px 48px rgba(127, 29, 29, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 70px rgba(127, 29, 29, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #fff1f2;
}

.poster-link img {
  transition: transform 0.35s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(225, 29, 72, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.poster-play {
  position: absolute;
  inset: auto 14px 14px auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #ec4899);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

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

.movie-meta-line,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #9f1239;
  font-size: 13px;
  font-weight: 800;
}

.movie-meta-line span,
.detail-meta span {
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff1f2;
}

.movie-card h3 {
  margin: 12px 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 950;
}

.movie-card p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #6b7280;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card.compact .movie-card-body {
  padding: 14px;
}

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

.movie-card.compact p {
  min-height: 42px;
  font-size: 14px;
}

.category-band {
  background: linear-gradient(135deg, rgba(255, 228, 230, 0.92), rgba(252, 231, 243, 0.76));
}

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

.category-card {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 24px;
  border-radius: 26px;
  overflow: hidden;
  color: #fff;
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 44px rgba(127, 29, 29, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 66px rgba(127, 29, 29, 0.18);
}

.category-card span {
  font-size: 22px;
  font-weight: 950;
}

.category-card strong {
  max-width: 280px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 700;
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-item {
  min-width: 0;
}

.ranking-link {
  display: grid;
  grid-template-columns: 48px 62px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(254, 205, 211, 0.7);
  box-shadow: 0 14px 34px rgba(127, 29, 29, 0.08);
}

.ranking-number {
  color: #e11d48;
  font-size: 24px;
  font-weight: 950;
}

.ranking-link img {
  width: 62px;
  height: 86px;
  border-radius: 14px;
}

.ranking-text {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.ranking-text strong,
.rank-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111827;
  font-weight: 950;
}

.ranking-text em,
.rank-info em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #9f1239;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.page-hero,
.detail-hero {
  color: #fff;
  background-size: cover;
  background-position: center;
}

.page-hero {
  min-height: 360px;
  display: grid;
  align-items: end;
  padding: 112px 24px 70px;
  background-image: linear-gradient(135deg, #881337, #be123c 52%, #db2777);
}

.soft-hero {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 26%),
    linear-gradient(135deg, #881337, #be123c 52%, #db2777);
}

.page-hero-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 30px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(254, 205, 211, 0.72);
  box-shadow: 0 18px 48px rgba(127, 29, 29, 0.08);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 13px 16px;
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 28px;
  text-align: center;
  color: #9f1239;
  border-radius: 22px;
  background: #fff1f2;
  font-weight: 800;
}

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

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

.rank-card a {
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px 18px 16px 64px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(254, 205, 211, 0.72);
  box-shadow: 0 16px 42px rgba(127, 29, 29, 0.08);
}

.rank-card img {
  width: 86px;
  height: 118px;
  border-radius: 16px;
}

.rank-medal {
  position: absolute;
  left: 18px;
  top: 24px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #ec4899);
  font-weight: 950;
}

.rank-info {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.rank-info span {
  color: #6b7280;
}

.detail-hero {
  padding: 104px 24px 70px;
  min-height: 690px;
}

.detail-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.breadcrumb,
.breadcrumb-separator {
  display: inline-flex;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.breadcrumb:hover {
  color: #fff;
}

.breadcrumb-separator {
  margin-inline: 8px;
}

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

.detail-poster {
  width: 310px;
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.42);
}

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

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

.detail-meta span {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.watch-section {
  padding-top: 64px;
}

.compact-heading {
  margin-bottom: 20px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #08080b;
  aspect-ratio: 16 / 9;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #08080b;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: #08080b;
  overflow: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.44);
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: blur(3px) saturate(1.05);
  transform: scale(1.03);
}

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

.play-button-large {
  position: relative;
  z-index: 2;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #ec4899);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
  font-size: 32px;
}

.detail-text {
  padding-top: 20px;
}

.detail-text h2 {
  margin: 26px 0 12px;
  color: #111827;
  font-size: 28px;
  font-weight: 950;
}

.detail-text p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
}

.site-footer {
  margin-top: 60px;
  color: #fff;
  background: #1f0710;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 34px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 12px;
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-inner p {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.66);
}

.footer-links {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
}

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 12px;
  }

  .desktop-nav a:nth-of-type(n + 7) {
    display: none;
  }

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

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

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-items: end;
    padding-top: 96px;
  }

  .hero-poster {
    display: none;
  }

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

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

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

  .detail-poster {
    width: 220px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
    padding: 0 16px;
  }

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

  .hero-slider,
  .hero-track,
  .hero-slide {
    min-height: 560px;
  }

  .hero-slide {
    padding: 90px 18px 82px;
  }

  .hero-control {
    display: none;
  }

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

  .hero-summary,
  .detail-lead,
  .page-hero p {
    font-size: 16px;
  }

  .section-wrap {
    padding: 54px 16px;
  }

  .section-heading {
    display: grid;
  }

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

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

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

  .movie-card p,
  .card-tags {
    display: none;
  }

  .ranking-link {
    grid-template-columns: 38px 52px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .ranking-link img {
    width: 52px;
    height: 72px;
  }

  .filter-panel {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .detail-hero {
    min-height: auto;
    padding: 86px 16px 48px;
  }

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

  .detail-poster {
    width: min(250px, 72vw);
  }

  .player-shell {
    border-radius: 18px;
  }

  .rank-card a {
    grid-template-columns: 70px minmax(0, 1fr);
    padding: 14px 14px 14px 54px;
  }

  .rank-card img {
    width: 70px;
    height: 98px;
  }
}

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

  .mobile-search {
    grid-template-columns: 1fr auto;
    display: grid;
  }

  .mobile-search input {
    min-width: 0;
  }
}
