:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  --pink-500: #ec4899;
  --orange-100: #ffedd5;
  --text: #111827;
  --muted: #6b7280;
  --line: #f3d4dc;
  --card: #ffffff;
  --shadow: 0 18px 42px rgba(190, 18, 60, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(244, 63, 94, 0.14);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
}

.nav-wrap {
  max-width: 1180px;
  height: 66px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--rose-600);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-600), var(--pink-500));
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.26);
  font-size: 14px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 650;
  color: #4b5563;
}

.nav-link {
  position: relative;
  padding: 23px 0;
  transition: color 0.2s ease;
}

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

.nav-link.active::after,
.nav-link:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose-600), var(--pink-500));
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--rose-50);
  color: var(--rose-700);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  padding: 0 20px 16px;
  border-top: 1px solid var(--rose-100);
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: #4b5563;
  font-weight: 700;
}

.mobile-link.active,
.mobile-link:hover {
  color: var(--rose-600);
  background: var(--rose-50);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(244, 63, 94, 0.16), transparent 34%),
    radial-gradient(circle at 90% 16%, rgba(236, 72, 153, 0.16), transparent 32%),
    linear-gradient(135deg, #fff1f2 0%, #fdf2f8 48%, #fffbeb 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(225, 29, 72, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225, 29, 72, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
}

.hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 20px 78px;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 42px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  font-weight: 700;
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.hero h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, var(--rose-600), var(--pink-500));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero p {
  margin: 0 0 26px;
  max-width: 680px;
  color: #5b6472;
  font-size: 19px;
  line-height: 1.85;
}

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

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose-600), var(--pink-500));
}

.btn-light {
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(225, 29, 72, 0.12);
}

.search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  max-width: 640px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.search-bar input,
.filter-input,
.filter-select {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(225, 29, 72, 0.16);
  border-radius: 15px;
  outline: none;
  padding: 0 15px;
  color: #374151;
  background: #ffffff;
  font-size: 15px;
}

.search-bar button {
  border: 0;
  border-radius: 15px;
  padding: 0 20px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose-600), var(--pink-500));
  font-weight: 800;
}

.hero-showcase {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(22px) scale(0.98);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.hero-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 34px;
  background: #111827;
  box-shadow: 0 30px 70px rgba(127, 29, 29, 0.26);
}

.hero-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 0.8s ease;
}

.hero-card:hover img {
  transform: scale(1.06);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 18%, rgba(17, 24, 39, 0.24) 40%, rgba(17, 24, 39, 0.92) 100%);
}

.hero-caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  color: #ffffff;
}

.hero-caption h2 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.2;
}

.hero-caption p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.7;
}

.hero-dots {
  position: absolute;
  left: 28px;
  bottom: -28px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: #fecdd3;
}

.hero-dot.active {
  width: 28px;
  background: var(--rose-600);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 62px 20px;
}

.section.alt {
  max-width: none;
  background: linear-gradient(180deg, #ffffff, #fff1f2);
}

.section.alt > .section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

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

.section-title h2,
.page-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.035em;
}

.section-title p,
.page-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--rose-50);
}

.movie-card.landscape .poster-link {
  aspect-ratio: 16 / 9;
}

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

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

.poster-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 28px;
  background: rgba(17, 24, 39, 0.42);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
}

.rank-no {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose-600), var(--pink-500));
  font-size: 13px;
}

.card-body {
  padding: 13px;
}

.card-title {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  color: #111827;
  font-weight: 800;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-title:hover {
  color: var(--rose-600);
}

.card-body p {
  display: -webkit-box;
  min-height: 42px;
  margin: 8px 0 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.card-meta {
  justify-content: space-between;
  color: #9ca3af;
  font-size: 12px;
}

.tag-row {
  margin-top: 10px;
}

.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--rose-700);
  background: var(--rose-50);
  font-size: 12px;
  font-weight: 700;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.08);
}

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

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

.tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.84));
}

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

.tile-content b {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.tile-content em {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 74px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(225, 29, 72, 0.1);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.04);
}

.rank-item strong {
  color: var(--rose-600);
  font-size: 22px;
  text-align: center;
}

.rank-item img {
  width: 74px;
  height: 98px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-item b {
  display: block;
  margin-bottom: 8px;
}

.rank-item em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  background: linear-gradient(135deg, var(--rose-600), var(--pink-500));
  color: #ffffff;
}

.page-hero .section {
  padding-top: 58px;
  padding-bottom: 58px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.84);
  max-width: 720px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 160px;
  gap: 12px;
  margin-bottom: 26px;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.empty-state {
  display: none;
  padding: 32px;
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}

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

.player-card,
.detail-card,
.side-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111827;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.05), rgba(17, 24, 39, 0.52));
}

.play-cover.hide {
  display: none;
}

.play-cover span {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose-600), var(--pink-500));
  box-shadow: 0 20px 44px rgba(225, 29, 72, 0.35);
  font-size: 30px;
}

.detail-card {
  padding: 28px;
}

.breadcrumb {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.035em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #4b5563;
  background: #f9fafb;
  font-weight: 700;
  font-size: 13px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

.detail-section h2 {
  margin: 28px 0 12px;
  font-size: 23px;
}

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

.side-card {
  padding: 18px;
}

.side-card h2 {
  margin: 0 0 16px;
}

.side-poster {
  width: 100%;
  border-radius: 20px;
  margin-bottom: 18px;
}

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--rose-100);
  background: linear-gradient(180deg, var(--rose-50), #ffffff);
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 28px;
}

.site-footer p,
.site-footer a {
  color: #6b7280;
  line-height: 1.8;
}

.site-footer a {
  display: block;
  margin: 7px 0;
}

.site-footer a:hover {
  color: var(--rose-600);
}

.site-footer h3 {
  margin: 0 0 12px;
}

.hide-card {
  display: none !important;
}

@media (max-width: 1024px) {
  .hero-inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-showcase,
  .hero-card,
  .hero-card img {
    min-height: 430px;
    height: 430px;
  }

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

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

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .hero-inner {
    padding-top: 46px;
    padding-bottom: 62px;
  }

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

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

  .hero-showcase,
  .hero-card,
  .hero-card img {
    min-height: 390px;
    height: 390px;
  }

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

  .category-grid,
  .rank-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 36px 66px 1fr;
  }

  .rank-item img {
    width: 66px;
    height: 88px;
  }

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

  .detail-card {
    padding: 20px;
  }
}

@media (max-width: 420px) {
  .grid,
  .grid.wide {
    grid-template-columns: 1fr;
  }
}
