:root {
  --rose: #e11d48;
  --rose-dark: #9f1239;
  --pink: #db2777;
  --orange: #f97316;
  --amber-soft: #fff7ed;
  --rose-soft: #fff1f2;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #ffe4e6;
  --shadow: 0 18px 45px rgba(136, 19, 55, 0.13);
  --shadow-strong: 0 30px 70px rgba(15, 23, 42, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #fffbeb 0%, #fff1f2 48%, #fdf2f8 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.94), rgba(255, 241, 242, 0.94), rgba(253, 242, 248, 0.94));
  border-bottom: 1px solid rgba(254, 205, 211, 0.65);
  box-shadow: 0 10px 30px rgba(136, 19, 55, 0.08);
  backdrop-filter: blur(16px);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.site-logo {
  font-size: 25px;
  background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.mobile-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active,
.mobile-nav a:hover {
  color: var(--rose);
  background: rgba(255, 255, 255, 0.75);
}

.nav-links a:hover {
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.75);
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(254, 205, 211, 0.8);
}

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg {
  opacity: 0.34;
  transform: scale(1.02);
}

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.78), rgba(136, 19, 55, 0.48), rgba(249, 115, 22, 0.18));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: currentColor;
}

.eyebrow.dark {
  color: var(--rose);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy h1 {
  font-size: clamp(42px, 7vw, 76px);
  max-width: 820px;
}

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

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

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

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

.primary-btn {
  color: var(--rose);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.primary-btn.small {
  min-height: 42px;
  padding: 0 20px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
}

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

.ghost-btn.thin {
  border-color: rgba(255, 255, 255, 0.38);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.2);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-arrow,
.hero-dot {
  pointer-events: auto;
  border: 0;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 34px;
  line-height: 1;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

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

.section {
  padding: 56px 0;
}

.intro-strip {
  margin-top: -34px;
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px;
  border: 1px solid rgba(254, 205, 211, 0.8);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.intro-strip h2,
.section-heading h2,
.page-hero h1,
.content-card h2,
.side-card h2 {
  margin: 0;
}

.intro-strip h2,
.section-heading h2 {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.intro-strip p,
.page-hero p {
  color: var(--muted);
}

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

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading a {
  color: var(--rose);
  font-weight: 800;
}

.card-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(254, 205, 211, 0.86);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(136, 19, 55, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 63, 94, 0.58);
  box-shadow: var(--shadow);
}

.poster-link,
.poster-frame {
  display: block;
}

.poster-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-soft), #fed7aa);
}

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

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

.play-pill {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.46);
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(8px);
}

.movie-card:hover .play-pill {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.year-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 4px 9px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.movie-card-body {
  padding: 18px;
}

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

.card-meta a {
  color: var(--rose);
}

.movie-card h3 {
  display: -webkit-box;
  min-height: 54px;
  margin: 0 0 9px;
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.tag-row span {
  color: var(--rose-dark);
  background: #fff1f2;
  border: 1px solid #ffe4e6;
  padding: 4px 9px;
  font-size: 12px;
}

.split-layout,
.detail-layout,
.rank-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: start;
}

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

.category-tile {
  min-height: 132px;
  padding: 24px;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink) 55%, var(--orange));
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:nth-child(2n) {
  background: linear-gradient(135deg, #7c3aed, #db2777 55%, #f97316);
}

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

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

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.rank-panel,
.side-card,
.content-card,
.search-panel {
  border: 1px solid rgba(254, 205, 211, 0.82);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.rank-panel {
  padding: 24px;
}

.rank-panel.wide {
  grid-column: 1 / -1;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: #fff7ed;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: #fff1f2;
  transform: translateX(3px);
}

.rank-number {
  color: var(--rose);
  font-weight: 900;
  font-size: 20px;
}

.rank-poster {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: #ffe4e6;
}

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

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-copy strong {
  font-size: 15px;
}

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

.rank-score {
  color: var(--orange);
  font-weight: 900;
}

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

.page-hero.soft {
  color: var(--ink);
  background: radial-gradient(circle at top left, rgba(244, 63, 94, 0.18), transparent 38%), linear-gradient(135deg, #fff7ed, #fff1f2 55%, #fdf2f8);
}

.page-hero.ranking-hero {
  background: linear-gradient(135deg, #111827, #9f1239 55%, #f97316);
}

.page-hero h1 {
  max-width: 860px;
  font-size: clamp(34px, 6vw, 64px);
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 18px;
}

.search-panel {
  padding: 22px;
  margin-bottom: 28px;
}

.search-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.search-line input {
  width: 100%;
  height: 50px;
  border: 2px solid #ffe4e6;
  border-radius: 16px;
  padding: 0 16px;
  outline: none;
  background: #ffffff;
}

.search-line input:focus {
  border-color: var(--rose);
}

.search-line button,
.chip {
  border: 0;
  border-radius: 16px;
  color: var(--rose);
  background: #fff1f2;
  font-weight: 800;
}

.search-line button {
  padding: 0 18px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.chip {
  padding: 8px 13px;
}

.chip.active,
.chip:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
}

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

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

.category-card-large {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.category-card-large img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

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

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.76));
}

.category-card-copy {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: #ffffff;
}

.category-card-copy strong,
.category-card-copy em {
  display: block;
}

.category-card-copy strong {
  font-size: 24px;
  font-weight: 900;
}

.category-card-copy em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
}

.detail-hero {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-bg {
  opacity: 0.32;
  filter: blur(1px);
}

.detail-shade {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(136, 19, 55, 0.62), rgba(249, 115, 22, 0.2));
}

.detail-hero-inner {
  position: relative;
  padding: 34px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

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

.detail-copy {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  margin-top: 44px;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 8px solid rgba(255, 255, 255, 0.28);
  border-radius: 26px;
  box-shadow: var(--shadow-strong);
}

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

.detail-copy h1 {
  font-size: clamp(36px, 6vw, 72px);
}

.detail-one-line {
  max-width: 820px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

.detail-meta,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.detail-main {
  min-width: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow-strong);
}

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

.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(15, 23, 42, 0.22), rgba(15, 23, 42, 0.72));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.36);
  font-size: 30px;
}

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

.content-card,
.side-card {
  padding: 28px;
}

.content-card {
  margin-top: 28px;
}

.content-card h2,
.side-card h2 {
  color: var(--rose-dark);
  font-size: 24px;
  letter-spacing: -0.03em;
}

.content-card p {
  margin: 14px 0 26px;
  color: #374151;
  font-size: 17px;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.side-card {
  position: sticky;
  top: 100px;
}

.side-card dl {
  display: grid;
  gap: 13px;
  margin: 18px 0 0;
}

.side-card dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.side-card dd {
  margin: -8px 0 0;
  color: var(--ink);
  font-weight: 700;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
  padding: 48px 0;
}

.footer-logo {
  color: #ffffff;
  font-size: 22px;
}

.footer-grid p {
  max-width: 420px;
  margin: 14px 0 0;
  color: #9ca3af;
}

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

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

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

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

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

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

  .side-card {
    position: static;
  }
}

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-slider {
    height: 560px;
  }

  .hero-controls {
    justify-content: center;
    gap: 18px;
  }

  .intro-strip,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .cards-four,
  .cards-three,
  .category-grid,
  .category-large-grid,
  .rank-list.two-column,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-copy {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .detail-poster {
    width: min(260px, 70vw);
  }
}

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

  .site-logo {
    font-size: 20px;
  }

  .hero-slider {
    height: 540px;
  }

  .hero-actions,
  .search-line {
    grid-template-columns: 1fr;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .cards-four,
  .cards-three,
  .category-grid,
  .category-large-grid,
  .rank-list.two-column,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 32px 60px minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }

  .section {
    padding: 40px 0;
  }

  .page-hero {
    padding: 62px 0;
  }
}
