:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --amber-400: #fbbf24;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 20px 40px rgba(15, 23, 42, 0.16);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: #ffffff;
  line-height: 1.65;
}

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.95);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 10px 20px rgba(244, 63, 94, 0.25);
  font-size: 13px;
}

.brand-text,
.footer-brand {
  font-size: 22px;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: var(--gray-700);
  font-weight: 600;
  transition: color 0.2s ease;
}

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

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

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 11px 16px;
  min-width: 190px;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.header-search button,
.mobile-search button,
.filter-bar button,
.btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button,
.btn.primary,
.filter-bar button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 10px 20px rgba(244, 63, 94, 0.2);
}

.header-search button:hover,
.mobile-search button:hover,
.btn:hover,
.filter-bar button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-xl);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: none;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
  color: var(--gray-900);
  padding: 10px 13px;
  font-size: 20px;
}

.mobile-panel {
  padding: 14px 22px 22px;
  border-top: 1px solid var(--gray-100);
}

.mobile-link {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  font-weight: 700;
}

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

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--gray-900);
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  background-size: cover;
  background-position: center;
  filter: blur(2px) saturate(1.12);
  transform: scale(1.04);
}

.hero-overlay {
  background:
    radial-gradient(circle at 75% 20%, rgba(244, 63, 94, 0.48), transparent 34%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.72) 48%, rgba(17, 24, 39, 0.42) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  min-height: 680px;
  margin: 0 auto;
  padding: 92px 22px 72px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 64px;
  color: #ffffff;
}

.eyebrow,
.kicker {
  margin: 0 0 14px;
  color: #fecdd3;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 22px;
  max-width: 760px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-desc {
  max-width: 700px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

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

.hero-poster {
  justify-self: end;
  width: min(390px, 100%);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-6px);
}

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

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

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

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

main {
  background: #ffffff;
}

.content-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 22px;
}

.content-section.tint {
  max-width: none;
  background: linear-gradient(135deg, var(--rose-50), #fff7ed);
}

.content-inner {
  max-width: 1180px;
  margin: 0 auto;
}

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

.section-head.solo {
  display: block;
}

.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 0 0 8px;
  color: var(--gray-900);
  line-height: 1.15;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-head p,
.page-title p,
.detail-title p {
  margin: 0;
  color: var(--gray-600);
}

.section-more {
  color: var(--rose-600);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--gray-100);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rose-500), var(--amber-400));
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--rose-600);
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--rose-500);
}

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

.tag-row span,
.detail-tags span {
  color: var(--rose-600);
  background: var(--rose-50);
}

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

.category-tile,
.stat-card,
.category-chip {
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile {
  padding: 24px;
}

.category-tile:hover,
.stat-card:hover,
.category-chip:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

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

.category-tile span,
.category-chip small {
  color: var(--gray-600);
}

.page-hero {
  padding: 76px 22px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500) 55%, var(--amber-400));
}

.page-title {
  max-width: 900px;
  margin: 0 auto;
}

.page-title h1 {
  color: #ffffff;
  font-size: clamp(36px, 5vw, 58px);
}

.page-title p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.filter-bar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.filter-bar input {
  flex: 1 1 280px;
}

.filter-bar select {
  min-width: 160px;
}

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

.category-chip {
  padding: 20px;
}

.category-chip span {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
  font-weight: 800;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: var(--gray-900);
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(8px) saturate(1.15);
  transform: scale(1.08);
  opacity: 0.46;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.65));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 22px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

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

.breadcrumb {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-title h1 {
  color: #ffffff;
  font-size: clamp(36px, 5vw, 60px);
}

.detail-title p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.detail-meta span {
  border-radius: 999px;
  padding: 8px 13px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.detail-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 22px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
}

.detail-main,
.detail-side,
.player-panel {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.player-panel {
  padding: 18px;
  margin-bottom: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #020617;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.76));
}

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

.play-button {
  position: relative;
  z-index: 1;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(244, 63, 94, 0.32);
}

.detail-main {
  padding: 30px;
}

.detail-main h2,
.detail-side h2,
.player-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.detail-main p {
  margin: 0 0 20px;
  color: var(--gray-700);
  font-size: 17px;
}

.detail-side {
  padding: 22px;
  align-self: start;
  position: sticky;
  top: 92px;
}

.mini-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

.mini-card:last-child {
  border-bottom: 0;
}

.mini-card img {
  width: 76px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.mini-card span {
  display: block;
  font-weight: 800;
  line-height: 1.35;
}

.mini-card small {
  color: var(--gray-500);
}

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

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 22px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-grid p,
.footer-grid a,
.footer-grid li {
  color: var(--gray-600);
}

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

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li {
  margin: 8px 0;
}

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

.footer-bottom {
  border-top: 1px solid rgba(244, 63, 94, 0.18);
  padding: 18px 22px;
  color: var(--gray-600);
  text-align: center;
}

.empty-state {
  display: none;
  padding: 46px;
  border-radius: 24px;
  text-align: center;
  color: var(--gray-600);
  background: var(--gray-50);
}

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

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

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

  .hero-poster {
    justify-self: start;
    width: 300px;
  }

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 0 16px;
  }

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

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

  .hero-content {
    padding-top: 56px;
    gap: 26px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-desc,
  .detail-title p {
    font-size: 16px;
  }

  .hero-poster {
    width: 210px;
  }

  .section-head,
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .content-section {
    padding: 48px 16px;
  }

  .detail-hero-inner,
  .detail-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .detail-cover {
    max-width: 240px;
  }
}
