:root {
  --site-pink: #ec4899;
  --site-red: #ef4444;
  --site-orange: #f97316;
  --site-yellow: #f59e0b;
  --site-blue: #3b82f6;
  --site-purple: #8b5cf6;
  --site-dark: #111827;
  --site-muted: #6b7280;
  --site-card: #ffffff;
  --site-border: rgba(17, 24, 39, 0.08);
  --site-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #1f2937;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #fdf2f8 0%, #ffffff 42%, #eff6ff 100%);
}

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

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

.site-shell {
  min-height: 100vh;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.08);
}

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

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

.logo-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--site-pink), var(--site-red));
  box-shadow: 0 12px 25px rgba(239, 68, 68, 0.28);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #374151;
  font-weight: 700;
}

.main-nav a {
  transition: color 0.22s ease, transform 0.22s ease;
}

.main-nav a:hover {
  color: var(--site-red);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #374151;
  font-size: 26px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 12px 0 18px;
  border-top: 1px solid var(--site-border);
}

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

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(253, 242, 248, 0.8);
  color: #374151;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--site-pink), var(--site-red), var(--site-yellow));
  background-size: 220% 220%;
  animation: gradientFlow 5s ease-in-out infinite;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 42%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.35));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  align-items: center;
  min-height: 620px;
  gap: 36px;
  padding: 70px 0;
}

.hero-copy {
  max-width: 720px;
  animation: fadeIn 0.65s ease both;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-subtitle {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.btn-primary {
  color: var(--site-red);
  background: #fff;
  box-shadow: 0 22px 45px rgba(255, 255, 255, 0.24);
}

.btn-gradient {
  color: #fff;
  background: linear-gradient(90deg, var(--site-pink), var(--site-red));
  box-shadow: 0 18px 30px rgba(239, 68, 68, 0.24);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.30);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags a,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 700;
}

.hero-feature {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.30);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.hero-feature img {
  width: 100%;
  aspect-ratio: 2 / 2.65;
  object-fit: cover;
}

.hero-feature-body {
  position: absolute;
  inset: auto 0 0;
  padding: 24px;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.92), transparent);
}

.hero-feature-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 900;
}

.hero-wave {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 96px;
  background: linear-gradient(0deg, #fdf2f8, rgba(253, 242, 248, 0));
}

.section {
  padding: 42px 0;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
  color: #111827;
}

.section-title span {
  background: linear-gradient(90deg, var(--site-orange), var(--site-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-desc {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--site-muted);
  line-height: 1.75;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 18px;
  margin-bottom: 24px;
  border: 1px solid var(--site-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--site-shadow);
  backdrop-filter: blur(12px);
}

.search-input,
.filter-select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(236, 72, 153, 0.20);
  border-radius: 999px;
  outline: 0;
  color: #111827;
  background: #fff;
  font-size: 15px;
}

.search-input:focus,
.filter-select:focus {
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--site-border);
  border-radius: 24px;
  background: var(--site-card);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 50px rgba(239, 68, 68, 0.18);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.38), transparent 26%),
    linear-gradient(135deg, rgba(236, 72, 153, 0.85), rgba(239, 68, 68, 0.82));
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 2 / 2.85;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.card-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  opacity: 0;
  background: rgba(17, 24, 39, 0.38);
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-overlay {
  opacity: 1;
}

.play-dot {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--site-red);
  font-size: 22px;
  box-shadow: 0 16px 35px rgba(17, 24, 39, 0.24);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.card-title {
  margin: 0;
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
}

.card-title a:hover {
  color: var(--site-red);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #6b7280;
  font-size: 12px;
}

.meta-pill {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

.card-desc {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

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

.category-card,
.info-card {
  padding: 22px;
  border: 1px solid var(--site-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--site-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card h3,
.info-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #111827;
}

.category-card p,
.info-card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.7;
}

.category-count {
  display: inline-flex;
  margin-top: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--site-red);
  background: #fff1f2;
  font-weight: 800;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 62px 92px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--site-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.rank-num {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--site-orange), var(--site-red));
  font-size: 20px;
  font-weight: 900;
}

.rank-cover {
  width: 92px;
  aspect-ratio: 2 / 2.8;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--site-pink), var(--site-red));
}

.rank-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
  color: #111827;
}

.rank-heat {
  color: var(--site-red);
  font-weight: 900;
  white-space: nowrap;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 22px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--site-red);
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.detail-card {
  overflow: hidden;
  border: 1px solid var(--site-border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: var(--site-shadow);
}

.detail-content {
  padding: 26px;
}

.detail-title {
  margin: 0 0 12px;
  color: #111827;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
  font-weight: 950;
}

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.26);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.70), rgba(0, 0, 0, 0.20));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.player-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border: 0;
  border-radius: 999px;
  color: var(--site-red);
  background: #fff;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 22px 50px rgba(255, 255, 255, 0.22);
}

.content-block {
  margin-top: 24px;
}

.content-block h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 24px;
}

.content-block p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 16px 0 0;
}

.tag-list span {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--site-red);
  background: #fff1f2;
  font-size: 13px;
  font-weight: 800;
}

.side-stack {
  display: grid;
  gap: 18px;
}

.side-card {
  padding: 20px;
  border: 1px solid var(--site-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.side-card h3 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 20px;
}

.side-link {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--site-border);
}

.side-link:first-of-type {
  border-top: 0;
}

.side-link img {
  width: 54px;
  aspect-ratio: 2 / 2.8;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--site-pink), var(--site-red));
}

.side-link strong {
  display: block;
  color: #111827;
  line-height: 1.4;
}

.side-link span {
  color: #6b7280;
  font-size: 12px;
}

.site-footer {
  margin-top: 56px;
  color: #fff;
  background: linear-gradient(90deg, #111827, #1f2937);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
  padding: 46px 0 32px;
}

.footer-grid h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-grid p,
.footer-grid a {
  color: #d1d5db;
  line-height: 1.8;
  font-size: 14px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
}

.empty-state {
  display: none;
  padding: 36px;
  border-radius: 24px;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
}

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

.pagination-note {
  margin-top: 18px;
  color: #6b7280;
  font-size: 14px;
  text-align: center;
}

@keyframes gradientFlow {
  0%, 100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .detail-layout {
    grid-template-columns: 1fr;
  }
}

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

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

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

  .hero-feature {
    max-width: 360px;
  }

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

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

  .rank-item {
    grid-template-columns: 48px 72px 1fr;
  }

  .rank-heat {
    grid-column: 3;
  }

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

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

  .hero {
    min-height: 560px;
  }

  .hero-content {
    min-height: 560px;
    padding: 46px 0;
  }

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

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

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