:root {
  --rose: #f43f5e;
  --rose-deep: #be123c;
  --pink: #db2777;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #f8fafc;
  --dark: #0f172a;
  --shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7fb 0, #f8fafc 34rem, #ffffff 100%);
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.26);
  font-size: 13px;
}

.logo-text {
  max-width: 13em;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.nav-link,
.mobile-nav-link {
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: #f3f4f6;
  border: 1px solid transparent;
  border-radius: 999px;
}

.header-search:focus-within,
.mobile-search:focus-within {
  border-color: rgba(244, 63, 94, 0.35);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.header-search input,
.mobile-search input {
  width: 190px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 7px 10px 7px 14px;
  color: var(--ink);
}

.header-search button,
.mobile-search button,
.primary-button,
.ghost-button,
.text-button,
.filter-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.header-search button,
.mobile-search button,
.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.28);
}

.header-search button,
.mobile-search button {
  padding: 8px 16px;
}

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

.primary-button:hover,
.header-search button:hover,
.mobile-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(244, 63, 94, 0.36);
}

.ghost-button {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.1);
}

.ghost-button:hover {
  color: var(--rose);
  background: #fff;
  transform: translateY(-2px);
}

.text-button {
  color: var(--rose);
  background: #fff1f2;
}

.text-button:hover {
  transform: translateY(-2px);
  background: #ffe4e6;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff1f2;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--rose);
}

.mobile-nav {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-nav nav {
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

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

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #fff;
  background: #881337;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 38%, rgba(255, 255, 255, 0.24), transparent 22rem), linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.4));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  padding: 94px 0 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1280px;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 690px;
  margin: 0 0 24px;
  color: #ffe4e6;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.eyebrow {
  width: fit-content;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero-tags,
.meta-pills,
.card-meta-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags {
  margin-bottom: 34px;
}

.hero-tags span,
.hero-tags a,
.meta-pills span,
.meta-pills a,
.card-meta-pills span,
.card-meta-pills a {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.92rem;
  font-weight: 750;
}

.hero-tags span,
.hero-tags a {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.hero-poster {
  position: absolute;
  z-index: 3;
  right: max(5vw, 52px);
  top: 50%;
  width: min(340px, 26vw);
  transform: translateY(-50%) rotate(3deg);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(15, 23, 42, 0.45);
}

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

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

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

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

.section,
.page-section {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.section-title,
.page-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-title h2,
.page-title-row h1,
.detail-content h2,
.related-section h2,
.player-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 3.5vw, 2.65rem);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

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

.feature-card {
  margin-top: -70px;
  position: relative;
  z-index: 8;
  width: min(1280px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
  padding: clamp(24px, 4vw, 42px);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.feature-copy h2 {
  margin: 12px 0 12px;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 1.12;
}

.feature-copy p {
  margin: 0 0 16px;
  color: var(--muted);
}

.feature-media {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}

.feature-media img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.badge-gradient {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--rose), var(--pink));
}

.topic-band {
  margin: 0 auto;
  padding: 70px 0;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.topic-band-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.topic-head {
  text-align: center;
  margin-bottom: 32px;
}

.topic-head h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  letter-spacing: -0.05em;
}

.topic-head p {
  margin: 0;
  color: #dbeafe;
  font-size: 1.12rem;
}

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

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

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

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

.movie-card,
.category-card,
.rank-list-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover,
.category-card:hover,
.rank-list-card:hover {
  transform: translateY(-7px);
  border-color: rgba(244, 63, 94, 0.35);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f2, #e0f2fe);
}

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.76));
}

.poster-type,
.rank-badge,
.poster-play {
  position: absolute;
  z-index: 3;
}

.poster-type {
  left: 12px;
  top: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(244, 63, 94, 0.92);
  font-weight: 800;
  font-size: 0.82rem;
}

.rank-badge {
  left: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(244, 63, 94, 0.35);
}

.poster-play {
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.16);
}

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

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

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

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

.movie-card p {
  margin: 0 0 14px;
  min-height: 3.2em;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.tag-row span,
.tag-row a {
  padding: 5px 8px;
  border-radius: 999px;
  color: #be123c;
  background: #fff1f2;
  font-size: 0.78rem;
  font-weight: 800;
}

.filter-panel {
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.filter-panel form {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.filter-panel input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  outline: 0;
  background: #fff;
}

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

.filter-panel button[type="submit"] {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  font-weight: 800;
  padding: 0 20px;
  cursor: pointer;
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  padding: 9px 14px;
  color: #374151;
  background: #f3f4f6;
}

.filter-button:hover,
.filter-button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #9f1239, #db2777 55%, #2563eb);
}

.page-hero-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

.page-hero h1 {
  max-width: 850px;
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #ffe4e6;
  font-size: 1.08rem;
}

.category-card {
  position: relative;
  padding: 26px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-card::before {
  content: "";
  position: absolute;
  right: -50px;
  top: -50px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.18), rgba(37, 99, 235, 0.14));
}

.category-card h2 {
  position: relative;
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.category-card p {
  position: relative;
  color: var(--muted);
}

.category-samples {
  position: relative;
  display: flex;
  gap: 8px;
  margin: 16px 0 20px;
}

.category-samples img {
  width: 58px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}

.detail-hero {
  color: #fff;
  background: radial-gradient(circle at 74% 30%, rgba(255, 255, 255, 0.16), transparent 22rem), linear-gradient(135deg, #881337, #be185d 58%, #111827);
}

.detail-hero-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 76px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  color: #fecdd3;
  font-size: 0.94rem;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.42);
}

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

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.detail-copy .lead {
  max-width: 850px;
  margin: 0 0 24px;
  color: #ffe4e6;
  font-size: 1.15rem;
}

.meta-pills {
  margin-bottom: 28px;
}

.meta-pills span,
.meta-pills a {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.player-section,
.detail-content,
.related-section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.player-card {
  margin-top: 22px;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.28);
}

.player-frame {
  position: relative;
  background: #020617;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.76));
  cursor: pointer;
}

.player-frame.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.player-icon {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--rose);
  background: #fff;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.28);
  font-size: 26px;
}

.player-overlay strong {
  max-width: 86%;
  text-align: center;
  font-size: clamp(1.1rem, 2.6vw, 1.8rem);
}

.detail-content {
  display: grid;
  gap: 26px;
}

.content-card {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.content-card h2 {
  margin-bottom: 16px;
}

.content-card p {
  margin: 0;
  color: #374151;
  font-size: 1.04rem;
}

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

.info-item {
  padding: 18px;
  border-radius: 18px;
  background: #f8fafc;
}

.info-item span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.info-item strong {
  display: block;
  margin-top: 6px;
}

.empty-state {
  padding: 26px;
  border-radius: 20px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

[hidden] {
  display: none !important;
}

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

  .menu-toggle {
    display: block;
  }

  .site-header-inner {
    gap: 14px;
  }

  .header-search {
    margin-left: auto;
  }

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

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

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

  .hero-carousel,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    padding-top: 80px;
    justify-content: start;
  }

  .hero-poster {
    top: auto;
    right: 50%;
    bottom: 72px;
    width: min(250px, 70vw);
    transform: translateX(50%) rotate(0deg);
  }

  .feature-card,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

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

  .section-title,
  .page-title-row {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header-inner,
  .mobile-nav,
  .section,
  .page-section,
  .topic-band-inner,
  .page-hero-inner,
  .detail-hero-inner,
  .player-section,
  .detail-content,
  .related-section,
  .feature-card {
    width: min(100% - 22px, 1280px);
  }

  .logo-text {
    max-width: 9em;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-copy h1 {
    letter-spacing: -0.045em;
  }

  .hero-actions,
  .filter-panel form {
    flex-direction: column;
  }

  .primary-button,
  .ghost-button,
  .text-button,
  .filter-panel button[type="submit"] {
    width: 100%;
  }

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

  .movie-card p {
    min-height: auto;
  }

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

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 34px;
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 30px;
}

.footer-logo {
  color: #fff;
  margin-bottom: 14px;
}

.footer-brand p,
.site-footer li {
  color: #94a3b8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1rem;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 18px 16px;
  color: #94a3b8;
  text-align: center;
}
