* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 45%, #fff1f2 100%);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(219, 39, 119, 0.96), rgba(244, 63, 94, 0.96), rgba(249, 115, 22, 0.96));
  box-shadow: 0 18px 40px rgba(190, 24, 93, 0.22);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

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

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

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

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.header-search,
.mobile-search,
.big-search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 10px 28px rgba(190, 24, 93, 0.18);
}

.header-search input,
.mobile-search input,
.big-search input {
  border: 0;
  outline: 0;
  background: transparent;
  padding: 10px 12px 10px 16px;
  min-width: 180px;
  color: #111827;
}

.header-search button,
.mobile-search button,
.big-search button {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(90deg, #db2777, #f97316);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  padding: 8px 12px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 14px 16px 18px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(244, 114, 182, 0.28);
}

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

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

.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.8s ease;
  background-position: center;
  background-size: cover;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 30%, rgba(251, 191, 36, 0.35), transparent 28%),
    linear-gradient(90deg, rgba(136, 19, 55, 0.94) 0%, rgba(190, 24, 93, 0.78) 42%, rgba(17, 24, 39, 0.42) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 42px;
  color: #ffffff;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #fff7ad;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-info .one-line {
  margin: 0 0 24px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff1f2;
  color: #be185d;
  font-weight: 700;
  font-size: 12px;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

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

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

.primary-btn {
  color: #be185d;
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}

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

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(17, 24, 39, 0.36);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

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

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

.featured-lift {
  position: relative;
  z-index: 4;
  margin-top: -72px;
}

.content-section {
  padding: 54px 0;
}

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

.section-heading h2,
.quick-categories h2,
.category-band h2,
.site-footer h2,
.player-section h2,
.text-panel h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: #6b7280;
}

.section-heading a,
.text-link {
  color: #db2777;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(190, 24, 93, 0.12);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 58px rgba(190, 24, 93, 0.22);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(17, 24, 39, 0.74));
}

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #db2777;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.24);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #db2777;
  font-size: 12px;
  font-weight: 800;
}

.card-body h2 {
  margin: 10px 0 8px;
  color: #111827;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 900;
}

.card-body h2 a:hover {
  color: #db2777;
}

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

.featured-card .poster-wrap {
  aspect-ratio: 16 / 11;
}

.quick-categories {
  padding: 44px 0 10px;
  text-align: center;
}

.category-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.category-chip-row a,
.filter-pill {
  border: 0;
  border-radius: 999px;
  color: #be185d;
  background: #ffffff;
  padding: 10px 16px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(190, 24, 93, 0.1);
  cursor: pointer;
}

.filter-pill.active,
.category-chip-row a:hover {
  color: #ffffff;
  background: linear-gradient(90deg, #db2777, #f97316);
}

.latest-panel {
  background: linear-gradient(90deg, #ffedd5, #ffe4e6, #fff1f2);
  padding: 40px 0;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 74px minmax(0, 1fr) minmax(120px, 220px) 110px;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(190, 24, 93, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  box-shadow: 0 18px 36px rgba(190, 24, 93, 0.16);
}

.rank-index {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #db2777, #f97316);
  font-weight: 900;
}

.rank-row img {
  width: 74px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-title {
  min-width: 0;
  color: #111827;
  font-weight: 900;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-tags,
.rank-heat {
  color: #6b7280;
  font-size: 14px;
}

.category-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 24px;
  border-radius: 26px;
  color: #ffffff;
  background: linear-gradient(90deg, #db2777, #f43f5e, #f97316);
  box-shadow: 0 20px 48px rgba(190, 24, 93, 0.18);
}

.category-band h2 {
  color: #ffffff;
}

.category-band a {
  font-weight: 800;
  color: #fff7ed;
}

.cta-panel {
  padding: 70px 0;
  color: #ffffff;
  background: linear-gradient(90deg, #db2777, #f43f5e, #f97316);
}

.cta-inner {
  text-align: center;
  max-width: 820px;
}

.cta-inner h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 900;
}

.cta-inner p {
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.page-main {
  padding-bottom: 52px;
}

.page-hero {
  margin-top: 30px;
  padding: 54px;
  border-radius: 34px;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.36), transparent 28%),
    linear-gradient(120deg, #be185d, #e11d48 58%, #f97316);
  box-shadow: 0 24px 60px rgba(190, 24, 93, 0.22);
}

.small-hero {
  max-width: 1180px;
}

.page-hero h1 {
  max-width: 900px;
}

.page-hero p {
  max-width: 760px;
}

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

.category-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(190, 24, 93, 0.12);
}

.category-cover-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  overflow: hidden;
  border-radius: 20px;
}

.category-cover-grid img {
  width: 100%;
  height: 88px;
  object-fit: cover;
}

.category-card h2 {
  margin: 4px 0 8px;
  color: #111827;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 0 0 14px;
  color: #6b7280;
}

.mini-card-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.compact-card {
  position: relative;
  overflow: hidden;
  min-height: 140px;
  border-radius: 20px;
  background: #111827;
}

.compact-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.compact-card:hover img {
  opacity: 0.96;
  transform: scale(1.08);
}

.compact-card span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  color: #ffffff;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.58);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.empty-state {
  display: none;
  text-align: center;
  color: #6b7280;
  font-weight: 700;
  padding: 28px;
}

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

.big-search {
  max-width: 680px;
  margin-top: 28px;
}

.big-search input {
  flex: 1;
  min-width: 0;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(251, 191, 36, 0.3), transparent 30%),
    linear-gradient(90deg, rgba(136, 19, 55, 0.96), rgba(190, 24, 93, 0.82), rgba(17, 24, 39, 0.58));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  padding: 34px 0 60px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  margin-bottom: 32px;
}

.breadcrumb a:hover {
  color: #fff7ad;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(17, 24, 39, 0.42);
}

.detail-poster img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.detail-info h1 {
  max-width: 820px;
}

.detail-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}

.detail-meta-grid span {
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

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

.anchor-btn {
  margin-top: 28px;
}

.player-section {
  padding: 54px 0 34px;
}

.player-section h2 {
  margin-bottom: 20px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.28);
}

.player-wrap video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.52));
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: #db2777;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  font-size: 34px;
  transform: translateX(3px);
}

.play-overlay.is-hidden {
  display: none;
}

.detail-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  padding: 24px 0;
}

.text-panel {
  padding: 26px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(190, 24, 93, 0.1);
}

.text-panel h2 {
  margin-bottom: 14px;
}

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

.site-footer {
  color: #ffffff;
  background: linear-gradient(90deg, #1f2937, #111827, #030712);
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 46px 0;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: #d1d5db;
}

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 16px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

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

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

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

  .category-overview-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .category-card {
    grid-template-columns: 170px 1fr;
  }

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

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

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

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

  .hero-carousel,
  .hero-content {
    min-height: 590px;
    height: 590px;
  }

  .hero-content {
    align-items: end;
    padding-bottom: 80px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-info .one-line {
    font-size: 16px;
  }

  .hero-nav {
    display: none;
  }

  .featured-lift {
    margin-top: 24px;
  }

  .three-col,
  .four-col,
  .mini-card-row {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .category-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .rank-row {
    grid-template-columns: 42px 64px minmax(0, 1fr);
  }

  .rank-tags,
  .rank-heat {
    display: none;
  }

  .page-hero {
    padding: 34px 22px;
    border-radius: 26px;
  }

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

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

  .detail-poster img {
    height: 360px;
  }

  .detail-meta-grid {
    display: grid;
  }

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