:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-200: #fecdd3;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-50: #fdf2f8;
  --pink-400: #f472b6;
  --amber-50: #fffbeb;
  --amber-400: #f59e0b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --shadow: 0 18px 45px rgba(225, 29, 72, 0.12);
  --shadow-soft: 0 12px 32px rgba(31, 41, 55, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: linear-gradient(135deg, var(--rose-50), #ffffff 42%, var(--pink-50));
  min-height: 100vh;
}

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

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

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.94);
  border-bottom: 1px solid var(--rose-100);
  box-shadow: 0 10px 28px rgba(244, 63, 94, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: transparent;
  background: linear-gradient(90deg, var(--rose-400), var(--pink-400));
  -webkit-background-clip: text;
  background-clip: text;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  background: linear-gradient(135deg, var(--rose-400), var(--pink-400));
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.22);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
}

.main-nav a,
.mobile-panel a {
  font-size: 15px;
  color: var(--gray-700);
  transition: color 0.2s ease, background 0.2s ease;
}

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

.nav-categories {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--rose-100);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.search-box input,
.filter-bar input,
.filter-bar select {
  border: 1px solid var(--rose-200);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--gray-700);
  background: #fff;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--rose-400);
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.16);
}

.search-box button,
.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-box button,
.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-400));
  box-shadow: 0 12px 26px rgba(244, 63, 94, 0.22);
}

.search-box button {
  padding: 10px 17px;
}

.primary-btn {
  padding: 13px 23px;
  font-weight: 700;
}

.primary-btn.block {
  width: 100%;
  margin-top: 18px;
}

.ghost-btn,
.text-link {
  padding: 12px 20px;
  color: var(--rose-600);
  background: #fff;
  border: 1px solid var(--rose-200);
}

.text-link {
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 700;
}

.search-box button:hover,
.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(244, 63, 94, 0.26);
}

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

.mobile-panel {
  display: none;
  border-top: 1px solid var(--rose-100);
  background: #fff;
  padding: 16px;
}

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.mobile-panel nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
}

.mobile-panel nav a:hover {
  background: var(--rose-50);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 42px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(251, 113, 133, 0.26), transparent 36%),
    radial-gradient(circle at bottom right, rgba(244, 114, 182, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(255, 241, 242, 0.72), rgba(255, 255, 255, 0.98));
}

.hero-shell {
  position: relative;
}

.hero-slider {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 40px;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hero-copy {
  padding: 42px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(254, 205, 211, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--rose-500);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.content-card h1 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  color: transparent;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-400), var(--rose-500));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero h2 {
  margin: 18px 0 12px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.12;
}

.hero p,
.page-hero p,
.content-card p {
  color: var(--gray-500);
  line-height: 1.9;
}

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--rose-600);
  background: var(--rose-50);
  border: 1px solid var(--rose-100);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-art {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 34px;
  min-height: 430px;
  box-shadow: 0 32px 70px rgba(225, 29, 72, 0.22);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.68));
}

.hero-art img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.5s ease;
}

.hero-art:hover img {
  transform: scale(1.08);
}

.hero-art span {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  z-index: 2;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
}

.hero-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 18px 0 30px;
}

.hero-controls button {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--rose-200);
  color: var(--rose-600);
  background: #fff;
  cursor: pointer;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  background: var(--rose-200);
}

.hero-dots button.is-active {
  width: 28px;
  background: var(--rose-500);
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--rose-100);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.category-tile::before,
.category-overview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.18), rgba(244, 114, 182, 0.1));
}

.category-tile:hover,
.movie-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  border-color: var(--rose-300, #fda4af);
  box-shadow: var(--shadow);
}

.category-tile:hover::before,
.category-overview-card:hover::before {
  opacity: 1;
}

.category-tile span,
.category-tile b,
.category-tile em {
  position: relative;
  z-index: 1;
  display: block;
}

.category-tile span {
  font-size: 18px;
  font-weight: 800;
}

.category-tile b {
  margin: 6px 0;
  color: var(--rose-500);
}

.category-tile em {
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

.section {
  padding: 58px 0;
}

.soft-section {
  background: linear-gradient(90deg, var(--rose-50), var(--pink-50));
}

.warm-section {
  background: linear-gradient(135deg, var(--amber-50), var(--rose-50), var(--pink-50));
}

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

.section-head h2,
.ranking-sidebar h2,
.side-card h2,
.content-card h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(26px, 3vw, 36px);
  color: var(--gray-800);
}

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

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

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

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

.featured-list,
.list-stack {
  display: grid;
  gap: 20px;
}

.horizontal-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 280px;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.horizontal-scroller .movie-card {
  scroll-snap-align: start;
}

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--rose-100);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, border 0.25s ease, box-shadow 0.25s ease;
}

.movie-card.large,
.movie-card.horizontal {
  display: grid;
  grid-template-columns: 42% 1fr;
}

.movie-card.large .poster-wrap {
  aspect-ratio: 21 / 9;
  height: 100%;
}

.movie-card.horizontal .poster-wrap {
  aspect-ratio: auto;
  height: 100%;
  min-height: 170px;
}

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--rose-100);
}

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

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

.corner-badge,
.duration-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.corner-badge {
  top: 10px;
  left: 10px;
  padding: 7px 10px;
  background: var(--rose-500);
}

.duration-badge {
  right: 10px;
  bottom: 10px;
  padding: 7px 9px;
  background: rgba(0, 0, 0, 0.68);
}

.rank-badge {
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--amber-400), var(--rose-500));
  font-size: 15px;
}

.movie-body {
  padding: 17px;
}

.movie-kicker {
  color: var(--rose-500);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

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

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

.movie-body p {
  margin: 0 0 14px;
  min-height: 3.2em;
  color: var(--gray-500);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-stats {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: var(--gray-500);
  font-size: 13px;
}

.page-hero {
  padding: 58px 0;
  background: linear-gradient(135deg, var(--rose-50), #fff, var(--pink-50));
  border-bottom: 1px solid var(--rose-100);
}

.page-hero p {
  max-width: 760px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--gray-500);
  font-size: 14px;
}

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

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

.category-overview-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--rose-100);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-preview {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-preview img {
  width: 100%;
  aspect-ratio: 1 / 0.68;
  object-fit: cover;
  border-radius: 14px;
}

.category-overview-card div {
  position: relative;
  z-index: 1;
}

.category-overview-card h2 {
  margin: 8px 0;
  font-size: 28px;
}

.category-overview-card span {
  color: var(--rose-500);
  font-weight: 800;
}

.category-overview-card p {
  color: var(--gray-500);
  line-height: 1.8;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--rose-100);
  box-shadow: var(--shadow-soft);
}

.filter-bar input {
  min-width: min(320px, 100%);
  flex: 1 1 260px;
}

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

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

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.ranking-sidebar,
.side-card,
.content-card,
.detail-poster-card {
  border: 1px solid var(--rose-100);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.ranking-sidebar,
.side-card {
  position: sticky;
  top: 90px;
  padding: 20px;
}

.compact-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.compact-card:hover {
  background: var(--rose-50);
}

.compact-card img {
  width: 86px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.compact-card span {
  min-width: 0;
}

.compact-card strong {
  display: inline-flex;
  width: 23px;
  height: 23px;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
  border-radius: 999px;
  color: #fff;
  background: var(--rose-500);
  font-size: 12px;
}

.compact-card b {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-card em {
  display: block;
  margin-top: 4px;
  color: var(--gray-500);
  font-size: 12px;
  font-style: normal;
}

.detail-section {
  padding: 32px 0 0;
}

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

.player-column {
  display: grid;
  gap: 22px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #08090f;
  box-shadow: 0 32px 70px rgba(31, 41, 55, 0.26);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #08090f;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.34));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-400));
  box-shadow: 0 18px 44px rgba(244, 63, 94, 0.42);
}

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

.content-card {
  padding: 28px;
}

.content-card .lead {
  color: var(--gray-800);
  font-size: 18px;
  line-height: 1.9;
}

.detail-aside {
  display: grid;
  gap: 22px;
}

.detail-poster-card {
  overflow: hidden;
}

.detail-poster-card > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.detail-poster-card > div {
  padding: 20px;
}

.detail-poster-card h2 {
  margin: 0 0 14px;
  font-size: 25px;
}

.meta-list {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 9px 12px;
  margin: 18px 0 0;
}

.meta-list dt {
  color: var(--gray-500);
}

.meta-list dd {
  margin: 0;
  color: var(--gray-800);
  font-weight: 700;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 42px 0 24px;
}

.footer-logo {
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 520px;
  color: var(--gray-500);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-content: start;
}

.footer-links a {
  color: var(--gray-600, #4b5563);
}

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 28px;
  color: var(--gray-500);
  font-size: 14px;
  border-top: 1px solid rgba(254, 205, 211, 0.72);
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .hero-slider {
    min-height: 820px;
  }

  .hero-slide,
  .detail-layout,
  .ranking-layout {
    grid-template-columns: 1fr;
  }

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

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

  .detail-aside,
  .ranking-sidebar,
  .side-card {
    position: static;
  }
}

@media (max-width: 700px) {
  .container,
  .header-inner,
  .footer-inner,
  .copyright {
    width: min(100% - 24px, 1180px);
  }

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

  .hero {
    padding-top: 28px;
  }

  .hero-slider {
    min-height: 780px;
  }

  .hero-copy {
    padding: 24px;
  }

  .hero-art,
  .hero-art img {
    min-height: 310px;
  }

  .hero-category-grid,
  .movie-grid,
  .movie-grid.four,
  .movie-grid.three,
  .category-overview-grid,
  .category-overview-card,
  .movie-card.large,
  .movie-card.horizontal {
    grid-template-columns: 1fr;
  }

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

  .category-overview-card {
    gap: 14px;
  }

  .filter-bar {
    display: grid;
  }

  .filter-bar input,
  .filter-bar select {
    width: 100%;
  }
}
