:root {
  --pink-50: #fff7fb;
  --pink-100: #ffe4ef;
  --pink-200: #fecddf;
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(244, 114, 182, 0.24);
  --card: rgba(255, 255, 255, 0.9);
  --shadow: 0 22px 45px rgba(244, 114, 182, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(244, 114, 182, 0.16), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(251, 113, 133, 0.16), transparent 28%),
    linear-gradient(180deg, #fff8fc 0%, #ffffff 42%, #fff7fb 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(244, 114, 182, 0.12);
}

.header-inner {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.28);
  font-size: 14px;
}

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

.desktop-nav > a,
.nav-dropdown > button {
  padding: 8px 2px;
  border: 0;
  color: #374151;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease;
}

.desktop-nav > a:hover,
.desktop-nav > a.is-active,
.nav-dropdown:hover > button {
  color: var(--pink-600);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 190px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 12px;
  color: #4b5563;
  font-size: 14px;
  transition: 0.2s ease;
}

.nav-dropdown-menu a:hover {
  color: var(--pink-600);
  background: var(--pink-50);
}

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

.header-search input,
.mobile-search input,
.filter-input,
.filter-select {
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  background: #fff;
  color: var(--text);
  transition: 0.2s ease;
}

.header-search input {
  width: 220px;
  padding: 9px 14px;
}

.header-search button,
.mobile-search button,
.hero-search button,
.btn-primary,
.btn-soft {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.28);
  cursor: pointer;
  font-weight: 800;
  transition: 0.2s ease;
}

.header-search button,
.mobile-search button {
  padding: 9px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: var(--pink-400);
  box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.16);
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.btn-primary:hover,
.btn-soft:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(236, 72, 153, 0.32);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--pink-600);
  font-size: 26px;
}

.mobile-panel {
  display: none;
  padding: 16px 22px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}

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

.mobile-search {
  margin-bottom: 12px;
}

.mobile-search input {
  width: 100%;
  padding: 10px 14px;
}

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

.mobile-panel nav a {
  padding: 10px 12px;
  border-radius: 14px;
  color: #4b5563;
  background: var(--pink-50);
}

.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 22px 72px;
}

.hero {
  position: relative;
  min-height: 600px;
  margin: 0 auto 48px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
  background: #111827;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(1.1) contrast(1.02);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.66) 45%, rgba(17, 24, 39, 0.18) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.7), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 600px;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 66px;
  color: #fff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 800;
}

.section-kicker {
  color: var(--pink-600);
  border-color: var(--line);
  background: var(--pink-50);
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 950;
}

.hero p {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero-actions,
.card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
}

.btn-soft {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.hero-search {
  display: flex;
  max-width: 560px;
  margin-top: 22px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  color: #fff;
  background: transparent;
  padding: 0 14px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.hero-search button {
  padding: 10px 18px;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 66px;
  bottom: 34px;
  display: flex;
  gap: 9px;
}

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

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

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-50%);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

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

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

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

.section-head h2,
.page-title h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.03em;
}

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

.section-link {
  color: var(--pink-600);
  font-weight: 900;
}

.content-section {
  margin: 48px 0;
}

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

.category-pill {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 120px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 251, 0.88));
  box-shadow: 0 10px 28px rgba(244, 114, 182, 0.12);
  transition: 0.25s ease;
}

.category-pill::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -36px;
  top: -36px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.28), transparent 65%);
}

.category-pill:hover,
.movie-card:hover,
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 46px rgba(244, 114, 182, 0.18);
}

.category-pill strong {
  display: block;
  color: #111827;
  font-size: 20px;
  font-weight: 950;
}

.category-pill span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 14px 34px rgba(244, 114, 182, 0.12);
  transition: 0.25s ease;
}

.movie-card.is-hidden {
  display: none;
}

.poster-link,
.poster-frame {
  display: block;
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink-100), #fff);
}

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

.movie-card:hover .poster-frame img {
  transform: scale(1.06);
}

.poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(17, 24, 39, 0.74));
}

.quality-badge,
.score-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.quality-badge {
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
}

.score-badge {
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: rgba(17, 24, 39, 0.76);
  backdrop-filter: blur(8px);
}

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

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-title:hover {
  color: var(--pink-600);
}

.movie-meta {
  margin: 8px 0;
  color: var(--pink-600);
  font-size: 13px;
  font-weight: 800;
}

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

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

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--pink-600);
  background: var(--pink-50);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
  gap: 24px;
}

.rank-panel,
.side-panel,
.filter-panel,
.page-title,
.detail-shell,
.player-section,
.story-block,
.category-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(244, 114, 182, 0.12);
}

.rank-panel,
.side-panel,
.page-title,
.player-section,
.story-block {
  padding: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: var(--pink-50);
  transition: 0.2s ease;
}

.rank-item:hover {
  color: var(--pink-600);
  background: var(--pink-100);
}

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

.rank-title {
  overflow: hidden;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.breadcrumbs a {
  color: var(--pink-600);
  font-weight: 800;
}

.breadcrumbs em {
  font-style: normal;
  color: #d1d5db;
}

.filter-panel {
  margin: 22px 0;
  padding: 16px;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
}

.filter-input,
.filter-select {
  width: 100%;
  padding: 12px 14px;
}

.filter-empty {
  display: none;
  margin-top: 12px;
  color: var(--muted);
}

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

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

.category-card {
  overflow: hidden;
  transition: 0.25s ease;
}

.category-card > a {
  display: block;
  padding: 22px;
  background: linear-gradient(135deg, #fff, var(--pink-50));
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 950;
}

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

.category-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.category-card li a {
  display: block;
  overflow: hidden;
  color: #4b5563;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.category-card li a:hover {
  color: var(--pink-600);
}

.detail-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 26px;
  padding: 24px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: var(--pink-100);
  box-shadow: 0 18px 38px rgba(244, 114, 182, 0.2);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

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

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.info-grid span {
  padding: 10px 12px;
  border-radius: 14px;
  color: #4b5563;
  background: var(--pink-50);
}

.player-section {
  margin: 28px 0;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  box-shadow: 0 28px 56px rgba(17, 24, 39, 0.28);
  cursor: pointer;
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.video-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.62));
  cursor: pointer;
  transition: 0.2s ease;
}

.video-start span {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 18px 38px rgba(236, 72, 153, 0.36);
  font-size: 18px;
  font-weight: 950;
}

.video-shell.is-playing .video-start {
  opacity: 0;
  pointer-events: none;
}

.video-status {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, 0.62);
  font-size: 13px;
  opacity: 0;
  transform: translateY(6px);
  transition: 0.2s ease;
  pointer-events: none;
}

.video-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

.story-block h2,
.player-section h2,
.rank-panel h2,
.side-panel h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 24px;
  font-weight: 950;
}

.story-block p {
  margin: 0;
  color: #4b5563;
  white-space: pre-line;
}

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

.movie-card.compact .movie-card-body {
  padding: 13px;
}

.movie-card.compact .movie-title {
  min-height: 42px;
  font-size: 15px;
}

.movie-card.compact .movie-desc,
.movie-card.compact .tag-row {
  display: none;
}

.pagination-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}

.pagination-links a {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--pink-600);
  background: #fff;
  font-weight: 900;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, var(--pink-50), #fff, var(--pink-100));
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 22px;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 1fr;
  gap: 28px;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 12px;
  color: var(--pink-700, #be185d);
}

.footer-grid p {
  margin: 0;
  color: var(--muted);
}

.footer-grid a {
  display: block;
  margin: 7px 0;
  color: #4b5563;
}

.footer-grid a:hover {
  color: var(--pink-600);
}

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

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

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

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

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

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

  .header-inner {
    height: 62px;
  }

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

  .hero-content {
    padding: 42px 28px 70px;
  }

  .hero-dots {
    left: 28px;
  }

  .hero-arrow {
    display: none;
  }

  .section-head,
  .split-layout,
  .detail-shell,
  .story-grid {
    display: block;
  }

  .side-panel,
  .detail-poster,
  .story-block {
    margin-top: 22px;
  }

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

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

@media (max-width: 560px) {
  .page-main {
    padding: 22px 14px 54px;
  }

  .logo {
    font-size: 17px;
  }

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

  .hero-content {
    min-height: 520px;
    padding: 36px 20px 68px;
  }

  .hero-search {
    border-radius: 22px;
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search input {
    padding: 10px 12px;
  }

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

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

  .rank-meta {
    grid-column: 2;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}
