:root {
  --bg: #fff7fb;
  --surface: #ffffff;
  --surface-soft: #fff1f5;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f4d9e3;
  --primary: #ec4899;
  --primary-dark: #be185d;
  --rose: #fb7185;
  --amber: #f59e0b;
  --shadow: 0 20px 50px rgba(190, 24, 93, 0.13);
  --shadow-soft: 0 14px 34px rgba(31, 41, 55, 0.09);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.12), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #ffffff 100%);
  color: var(--text);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(244, 217, 227, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(31, 41, 55, 0.08);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--rose));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.32);
  transform: translateZ(0);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-title {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: linear-gradient(90deg, var(--primary), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: #4b5563;
  transition: color 0.24s ease, background 0.24s ease, transform 0.24s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary-dark);
  background: #ffe4ef;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff1f5;
  color: var(--primary-dark);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 28px;
  min-height: clamp(540px, 68vh, 760px);
  border-radius: 36px;
  overflow: hidden;
  background: #111827;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.36) 52%, rgba(17, 24, 39, 0.12)),
    radial-gradient(circle at 10% 15%, rgba(251, 113, 133, 0.46), transparent 30rem);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.02);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 48px));
  padding: clamp(42px, 7vw, 92px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.13);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-kicker {
  color: #ffe4ef;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero h1,
.hero h2 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 8vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.hero h1 span {
  display: block;
  margin-top: 14px;
  font-size: clamp(28px, 5vw, 58px);
  color: #ffe4ef;
}

.hero p {
  margin: 0 0 28px;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.85;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--rose));
  box-shadow: 0 16px 30px rgba(236, 72, 153, 0.34);
}

.btn-light {
  color: #9d174d;
  background: #ffffff;
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(14px);
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: clamp(28px, 7vw, 92px);
  bottom: 30px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  transition: background 0.24s ease, transform 0.24s ease;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: inline-flex;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  padding: 0;
}

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

.hero-arrow:hover,
.hero-dot:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.34);
}

.quick-search,
.content-section,
.page-hero,
.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-search-inner,
.page-hero,
.content-section,
.detail-hero {
  border-radius: var(--radius);
}

.quick-search-inner {
  padding: clamp(24px, 4vw, 38px);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

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

.quick-search h2 {
  font-size: clamp(26px, 4vw, 42px);
}

.quick-search p,
.page-hero p {
  color: var(--muted);
  line-height: 1.85;
}

.filter-panel {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.search-box input {
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 18px;
  outline: none;
  color: var(--text);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px transparent;
  transition: border 0.24s ease, box-shadow 0.24s ease;
}

.search-box input:focus {
  border-color: rgba(236, 72, 153, 0.48);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.filter-chips,
.tag-row,
.card-tags,
.info-strip,
.aside-info,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filter-chip,
.tag,
.card-meta span,
.aside-info span,
.info-strip span {
  border: 0;
  border-radius: 999px;
  background: #fff1f5;
  color: #9d174d;
  font-size: 13px;
  font-weight: 800;
}

.filter-chip {
  min-height: 42px;
  padding: 0 14px;
  cursor: pointer;
  transition: transform 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--rose));
  transform: translateY(-1px);
}

.content-section {
  padding: clamp(44px, 6vw, 76px) 0;
}

.soft-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(180deg, rgba(255, 241, 245, 0.72), rgba(255, 255, 255, 0));
}

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

.section-heading h2 {
  margin-top: 12px;
  font-size: clamp(28px, 4vw, 42px);
}

.section-more {
  color: var(--primary-dark);
  font-weight: 900;
  padding: 10px 14px;
  border-radius: 999px;
  background: #ffe4ef;
}

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

.compact-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

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

.movie-card {
  min-width: 0;
}

.card-link {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(244, 217, 227, 0.68);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.card-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #ffe4e6);
}

.movie-card-wide .card-poster,
.movie-grid:not(.compact-grid) .movie-card:nth-child(4n + 1) .card-poster {
  aspect-ratio: 16 / 10;
}

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

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

.card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(17, 24, 39, 0.7));
}

.card-region,
.rank-badge,
.card-play {
  position: absolute;
  z-index: 2;
}

.card-region {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(236, 72, 153, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--rose));
  font-weight: 900;
}

.card-play {
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.card-body {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.card-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta span,
.tag,
.aside-info span,
.info-strip span {
  padding: 6px 9px;
}

.card-tags {
  min-height: 28px;
}

.tag {
  background: #fff7ed;
  color: #9a3412;
}

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

.category-tile,
.category-overview-card a {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 10rem),
    linear-gradient(135deg, var(--primary), var(--rose));
  box-shadow: 0 18px 34px rgba(236, 72, 153, 0.26);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover,
.category-overview-card a:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 42px rgba(236, 72, 153, 0.32);
}

.category-tile span,
.category-overview-card h2 {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.category-tile p,
.category-overview-card p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.category-overview-card a {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.category-overview-card .eyebrow {
  color: var(--primary-dark);
  background: #ffe4ef;
}

.category-overview-card p {
  color: var(--muted);
}

.page-hero {
  margin-top: 34px;
  padding: clamp(36px, 6vw, 68px);
  background:
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.2), transparent 28rem),
    linear-gradient(135deg, #ffffff, #fff1f5);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.page-hero h1 {
  margin-top: 14px;
  font-size: clamp(36px, 6vw, 64px);
}

.page-hero p {
  max-width: 780px;
  font-size: 18px;
}

.rank-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 20%, rgba(251, 113, 133, 0.42), transparent 22rem),
    linear-gradient(135deg, #111827, #831843 60%, #e11d48);
}

.rank-hero .eyebrow {
  color: #ffe4ef;
  background: rgba(255, 255, 255, 0.16);
}

.rank-hero p {
  color: rgba(255, 255, 255, 0.84);
}

.detail-hero {
  margin-top: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--primary-dark);
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: stretch;
}

.player-card,
.detail-aside,
.detail-main {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.player-card {
  padding: 12px;
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #111827;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.55));
}

.play-overlay[hidden] {
  display: none;
}

.play-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--rose));
  box-shadow: 0 22px 44px rgba(236, 72, 153, 0.42);
  font-size: 34px;
  padding-left: 5px;
  transition: transform 0.24s ease;
}

.play-overlay:hover .play-icon {
  transform: scale(1.06);
}

.detail-aside {
  padding: 14px;
  align-self: stretch;
}

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

.aside-info {
  margin-top: 12px;
}

.detail-content {
  padding-top: 32px;
}

.detail-main {
  padding: clamp(24px, 4vw, 46px);
}

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

.lead-text {
  color: #4b5563;
  font-size: 20px;
  line-height: 1.85;
}

.detail-main h2 {
  margin: 34px 0 16px;
  font-size: 26px;
}

.prose p {
  margin: 0 0 16px;
  color: #4b5563;
  line-height: 2;
  font-size: 17px;
}

.info-strip {
  margin-top: 22px;
}

.empty-state {
  margin-top: 28px;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}

.site-footer {
  margin-top: 32px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937 52%, #831843);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
}

.site-footer p {
  margin: 0;
  max-width: 520px;
  line-height: 1.8;
  color: #d1d5db;
}

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

.footer-links {
  display: grid;
  gap: 9px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  font-size: 14px;
}

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

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

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

  .detail-aside {
    display: none;
  }
}

@media (max-width: 820px) {
  .header-inner {
    height: 68px;
  }

  .brand-subtitle {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
  }

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

  .hero {
    min-height: 680px;
    border-radius: 26px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.38), rgba(17, 24, 39, 0.88));
  }

  .hero-copy {
    justify-content: end;
    width: 100%;
    padding: 32px 24px 96px;
  }

  .hero-controls {
    left: 24px;
    bottom: 24px;
  }

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

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

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

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

@media (max-width: 520px) {
  .header-inner,
  .hero,
  .quick-search,
  .content-section,
  .page-hero,
  .detail-hero,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

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

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .hero {
    margin-top: 16px;
    min-height: 620px;
  }

  .hero h1,
  .hero h2 {
    font-size: 40px;
  }

  .hero h1 span {
    font-size: 30px;
  }

  .btn {
    width: 100%;
  }

  .movie-grid,
  .compact-grid,
  .rank-grid {
    grid-template-columns: 1fr;
  }

  .card-poster,
  .movie-card-wide .card-poster,
  .movie-grid:not(.compact-grid) .movie-card:nth-child(4n + 1) .card-poster {
    aspect-ratio: 16 / 10;
  }

  .detail-main {
    padding: 22px;
  }
}
