:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-200: #fecdd3;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --pink-400: #f472b6;
  --amber-400: #fbbf24;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(244, 63, 94, 0.16);
  --shadow: 0 20px 55px rgba(190, 18, 60, 0.13);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #fff7f8 0%, #fff 42%, #fff1f6 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(244, 63, 94, 0.07);
}

.header-inner {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  white-space: nowrap;
}

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

.brand-text,
.footer-brand {
  font-size: 1.35rem;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 8px 12px;
  border-radius: 999px;
  color: #374151;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--rose-500);
  background: var(--rose-50);
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--rose-200);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(244, 63, 94, 0.07);
}

.header-search input,
.mobile-search input,
.wide-search input,
.inline-filter input {
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px 16px;
  min-width: 220px;
  color: var(--text);
}

.header-search button,
.mobile-search button,
.wide-search button,
.inline-filter button {
  border: 0;
  padding: 12px 18px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-400));
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--rose-500);
  background: var(--rose-50);
  border-radius: 12px;
  padding: 10px 12px;
}

.category-strip {
  border-top: 1px solid rgba(244, 63, 94, 0.08);
}

.category-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 9px 22px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
}

.category-strip a {
  color: var(--muted);
  font-size: 0.94rem;
  white-space: nowrap;
}

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

.mobile-panel {
  display: none;
  padding: 16px 22px 22px;
  border-top: 1px solid var(--line);
}

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

.mobile-search {
  display: flex;
  border: 1px solid var(--rose-200);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
}

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

.hero {
  position: relative;
  max-width: 1380px;
  margin: 0 auto;
  padding: 26px 22px 12px;
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 34px;
  background: #111827;
  box-shadow: var(--shadow);
}

.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-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) saturate(1.15);
  transform: scale(1.06);
  opacity: 0.52;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(88, 28, 48, 0.66) 45%, rgba(255, 241, 242, 0.2));
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  gap: 48px;
  align-items: center;
  padding: 62px;
}

.eyebrow,
.page-hero span,
.section-heading span,
.overview-text span {
  display: inline-flex;
  width: max-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #be123c;
  font-weight: 700;
  background: rgba(255, 228, 230, 0.88);
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.7rem, 7vw, 5.9rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: #fff;
}

.hero-copy p {
  max-width: 710px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.22rem;
  line-height: 1.9;
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.86rem;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.tag-row span {
  color: var(--rose-500);
  background: var(--rose-50);
  border-color: transparent;
}

.detail-tags a {
  color: var(--rose-500);
  background: var(--rose-50);
  border-color: var(--rose-100);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.detail-actions .btn.ghost {
  color: var(--rose-500);
  background: #fff;
  border: 1px solid var(--rose-100);
}

.hero-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
  background: rgba(255, 255, 255, 0.16);
}

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

.hero-dots {
  position: absolute;
  left: 62px;
  bottom: 42px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

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

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

.search-band,
.section,
.page-hero,
.breadcrumb,
.detail-hero,
.player-section,
.detail-layout,
.overview-list {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 22px;
  padding-right: 22px;
}

.search-band {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr minmax(340px, 520px);
  gap: 28px;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 28px;
}

.search-band h2,
.section-heading h2,
.page-hero h1,
.detail-copy h1,
.player-section h2,
.detail-article h2,
.related-panel h2,
.overview-text h2 {
  margin: 0;
  letter-spacing: -0.035em;
  color: #111827;
}

.search-band h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.search-band p,
.page-hero p,
.overview-text p,
.footer-inner p,
.detail-copy p,
.detail-article p {
  color: var(--muted);
  line-height: 1.85;
}

.wide-search,
.inline-filter {
  display: flex;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--rose-200);
  box-shadow: 0 12px 36px rgba(244, 63, 94, 0.09);
}

.wide-search input,
.inline-filter input {
  flex: 1;
  min-width: 0;
}

.section {
  padding-top: 54px;
  padding-bottom: 24px;
}

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

.section-heading h2 {
  flex: 1;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

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

.compact-heading {
  align-items: center;
}

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

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

.movie-card {
  min-width: 0;
}

.card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--rose-100);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 35px rgba(244, 63, 94, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.card-link:hover {
  transform: translateY(-6px);
  border-color: var(--rose-200);
  box-shadow: 0 26px 55px rgba(244, 63, 94, 0.16);
}

.poster-box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-50), #fff);
}

.poster-box img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-link:hover .poster-box img {
  transform: scale(1.08);
}

.duration,
.quality {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: #fff;
  font-size: 0.78rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
}

.quality {
  top: 10px;
  left: 10px;
  bottom: auto;
  right: auto;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-400));
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 9px;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
  color: #9f1239;
  font-size: 0.84rem;
}

.compact .card-body p,
.compact .tag-row,
.compact .duration {
  display: none;
}

.compact .card-link {
  border-radius: 18px;
}

.compact .card-body {
  padding: 12px;
}

.rose-panel {
  max-width: 1280px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.82), rgba(255, 255, 255, 0.9));
}

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

.category-card {
  padding: 16px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--rose-100);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.category-covers img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.92rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: start;
}

.rank-panel,
.related-panel,
.detail-article,
.player-section,
.category-overview-card {
  border: 1px solid var(--rose-100);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 42px rgba(244, 63, 94, 0.09);
}

.rank-panel {
  position: sticky;
  top: 122px;
  padding: 22px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 46px 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(244, 63, 94, 0.1);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-item:hover {
  background: var(--rose-50);
  transform: translateX(4px);
}

.rank-no {
  color: var(--rose-500);
  font-weight: 900;
  font-size: 1.15rem;
}

.ranking-item img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
}

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

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

.rank-info small {
  color: var(--muted);
  margin-top: 3px;
}

.rank-score {
  color: #fff;
  padding: 5px 8px;
  border-radius: 999px;
  font-weight: 800;
  background: var(--amber-400);
}

.page-hero {
  margin-top: 32px;
  padding-top: 64px;
  padding-bottom: 64px;
  border-radius: 34px;
  background: radial-gradient(circle at 12% 20%, rgba(251, 113, 133, 0.22), transparent 35%), linear-gradient(135deg, #fff, var(--rose-50));
  border: 1px solid var(--rose-100);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin-top: 16px;
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.page-hero p {
  max-width: 720px;
  font-size: 1.12rem;
}

.category-hero,
.search-hero {
  display: grid;
  gap: 16px;
}

.inline-filter {
  max-width: 620px;
}

.overview-list {
  display: grid;
  gap: 24px;
  padding-top: 42px;
  padding-bottom: 42px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}

.overview-text h2 {
  margin: 16px 0 12px;
  font-size: 2rem;
}

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

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

.large-ranking {
  position: sticky;
  top: 122px;
  max-height: calc(100vh - 150px);
  overflow: auto;
  padding-right: 6px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 24px;
  color: var(--muted);
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  margin-top: 24px;
  padding-top: 40px;
  padding-bottom: 40px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.92), rgba(255, 255, 255, 0.96));
  border: 1px solid var(--rose-100);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(244, 63, 94, 0.18);
}

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

.detail-copy h1 {
  margin: 16px 0;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 1.08;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #9f1239;
  background: #fff;
  border: 1px solid var(--rose-100);
}

.player-section {
  margin-top: 28px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.player-section h2 {
  margin-bottom: 18px;
  font-size: 1.8rem;
}

.player-stage {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  aspect-ratio: 16 / 9;
}

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

.play-layer {
  position: absolute;
  inset: 0;
  border: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.18), rgba(17, 24, 39, 0.34));
  cursor: pointer;
}

.play-layer span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-400));
  box-shadow: 0 20px 45px rgba(244, 63, 94, 0.38);
  font-size: 2rem;
}

.player-stage.is-playing .play-layer {
  display: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: start;
  margin-top: 28px;
  padding-bottom: 56px;
}

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

.detail-article h2,
.related-panel h2 {
  margin: 0 0 14px;
  font-size: 1.55rem;
}

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

.detail-article p {
  margin: 0;
  font-size: 1.02rem;
}

.related-panel {
  position: sticky;
  top: 122px;
}

.related-grid {
  display: grid;
  gap: 14px;
}

.empty-state {
  display: none;
  margin: 28px 0;
  padding: 22px;
  text-align: center;
  border-radius: 22px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--rose-100);
}

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

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

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 22px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-inner h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.footer-inner a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: var(--muted);
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 22px 30px;
  color: var(--muted);
  border-top: 1px solid rgba(244, 63, 94, 0.1);
}

@media (max-width: 1120px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-content,
  .detail-hero,
  .two-column,
  .detail-layout,
  .ranking-page-layout,
  .category-overview-card,
  .search-band {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 360px;
    justify-self: start;
  }

  .rank-panel,
  .related-panel,
  .large-ranking {
    position: static;
    max-height: none;
  }

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

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

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

@media (max-width: 760px) {
  .header-inner {
    height: 62px;
    padding: 0 16px;
  }

  .category-strip-inner,
  .search-band,
  .section,
  .page-hero,
  .breadcrumb,
  .detail-hero,
  .player-section,
  .detail-layout,
  .overview-list {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding: 16px;
  }

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

  .hero-content {
    padding: 34px 22px 70px;
    align-content: center;
    gap: 26px;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .hero-dots {
    left: 24px;
    bottom: 24px;
  }

  .movie-grid,
  .small-grid,
  .category-grid,
  .overview-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card-body {
    padding: 13px;
  }

  .card-body p,
  .tag-row {
    display: none;
  }

  .page-hero {
    margin-top: 18px;
    border-radius: 26px;
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .inline-filter,
  .wide-search {
    flex-direction: column;
    border-radius: 18px;
  }

  .detail-hero {
    border-radius: 26px;
  }

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

  .ranking-item {
    grid-template-columns: 36px 62px minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }

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

@media (max-width: 480px) {
  .movie-grid,
  .small-grid,
  .category-grid,
  .overview-preview {
    grid-template-columns: 1fr;
  }

  .hero-slider,
  .hero-content {
    min-height: 660px;
  }

  .brand-text {
    font-size: 1.1rem;
  }
}
