:root {
  --rose: #e11d48;
  --rose-dark: #be123c;
  --pink: #db2777;
  --orange: #f97316;
  --amber-soft: #fff7ed;
  --rose-soft: #fff1f2;
  --pink-soft: #fdf2f8;
  --slate: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate);
  background: linear-gradient(135deg, var(--amber-soft), var(--rose-soft) 45%, var(--pink-soft));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  font-size: 14px;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.3);
}

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

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #fff1f2;
  color: var(--rose);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7f7;
  font-weight: 700;
}

.hero-section {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.36) 48%, rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 48px;
  color: #ffffff;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-label::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 680px;
  margin: 24px 0 0;
  font-size: clamp(18px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.9);
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-meta span,
.detail-meta span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.94);
  font-weight: 800;
  backdrop-filter: blur(10px);
}

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

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

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

.hero-section .primary-btn {
  color: var(--rose);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.ghost-btn {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

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

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-links a {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 800;
}

.hero-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
}

.hero-panel h2 {
  margin: 10px 0 12px;
  font-size: 30px;
  line-height: 1.2;
}

.hero-panel p {
  color: rgba(255, 255, 255, 0.86);
}

.hero-panel a {
  display: inline-flex;
  margin-top: 12px;
  color: #ffffff;
  font-weight: 900;
}

.section-block {
  padding: 72px 0;
}

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

.section-head.centered {
  justify-content: center;
  text-align: center;
}

.section-head h2,
.rank-copy h2,
.player-section h2,
.detail-article h2,
.related-panel h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-head p,
.rank-copy p {
  margin: 10px 0 0;
  color: var(--muted);
}

.section-head a {
  color: var(--rose);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f2, #ffedd5);
}

.movie-card-large .poster-link {
  aspect-ratio: 16 / 10;
}

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

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

.poster-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.62));
}

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(10px);
}

.year-badge {
  right: 12px;
}

.rank-badge {
  left: 12px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.card-body {
  padding: 18px;
}

.card-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.card-body h2 {
  display: -webkit-box;
  margin: 0 0 8px;
  min-height: 48px;
  overflow: hidden;
  color: var(--slate);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.card-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.card-tags span,
.tag-list span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #9f1239;
  background: #fff1f2;
  font-size: 12px;
  font-weight: 800;
}

.category-band,
.rank-band {
  padding: 72px 0;
  background: #ffffff;
}

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

.category-tile,
.category-card-main {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  border: 2px solid transparent;
  border-radius: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tile-color) 11%, white), #ffffff);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-card:hover .category-card-main {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--tile-color) 32%, white);
  box-shadow: var(--shadow);
}

.category-icon,
.category-card-main span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: var(--tile-color);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--tile-color) 24%, transparent);
}

.category-tile strong,
.category-card-main h2 {
  margin: 0;
  font-size: 21px;
  font-style: normal;
  font-weight: 950;
}

.category-tile em,
.category-card-main p {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

.rank-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.rank-copy {
  position: sticky;
  top: 100px;
}

.rank-copy p {
  margin-bottom: 24px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: auto 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.compact-rank {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  font-weight: 950;
}

.compact-poster {
  display: block;
  width: 72px;
  height: 94px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff1f2;
}

.compact-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compact-card h2 {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.35;
}

.compact-card h2 a:hover {
  color: var(--rose);
}

.compact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.page-hero {
  padding: 86px 0 72px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
}

.compact-hero {
  background: linear-gradient(135deg, var(--hero-color), var(--pink), var(--orange));
}

.rank-hero {
  background: linear-gradient(135deg, #7c2d12, var(--rose), var(--pink));
}

.page-hero p {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

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

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.category-tabs a {
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.category-tabs a.active,
.category-tabs a:hover {
  color: var(--rose);
  background: #ffffff;
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.search-box {
  position: relative;
  flex: 1;
}

.search-box span {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 22px;
}

.search-box input,
.filter-selects select {
  width: 100%;
  min-height: 48px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--slate);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input {
  padding: 0 16px 0 48px;
}

.filter-selects {
  display: flex;
  gap: 12px;
}

.filter-selects select {
  min-width: 150px;
  padding: 0 12px;
}

.search-box input:focus,
.filter-selects select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.10);
}

.no-results {
  display: none;
  margin: 36px 0;
  padding: 28px;
  border-radius: 22px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.no-results.is-visible {
  display: block;
}

.category-card {
  --tile-color: var(--rose);
}

.category-card-main {
  min-height: 220px;
}

.category-samples {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 0 10px;
}

.category-samples a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.category-samples a:hover {
  color: var(--rose);
}

.detail-hero {
  padding: 54px 0 72px;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 26%), linear-gradient(135deg, #111827, var(--rose), var(--orange));
}

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

.detail-poster {
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

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

.detail-info .lead-text {
  max-width: 820px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

.detail-info .tag-list span,
.large-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.detail-info .primary-btn {
  margin-top: 28px;
  background: #ffffff;
  color: var(--rose);
}

.player-section {
  padding: 54px 0 20px;
}

.player-section h2 {
  margin-bottom: 20px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.34);
  aspect-ratio: 16 / 9;
}

.player-box video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
  cursor: pointer;
}

.play-overlay span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  padding-left: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 18px 45px rgba(225, 29, 72, 0.45);
  font-size: 36px;
}

.play-overlay strong {
  margin-top: -40px;
  font-size: 20px;
}

.play-overlay.is-hidden {
  display: none;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  padding: 54px 0 20px;
}

.detail-article,
.related-panel {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.detail-article {
  padding: 34px;
}

.detail-article h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 26px;
}

.detail-article h2:not(:first-child) {
  margin-top: 34px;
}

.detail-article p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

.related-panel {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 24px;
}

.related-panel h2 {
  margin-bottom: 18px;
  font-size: 24px;
}

.ghost-link {
  width: 100%;
  margin-top: 18px;
  color: var(--rose);
  background: #fff1f2;
}

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

.site-footer {
  margin-top: 80px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding: 56px 0;
}

.footer-logo {
  margin-bottom: 18px;
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

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

.footer-grid p,
.footer-grid ul {
  margin: 0;
  padding: 0;
  color: #9ca3af;
  list-style: none;
}

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

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

.footer-bottom {
  padding: 20px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  text-align: center;
  font-size: 14px;
}

[data-movie-card].is-hidden {
  display: none;
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 14px;
    font-size: 14px;
  }

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

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

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

  .rank-copy,
  .related-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero-section,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    padding: 64px 0;
  }

  .hero-panel {
    display: none;
  }

  .section-head,
  .filter-panel,
  .detail-top {
    flex-direction: column;
    display: flex;
    align-items: stretch;
  }

  .filter-selects {
    flex-direction: column;
  }

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

  .movie-grid,
  .large-grid,
  .category-grid,
  .category-overview-grid,
  .wide-rank,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .logo {
    font-size: 20px;
  }

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

  .movie-grid,
  .large-grid,
  .category-grid,
  .category-overview-grid,
  .wide-rank,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .compact-card {
    grid-template-columns: auto 64px minmax(0, 1fr);
  }

  .compact-poster {
    width: 64px;
    height: 84px;
  }

  .detail-article,
  .related-panel {
    padding: 22px;
  }

  .play-overlay span {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
