:root {
  --rose: #f43f5e;
  --pink: #ec4899;
  --orange: #fb923c;
  --purple: #7c3aed;
  --ink: #18181b;
  --muted: #64748b;
  --soft: #fff7ed;
  --line: rgba(15, 23, 42, 0.1);
  --card: #ffffff;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body.site-body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff1f2 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.28);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--rose);
  background: #ffffff;
  border-radius: 14px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.brand-name {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  font-weight: 700;
}

.desktop-nav a,
.footer-links a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover {
  color: #fef08a;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: min(320px, 26vw);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  border: 0;
  outline: 0;
  font: inherit;
}

.header-search input {
  width: 100%;
  padding: 12px 14px 12px 18px;
  color: #ffffff;
  background: transparent;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.header-search button,
.mobile-search button {
  padding: 10px 16px;
  color: #be123c;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

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

.mobile-panel a {
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 700;
}

.mobile-search {
  display: flex;
  gap: 10px;
}

.mobile-search input {
  flex: 1;
  padding: 12px 14px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  align-items: center;
  gap: 56px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 84px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.1) brightness(0.55);
  transform: scale(1.08);
}

.hero-slider::before,
.hero-slider::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.hero-slider::before {
  background: linear-gradient(120deg, rgba(127, 29, 29, 0.88), rgba(131, 24, 67, 0.72), rgba(15, 23, 42, 0.86));
}

.hero-slider::after {
  background: radial-gradient(circle at 80% 18%, rgba(251, 146, 60, 0.38), transparent 30%), radial-gradient(circle at 14% 86%, rgba(236, 72, 153, 0.36), transparent 34%);
}

.hero-content,
.hero-poster,
.hero-dots {
  position: relative;
  z-index: 2;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: #be123c;
  border-radius: 999px;
  background: #fff1f2;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-kicker {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-content h1 {
  max-width: 760px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.tag-row span {
  color: #be123c;
  background: #fff1f2;
}

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

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.32);
}

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

.hero-poster {
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

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

.hero-dots {
  position: absolute;
  right: calc((100% - min(1240px, calc(100% - 32px))) / 2);
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 58px;
  background: #ffffff;
}

.category-strip,
.content-section,
.ranking-section,
.page-shell,
.detail-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.category-strip,
.content-section,
.ranking-section {
  padding: 72px 0 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1 {
  margin: 12px 0 10px;
  color: #111827;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.section-link {
  display: inline-flex;
  min-width: max-content;
  padding: 11px 16px;
  color: #be123c;
  border-radius: 999px;
  background: #fff1f2;
  font-weight: 900;
}

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

.category-tile {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 24px;
  color: #ffffff;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
  box-shadow: 0 18px 42px rgba(244, 63, 94, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-overview-card:hover {
  transform: translateY(-6px);
}

.category-tile strong {
  font-size: 22px;
}

.category-tile span {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

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

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

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

.related-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  box-shadow: var(--shadow);
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.card-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .card-cover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.card-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 14px 26px rgba(244, 63, 94, 0.35);
}

.card-content {
  padding: 18px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card-meta span,
.detail-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f8fafc;
}

.movie-card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

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

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

.movie-card-compact {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  min-height: 178px;
}

.movie-card-compact .card-cover img {
  height: 100%;
  min-height: 178px;
}

.movie-card-compact .card-content {
  padding: 16px;
}

.movie-card-compact .tag-row span:nth-child(n+3) {
  display: none;
}

.ranking-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: stretch;
}

.ranking-panel,
.spotlight-card,
.page-hero,
.detail-content article,
.detail-content aside,
.filter-bar,
.category-overview-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.ranking-panel {
  padding: 28px;
}

.rank-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 18px;
  background: #fff7ed;
}

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

.rank-list a {
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.spotlight-card {
  overflow: hidden;
}

.spotlight-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.spotlight-card div {
  padding: 24px;
}

.spotlight-card h3 {
  margin: 14px 0 10px;
  font-size: 28px;
}

.spotlight-card p {
  color: var(--muted);
  line-height: 1.7;
}

.page-shell {
  padding: 46px 0 72px;
}

.page-hero {
  padding: 34px;
  margin-bottom: 26px;
}

.compact-hero {
  background: linear-gradient(135deg, #ffffff, #fff7ed);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-overview-card img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.category-overview-card div {
  padding: 26px;
}

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

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

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
}

.filter-bar input:focus,
.filter-bar select:focus {
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.14);
}

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

.tall-list {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.detail-shell {
  padding: 44px 0 72px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 28px;
  align-items: stretch;
}

.player-card {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.35);
}

.movie-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
  z-index: 1;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: #020617;
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  filter: saturate(1.12);
}

.player-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle, rgba(244, 63, 94, 0.25), rgba(2, 6, 23, 0.72));
}

.player-cover button {
  position: relative;
  z-index: 3;
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
  box-shadow: 0 24px 50px rgba(244, 63, 94, 0.38);
  font-size: 34px;
  cursor: pointer;
}

.detail-info {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.1);
}

.detail-info h1 {
  font-size: clamp(34px, 4.5vw, 58px);
}

.detail-one-line {
  color: #475569;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta,
.detail-tags {
  margin-top: 18px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  margin-top: 28px;
}

.detail-content article,
.detail-content aside {
  padding: 28px;
}

.detail-content h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.detail-content p {
  margin: 0 0 24px;
  color: #475569;
  font-size: 17px;
  line-height: 2;
}

.site-footer {
  margin-top: 72px;
  color: #ffffff;
  background: #111827;
}

.footer-inner {
  display: grid;
  gap: 18px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.footer-inner p {
  max-width: 760px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
}

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

.copyright {
  font-size: 14px;
}

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

@media (max-width: 1100px) {
  .header-search {
    display: none;
  }

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

  .hero-slide {
    gap: 34px;
  }

  .hero-poster {
    max-width: 320px;
  }

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

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

  .tall-list {
    position: static;
    max-height: none;
  }
}

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

  .menu-button {
    display: block;
    margin-left: auto;
  }

  .brand-name {
    font-size: 18px;
  }

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

  .hero-slide {
    padding: 62px 0 92px;
  }

  .hero-content p {
    font-size: 17px;
  }

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

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

  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

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

  .player-card {
    min-height: 360px;
  }

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

@media (max-width: 560px) {
  .header-inner {
    height: 64px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

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

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-poster {
    width: 72%;
  }

  .hero-dots {
    right: 16px;
    left: 16px;
    justify-content: center;
  }

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

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

  .movie-card-compact .card-cover img {
    min-height: 164px;
  }

  .rank-list li {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .rank-list em {
    grid-column: 2;
  }

  .page-hero,
  .detail-info,
  .detail-content article,
  .detail-content aside {
    padding: 22px;
  }
}
