:root {
  --bg: #fff7fb;
  --bg-soft: #fff1f7;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --text: #1f1721;
  --muted: #6d6370;
  --line: rgba(244, 114, 182, 0.22);
  --pink: #ec4899;
  --rose: #f43f5e;
  --orange: #fb923c;
  --shadow: 0 24px 70px rgba(190, 24, 93, 0.16);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(244, 114, 182, 0.22), transparent 32rem),
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.18), transparent 28rem),
    linear-gradient(135deg, #fff7fb 0%, #fff1f7 46%, #fff7ed 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.nav-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #22111a;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--rose), var(--orange));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.32);
  font-size: 15px;
}

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

.desktop-nav a,
.mobile-panel nav a {
  color: #5f5360;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel nav a:hover {
  color: var(--pink);
}

.nav-search {
  width: 310px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.nav-search input,
.mobile-search input,
.big-search input,
.filter-panel input,
.filter-panel select {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.nav-search input {
  flex: 1;
  padding: 12px 6px 12px 18px;
}

.nav-search button,
.mobile-search button,
.big-search button {
  border: 0;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  cursor: pointer;
}

.nav-search button {
  align-self: stretch;
  padding: 0 18px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: var(--pink);
  box-shadow: 0 12px 28px rgba(190, 24, 93, 0.12);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-search {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.mobile-search input {
  flex: 1;
  padding: 12px 16px;
}

.mobile-search button {
  padding: 0 16px;
}

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

.mobile-panel nav a {
  padding: 12px 14px;
  border-radius: 14px;
}

.mobile-panel nav a:hover {
  background: #fff1f7;
}

.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 8, 18, 0.86) 0%, rgba(20, 8, 18, 0.62) 45%, rgba(20, 8, 18, 0.22) 100%),
    var(--hero-image) center / cover no-repeat;
  transform: scale(1.04);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 24%, rgba(236, 72, 153, 0.36), transparent 24rem),
    linear-gradient(180deg, transparent 58%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 32px));
  min-height: 660px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 430px;
  align-items: center;
  gap: 58px;
  padding: 84px 0 94px;
}

.hero-copy {
  color: #fff;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero p {
  max-width: 760px;
  margin: 0;
  font-size: 20px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.84);
}

.hero-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: #be185d;
  background: #ffe4ef;
  font-size: 13px;
  font-weight: 800;
}

.hero .tag-chip {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

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

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  padding: 0 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--rose), var(--orange));
  box-shadow: 0 18px 38px rgba(236, 72, 153, 0.34);
}

.primary-button:hover,
.ghost-button:hover,
.text-link:hover,
.movie-card:hover {
  transform: translateY(-3px);
}

.primary-button.small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.ghost-button {
  padding: 0 22px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.text-link {
  min-height: auto;
  color: var(--pink);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.44);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: inherit;
}

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

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

.hero-controls button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-controls button.is-active {
  width: 36px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.section-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

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

.section-heading.compact {
  margin-bottom: 22px;
}

.section-heading h2,
.quick-search-card h2,
.page-hero h1,
.detail-content h1 {
  margin: 8px 0 0;
  color: #241520;
  letter-spacing: -0.05em;
}

.section-heading h2,
.quick-search-card h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.quick-search-section {
  position: relative;
  margin-top: -34px;
  z-index: 6;
}

.quick-search-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  align-items: center;
  gap: 26px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.big-search {
  display: flex;
  overflow: hidden;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.big-search input {
  flex: 1;
  padding: 0 22px;
  font-size: 16px;
}

.big-search button {
  padding: 0 28px;
  cursor: pointer;
}

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

.category-card,
.category-overview-card,
.filter-panel,
.detail-content,
.player-card,
.rank-list,
.movie-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(190, 24, 93, 0.1);
  backdrop-filter: blur(18px);
}

.category-card {
  padding: 24px;
  min-height: 148px;
  border-radius: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card span {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: #241520;
}

.category-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: var(--shadow);
}

.movie-cover-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4ef, #fff7ed);
}

.movie-card-large .movie-cover-link {
  aspect-ratio: 16 / 9;
}

.movie-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .movie-cover {
  transform: scale(1.06);
}

.movie-badge,
.movie-play-mark {
  position: absolute;
  z-index: 2;
  color: #fff;
  background: rgba(17, 10, 16, 0.56);
  backdrop-filter: blur(12px);
}

.movie-badge {
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.movie-play-mark {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.35);
}

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

.movie-card-meta,
.movie-stats,
.detail-meta,
.hero-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.movie-card-meta {
  gap: 10px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
}

.movie-card-meta span,
.movie-card-meta a {
  display: inline-flex;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.movie-card p {
  margin: 0;
  min-height: 52px;
  color: var(--muted);
  line-height: 1.7;
}

.movie-stats {
  gap: 12px;
  margin-top: 14px;
  color: #8a7682;
  font-size: 13px;
  font-weight: 800;
}

.latest-section {
  width: min(1280px, calc(100% - 32px));
}

.horizontal-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 290px;
  gap: 22px;
  overflow-x: auto;
  padding: 6px 2px 20px;
  scroll-snap-type: x mandatory;
}

.horizontal-scroller .movie-card {
  scroll-snap-align: start;
}

.two-column {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 26px;
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 14px;
  border-radius: 24px;
}

.rank-item a {
  display: grid;
  grid-template-columns: 42px 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 18px;
  transition: background 0.2s ease;
}

.rank-item a:hover {
  background: #fff1f7;
}

.rank-number {
  color: var(--pink);
  font-size: 20px;
  font-weight: 900;
}

.rank-item img {
  width: 70px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  background: #ffe4ef;
}

.rank-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 900;
}

.rank-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.page-hero {
  min-height: 360px;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(236, 72, 153, 0.28), transparent 32rem),
    linear-gradient(135deg, #fff1f7 0%, #fff7ed 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 68px 0;
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: #8a7682;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--pink);
}

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

.category-overview-card {
  overflow: hidden;
  border-radius: 28px;
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px;
  background: linear-gradient(135deg, #ffe4ef, #fff7ed);
}

.category-preview img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  background: #fff;
}

.category-overview-body {
  padding: 22px;
}

.category-overview-body h2 {
  margin: 8px 0;
  font-size: 26px;
}

.category-overview-body p {
  color: var(--muted);
  line-height: 1.75;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.2fr 220px 260px;
  gap: 18px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 24px;
}

.filter-panel label {
  display: block;
  margin-bottom: 8px;
  color: #6d6370;
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.sort-buttons {
  display: flex;
  gap: 8px;
}

.sort-buttons button {
  height: 46px;
  flex: 1;
  border: 0;
  border-radius: 14px;
  color: #6d6370;
  background: #fff1f7;
  font-weight: 900;
  cursor: pointer;
}

.sort-buttons button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
}

.detail-page {
  padding: 38px 0 0;
}

.detail-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.detail-breadcrumb {
  margin-bottom: 22px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #050308;
  box-shadow: 0 28px 90px rgba(20, 8, 18, 0.36);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(236, 72, 153, 0.22), rgba(5, 3, 8, 0.36)),
    rgba(5, 3, 8, 0.18);
  cursor: pointer;
}

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

.play-overlay span {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pink), var(--rose), var(--orange));
  box-shadow: 0 20px 48px rgba(236, 72, 153, 0.38);
  font-size: 30px;
}

.play-overlay strong {
  font-size: 20px;
  letter-spacing: 0.08em;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
  margin-top: 30px;
  padding: 28px;
  border-radius: 30px;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.detail-content h1 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
}

.detail-meta {
  gap: 10px;
  margin: 16px 0 18px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #be185d;
  background: #ffe4ef;
  font-size: 13px;
  font-weight: 900;
}

.one-line {
  margin: 0 0 22px;
  color: #463640;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 700;
}

.text-block {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.text-block h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.text-block p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.95;
}

.detail-side img {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #ffe4ef;
}

.detail-side dl {
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.detail-side dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.detail-side dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-side dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
}

.search-panel {
  grid-template-columns: 220px 220px;
}

.search-status {
  margin-bottom: 22px;
  color: var(--muted);
  font-weight: 900;
}

.site-footer {
  margin-top: 60px;
  color: #fff;
  background: linear-gradient(135deg, #831843, #be123c, #ea580c);
}

.footer-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 42px;
  padding: 48px 0;
}

.footer-brand {
  color: #fff;
}

.site-footer p {
  max-width: 480px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.8;
}

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

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

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

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

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .hero-poster {
    width: min(360px, 100%);
  }

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

  .two-column,
  .detail-content,
  .footer-shell {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .nav-shell {
    min-height: 66px;
  }

  .brand {
    font-size: 18px;
  }

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

  .hero-content {
    padding: 58px 0 92px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-poster {
    display: none;
  }

  .quick-search-card,
  .section-heading,
  .filter-panel,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
  }

  .big-search {
    flex-direction: column;
    border-radius: 24px;
  }

  .big-search input {
    min-height: 54px;
  }

  .big-search button {
    min-height: 52px;
  }

  .category-grid,
  .movie-grid,
  .editor-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-scroller {
    grid-auto-columns: 82vw;
  }

  .rank-item a {
    grid-template-columns: 34px 58px minmax(0, 1fr);
  }

  .rank-meta {
    display: none;
  }

  .detail-title-row {
    display: block;
  }

  .detail-title-row .primary-button {
    margin-top: 16px;
  }

  .detail-content {
    padding: 18px;
  }

  .play-overlay span {
    width: 68px;
    height: 68px;
  }
}
