:root {
  --rose: #e11d48;
  --pink: #db2777;
  --orange: #f97316;
  --amber-soft: #fff7ed;
  --rose-soft: #fff1f2;
  --ink: #111827;
  --muted: #6b7280;
  --line: #f3d4db;
  --card: #ffffff;
  --shadow: 0 24px 70px rgba(190, 18, 60, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.94), rgba(255, 241, 242, 0.94), rgba(253, 242, 248, 0.94));
  border-bottom: 1px solid rgba(244, 114, 182, 0.22);
  box-shadow: 0 12px 32px rgba(244, 63, 94, 0.09);
  backdrop-filter: blur(16px);
}

.nav-shell {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.site-logo {
  font-size: 26px;
  white-space: nowrap;
}

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

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

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

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

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #374151;
}

.hero-section {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(120deg, #be123c, #db2777 45%, #f97316);
}

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

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

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

.hero-backdrop img {
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(1.12) contrast(1.05);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.82), rgba(190, 18, 60, 0.52), rgba(249, 115, 22, 0.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  min-height: 620px;
  padding: 100px 22px 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

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

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

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

.hero-tags span,
.tag-list span,
.movie-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

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

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

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
  box-shadow: 0 16px 34px rgba(225, 29, 72, 0.28);
}

.hero-section .primary-button {
  color: var(--rose);
  background: #fff;
}

.ghost-button {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.search-box button:hover,
.section-more:hover {
  transform: translateY(-2px) scale(1.01);
}

.small-button {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

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

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

.hero-dot.is-active {
  width: 52px;
  background: #fff;
}

.home-search-panel,
.content-section,
.footer-grid,
.page-hero,
.detail-layout {
  max-width: 1240px;
  margin: 0 auto;
}

.home-search-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  margin-top: -58px;
  padding: 30px;
  position: relative;
  z-index: 5;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.home-search-panel span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--rose);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.home-search-panel h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.home-search-panel p {
  margin: 10px 0 0;
  color: var(--muted);
}

.search-box,
.filter-card {
  display: flex;
  gap: 12px;
}

.search-box input,
.filter-card input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  color: #374151;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

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

.search-box button {
  border: 0;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--rose), var(--pink));
}

.content-section {
  padding: 70px 22px 0;
}

.rose-panel {
  max-width: none;
  margin-top: 70px;
  padding: 70px max(22px, calc((100vw - 1240px) / 2)) 70px;
  background: linear-gradient(90deg, rgba(255, 228, 230, 0.82), rgba(252, 231, 243, 0.86), rgba(255, 237, 213, 0.82));
}

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

.section-heading h2,
.split-recommend h2,
.category-strip h3,
.story-card h2,
.related-card h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  min-height: 40px;
  color: var(--rose);
  background: #fff;
  box-shadow: 0 10px 22px rgba(225, 29, 72, 0.1);
}

.category-grid,
.category-overview-grid {
  display: grid;
  gap: 20px;
}

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

.category-tile,
.category-overview-card,
.movie-card,
.story-card,
.related-card,
.rank-item,
.filter-card {
  border: 1px solid rgba(244, 114, 182, 0.18);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 42px rgba(225, 29, 72, 0.08);
}

.category-tile {
  min-height: 178px;
  padding: 24px;
  border-radius: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-overview-card:hover,
.rank-item:hover {
  transform: translateY(-5px);
  border-color: rgba(225, 29, 72, 0.38);
  box-shadow: 0 24px 60px rgba(225, 29, 72, 0.15);
}

.category-icon {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 15px;
  color: #fff;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
  font-size: 24px;
  font-weight: 950;
}

.category-tile h3,
.movie-card h3,
.compact-body h3,
.rank-body h2,
.category-overview-card h2 {
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.category-tile p,
.movie-card p,
.compact-body p,
.rank-body p,
.story-card p,
.category-overview-card p,
.detail-one-line {
  color: var(--muted);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.poster-link img,
.compact-poster img,
.rank-poster img,
.detail-poster img,
.detail-backdrop img,
.overview-preview img {
  height: 100%;
  object-fit: cover;
}

.movie-card:hover img,
.rank-item:hover img,
.category-overview-card:hover img {
  transform: scale(1.04);
}

.movie-card img,
.rank-item img,
.category-overview-card img {
  transition: transform 0.35s ease;
}

.poster-year {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, 0.68);
  font-size: 12px;
  font-weight: 850;
  backdrop-filter: blur(8px);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 11px;
}

.movie-meta span {
  color: #be123c;
  background: #fff1f2;
}

.small-meta span {
  min-height: 24px;
  padding: 2px 8px;
  font-size: 11px;
}

.movie-card h3 {
  font-size: 19px;
}

.movie-card p {
  min-height: 54px;
  margin: 10px 0 14px;
  font-size: 14px;
}

.tag-list span {
  color: #9d174d;
  background: #fce7f3;
}

.split-recommend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.compact-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.movie-card-compact {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  padding: 12px;
  border-radius: 20px;
}

.compact-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 15px;
  background: #fff1f2;
}

.compact-body {
  align-self: center;
}

.compact-body h3 {
  font-size: 16px;
}

.compact-body p {
  margin: 6px 0 0;
  font-size: 13px;
}

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

.category-strip {
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 241, 242, 0.78));
  box-shadow: 0 16px 42px rgba(225, 29, 72, 0.08);
}

.strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.strip-head a {
  color: var(--rose);
  font-weight: 850;
}

.page-hero {
  margin-top: 34px;
  padding: 64px 34px;
  border-radius: 32px;
  color: #fff;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.24), transparent 32%), linear-gradient(120deg, #be123c, #db2777 48%, #f97316);
  box-shadow: var(--shadow);
}

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

.compact-hero h1,
.category-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
}

.category-tools {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  align-items: center;
}

.filter-card {
  flex-direction: column;
  padding: 18px;
  border-radius: 22px;
}

.filter-card label {
  font-weight: 850;
}

.sibling-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sibling-categories a {
  padding: 9px 14px;
  border-radius: 999px;
  color: #be123c;
  background: #fff;
  font-weight: 760;
  box-shadow: 0 10px 26px rgba(225, 29, 72, 0.08);
}

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

.category-overview-card {
  padding: 24px;
  border-radius: 28px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-overview-head {
  display: flex;
  gap: 16px;
}

.overview-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.overview-preview a {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: #fff1f2;
}

.overview-preview span {
  position: absolute;
  inset: auto 0 0;
  padding: 20px 8px 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  background: linear-gradient(transparent, rgba(17, 24, 39, 0.82));
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.28;
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(190, 18, 60, 0.62), rgba(249, 115, 22, 0.18));
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  min-height: 560px;
  padding: 76px 22px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: #fff;
}

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

.detail-meta span,
.detail-tags span {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.13);
}

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.24);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(225, 29, 72, 0.28), rgba(2, 6, 23, 0.68));
  cursor: pointer;
}

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

.play-icon {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  color: var(--rose);
  background: #fff;
  font-size: 34px;
  box-shadow: 0 18px 38px rgba(255, 255, 255, 0.22);
}

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

.story-card,
.related-card {
  margin-top: 22px;
  padding: 26px;
  border-radius: 26px;
}

.story-card p {
  margin: 16px 0 0;
  font-size: 16px;
}

.related-card {
  position: sticky;
  top: 96px;
  margin-top: 0;
}

.ranking-section {
  padding-top: 42px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 14px;
  border-radius: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.rank-poster {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
}

.rank-poster span {
  position: absolute;
  left: 10px;
  top: 10px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
  font-weight: 950;
}

.rank-body {
  align-self: center;
}

.rank-body h2 {
  font-size: 24px;
}

.heat-bar {
  overflow: hidden;
  height: 8px;
  margin-top: 14px;
  border-radius: 999px;
  background: #ffe4e6;
}

.heat-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 46px 22px;
}

.footer-logo {
  margin-bottom: 14px;
  color: #fff;
  background: none;
}

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

.footer-grid p {
  margin: 0;
  color: #9ca3af;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: #d1d5db;
}

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

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

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

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

  .related-card {
    position: static;
  }

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

@media (max-width: 820px) {
  .mobile-menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .home-search-panel,
  .split-recommend,
  .category-tools,
  .detail-layout,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .home-search-panel {
    margin: -34px 16px 0;
    padding: 22px;
  }

  .search-box {
    flex-direction: column;
  }

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

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

  .hero-content {
    padding-top: 82px;
  }

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

  .detail-layout {
    padding-top: 42px;
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .site-logo {
    font-size: 20px;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 12px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 36px;
  }

  .hero-content p,
  .detail-one-line {
    font-size: 17px;
  }

  .content-section {
    padding-top: 46px;
  }

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

  .category-grid,
  .movie-grid,
  .large-grid,
  .strip-grid,
  .overview-preview {
    grid-template-columns: 1fr;
  }

  .movie-card-compact,
  .rank-item {
    grid-template-columns: 86px 1fr;
  }

  .page-hero {
    margin: 20px 16px 0;
    padding: 42px 22px;
    border-radius: 24px;
  }

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