
:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --purple: #8b5cf6;
  --blue: #60a5fa;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #fdf2f8;
  --border: #e5e7eb;
  --shadow: 0 20px 45px rgba(31, 41, 55, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #fdf2f8 0%, #faf5ff 45%, #eff6ff 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  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, #f472b6, #c084fc, #93c5fd);
  box-shadow: 0 14px 35px rgba(147, 51, 234, 0.22);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.brand-text {
  font-size: 24px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  color: #fff;
  font-weight: 650;
}

.desktop-nav a,
.dropdown > button {
  color: #fff;
  opacity: 0.96;
  border: 0;
  cursor: pointer;
  background: transparent;
}

.desktop-nav a:hover,
.dropdown > button:hover {
  opacity: 1;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.35);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 36px;
  left: -16px;
  width: 190px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

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

.dropdown-link {
  display: block;
  color: #374151 !important;
  padding: 9px 12px;
  border-radius: 10px;
}

.dropdown-link:hover {
  background: #fce7f3;
  color: var(--pink-dark) !important;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.header-search input {
  width: 190px;
  border: 0;
  outline: 0;
  padding: 9px 12px;
  background: transparent;
  color: #374151;
}

.header-search button,
.primary-button,
.big-search button {
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.primary-button:hover,
.big-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(236, 72, 153, 0.32);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 9px 12px;
}

.mobile-menu {
  display: none;
  padding: 12px 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
}

.mobile-menu.is-open {
  display: grid;
  gap: 10px;
}

.mobile-menu a {
  color: #fff;
  font-weight: 700;
}

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

.mobile-menu input {
  flex: 1;
  padding: 10px 12px;
  border: 0;
  border-radius: 999px;
}

.mobile-menu button {
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--pink-dark);
  font-weight: 800;
}

.hero-section {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: #fff;
}

.hero-bg,
.hero-bg img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1);
}

.hero-overlay {
  background:
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.22), transparent 32%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.58), rgba(17, 24, 39, 0.12));
}

.hero-content {
  position: relative;
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--pink);
  font-weight: 800;
  animation: pulse-soft 1.9s ease-in-out infinite;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 650px;
  margin: 0 0 20px;
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.88);
}

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

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 13px;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
}

.ghost-button {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.hero-panel {
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-panel-title {
  margin-bottom: 14px;
  font-weight: 900;
  font-size: 20px;
}

.hero-mini-card {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-mini-card + .hero-mini-card {
  margin-top: 10px;
}

.hero-mini-card:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.22);
}

.hero-mini-card img {
  width: 62px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
}

.section-block {
  padding: 64px 0;
}

.gradient-band {
  background: linear-gradient(90deg, rgba(252, 231, 243, 0.95), rgba(237, 233, 254, 0.95), rgba(219, 234, 254, 0.95));
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(31, 41, 55, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

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

.play-chip,
.rank-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(236, 72, 153, 0.94);
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  top: 12px;
  bottom: auto;
  background: rgba(250, 204, 21, 0.96);
  color: #111827;
}

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

.movie-title {
  display: block;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-title:hover,
.compact-title:hover,
.sitemap-group a:hover {
  color: var(--pink-dark);
}

.movie-meta,
.card-stats,
.compact-card p {
  color: var(--muted);
  font-size: 13px;
}

.movie-card-body p {
  min-height: 46px;
  color: #4b5563;
  font-size: 14px;
}

.tag-list span {
  color: #be185d;
  background: #fce7f3;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 132px 1fr;
}

.movie-card-horizontal .poster-link {
  aspect-ratio: auto;
  min-height: 190px;
}

.card-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

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

.category-tile {
  min-height: 150px;
  display: grid;
  place-items: center;
  gap: 6px;
  text-align: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fce7f3, #ede9fe);
  box-shadow: 0 12px 30px rgba(147, 51, 234, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow);
}

.category-tile span {
  font-size: 36px;
}

.category-tile strong {
  font-size: 20px;
}

.category-tile small {
  color: var(--muted);
}

.page-hero {
  color: #fff;
  padding: 86px 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.25), transparent 28%),
    linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
}

.page-hero p {
  margin: 0 0 10px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.88);
}

.page-hero h1 {
  max-width: 820px;
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
}

.page-hero span {
  max-width: 780px;
  display: block;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: center;
  padding: 22px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 32px rgba(31, 41, 55, 0.08);
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-cover-stack img {
  height: 130px;
  width: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.category-emoji {
  font-size: 34px;
}

.category-overview-card h2 {
  margin: 6px 0 8px;
  font-size: 26px;
}

.filter-bar,
.big-search {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.08);
}

.filter-bar input,
.filter-bar select,
.big-search input {
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
}

.filter-bar input,
.big-search input {
  flex: 1;
}

.filter-bar input:focus,
.filter-bar select:focus,
.big-search input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.no-results {
  display: none;
  padding: 30px;
  text-align: center;
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

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

.ranking-aside,
.side-box,
.detail-card,
.player-card {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 32px rgba(31, 41, 55, 0.08);
}

.ranking-aside {
  align-self: start;
  position: sticky;
  top: 96px;
  padding: 20px;
}

.compact-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  box-shadow: none;
  border: 1px solid var(--border);
}

.compact-card + .compact-card {
  margin-top: 10px;
}

.compact-cover {
  position: relative;
  height: 92px;
  border-radius: 12px;
  overflow: hidden;
}

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

.compact-title {
  font-weight: 900;
}

.search-summary {
  margin-bottom: 20px;
  color: var(--muted);
}

.breadcrumb-wrap {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 34px 0 70px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #020617;
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.play-trigger {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(236, 72, 153, 0.92);
  cursor: pointer;
  font-size: 34px;
  box-shadow: 0 20px 50px rgba(236, 72, 153, 0.36);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.play-trigger:hover {
  transform: scale(1.08);
}

.play-trigger.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.detail-card {
  margin-top: 20px;
  padding: 24px;
}

.detail-card h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
}

.detail-card h2,
.side-box h2,
.ranking-aside h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
}

.detail-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f9fafb;
}

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

.one-line {
  margin-bottom: 0;
  font-size: 18px;
  color: #374151;
}

.article-section p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

.detail-sidebar {
  align-self: start;
  position: sticky;
  top: 96px;
}

.detail-poster {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.side-box {
  padding: 20px;
  margin-bottom: 20px;
}

.side-box dl {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  margin: 0;
}

.side-box dt {
  color: var(--muted);
}

.side-box dd {
  margin: 0;
  font-weight: 700;
}

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

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

.sitemap-group {
  padding: 20px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 32px rgba(31, 41, 55, 0.08);
}

.sitemap-group h2 {
  margin-top: 0;
}

.sitemap-group ul {
  columns: 2;
  padding-left: 20px;
}

.sitemap-group li {
  break-inside: avoid;
  margin: 0 0 8px;
}

.sitemap-group small {
  color: var(--muted);
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 28px;
  padding: 46px 0;
}

.footer-grid h3 {
  color: #fff;
  margin: 0 0 12px;
}

.footer-grid a {
  display: block;
  color: #d1d5db;
  margin-bottom: 8px;
}

.footer-grid a:hover {
  color: #f9a8d4;
}

.footer-bottom {
  padding: 18px;
  text-align: center;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes pulse-soft {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}

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

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

  .hero-content,
  .detail-layout,
  .ranking-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .detail-sidebar,
  .ranking-aside {
    position: static;
  }

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

  .horizontal-grid,
  .ranking-grid,
  .category-overview-grid,
  .sitemap-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .header-inner {
    min-height: 64px;
  }

  .brand-text {
    font-size: 20px;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 24px;
    align-content: center;
  }

  .hero-panel {
    padding: 14px;
  }

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

  .movie-card-horizontal {
    grid-template-columns: 104px 1fr;
  }

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

  .movie-title {
    font-size: 16px;
  }

  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .filter-bar,
  .big-search {
    flex-direction: column;
  }

  .sitemap-group ul {
    columns: 1;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal .poster-link {
    aspect-ratio: 2 / 3;
  }
}
