:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --orange-400: #fb923c;
  --amber-500: #f59e0b;
  --cyan-500: #06b6d4;
  --blue-500: #3b82f6;
  --purple-50: #faf5ff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-soft: 0 16px 38px rgba(15, 23, 42, 0.10);
  --shadow-card: 0 10px 26px rgba(15, 23, 42, 0.09);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
}

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

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

button,
input,
select {
  font: inherit;
}

.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.9);
  backdrop-filter: blur(16px);
}

.nav-shell {
  max-width: var(--max);
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--gray-900);
  white-space: nowrap;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 12px 22px rgba(244, 63, 94, 0.28);
  transform: translateY(-1px);
}

.brand-text {
  font-size: 20px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--gray-700);
  font-size: 15px;
}

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

.main-nav a:hover,
.mobile-nav a:hover {
  color: var(--rose-500);
}

.nav-search {
  width: 250px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 7px 10px 7px 14px;
  background: #fff;
}

.nav-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--gray-700);
  background: transparent;
}

.nav-search button,
.search-button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--gray-700);
  background: var(--gray-100);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 18px;
  color: var(--gray-700);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav-grid {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
}

.page-main {
  min-height: 60vh;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500) 54%, var(--orange-400));
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.22;
  background: #fff;
}

.hero::before {
  width: 320px;
  height: 320px;
  left: 8%;
  top: 44px;
}

.hero::after {
  width: 440px;
  height: 440px;
  right: 6%;
  bottom: -140px;
  background: #fde68a;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  min-height: 560px;
  margin: 0 auto;
  padding: 84px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  align-items: center;
  gap: 48px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero-emphasis {
  color: #fde68a;
}

.hero-copy {
  max-width: 680px;
  margin: 0 0 28px;
  color: #ffe4e6;
  font-size: 20px;
  line-height: 1.8;
}

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

.btn-primary,
.btn-secondary,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  color: var(--rose-500);
  background: #fff;
  padding: 13px 24px;
  box-shadow: 0 14px 30px rgba(136, 19, 55, 0.2);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-soft:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  padding: 12px 22px;
}

.btn-soft {
  color: var(--rose-600);
  background: var(--rose-50);
  padding: 10px 16px;
}

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

.hero-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.hero-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(76, 5, 25, 0.35);
  transform: translateZ(0);
}

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

.hero-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.12);
  transition: transform 0.32s ease;
}

.hero-card::after,
.movie-thumb::after,
.feature-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.68));
  pointer-events: none;
}

.hero-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 26px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: var(--rose-500);
  font-size: 13px;
  font-weight: 700;
}

.hero-card h2 {
  margin: 13px 0 8px;
  font-size: 30px;
  line-height: 1.2;
}

.hero-card p {
  margin: 0;
  color: #e5e7eb;
  line-height: 1.7;
}

.section {
  padding: 72px 0;
}

.section-soft-blue {
  background: linear-gradient(90deg, #eff6ff, #ecfeff);
}

.section-rank {
  background: linear-gradient(135deg, var(--purple-50), #fdf2f8, var(--rose-50));
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--gray-800);
  font-size: 30px;
  line-height: 1.25;
}

.section-title .mark {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
}

.section-link {
  color: var(--rose-500);
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.category-tile {
  display: block;
  padding: 24px;
  text-align: center;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.category-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.category-tile h3 {
  margin: 0 0 6px;
  color: var(--gray-800);
}

.category-tile p {
  margin: 0;
  color: var(--gray-500);
  font-size: 14px;
}

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-thumb {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), #fef3c7);
}

.movie-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.24s ease;
}

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

.movie-meta-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.movie-pill {
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(244, 63, 94, 0.94);
  font-size: 12px;
  font-weight: 700;
}

.movie-year {
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, 0.68);
  font-size: 12px;
}

.movie-body {
  flex: 1;
  padding: 18px;
}

.movie-body h3 {
  margin: 0 0 8px;
  color: var(--gray-800);
  font-size: 18px;
  line-height: 1.35;
}

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

.movie-desc {
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--gray-600);
  background: var(--gray-100);
  font-size: 12px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 128px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.rank-num {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 18px;
  font-weight: 800;
}

.rank-num.top-1 {
  color: #fff;
  background: linear-gradient(135deg, #facc15, #f97316);
}

.rank-num.top-2 {
  color: #fff;
  background: linear-gradient(135deg, #cbd5e1, #64748b);
}

.rank-num.top-3 {
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #c2410c);
}

.rank-cover {
  width: 128px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  background: var(--rose-100);
}

.rank-title {
  margin: 0 0 6px;
  color: var(--gray-800);
  font-weight: 800;
}

.rank-desc {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.6;
}

.banner {
  color: #fff;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  padding: 54px 0;
}

.banner.blue {
  background: linear-gradient(90deg, var(--blue-500), var(--cyan-500));
}

.banner h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.15;
}

.banner p {
  max-width: 740px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px auto;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--gray-700);
  background: #fff;
  outline: 0;
}

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

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.page-link {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  color: var(--gray-700);
  background: #fff;
  font-weight: 700;
}

.page-link.current,
.page-link:hover {
  color: #fff;
  border-color: transparent;
  background: var(--rose-500);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--rose-500);
}

.content-card,
.sidebar-card {
  overflow: hidden;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.detail-body {
  padding: 26px;
}

.detail-title {
  margin: 0 0 12px;
  color: var(--gray-800);
  font-size: 32px;
  line-height: 1.25;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--gray-500);
  font-size: 14px;
}

.detail-section {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.detail-section h2 {
  margin: 0 0 12px;
  color: var(--gray-800);
  font-size: 22px;
}

.detail-section p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.9;
}

.review-box {
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--rose-50), #fdf2f8);
}

.summary-box {
  padding: 20px;
  border-radius: 16px;
  background: var(--gray-50);
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #000;
  border-radius: 20px 20px 0 0;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
  transition: opacity 0.2s ease, visibility 0.2s ease;
  cursor: pointer;
}

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

.player-button {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 20px 50px rgba(244, 63, 94, 0.42);
  cursor: pointer;
}

.player-button svg {
  margin-left: 5px;
}

.sidebar-card {
  padding: 18px;
}

.sidebar-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
  background: var(--rose-100);
}

.sidebar-card h2 {
  margin: 16px 0 12px;
  font-size: 22px;
}

.side-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.side-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
}

.side-item img {
  width: 86px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  background: var(--rose-100);
}

.side-item h3 {
  margin: 0 0 5px;
  color: var(--gray-800);
  font-size: 14px;
  line-height: 1.35;
}

.side-item:hover h3 {
  color: var(--rose-500);
}

.side-item p {
  margin: 0;
  color: var(--gray-500);
  font-size: 12px;
}

.feature-panel {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

.feature-panel img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.feature-panel-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 28px;
  color: #fff;
}

.feature-panel h3 {
  margin: 10px 0 8px;
  font-size: 28px;
}

.feature-panel p {
  max-width: 720px;
  margin: 0;
  color: #e5e7eb;
  line-height: 1.7;
}

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

.collection-card {
  display: block;
  min-height: 190px;
  padding: 26px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.collection-card:nth-child(3n + 2) {
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
}

.collection-card:nth-child(3n) {
  background: linear-gradient(135deg, #8b5cf6, var(--pink-500));
}

.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.collection-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.collection-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, var(--gray-900), #1f2937);
  padding: 54px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.footer-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

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

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

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  font-size: 14px;
}

.hidden-by-filter {
  display: none !important;
}

.empty-state {
  display: none;
  padding: 60px 20px;
  text-align: center;
  color: var(--gray-500);
}

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

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

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

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

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

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

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

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

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

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

  .rank-item {
    grid-template-columns: 44px 92px 1fr;
  }

  .rank-action {
    display: none;
  }

  .rank-cover {
    width: 92px;
  }

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

@media (max-width: 620px) {
  .brand-text {
    font-size: 17px;
  }

  .nav-shell {
    height: 62px;
    padding: 0 14px;
  }

  .container {
    padding: 0 14px;
  }

  .hero-inner {
    padding: 58px 14px;
    gap: 32px;
  }

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

  .hero-copy {
    font-size: 17px;
  }

  .hero-card-content {
    padding: 18px;
  }

  .hero-card h2 {
    font-size: 23px;
  }

  .section {
    padding: 52px 0;
  }

  .grid-3,
  .grid-4,
  .category-grid,
  .category-collection {
    grid-template-columns: 1fr;
  }

  .detail-body {
    padding: 20px;
  }

  .detail-title {
    font-size: 27px;
  }

  .side-item {
    grid-template-columns: 76px 1fr;
  }
}
