:root {
  --rose: #f43f5e;
  --rose-dark: #be123c;
  --pink: #db2777;
  --ink: #111827;
  --muted: #6b7280;
  --line: #f3d8df;
  --soft: #fff1f5;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(190, 18, 60, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7fa 0%, #ffffff 40%, #fff7fa 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  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: 80;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(244, 63, 94, 0.13);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 12px 25px rgba(244, 63, 94, 0.25);
}

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

.main-nav a {
  color: #374151;
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--rose);
}

.global-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(280px, 26vw);
  padding: 6px 8px 6px 14px;
  border: 1px solid #f0c4cf;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.07);
}

.global-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font-size: 14px;
}

.global-search button,
.mobile-toggle {
  border: 0;
  cursor: pointer;
}

.global-search button {
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border-radius: 12px;
  background: #fff1f5;
  color: var(--rose-dark);
  font-size: 24px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid #f8c9d4;
  background: #fff;
  padding: 14px 20px 20px;
}

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

.mobile-panel a {
  display: block;
  padding: 10px 0;
  color: #374151;
  font-weight: 650;
}

.page-main {
  min-height: 70vh;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  color: #fff;
  background: #17111f;
}

.hero-slide {
  display: none;
  min-height: 690px;
  position: relative;
  isolation: isolate;
}

.hero-slide.is-active {
  display: block;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
  transform: scale(1.04);
  filter: saturate(1.07);
  z-index: -3;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 75% 20%, rgba(244, 63, 94, 0.36), transparent 36%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.78) 45%, rgba(17, 24, 39, 0.32) 100%);
}

.hero-content {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 690px;
  padding: 84px 20px 74px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) 430px;
  align-items: center;
  gap: 60px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #ffe4e6;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hero-title {
  margin: 0;
  max-width: 780px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-desc {
  max-width: 760px;
  margin: 24px 0 0;
  color: #ffe4e6;
  font-size: 18px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-tags span,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff1f5;
  color: var(--rose-dark);
  font-size: 13px;
  font-weight: 700;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 18px 36px rgba(244, 63, 94, 0.34);
}

.btn-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

.btn-soft {
  color: var(--rose-dark);
  background: #fff1f5;
}

.hero-poster-card {
  position: relative;
  border-radius: 32px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
}

.hero-poster-card img {
  aspect-ratio: 3 / 4.1;
  object-fit: cover;
  border-radius: 24px;
}

.hero-poster-meta {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(17, 24, 39, 0.74);
  backdrop-filter: blur(12px);
}

.hero-poster-meta strong {
  display: block;
  font-size: 18px;
}

.hero-poster-meta span {
  color: #fecdd3;
  font-size: 13px;
}

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

.hero-dot {
  width: 42px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #fff;
}

.section {
  padding: 64px 0;
}

.section.alt {
  background: linear-gradient(180deg, #fff 0%, #fff1f5 100%);
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 720px;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid rgba(244, 63, 94, 0.13);
  box-shadow: 0 12px 32px rgba(190, 18, 60, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fff1f5;
}

.poster-link img {
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.movie-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  font-size: 12px;
  font-weight: 800;
}

.movie-type {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, 0.68);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--rose-dark);
  font-size: 13px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.32;
}

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

.movie-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 24px;
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.25), transparent 28%),
    linear-gradient(135deg, #be123c, #db2777 48%, #7c2d12);
  box-shadow: var(--shadow);
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 23px;
}

.category-card p {
  margin: 0;
  color: #ffe4e6;
}

.category-card span {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(150px, 0.6fr));
  gap: 12px;
  padding: 16px;
  margin-bottom: 26px;
  border: 1px solid #f7c8d2;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 34px rgba(244, 63, 94, 0.08);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #f1c5cf;
  outline: 0;
  border-radius: 16px;
  padding: 12px 14px;
  color: #111827;
  background: #fff;
}

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

.filter-empty {
  display: none;
  padding: 28px;
  border-radius: 22px;
  color: #9f1239;
  background: #fff1f5;
  text-align: center;
  font-weight: 800;
}

.filter-empty.is-visible {
  display: block;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 86px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(244, 63, 94, 0.13);
  box-shadow: 0 10px 28px rgba(190, 18, 60, 0.07);
}

.rank-num {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  font-weight: 900;
}

.rank-item img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.rank-item h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.rank-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.breadcrumb a {
  color: var(--rose-dark);
  font-weight: 750;
}

.detail-hero {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin-bottom: 44px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
  background: #fff1f5;
}

.detail-poster img {
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
}

.detail-title {
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.meta-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff1f5;
  color: var(--rose-dark);
  font-weight: 800;
  font-size: 14px;
}

.player-shell {
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.28);
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #05060a;
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.24), rgba(17, 24, 39, 0.68));
  z-index: 2;
}

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

.play-button {
  width: 94px;
  height: 94px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  font-size: 34px;
  box-shadow: 0 20px 44px rgba(244, 63, 94, 0.34);
}

.player-caption {
  padding: 18px 22px;
  color: #ffe4e6;
  font-weight: 800;
}

.content-card {
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 14px 40px rgba(190, 18, 60, 0.07);
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

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

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.aside-card {
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(180deg, #fff1f5, #fff);
  border: 1px solid #f7c8d2;
}

.aside-card h2 {
  margin-top: 0;
}

.related-compact {
  display: grid;
  gap: 12px;
}

.related-compact a {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-compact img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.related-compact strong {
  display: block;
  line-height: 1.35;
}

.related-compact span {
  color: var(--muted);
  font-size: 13px;
}

.page-banner {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18), transparent 26%),
    linear-gradient(135deg, #111827, #be123c 52%, #db2777);
}

.page-banner h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

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

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

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

.footer-title {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 10px;
}

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

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

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

@media (max-width: 1080px) {
  .main-nav,
  .header-inner > .global-search {
    display: none;
  }

  .mobile-panel .global-search {
    display: flex;
    width: 100%;
    margin-bottom: 12px;
  }

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

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

  .hero-poster-card {
    max-width: 420px;
  }

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

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

@media (max-width: 760px) {
  .logo {
    font-size: 19px;
  }

  .hero-slider,
  .hero-slide,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    padding: 58px 20px 82px;
    gap: 32px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-poster-card {
    display: none;
  }

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

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

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

  .rank-item {
    grid-template-columns: 46px 76px minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .content-card {
    padding: 22px;
  }
}
