:root {
  --pink: #ec4899;
  --rose: #f43f5e;
  --soft-pink: #fdf2f8;
  --light-pink: #fce7f3;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --dark: #111827;
  --shadow: 0 20px 50px rgba(236, 72, 153, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #ffffff;
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.78);
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 14px 25px rgba(244, 63, 94, 0.28);
}

.brand-name {
  display: block;
  font-size: 24px;
  line-height: 1.05;
  color: transparent;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-subtitle {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--pink);
}

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

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 12px 16px;
  outline: none;
  background: #ffffff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.header-search button,
.mobile-search button {
  border: 0;
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--soft-pink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--pink);
  border-radius: 99px;
}

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

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

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

.mobile-search input {
  width: 100%;
}

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

.mobile-link {
  padding: 13px 14px;
  border-radius: 14px;
  color: #374151;
  font-weight: 700;
}

.mobile-link.active,
.mobile-link:hover {
  color: var(--pink);
  background: var(--soft-pink);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3 0%, #ffffff 46%, #fff1f2 100%);
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image: radial-gradient(rgba(236, 72, 153, 0.18) 1px, transparent 1px);
  background-size: 28px 28px;
}

.hero-glow {
  position: absolute;
  right: -160px;
  bottom: -150px;
  width: 480px;
  height: 480px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.26), rgba(236, 72, 153, 0));
}

.hero-grid {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: 56px;
}

.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  color: var(--pink);
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  color: transparent;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead,
.page-hero p {
  margin: 24px 0 0;
  max-width: 740px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.9;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.28);
}

.btn-light {
  color: var(--pink);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(31, 41, 55, 0.08);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-chips a,
.tag-cloud span,
.genre-badges span {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--pink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(236, 72, 153, 0.16);
  font-size: 14px;
  font-weight: 700;
}

.hero-slider {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow);
  background: #ffffff;
}

.hero-slide {
  display: none;
  position: absolute;
  inset: 0;
}

.hero-slide.active {
  display: block;
  animation: fadeIn 0.55s ease;
}

.hero-slide a,
.hero-slide img {
  width: 100%;
  height: 100%;
}

.hero-slide img {
  object-fit: cover;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.72));
}

.hero-slide-text {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  color: #ffffff;
}

.hero-slide-text strong {
  display: block;
  font-size: 28px;
  margin-bottom: 10px;
}

.hero-slide-text em {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-style: normal;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.hero-dots {
  position: absolute;
  left: 26px;
  top: 26px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

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

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

.section {
  padding: 72px 0;
}

.section-white {
  background: #ffffff;
}

.section-soft {
  background: linear-gradient(180deg, #ffffff, var(--soft-pink));
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--text);
}

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

.section-head.compact h2 {
  max-width: 680px;
  color: #4b5563;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.8;
}

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

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

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

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

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

.movie-card {
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 55px rgba(236, 72, 153, 0.16);
}

.card-link {
  display: block;
  height: 100%;
}

.card-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--light-pink);
}

.feature-grid .card-poster,
.card-wide .card-poster {
  aspect-ratio: 16 / 10;
}

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

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

.type-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  right: auto;
  left: 12px;
  min-width: 32px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #6b7280;
  font-size: 13px;
}

.card-meta span:first-child {
  color: #f59e0b;
  font-weight: 800;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 52px 110px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.14);
}

.rank-number {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  font-weight: 900;
  font-size: 20px;
}

.rank-row img {
  width: 110px;
  height: 78px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info em,
.rank-info small {
  display: block;
}

.rank-info strong {
  margin-bottom: 5px;
  font-size: 17px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em {
  margin-bottom: 8px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-info small {
  color: #6b7280;
}

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

.category-grid.large {
  margin-bottom: 56px;
}

.category-tile {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(31, 41, 55, 0.12);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.76));
}

.category-content {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  color: #ffffff;
}

.category-content strong {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}

.category-content em {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-style: normal;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.6;
}

.category-section {
  margin-top: 58px;
}

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

.editor-main {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.editor-main img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.editor-main span {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0.78));
}

.editor-main strong,
.editor-main em {
  position: absolute;
  left: 30px;
  right: 30px;
  color: #ffffff;
}

.editor-main strong {
  bottom: 94px;
  font-size: 34px;
}

.editor-main em {
  bottom: 34px;
  font-style: normal;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.editor-side {
  display: grid;
  gap: 24px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background: linear-gradient(135deg, #fce7f3 0%, #ffffff 48%, #fff1f2 100%);
}

.page-hero.small {
  padding: 68px 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: #6b7280;
  font-size: 14px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 30px;
  padding: 18px;
  border-radius: 22px;
  background: var(--soft-pink);
}

.empty-state {
  display: none;
  margin: 38px 0 0;
  padding: 28px;
  border-radius: 20px;
  text-align: center;
  color: var(--muted);
  background: var(--soft-pink);
  font-weight: 700;
}

.empty-state.show {
  display: block;
}

.detail-hero {
  padding: 64px 0 72px;
  background: linear-gradient(135deg, #fff1f2, #ffffff 58%, #fdf2f8);
}

.detail-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: var(--light-pink);
}

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

.detail-copy h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.15;
}

.detail-one-line {
  margin: 22px 0;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.85;
}

.detail-meta,
.genre-badges,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.detail-meta span {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 14px;
  color: #374151;
  background: #ffffff;
  border: 1px solid var(--line);
  font-weight: 800;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #050505;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.22);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.72));
  cursor: pointer;
}

.player-overlay.hidden {
  display: none;
}

.play-circle {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  color: var(--pink);
  background: #ffffff;
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.player-overlay strong {
  font-size: 22px;
}

.article-content h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.article-content p {
  margin: 0 0 28px;
  color: #4b5563;
  font-size: 17px;
  line-height: 2;
}

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

.info-table div {
  padding: 16px 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.info-table span,
.info-table strong {
  display: block;
}

.info-table span {
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 13px;
}

.info-table strong {
  color: var(--text);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 36px;
  padding: 52px 0;
}

.footer-brand {
  margin-bottom: 18px;
  color: #ffffff;
  font-size: 22px;
}

.site-footer p {
  max-width: 560px;
  color: #d1d5db;
  line-height: 1.8;
}

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

.site-footer a:not(.footer-brand) {
  display: block;
  color: #d1d5db;
  margin: 10px 0;
  transition: color 0.2s ease;
}

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(1.02);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

  .hero-grid,
  .editor-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 54px 0;
  }

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

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

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

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

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

  .hero,
  .hero-grid {
    min-height: auto;
  }

  .hero-slider {
    min-height: 340px;
  }

  .feature-grid,
  .sample-grid,
  .rank-grid,
  .rank-list.full,
  .footer-grid,
  .detail-grid,
  .info-table {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .container,
  .narrow {
    width: min(100% - 24px, 1200px);
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

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

  .hero h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .hero-lead,
  .page-hero p {
    font-size: 16px;
  }

  .section {
    padding: 52px 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .card-body {
    padding: 14px;
  }

  .card-body h3 {
    font-size: 16px;
  }

  .card-body p {
    font-size: 13px;
  }

  .rank-row {
    grid-template-columns: 42px 78px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-number {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .rank-row img {
    width: 78px;
    height: 60px;
  }

  .category-tile,
  .category-tile img {
    min-height: 160px;
  }

  .detail-copy h1 {
    font-size: 34px;
  }

  .player-box {
    border-radius: 18px;
  }
}
