:root {
  --orange: #fb923c;
  --orange-strong: #ea580c;
  --pink: #ec4899;
  --pink-deep: #db2777;
  --purple: #7c3aed;
  --blue: #38bdf8;
  --ink: #111827;
  --muted: #6b7280;
  --line: rgba(251, 146, 60, 0.22);
  --soft: #fff7ed;
  --soft-pink: #fdf2f8;
  --panel: rgba(255, 255, 255, 0.92);
  --shadow: 0 20px 50px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #fdf2f8 35%, #ffffff 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.88), rgba(253, 242, 248, 0.88));
  backdrop-filter: blur(18px);
}

.nav-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.35);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, var(--orange-strong), var(--pink-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 14px;
  color: #374151;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-link:hover {
  color: var(--orange-strong);
  background: rgba(255, 255, 255, 0.72);
}

.nav-link.active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.25);
}

.menu-button {
  display: none;
  border: 0;
  color: #374151;
  background: transparent;
  font-size: 28px;
}

.mobile-menu {
  display: none;
  padding: 12px 20px 18px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.home-hero {
  position: relative;
  min-height: 640px;
  padding: 120px 0 80px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c 0%, #ec4899 50%, #7c3aed 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.7) 1px, transparent 0);
  background-size: 34px 34px;
}

.hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.36;
}

.hero-glow-one {
  top: 60px;
  left: 8%;
  background: #ffffff;
}

.hero-glow-two {
  right: 4%;
  bottom: 70px;
  background: #f97316;
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 470px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 44px;
  align-items: center;
}

.hero-copy {
  text-align: left;
}

.hero-logo-circle {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 26px 60px rgba(17, 24, 39, 0.2);
  backdrop-filter: blur(12px);
  font-size: 30px;
}

.eyebrow {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-hero h1,
.page-hero h1,
.detail-title-block h1 {
  margin: 0;
  line-height: 1.06;
  font-size: clamp(38px, 6vw, 74px);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-subtitle,
.page-hero p,
.detail-title-block p {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
}

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

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.25s ease;
}

.primary-button {
  color: var(--orange-strong);
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.18);
}

.primary-button:hover {
  transform: translateY(-2px) scale(1.02);
  background: #fff7ed;
}

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

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.hero-focus-card {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.24);
  backdrop-filter: blur(16px);
}

.hero-poster {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-focus-info {
  padding: 22px;
}

.hero-focus-info h2 {
  margin: 12px 0 8px;
  font-size: 28px;
  line-height: 1.2;
}

.hero-focus-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.hero-bottom-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 105px;
  background: linear-gradient(0deg, #fff7ed, transparent);
}

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

.content-section.compact {
  padding: 64px 0;
}

.soft-section {
  background: linear-gradient(90deg, rgba(253, 242, 248, 0.95), rgba(255, 247, 237, 0.95));
}

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

.heading-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.heading-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.22);
}

.section-heading h2,
.center-heading h2,
.strip-title h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
}

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

.section-more,
.strip-title a,
.text-link {
  color: var(--orange-strong);
  font-weight: 800;
}

.featured-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.45fr);
  gap: 24px;
  align-items: start;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card,
.rank-card,
.category-overview-card,
.category-tile,
.prose-card,
.side-card,
.player-card {
  border: 1px solid rgba(251, 146, 60, 0.18);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.movie-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  transition: 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.2), rgba(236, 72, 153, 0.2));
}

.large-card .poster-link {
  aspect-ratio: 16 / 12;
}

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

.poster-link img {
  transition: 0.35s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.07);
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(17, 24, 39, 0.62));
  opacity: 0;
  transition: 0.25s ease;
}

.movie-card:hover .poster-link::after {
  opacity: 1;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--orange-strong);
  background: #ffffff;
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: 0.25s ease;
}

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

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.badge-row span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--orange-strong);
  background: #fff7ed;
  font-size: 12px;
  font-weight: 800;
}

.hero-focus-info .badge-row span,
.detail-title-block .badge-row span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.movie-card h3,
.rank-card h3 {
  margin: 14px 0 8px;
  font-size: 21px;
  line-height: 1.25;
}

.movie-card h3 a:hover,
.rank-card h3 a:hover {
  color: var(--orange-strong);
}

.movie-card p,
.rank-card p {
  margin: 0;
  color: var(--muted);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

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

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

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
  border-radius: 22px;
  padding: 14px;
  transition: 0.25s ease;
}

.rank-card:hover {
  transform: translateY(-4px);
}

.rank-poster {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.2), rgba(236, 72, 153, 0.2));
}

.rank-number {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.center-heading {
  margin-bottom: 30px;
  text-align: center;
}

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

.category-tile,
.category-overview-card {
  display: block;
  border-radius: 22px;
  padding: 22px;
  transition: 0.25s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(236, 72, 153, 0.38);
}

.category-tile span,
.category-overview-card strong {
  display: block;
  color: var(--ink);
  font-size: 21px;
  font-weight: 900;
}

.category-tile small,
.category-overview-card p {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.category-overview-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-overview-card div span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--orange-strong);
  background: #fff7ed;
  font-size: 12px;
  font-weight: 800;
}

.category-strip {
  margin-top: 48px;
}

.cta-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(100deg, var(--orange), var(--pink), var(--purple));
}

.cta-inner {
  width: min(850px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
  text-align: center;
}

.cta-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.cta-inner h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
}

.cta-inner p {
  margin: 18px auto 28px;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.inner-page {
  padding-top: 68px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c 0%, #ec4899 50%, #7c3aed 100%);
}

.slim-hero {
  padding: 96px 0 72px;
}

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

.slim-hero p:not(.eyebrow) {
  max-width: 820px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #374151;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(251, 146, 60, 0.28);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--ink);
  background: #fffaf5;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.detail-hero {
  min-height: 560px;
  padding: 120px 0 70px;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  filter: blur(2px);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.86), rgba(124, 58, 237, 0.86));
}

.detail-hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 36px 90px rgba(17, 24, 39, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

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

.detail-actions .primary-button {
  color: var(--pink-deep);
}

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

.detail-main {
  display: grid;
  gap: 24px;
}

.player-card,
.prose-card,
.side-card {
  border-radius: 24px;
  padding: 22px;
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.56));
  cursor: pointer;
}

.player-overlay span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border-radius: 999px;
  color: var(--pink-deep);
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  font-size: 28px;
}

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

.prose-card h2,
.side-card h2,
.content-block h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.2;
}

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

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.side-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(251, 146, 60, 0.16);
}

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

.side-card dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
}

.side-card dd a {
  color: var(--orange-strong);
}

.sticky-side {
  position: sticky;
  top: 92px;
  margin-top: 22px;
}

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

.side-rank-list .rank-card {
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  box-shadow: none;
}

.side-rank-list .rank-card h3 {
  font-size: 15px;
  margin-top: 8px;
}

.side-rank-list .rank-card p,
.side-rank-list .rank-card .card-meta {
  display: none;
}

.content-block {
  margin-top: 8px;
}

.prose-card {
  font-size: 17px;
}

.prose-card h2 + p {
  margin-top: 10px;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937, #111827);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 34px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
}

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

.site-footer p {
  margin: 16px 0 0;
  color: #9ca3af;
}

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

.site-footer ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer a:hover {
  color: #fb923c;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1024px) {
  .hero-inner,
  .featured-layout,
  .detail-hero-inner,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-logo-circle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

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

  .detail-cover {
    width: min(320px, 100%);
  }
}

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

  .menu-button {
    display: block;
  }

  .mobile-menu {
    display: grid;
    gap: 8px;
  }

  .mobile-menu .nav-link {
    justify-content: flex-start;
  }

  .home-hero {
    padding-top: 104px;
  }

  .hero-inner {
    min-height: auto;
  }

  .hero-focus-card {
    border-radius: 22px;
  }

  .content-section {
    padding: 48px 0;
  }

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

  .three-col,
  .four-col,
  .category-tile-grid,
  .category-overview-grid,
  .rank-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .detail-hero {
    padding-top: 96px;
  }

  .detail-title-block h1 {
    font-size: 40px;
  }

  .player-card,
  .prose-card,
  .side-card {
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .nav-inner,
  .content-section,
  .slim-hero > div,
  .detail-hero-inner,
  .footer-grid,
  .footer-bottom,
  .hero-inner,
  .cta-inner {
    width: min(100% - 24px, 1180px);
  }

  .brand-text {
    font-size: 19px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

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

  .rank-poster {
    aspect-ratio: 16 / 9;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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