:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-50: #fdf2f8;
  --pink-100: #fce7f3;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --orange-50: #fff7ed;
  --amber-50: #fffbeb;
  --blue-50: #eff6ff;
  --cyan-50: #ecfeff;
  --green-50: #f0fdf4;
  --text: #111827;
  --muted: #6b7280;
  --line: #f3d7df;
  --card: #ffffff;
  --shadow: 0 24px 60px rgba(190, 24, 93, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--pink-50), #ffffff 45%, var(--rose-50));
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(244, 63, 94, 0.14);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 14px 28px rgba(225, 29, 72, 0.28);
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 9px 12px;
  color: #4b5563;
  font-weight: 700;
  border-radius: 999px;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--rose-600);
  background: var(--rose-50);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--rose-50);
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--rose-600);
  border-radius: 99px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #db2777, #f43f5e 48%, #be123c);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  filter: blur(46px);
  mix-blend-mode: overlay;
  animation: blob 8s ease-in-out infinite;
}

.hero::before {
  top: 60px;
  left: 8%;
}

.hero::after {
  right: 7%;
  bottom: 30px;
  animation-delay: 2.4s;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 72px 0 64px;
}

.hero-topline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-weight: 700;
}

.hero-title {
  max-width: 860px;
  margin: 22px 0 16px;
  font-size: clamp(34px, 7vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.hero-desc {
  max-width: 740px;
  margin: 0 0 26px;
  color: #ffe4e6;
  font-size: clamp(17px, 2vw, 23px);
}

.hero-actions,
.card-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-ghost,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.22s ease;
}

.btn-primary {
  color: var(--rose-600);
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(76, 5, 25, 0.18);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--pink-50);
}

.btn-ghost {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.76);
}

.btn-ghost:hover {
  color: var(--rose-600);
  background: #ffffff;
}

.btn-soft {
  color: var(--rose-600);
  background: var(--rose-50);
}

.hero-stage {
  margin-top: 42px;
  position: relative;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: 32px;
  align-items: center;
  min-height: 360px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 26px 80px rgba(76, 5, 25, 0.18);
  backdrop-filter: blur(18px);
}

.hero-slide.is-active {
  display: grid;
  animation: fadeIn 0.55s ease both;
}

.hero-copy h2 {
  margin: 12px 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
}

.hero-copy p {
  margin: 0 0 22px;
  color: #fff1f2;
  font-size: 18px;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-kicker span,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  color: var(--rose-600);
  background: var(--rose-50);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 26px;
  box-shadow: 0 22px 58px rgba(76, 5, 25, 0.28);
}

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

.hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.42));
}

.hero-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

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

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

.section {
  padding: 58px 0;
}

.section-soft {
  background: linear-gradient(90deg, var(--blue-50), var(--cyan-50));
}

.section-warm {
  background: linear-gradient(135deg, var(--orange-50), var(--amber-50));
}

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

.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

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

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

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

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

.movie-card,
.category-card,
.info-card,
.related-card,
.rank-panel {
  background: var(--card);
  border: 1px solid rgba(244, 63, 94, 0.11);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.movie-card {
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 68px rgba(190, 24, 93, 0.18);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--pink-100), var(--rose-100));
}

.movie-card-wide .poster-wrap {
  aspect-ratio: 16 / 9;
}

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

.movie-card:hover img,
.related-card:hover img {
  transform: scale(1.07);
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  color: #ffffff;
  background: var(--pink-500);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

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

.movie-title {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.28;
  font-weight: 800;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 45px;
  margin: 12px 0;
  overflow: hidden;
  color: #4b5563;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-600));
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #f97316, #f59e0b);
}

.category-card:nth-child(4n) {
  background: linear-gradient(135deg, #22c55e, #10b981);
}

.category-card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 24px 54px rgba(17, 24, 39, 0.18);
}

.category-icon {
  font-size: 42px;
}

.category-card h2,
.category-card h3 {
  margin: 12px 0 8px;
  font-size: 24px;
}

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

.rank-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.5fr);
  gap: 26px;
}

.rank-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rank-item a {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 64px;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #f3f4f6;
}

.rank-item a:hover {
  background: var(--rose-50);
}

.rank-num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  font-weight: 900;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
}

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

.rank-year {
  color: var(--muted);
  text-align: right;
}

.filter-panel {
  margin-bottom: 26px;
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.filter-head {
  margin-bottom: 18px;
}

.filter-head h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.filter-head p {
  margin: 0;
  color: var(--muted);
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 160px 170px 110px;
  gap: 12px;
}

.filter-controls input,
.filter-controls select,
.filter-controls button {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #f3cbd6;
  border-radius: 16px;
  background: #fff;
}

.filter-controls button {
  color: #ffffff;
  border: 0;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
}

.page-hero {
  padding: 58px 0;
  color: #ffffff;
  background: linear-gradient(120deg, var(--pink-600), var(--rose-500), #be123c);
}

.page-hero h1 {
  max-width: 900px;
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #ffe4e6;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: #ffe4e6;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #0f172a;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.72));
  pointer-events: auto;
}

.player-cover.is-hidden {
  display: none;
}

.play-button {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 18px 44px rgba(225, 29, 72, 0.42);
  font-size: 26px;
  transition: 0.2s ease;
}

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

.detail-card,
.sidebar-card {
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-card h2,
.sidebar-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.detail-card p {
  margin: 0 0 16px;
  color: #374151;
}

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

.detail-meta span {
  padding: 8px 12px;
  color: #4b5563;
  background: #f9fafb;
  border-radius: 999px;
  font-weight: 700;
}

.side-poster {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 2 / 3;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--pink-100), var(--rose-100));
}

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

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

.related-card a {
  display: block;
}

.related-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-card span {
  display: block;
  padding: 12px;
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pagination-note {
  color: var(--muted);
  margin: 12px 0 0;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  padding: 42px 0;
}

.footer-brand {
  color: #ffffff;
  font-size: 20px;
}

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

.site-footer p {
  max-width: 430px;
  margin: 12px 0 0;
}

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

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

.footer-bottom {
  padding: 18px 16px;
  color: #9ca3af;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.no-match {
  display: none;
  padding: 26px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(24px, -32px) scale(1.04);
  }
  66% {
    transform: translate(-20px, 26px) scale(0.96);
  }
}

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-toggle {
    display: block;
  }

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

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

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

@media (max-width: 620px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .header-inner {
    min-height: 66px;
  }

  .site-nav {
    top: 66px;
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 48px 0;
  }

  .hero-slide {
    padding: 16px;
    border-radius: 24px;
  }

  .section {
    padding: 42px 0;
  }

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

  .grid-featured,
  .grid-poster,
  .grid-wide,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

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