:root {
  --page: #fff7fb;
  --surface: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fce7f3;
  --accent: #ec4899;
  --accent-dark: #be185d;
  --violet: #8b5cf6;
  --line: #fbcfe8;
  --shadow: 0 18px 45px rgba(190, 24, 93, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(244, 114, 182, 0.16), transparent 32rem), var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(251, 207, 232, 0.85);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(190, 24, 93, 0.08);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 1180px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  color: #ffffff;
  font-size: 15px;
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.35);
}

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

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

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

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  min-width: 0;
  border: 2px solid #f9a8d4;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input {
  width: 230px;
  padding: 9px 16px;
}

.top-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.top-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 14px;
  padding: 9px 12px;
  background: #fdf2f8;
  color: var(--accent-dark);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 18px;
}

.mobile-panel.is-open {
  display: grid;
  gap: 14px;
}

.mobile-search input {
  flex: 1;
  padding: 10px 16px;
}

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

.main-space.narrow {
  width: min(980px, calc(100% - 32px));
}

.hero-slider {
  position: relative;
  height: 620px;
  margin: 0 0 34px;
  overflow: hidden;
  border-radius: 32px;
  background: #111827;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.75s ease, transform 1.1s ease;
  pointer-events: none;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.54) 42%, rgba(15, 23, 42, 0.1)), linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 58%);
}

.hero-content {
  position: absolute;
  left: clamp(24px, 7vw, 80px);
  bottom: clamp(32px, 8vw, 90px);
  max-width: 680px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero-content h1,
.intro-panel h1,
.page-hero h1,
.movie-detail-card h1 {
  margin: 0;
  letter-spacing: -0.05em;
  line-height: 1.12;
}

.hero-content h1 {
  font-size: clamp(42px, 7vw, 76px);
  text-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.hero-content p {
  max-width: 620px;
  margin: 18px 0 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 11px;
  background: #fdf2f8;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 750;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  min-height: 48px;
  padding: 0 24px;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(236, 72, 153, 0.32);
}

.primary-button.small {
  min-height: 42px;
  padding: 0 18px;
}

.ghost-button {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.ghost-button.reset {
  width: 100%;
  border: 2px solid var(--line);
  background: #ffffff;
  color: var(--accent-dark);
  cursor: pointer;
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(236, 72, 153, 0.2);
}

.hero-dots {
  position: absolute;
  right: 34px;
  bottom: 30px;
  display: flex;
  gap: 9px;
}

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

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

.intro-panel,
.page-hero,
.filter-panel,
.movie-detail-card,
.info-box,
.content-section,
.channel-strip {
  border: 1px solid rgba(251, 207, 232, 0.85);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.intro-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 5vw, 42px);
}

.intro-panel h1,
.page-hero h1 {
  font-size: clamp(30px, 4vw, 48px);
}

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

.channel-strip {
  display: flex;
  gap: 10px;
  margin: 22px 0;
  padding: 12px;
  overflow-x: auto;
}

.channel-strip a {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 9px 15px;
  background: #fdf2f8;
  color: #9d174d;
  font-weight: 800;
}

.content-section {
  margin-top: 28px;
  padding: clamp(20px, 4vw, 34px);
}

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

.section-title-row h2,
.related-box h2,
.movie-detail-card h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.04em;
}

.section-link {
  min-height: 40px;
  border: 2px solid #f9a8d4;
  padding: 0 16px;
  color: var(--accent-dark);
  white-space: nowrap;
}

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

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

.category-tile {
  min-height: 132px;
  border: 1px solid #fbcfe8;
  border-radius: 22px;
  padding: 20px;
  background: linear-gradient(135deg, #fff1f2, #f5f3ff);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.18);
}

.category-tile strong {
  display: block;
  margin-bottom: 8px;
  color: #9d174d;
  font-size: 21px;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(251, 207, 232, 0.9);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(190, 24, 93, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #f472b6;
  box-shadow: 0 20px 42px rgba(190, 24, 93, 0.17);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #4c1d95);
}

.poster-link img,
.compact-card img,
.info-box img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.play-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  font-size: 20px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.movie-card h3 {
  display: -webkit-box;
  min-height: 54px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.movie-meta span,
.detail-meta span {
  border-radius: 999px;
  padding: 3px 9px;
  background: #f9fafb;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.32);
}

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

.compact-list.small {
  grid-template-columns: 1fr;
}

.compact-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 14px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #fbcfe8;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(190, 24, 93, 0.08);
}

.compact-card img {
  width: 132px;
  aspect-ratio: 16 / 10;
}

.compact-info {
  display: grid;
  gap: 4px;
  padding-right: 12px;
}

.compact-info strong {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-info em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.compact-rank {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 2px 8px;
  background: #fdf2f8;
  color: var(--accent-dark);
  font-weight: 900;
}

.page-hero {
  padding: clamp(26px, 5vw, 46px);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.92), rgba(139, 92, 246, 0.9));
  color: #ffffff;
}

.page-hero.compact {
  margin-bottom: 22px;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
}

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

.breadcrumb a {
  color: var(--accent-dark);
  font-weight: 700;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 24px;
  padding: 18px;
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 16px;
}

.empty-state {
  display: none;
  padding: 44px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 20px;
  font-weight: 800;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.86fr);
  gap: 24px;
}

.detail-main {
  min-width: 0;
}

.player-card {
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.24);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.movie-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #020617;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.2), rgba(2, 6, 23, 0.58));
  cursor: pointer;
}

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

.video-play-button {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  font-size: 34px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.movie-detail-card {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 34px);
}

.movie-detail-card h1 {
  font-size: clamp(32px, 5vw, 54px);
}

.detail-meta {
  margin: 18px 0 24px;
}

.movie-detail-card h2 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 24px;
}

.movie-detail-card p {
  margin: 0 0 16px;
  color: #4b5563;
}

.lead-text {
  color: #111827 !important;
  font-size: 18px;
  font-weight: 800;
}

.detail-tags span {
  padding: 7px 13px;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 20px;
}

.info-box {
  overflow: hidden;
  padding: 18px;
}

.info-box img {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  background: linear-gradient(135deg, #111827, #4c1d95);
}

.info-box dl {
  margin: 18px 0 0;
}

.info-box dt {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.info-box dd {
  margin: 3px 0 0;
  color: #111827;
  font-weight: 800;
}

.info-box dd a {
  color: var(--accent-dark);
}

.related-box h2 {
  margin-bottom: 14px;
  font-size: 22px;
}

.site-footer {
  border-top: 1px solid #fbcfe8;
  background: linear-gradient(90deg, #fdf2f8, #f5f3ff);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  color: var(--muted);
}

.footer-inner p {
  margin: 8px 0 0;
}

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

  .menu-button {
    display: inline-flex;
  }

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

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

@media (max-width: 820px) {
  .nav-shell {
    height: 64px;
    padding: 0 16px;
  }

  .logo {
    font-size: 20px;
  }

  .main-space {
    width: min(100% - 24px, 1180px);
    padding-top: 82px;
  }

  .hero-slider {
    height: 520px;
    border-radius: 24px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

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

  .cards-grid,
  .category-grid,
  .category-grid.large,
  .compact-list,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .compact-card {
    grid-template-columns: 116px 1fr;
  }

  .compact-card img {
    width: 116px;
  }

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

@media (max-width: 520px) {
  .hero-slider {
    height: 480px;
  }

  .hero-content {
    left: 20px;
    right: 20px;
    bottom: 62px;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-dots {
    right: auto;
    left: 20px;
  }

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