:root {
  color-scheme: light;
  --page-bg: #fff7fb;
  --paper: rgba(255, 255, 255, 0.92);
  --paper-solid: #ffffff;
  --ink: #24152a;
  --muted: #746171;
  --soft: #fdf2f8;
  --line: rgba(236, 72, 153, 0.16);
  --pink: #ec4899;
  --rose: #f43f5e;
  --orange: #fb923c;
  --purple: #a855f7;
  --shadow: 0 18px 45px rgba(190, 24, 93, 0.12);
  --shadow-strong: 0 30px 80px rgba(190, 24, 93, 0.22);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "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.14), transparent 32rem),
    radial-gradient(circle at 85% 8%, rgba(251, 146, 60, 0.15), transparent 30rem),
    linear-gradient(180deg, #fff7fb 0%, #fffaf7 40%, #ffffff 100%);
  color: var(--ink);
}

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

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

button, input, select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(253, 242, 248, 0.96), rgba(255, 241, 242, 0.96), rgba(255, 247, 237, 0.96));
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(190, 24, 93, 0.08);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.25);
}

.brand-text,
.footer-brand {
  font-size: 22px;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: #59485b;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 4px;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose);
  transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.header-search {
  width: min(330px, 32vw);
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.08);
}

.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 11px 14px;
  color: var(--ink);
  background: transparent;
}

.header-search button,
.primary-btn,
.ghost-btn,
.section-more,
.filter-panel button {
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.header-search button {
  color: white;
  font-weight: 800;
  padding: 11px 18px;
  background: linear-gradient(90deg, var(--pink), var(--rose));
}

.menu-toggle {
  display: none;
  border: 0;
  background: white;
  color: var(--rose);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.12);
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

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

main,
.page-main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-section {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  margin: 30px auto 34px;
  min-height: 560px;
  border-radius: 38px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(236, 72, 153, 0.22), transparent 24rem),
    radial-gradient(circle at 78% 28%, rgba(251, 146, 60, 0.2), transparent 26rem),
    linear-gradient(135deg, #fff1f7, #fff7ed);
  box-shadow: var(--shadow-strong);
}

.hero-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.46;
  pointer-events: none;
}

.hero-glow-one {
  left: -80px;
  top: -100px;
  background: #f9a8d4;
}

.hero-glow-two {
  right: -90px;
  bottom: -120px;
  background: #fed7aa;
}

.hero-carousel {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 34px;
  padding: 58px;
  opacity: 0;
  transform: translateX(28px) scale(0.99);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rose);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 12px;
}

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

.hero-copy p,
.page-hero p {
  margin: 20px 0 0;
  max-width: 720px;
  color: #624d64;
  font-size: 18px;
  line-height: 1.85;
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--rose);
  font-weight: 800;
  border: 1px solid rgba(244, 63, 94, 0.14);
}

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

.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  color: white;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  box-shadow: 0 16px 35px rgba(244, 63, 94, 0.26);
}

.ghost-btn,
.section-more {
  color: var(--rose);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(244, 63, 94, 0.16);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.movie-card:hover,
.category-card:hover,
.mini-card:hover {
  transform: translateY(-3px);
}

.hero-poster {
  position: relative;
  display: block;
  width: min(100%, 390px);
  justify-self: center;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(136, 19, 55, 0.28);
  transform: rotate(2deg);
  background: linear-gradient(135deg, #fce7f3, #ffedd5);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  color: white;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(12px);
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  left: 58px;
  bottom: 42px;
  display: flex;
  gap: 9px;
  z-index: 3;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.25);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 34px;
  background: linear-gradient(90deg, var(--pink), var(--rose));
}

.content-section,
.detail-section {
  margin: 38px 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #ffedd5);
}

.poster-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-frame img {
  transform: scale(1.05);
}

.poster-frame figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: white;
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.35;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18));
  backdrop-filter: blur(10px);
}

.rank-badge,
.mini-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 10px 20px rgba(236, 72, 153, 0.25);
}

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

.movie-title {
  display: block;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 950;
}

.movie-meta {
  color: var(--rose);
  font-size: 13px;
  margin: 8px 0 0;
  font-weight: 800;
}

.movie-brief {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 10px 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  padding: 5px 9px;
  font-size: 12px;
  background: #fff7fb;
}

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

.category-card {
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.16), transparent 9rem),
    linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card strong {
  display: block;
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: 950;
}

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

.category-card span {
  display: inline-flex;
  color: var(--rose);
  font-weight: 900;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

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

.mini-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 26px rgba(190, 24, 93, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 16px;
  background: linear-gradient(135deg, #fce7f3, #ffedd5);
}

.mini-card strong {
  display: block;
  font-size: 16px;
  line-height: 1.35;
}

.mini-card em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.mini-rank {
  position: static;
}

.page-hero {
  width: min(1240px, calc(100% - 32px));
  margin: 32px auto 30px;
  border-radius: 32px;
  padding: 42px;
  background:
    radial-gradient(circle at 15% 10%, rgba(236, 72, 153, 0.16), transparent 24rem),
    linear-gradient(135deg, #fff1f7, #fff7ed);
  box-shadow: var(--shadow);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr repeat(3, minmax(150px, 190px));
  gap: 12px;
  padding: 16px;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.filter-panel input,
.filter-panel select {
  min-width: 0;
  border: 1px solid rgba(244, 63, 94, 0.16);
  border-radius: 16px;
  background: white;
  color: var(--ink);
  padding: 12px 14px;
  outline: none;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  width: min(1240px, calc(100% - 32px));
  margin: 34px auto;
  padding: 32px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.18), transparent 23rem),
    linear-gradient(135deg, #fff1f7, #fff7ed);
  box-shadow: var(--shadow-strong);
}

.detail-cover {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(190, 24, 93, 0.22);
  background: linear-gradient(135deg, #fce7f3, #ffedd5);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(244, 63, 94, 0.14);
  font-weight: 900;
}

.detail-copy p {
  color: #624d64;
  font-size: 17px;
  line-height: 1.85;
}

.breadcrumbs {
  width: min(1240px, calc(100% - 32px));
  margin: 22px auto -10px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--rose);
  font-weight: 800;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #140b14;
  box-shadow: 0 28px 80px rgba(20, 11, 20, 0.3);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f0a0f;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: white;
  background: linear-gradient(0deg, rgba(15, 10, 15, 0.58), rgba(15, 10, 15, 0.28));
  cursor: pointer;
  z-index: 2;
}

.player-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-circle {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  font-size: 34px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 18px 42px rgba(244, 63, 94, 0.34);
}

.player-overlay strong {
  font-size: 22px;
  letter-spacing: 0.08em;
}

.article-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.article-card h2,
.article-card h3 {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 950;
}

.article-card p {
  margin: 0 0 14px;
  color: #5f4d61;
  line-height: 1.95;
  font-size: 16px;
}

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

.site-footer {
  margin-top: 58px;
  padding: 44px 0 28px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), #fff7fb);
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.site-footer h3 {
  margin: 0 0 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: #6b526a;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--rose);
}

.copyright {
  width: min(1240px, calc(100% - 32px));
  margin: 32px auto 0;
  color: var(--muted);
}

.empty-state {
  display: none;
  padding: 34px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(244, 63, 94, 0.28);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.empty-state.show {
  display: block;
}

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

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

  .header-search {
    display: none;
  }
}

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

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

  .hero-section,
  .hero-carousel {
    min-height: 760px;
  }

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

  .hero-controls {
    left: 34px;
    bottom: 28px;
  }

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

  .rank-layout,
  .detail-hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .header-inner,
  main,
  .page-main,
  .page-hero,
  .hero-section,
  .detail-hero,
  .breadcrumbs,
  .footer-grid,
  .copyright {
    width: min(100% - 20px, 1240px);
  }

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

  .hero-section,
  .hero-carousel {
    min-height: 720px;
    border-radius: 26px;
  }

  .hero-slide {
    padding: 24px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-copy p {
    font-size: 15px;
  }

  .hero-poster {
    max-width: 260px;
  }

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

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

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

  .movie-title {
    font-size: 15px;
  }

  .movie-brief {
    -webkit-line-clamp: 2;
    font-size: 13px;
  }

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

  .page-hero,
  .detail-hero,
  .article-card {
    padding: 24px;
    border-radius: 24px;
  }

  .detail-hero {
    gap: 20px;
  }

  .mini-card {
    grid-template-columns: 60px 1fr;
  }

  .mini-card img {
    width: 60px;
    height: 82px;
  }

  .mini-rank {
    display: none;
  }
}
