:root {
  --bg: #fff7fb;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #f3dbe6;
  --primary: #f43f5e;
  --primary-dark: #be123c;
  --secondary: #ec4899;
  --shadow: 0 20px 55px rgba(190, 18, 60, 0.16);
  --shadow-soft: 0 10px 28px rgba(17, 24, 39, 0.08);
  --radius: 22px;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(244, 63, 94, 0.18), transparent 34rem),
    radial-gradient(circle at 92% 12%, rgba(236, 72, 153, 0.15), transparent 30rem),
    linear-gradient(180deg, #fff7fb 0%, #ffffff 44%, #fff7fb 100%);
}

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 rgba(244, 63, 94, 0.12);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-weight: 900;
  letter-spacing: -0.03em;
}

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

.desktop-nav,
.mobile-panel-grid,
.mobile-category-grid,
.footer-links,
.footer-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-link,
.mobile-category-link,
.footer-links a,
.footer-category-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-category-link:hover,
.mobile-category-link.is-active {
  color: var(--primary-dark);
  background: rgba(244, 63, 94, 0.1);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(244, 63, 94, 0.1);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--primary-dark);
}

.mobile-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.mobile-category-grid {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

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

.hero-section {
  position: relative;
  min-height: 560px;
  margin: 28px auto 56px;
  overflow: hidden;
  border-radius: 34px;
  background: #120812;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.72fr);
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 70px);
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(18, 8, 18, 0.94) 0%, rgba(18, 8, 18, 0.74) 48%, rgba(18, 8, 18, 0.46) 100%),
    radial-gradient(circle at 18% 20%, rgba(244, 63, 94, 0.36), transparent 30rem),
    radial-gradient(circle at 78% 30%, rgba(236, 72, 153, 0.28), transparent 26rem);
}

.hero-copy,
.hero-art {
  position: relative;
  z-index: 2;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffe4ee;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 800;
}

.section-kicker {
  color: var(--primary-dark);
  border-color: rgba(244, 63, 94, 0.18);
  background: rgba(244, 63, 94, 0.09);
}

.hero-copy h1 {
  max-width: 760px;
  margin: 22px 0 18px;
  color: #fff;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions,
.detail-actions,
.tag-row,
.hero-tags,
.detail-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions,
.detail-actions,
.hero-tags {
  margin-top: 24px;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 16px 28px rgba(244, 63, 94, 0.24);
}

.btn-light {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.btn-secondary {
  color: var(--primary-dark);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover,
.btn-light:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

.hero-tags span,
.tag-row span,
.detail-tag-row span,
.meta-pill,
.poster-badge,
.category-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  white-space: nowrap;
}

.hero-tags span {
  padding: 8px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.hero-art {
  display: grid;
  justify-items: center;
}

.hero-poster {
  width: min(360px, 100%);
  aspect-ratio: 4 / 5.35;
  border-radius: 30px;
  object-fit: cover;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
  transform: rotate(2.5deg);
}

.hero-mini-card {
  width: min(330px, 92%);
  margin-top: -56px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.hero-mini-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.hero-mini-card span {
  color: rgba(255, 255, 255, 0.78);
}

.hero-controls {
  position: absolute;
  left: clamp(28px, 5vw, 70px);
  bottom: 28px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 30px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section-block {
  margin: 56px 0;
}

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

.section-heading h2,
.page-title h1,
.detail-copy h1 {
  margin: 0;
  letter-spacing: -0.04em;
}

.section-heading h2,
.page-title h1 {
  font-size: clamp(30px, 4vw, 44px);
}

.section-heading p,
.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.text-link {
  color: var(--primary-dark);
  font-weight: 900;
}

.category-grid,
.movie-grid {
  display: grid;
  gap: 18px;
}

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

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

.category-card,
.movie-card,
.content-card,
.side-card,
.feature-card,
.ranking-item {
  border: 1px solid rgba(244, 63, 94, 0.12);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 156px;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #fff, #fff5fa);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -48px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.18), rgba(236, 72, 153, 0.08));
}

.category-card h3,
.category-card p,
.category-card .tag-row {
  position: relative;
  z-index: 1;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(244, 63, 94, 0.28);
  box-shadow: 0 22px 38px rgba(17, 24, 39, 0.12);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5.2;
  background: #fff1f6;
}

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

.movie-card:hover .poster-link img,
.ranking-item:hover img {
  transform: scale(1.06);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(17, 24, 39, 0.72) 100%);
}

.poster-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(244, 63, 94, 0.92);
  font-size: 13px;
  font-weight: 900;
}

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

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

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

.movie-card p {
  min-height: 50px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
}

.tag-row span,
.detail-tag-row span,
.category-pill {
  padding: 6px 10px;
  color: var(--primary-dark);
  background: rgba(244, 63, 94, 0.09);
  font-size: 12px;
  font-weight: 800;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  margin: 28px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.filter-bar label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--text);
  background: #fff;
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(244, 63, 94, 0.45);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.1);
}

.page-title {
  margin: 40px 0 18px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 241, 246, 0.94));
  box-shadow: var(--shadow-soft);
}

.category-hero-list {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  margin-top: 24px;
}

.feature-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 16px;
  border-radius: 24px;
}

.feature-card img {
  width: 100%;
  aspect-ratio: 4 / 5.2;
  border-radius: 18px;
  object-fit: cover;
}

.feature-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.7;
}

.ranking-list {
  display: grid;
  gap: 14px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 56px 96px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
}

.ranking-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-weight: 900;
}

.ranking-thumb {
  overflow: hidden;
  border-radius: 16px;
}

.ranking-thumb img {
  width: 96px;
  height: 122px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.ranking-copy h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.ranking-copy p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.65;
}

.ranking-item strong {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: rgba(244, 63, 94, 0.1);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 34px;
  align-items: center;
  margin: 36px 0;
  padding: clamp(22px, 4vw, 44px);
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 22% 20%, rgba(244, 63, 94, 0.38), transparent 28rem),
    linear-gradient(135deg, #140812, #2a1020 48%, #4c1232);
  box-shadow: var(--shadow);
}

.detail-poster {
  width: 100%;
  aspect-ratio: 4 / 5.2;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: #fff;
}

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
}

.detail-copy .lead {
  max-width: 820px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.74);
}

.meta-pill {
  padding: 8px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.detail-tag-row {
  margin-top: 18px;
}

.detail-tag-row span {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

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

.content-card,
.side-card {
  border-radius: 28px;
}

.content-card {
  padding: clamp(22px, 4vw, 36px);
}

.content-card h2,
.side-card h2,
.player-section h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.content-card p {
  margin: 0 0 20px;
  color: #374151;
  line-height: 1.95;
  font-size: 17px;
}

.side-card {
  position: sticky;
  top: 94px;
  padding: 18px;
}

.side-link {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.side-link:first-of-type {
  border-top: 0;
}

.side-link img {
  width: 72px;
  height: 92px;
  border-radius: 14px;
  object-fit: cover;
}

.side-link strong {
  display: block;
  margin-bottom: 4px;
  line-height: 1.35;
}

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

.player-section {
  margin: 40px 0 28px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #0f0a12;
  box-shadow: var(--shadow);
}

.player-section h2 {
  color: #fff;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.player-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.56));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 18px 42px rgba(244, 63, 94, 0.36);
  font-size: 34px;
  transform: translateX(2px);
}

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

.no-result {
  display: none;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

.no-result.is-visible {
  display: block;
}

.site-footer {
  margin-top: 72px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

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

.footer-inner p {
  line-height: 1.75;
}

.footer-links a,
.footer-category-links a {
  background: #fff;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.24);
  cursor: pointer;
}

.back-to-top.is-visible {
  display: block;
}

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

  .mobile-menu-button {
    display: block;
  }

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

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

  .hero-art {
    justify-items: start;
  }

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

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

  .side-card {
    position: static;
  }

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

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

  .hero-section {
    min-height: 700px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 24px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-poster {
    width: 220px;
  }

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

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

  .feature-card,
  .ranking-item {
    grid-template-columns: 1fr;
  }

  .ranking-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 2.5;
  }

  .detail-hero {
    border-radius: 26px;
  }
}
