:root {
  --pink-50: #fff1f7;
  --pink-100: #ffe4ef;
  --pink-500: #ec4899;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #f8c8dc;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(244, 63, 94, 0.14);
  --soft-shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--pink-50), #ffffff 38%, #ffffff);
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 241, 247, 0.96), rgba(255, 255, 255, 0.96), rgba(255, 228, 239, 0.96));
  border-bottom: 1px solid var(--pink-100);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 18px rgba(244, 63, 94, 0.08);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  -webkit-background-clip: text;
  color: transparent;
}

.logo-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.25);
  font-size: 15px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.desktop-nav a {
  color: #4b5563;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--pink-500);
}

.header-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  padding: 4px;
}

.header-search input,
.mobile-search input,
.wide-search input,
.search-page-panel input,
.filter-panel input {
  border: 0;
  outline: 0;
  background: transparent;
  min-width: 0;
}

.header-search input {
  width: 190px;
  padding: 9px 12px;
}

.header-search button,
.mobile-search button,
.wide-search button,
.search-page-panel button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--pink-100);
  color: var(--rose-600);
  border-radius: 12px;
  padding: 9px 12px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile-panel nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
}

.mobile-search {
  display: flex;
  gap: 8px;
}

.mobile-search input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--pink-100);
}

.hero-carousel {
  position: relative;
  height: min(720px, 70vh);
  min-height: 520px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(236, 72, 153, 0.28), transparent 35%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.65));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-bottom: 86px;
  color: #ffffff;
}

.hero-content h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.06;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.hero-content p {
  max-width: 680px;
  color: #f3f4f6;
  font-size: 19px;
  line-height: 1.7;
  margin: 0 0 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

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

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  padding: 13px 24px;
  box-shadow: 0 18px 32px rgba(244, 63, 94, 0.34);
}

.primary-button.small {
  padding: 10px 18px;
}

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

.ghost-button.light {
  color: var(--rose-600);
  border-color: var(--border);
  background: #ffffff;
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

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

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

.hero-dots button.active {
  width: 34px;
  background: #ffffff;
}

.intro-panel,
.section-block,
.page-main {
  margin-top: 42px;
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--pink-500);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro-panel h2,
.page-title h1,
.section-heading h2,
.detail-copy h1 {
  margin: 0;
  color: #111827;
}

.intro-panel h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.intro-panel p:not(.eyebrow),
.page-title p,
.category-card p,
.category-tile span,
.detail-one-line,
.detail-content p {
  color: var(--muted);
  line-height: 1.75;
}

.wide-search,
.search-page-panel form {
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--pink-100);
  border-radius: 22px;
  background: #ffffff;
}

.wide-search input,
.search-page-panel input {
  flex: 1;
  padding: 13px 14px;
}

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

.section-heading h2 {
  font-size: 28px;
}

.section-heading a,
.section-heading span {
  color: var(--pink-500);
  font-weight: 800;
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  background: #f3f4f6;
}

.movie-card.large .poster-link {
  aspect-ratio: 16 / 10;
}

.rank-badge {
  position: absolute;
  z-index: 2;
  left: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, var(--rose-500));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.movie-info {
  padding: 14px;
}

.movie-info h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.movie-info h3 a:hover,
.rank-item h3 a:hover {
  color: var(--pink-500);
}

.movie-meta,
.movie-line {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.movie-line {
  display: -webkit-box;
  min-height: 40px;
  margin-top: 8px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span {
  padding: 5px 9px;
  color: var(--rose-600);
  background: var(--pink-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(236, 72, 153, 0.88);
}

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

.category-tile,
.category-card {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  padding: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(236, 72, 153, 0.18), transparent 40%),
    #ffffff;
  border: 1px solid var(--pink-100);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease;
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-4px);
}

.category-tile strong,
.category-card h2 {
  color: #111827;
  font-size: 20px;
}

.category-tile em,
.category-card strong {
  color: var(--pink-500);
  font-style: normal;
  font-weight: 900;
}

.page-main {
  padding-bottom: 30px;
}

.page-title {
  padding: 34px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.page-title h1 {
  font-size: clamp(32px, 5vw, 54px);
}

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

.breadcrumb a:hover {
  color: var(--pink-500);
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin: 28px 0;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.filter-panel input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--pink-100);
  border-radius: 16px;
  background: #fff;
}

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

.year-filter button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #4b5563;
  background: #f3f4f6;
  cursor: pointer;
}

.year-filter button.active,
.year-filter button:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 76px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

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

.rank-cover {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #f3f4f6;
}

.rank-item h3 {
  margin: 0 0 6px;
}

.rank-item p,
.rank-item span {
  display: block;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.search-page-panel {
  margin: 28px 0;
}

.search-count {
  color: var(--muted);
  font-weight: 700;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 30px;
  padding: 28px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 0%, rgba(244, 63, 94, 0.16), transparent 34%),
    #ffffff;
  box-shadow: var(--shadow);
}

.detail-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 24px;
  background: #f3f4f6;
  box-shadow: var(--soft-shadow);
}

.detail-copy {
  align-self: center;
}

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

.detail-one-line {
  font-size: 18px;
}

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

.detail-meta span {
  padding: 9px 12px;
  color: #4b5563;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid #edf2f7;
}

.detail-tags {
  margin-bottom: 24px;
}

.player-card,
.detail-content {
  margin-top: 30px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

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

.player-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  padding: 16px 28px;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(244, 63, 94, 0.42);
  cursor: pointer;
}

.player-box.is-playing .play-button {
  display: none;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 14px;
  color: #ffffff;
  margin: 0;
  font-size: 13px;
}

.detail-content {
  padding: 30px;
}

.detail-content h2 {
  margin: 0 0 12px;
  color: #111827;
}

.detail-content p + h2 {
  margin-top: 26px;
}

.site-footer {
  margin-top: 64px;
  padding: 42px 0 26px;
  background: linear-gradient(180deg, #ffffff, #f9fafb);
  border-top: 1px solid #edf2f7;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 26px;
}

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

.site-footer p,
.site-footer a {
  display: block;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 6px;
}

.site-footer a:hover {
  color: var(--pink-500);
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 0 !important;
  padding-top: 20px;
  border-top: 1px solid #edf2f7;
  font-size: 14px;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .grid-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .header-search {
    display: none;
  }
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-carousel {
    min-height: 560px;
    height: 72vh;
  }

  .hero-arrow {
    display: none;
  }

  .intro-panel,
  .detail-hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .container,
  .header-inner,
  .mobile-panel,
  .footer-grid,
  .copyright {
    width: min(100% - 22px, 1180px);
  }

  .logo {
    font-size: 20px;
  }

  .grid-cards,
  .grid-featured,
  .category-grid,
  .category-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .movie-info {
    padding: 11px;
  }

  .movie-info h3 {
    font-size: 14px;
  }

  .tag-row {
    display: none;
  }

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

  .page-title,
  .intro-panel,
  .detail-hero,
  .detail-content {
    padding: 20px;
    border-radius: 22px;
  }

  .wide-search,
  .search-page-panel form {
    flex-direction: column;
  }

  .rank-item {
    grid-template-columns: 44px 60px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-num {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }
}
