:root {
  --rose: #e11d48;
  --pink: #ec4899;
  --orange: #fb7185;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff1f2;
  --line: #f3d4dc;
  --card: #ffffff;
  --shadow: 0 22px 55px rgba(225, 29, 72, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.14), transparent 32rem),
    linear-gradient(180deg, #fff7fb 0%, #ffffff 42%, #fff5f7 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(244, 114, 182, 0.22);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 15px 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.35);
}

.logo-text {
  font-size: 1.35rem;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  -webkit-background-clip: text;
  color: transparent;
}

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

.site-nav a {
  padding: 8px 2px;
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--rose);
}

.global-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 270px;
}

.global-search-form input,
.local-filter-form input,
.local-filter-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  padding: 11px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.global-search-form input:focus,
.local-filter-form input:focus,
.local-filter-form select:focus {
  border-color: rgba(225, 29, 72, 0.6);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.08);
}

.global-search-form button,
.primary-btn,
.ghost-btn,
.section-link {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 800;
}

.global-search-form button,
.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 14px 28px rgba(225, 29, 72, 0.24);
}

.global-search-form button {
  padding: 11px 18px;
}

.primary-btn,
.ghost-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
}

.ghost-btn,
.section-link {
  color: var(--rose);
  background: #fff;
  border: 1px solid rgba(225, 29, 72, 0.18);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--soft);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--rose);
}

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 22px 64px;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 570px;
  border-radius: 36px;
  background: #111827;
  box-shadow: var(--shadow);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.55fr);
  gap: 34px;
  align-items: center;
  padding: 56px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.74) 45%, rgba(17, 24, 39, 0.25) 100%),
    var(--hero-image) center / cover no-repeat;
  filter: saturate(1.08);
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.hero-copy p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  margin: 24px 0;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-poster {
  align-self: center;
  justify-self: end;
  width: min(330px, 100%);
  transform: rotate(2deg);
}

.hero-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 56px;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

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

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

.search-band,
.page-hero,
.content-section,
.detail-content article,
.player-card,
.detail-side {
  border: 1px solid rgba(244, 114, 182, 0.18);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.search-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.75fr);
  gap: 28px;
  align-items: center;
  margin: 34px 0;
  padding: 34px;
  border-radius: 30px;
}

.search-band h2,
.section-heading h2,
.page-hero h1,
.detail-content h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.search-band h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.search-band p,
.page-hero p,
.detail-content p,
.movie-info p,
.category-card p,
.footer-inner p {
  color: var(--muted);
}

.large-search {
  min-width: 0;
}

.content-section {
  margin-top: 34px;
  padding: 28px;
  border-radius: 30px;
}

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

.section-heading h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(244, 114, 182, 0.18);
  box-shadow: 0 16px 35px rgba(17, 24, 39, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(225, 29, 72, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  background: #ffe4ec;
}

.poster-link img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
}

.year-badge {
  right: 10px;
  top: 10px;
  background: rgba(17, 24, 39, 0.72);
}

.rank-badge {
  left: 10px;
  top: 10px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
}

.movie-info {
  padding: 14px;
}

.movie-title {
  display: -webkit-box;
  min-height: 2.6em;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.3;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-title:hover {
  color: var(--rose);
}

.movie-info p {
  display: -webkit-box;
  min-height: 3.9em;
  margin: 9px 0 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

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

.category-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.category-tile,
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 154px;
  background: #111827;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.12);
}

.category-tile img,
.category-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transition: transform 0.3s ease;
}

.category-tile:hover img,
.category-card:hover img {
  transform: scale(1.06);
}

.category-tile span,
.category-tile small,
.category-card div {
  position: relative;
  z-index: 2;
}

.category-tile {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 18px;
  color: #fff;
}

.category-tile:before,
.category-card:before,
.page-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(17, 24, 39, 0.82) 100%);
  z-index: 1;
}

.category-tile span,
.category-card span {
  font-size: 1.2rem;
  font-weight: 900;
}

.category-tile small {
  margin-top: 4px;
  opacity: 0.86;
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  padding: 46px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 241, 242, 0.88)),
    var(--hero-image, none) center / cover no-repeat;
}

.category-hero:before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42));
}

.page-hero > * {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
}

.page-hero p {
  max-width: 720px;
  margin: 16px 0 24px;
  font-size: 1.05rem;
}

.small-hero {
  min-height: 230px;
}

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

.category-card {
  min-height: 230px;
  display: flex;
  align-items: end;
  padding: 22px;
  color: #fff;
}

.category-card div {
  max-width: 92%;
}

.category-card strong {
  display: block;
  margin: 6px 0;
  font-size: 1.05rem;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
}

.local-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 150px;
  gap: 12px;
  margin-bottom: 24px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--rose);
  font-weight: 700;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.56fr);
  gap: 28px;
  align-items: stretch;
}

.player-card,
.detail-side {
  border-radius: 30px;
  padding: 18px;
}

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

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

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.16), rgba(15, 23, 42, 0.42));
  cursor: pointer;
  transition: opacity 0.22s ease;
}

.play-layer.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-symbol {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 18px 44px rgba(225, 29, 72, 0.38);
  font-size: 2rem;
  padding-left: 4px;
}

.detail-side {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
}

.detail-side img {
  border-radius: 22px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-side h1 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-side p {
  margin: 0 0 16px;
  color: var(--muted);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 30px;
}

.detail-content article {
  border-radius: 28px;
  padding: 28px;
}

.detail-content h2 {
  font-size: 1.7rem;
  margin-bottom: 14px;
}

.detail-content p {
  margin: 0;
  font-size: 1rem;
}

.site-footer {
  margin-top: 30px;
  padding: 38px 22px 24px;
  background: #111827;
  color: #fff;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

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

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-content: start;
}

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

.copyright {
  max-width: 1240px;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.9rem;
}

.is-hidden-card {
  display: none !important;
}

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

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

  .watch-layout,
  .search-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
  }

  .site-nav.is-open {
    display: flex;
  }

  .global-search-form {
    order: 3;
    width: 100%;
    min-width: 0;
  }

  main {
    padding: 18px 14px 44px;
  }

  .hero-carousel,
  .hero-slider,
  .hero-slide {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 34px 24px 82px;
  }

  .hero-poster {
    justify-self: start;
    width: min(230px, 72vw);
  }

  .hero-dots {
    left: 24px;
  }

  .content-section,
  .search-band,
  .page-hero {
    padding: 22px;
    border-radius: 24px;
  }

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

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

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

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

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .movie-grid,
  .ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero-copy h1 {
    font-size: 2.4rem;
    letter-spacing: -0.05em;
  }

  .hero-copy p {
    font-size: 0.98rem;
  }

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

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

  .detail-side img {
    width: min(220px, 70vw);
  }
}
