:root {
  --bg: #fff8fb;
  --surface: #ffffff;
  --surface-soft: #fff1f6;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #ffe1eb;
  --primary: #f43f5e;
  --primary-deep: #be123c;
  --accent: #ec4899;
  --gold: #f59e0b;
  --shadow: 0 18px 45px rgba(190, 18, 60, 0.13);
  --radius: 22px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at top left, #ffe4ef 0, transparent 32rem), var(--bg);
  line-height: 1.65;
}

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);
  border-bottom: 1px solid rgba(255, 225, 235, 0.95);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.25);
}

.brand-text {
  font-size: 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link,
.mobile-nav-link {
  color: #4b5563;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link {
  padding: 9px 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--primary-deep);
  background: #fff1f6;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  border: 1px solid #ffd3e1;
  outline: none;
  background: #fff;
  color: var(--text);
  transition: box-shadow 0.25s ease, border 0.25s ease;
}

.header-search input {
  width: 180px;
  padding: 10px 14px;
  border-radius: 999px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.header-search button,
.mobile-search button,
.filter-panel button,
.primary-btn,
.ghost-btn,
.section-more {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.header-search button,
.mobile-search button,
.filter-panel button,
.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.22);
}

.header-search button {
  padding: 10px 16px;
}

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

.ghost-btn,
.section-more {
  color: var(--primary-deep);
  background: #fff1f6;
}

.header-search button:hover,
.mobile-search button:hover,
.filter-panel button:hover,
.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  color: var(--primary-deep);
  background: #fff1f6;
}

.mobile-nav {
  display: none;
  padding: 0 20px 18px;
  border-top: 1px solid var(--line);
}

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

.mobile-nav-link {
  padding: 12px 14px;
}

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.mobile-search input {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
}

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

.hero-carousel {
  position: relative;
  max-width: 1240px;
  min-height: 640px;
  margin: 28px auto 0;
  border-radius: 34px;
  overflow: hidden;
  color: #fff;
  background: #1f1020;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 28px;
  align-items: center;
  padding: 78px 64px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, #73113c, #2a0c20);
}

.hero-backdrop img {
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: blur(1px) saturate(1.15);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 68% 30%, rgba(244, 63, 94, 0.36), transparent 26rem), linear-gradient(90deg, rgba(31, 16, 32, 0.96), rgba(31, 16, 32, 0.55));
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content .eyebrow {
  color: #ffd6e4;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content h2 {
  margin: 22px 0 12px;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.15;
}

.hero-content p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

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

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, #fb7185, #db2777);
  box-shadow: 0 32px 65px rgba(0, 0, 0, 0.35);
}

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

.hero-dots {
  position: absolute;
  left: 64px;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

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

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

.section-block,
.page-main,
.detail-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 20px 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1,
.detail-content h2,
.category-overview-head h2 {
  margin: 0;
  color: #111827;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading h2 {
  font-size: clamp(26px, 3vw, 40px);
}

.section-heading p,
.page-hero p,
.category-overview-head p,
.site-footer p {
  margin: 8px 0 0;
  color: var(--muted);
}

.center-heading {
  display: block;
  text-align: center;
}

.section-more {
  flex-shrink: 0;
  padding: 11px 18px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 211, 225, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(190, 18, 60, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 63, 94, 0.35);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4ef, #fb7185 52%, #be123c);
}

.poster-frame img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.score-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.score-badge {
  right: 10px;
  bottom: 10px;
  background: linear-gradient(135deg, var(--gold), #f97316);
}

.rank-badge {
  left: 10px;
  top: 10px;
  background: linear-gradient(135deg, #111827, #be123c);
}

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

.movie-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--primary-deep);
}

.movie-meta,
.movie-one-line {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.movie-one-line {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--primary-deep);
  background: #fff1f6;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.category-chip-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.section-block .category-chip-grid,
.page-main > .category-chip-grid {
  padding: 0;
}

.category-chip {
  display: grid;
  gap: 6px;
  padding: 20px;
  border: 1px solid rgba(255, 211, 225, 0.95);
  border-radius: 22px;
  background: linear-gradient(135deg, #fff, #fff1f6);
  box-shadow: 0 12px 28px rgba(190, 18, 60, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-chip strong {
  font-size: 20px;
}

.category-chip span {
  color: var(--muted);
  font-size: 14px;
}

.filter-panel {
  margin: 0 auto 28px;
  padding: 20px;
  border: 1px solid rgba(255, 211, 225, 0.95);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(190, 18, 60, 0.08);
}

.filter-input-wrap input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  font-size: 16px;
}

.filter-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.filter-controls select,
.filter-controls button {
  min-height: 48px;
  border-radius: 14px;
  padding: 0 14px;
}

.filter-result {
  margin: 12px 0 0;
  color: var(--muted);
}

.rose-panel {
  max-width: 1280px;
  margin-top: 56px;
  padding: 42px 20px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 241, 246, 0.88), rgba(255, 255, 255, 0.72));
  box-shadow: inset 0 0 0 1px rgba(255, 211, 225, 0.75);
}

.page-main,
.detail-main {
  padding-top: 30px;
}

.page-hero,
.detail-hero {
  border: 1px solid rgba(255, 211, 225, 0.95);
  border-radius: 30px;
  background: linear-gradient(135deg, #fff, #fff1f6);
  box-shadow: var(--shadow);
}

.compact-hero {
  margin-bottom: 28px;
  padding: clamp(30px, 5vw, 56px);
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 54px);
}

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

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

.category-overview-card {
  margin-top: 34px;
  padding: 26px;
  border: 1px solid rgba(255, 211, 225, 0.95);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 30px rgba(190, 18, 60, 0.08);
}

.category-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 54px);
  padding: clamp(24px, 4vw, 46px);
}

.detail-poster {
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-score {
  right: 16px;
  bottom: 16px;
}

.detail-info h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.detail-one-line {
  margin: 18px 0 0;
  color: #4b5563;
  font-size: 18px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.detail-meta-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.detail-meta-grid dt {
  color: var(--muted);
  font-size: 13px;
}

.detail-meta-grid dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.detail-tags {
  margin-bottom: 26px;
}

.player-section {
  margin-top: 34px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: var(--shadow);
}

.video-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.25), rgba(17, 24, 39, 0.58));
}

.play-overlay span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.24);
  font-size: 34px;
  transform: translateX(3px);
}

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

.detail-content {
  padding-left: 0;
  padding-right: 0;
}

.detail-content h2 {
  margin-top: 0;
  font-size: 28px;
}

.detail-content p {
  margin: 12px 0 26px;
  color: #4b5563;
  font-size: 17px;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, #fff, #fff1f6);
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  margin-bottom: 12px;
}

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

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

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

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

.footer-bottom {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.no-poster {
  background: linear-gradient(135deg, #ffe4ef, #fb7185 52%, #be123c);
}

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

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

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

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

  .hero-slide {
    grid-template-columns: 1fr 260px;
    padding: 58px 38px;
  }

  .hero-dots {
    left: 38px;
  }
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-shell {
    gap: 12px;
  }

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

  .hero-carousel {
    min-height: 760px;
    margin: 16px 14px 0;
    border-radius: 26px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 42px 24px 82px;
  }

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

  .hero-dots {
    left: 24px;
    bottom: 28px;
  }

  .section-heading,
  .category-overview-head {
    display: grid;
    align-items: start;
  }

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

  .category-chip-grid,
  .filter-controls,
  .footer-grid,
  .detail-hero,
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 520px) {
  .section-block,
  .page-main,
  .detail-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .movie-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

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

  .movie-card h3 {
    font-size: 14px;
  }

  .movie-meta,
  .movie-one-line {
    font-size: 12px;
  }

  .tag-row span {
    font-size: 11px;
  }

  .compact-hero,
  .category-overview-card,
  .detail-hero {
    border-radius: 22px;
    padding: 22px;
  }

  .play-overlay span {
    width: 66px;
    height: 66px;
    font-size: 27px;
  }
}
