:root {
  --pudding-50: #fff8ec;
  --pudding-100: #feeccd;
  --pudding-200: #fcd79d;
  --pudding-500: #f59f43;
  --pudding-600: #e48120;
  --moonlight-50: #eff6ff;
  --moonlight-100: #dfeaff;
  --moonlight-300: #9ebffc;
  --moonlight-500: #5a8df4;
  --moonlight-600: #3f6ee8;
  --moonlight-700: #3157ca;
  --ink: #1e293b;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.22);
  --card: rgba(255, 255, 255, 0.86);
  --soft-gradient: linear-gradient(135deg, rgba(255, 248, 236, 0.96), rgba(239, 246, 255, 0.96));
  --moonlight-gradient: linear-gradient(135deg, #fff4d9 0%, #eaf2ff 48%, #f8e9ff 100%);
  --shadow-soft: 0 18px 42px rgba(63, 110, 232, 0.12);
  --shadow-soft-lg: 0 28px 70px rgba(63, 110, 232, 0.2);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, var(--pudding-50), #ffffff 34%, var(--moonlight-50));
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.72);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--moonlight-700);
  border-radius: 16px;
  background: var(--moonlight-gradient);
  box-shadow: var(--shadow-soft);
}

.logo-text,
.footer-logo {
  font-size: 24px;
  background: linear-gradient(90deg, var(--pudding-600), var(--moonlight-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link,
.mobile-nav-link {
  border-radius: 999px;
  padding: 10px 16px;
  color: #475569;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--moonlight-700);
  background: rgba(90, 141, 244, 0.12);
}

.header-search,
.mobile-search,
.big-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.big-search input,
.inline-filter {
  width: 240px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  padding: 12px 16px;
  transition: 0.25s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.inline-filter:focus {
  border-color: var(--moonlight-500);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(90, 141, 244, 0.12);
}

.header-search button,
.mobile-search button,
.big-search button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--moonlight-600);
  padding: 12px 18px;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(90, 141, 244, 0.1);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 999px;
}

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

.mobile-nav.is-open {
  display: grid;
  gap: 10px;
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: var(--moonlight-gradient);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.65fr);
  align-items: center;
  gap: 42px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 112px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0 -10vw;
  z-index: 0;
  overflow: hidden;
  opacity: 0.13;
  filter: blur(2px) saturate(1.15);
}

.hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(255, 248, 236, 0.98), rgba(239, 246, 255, 0.82));
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 1;
}

.hero-kicker,
.detail-kicker,
.page-hero p,
.section-heading p,
.rank-panel-head p {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(90, 141, 244, 0.22);
  border-radius: 999px;
  color: var(--moonlight-700);
  background: rgba(255, 255, 255, 0.82);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 800;
}

.hero-copy h1 {
  max-width: 850px;
  margin: 22px 0 10px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.075em;
  background: linear-gradient(100deg, var(--pudding-600), var(--moonlight-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.12;
}

.hero-copy p {
  max-width: 670px;
  margin: 0 0 22px;
  color: #475569;
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  color: #475569;
  background: rgba(255, 255, 255, 0.78);
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 900;
  transition: 0.25s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--moonlight-600), var(--moonlight-700));
  box-shadow: 0 18px 32px rgba(63, 110, 232, 0.24);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(63, 110, 232, 0.32);
}

.ghost-button,
.section-more {
  color: var(--moonlight-700);
  border: 1px solid rgba(90, 141, 244, 0.24);
  background: rgba(255, 255, 255, 0.72);
}

.ghost-button:hover,
.section-more:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.hero-poster {
  display: block;
  overflow: hidden;
  border: 12px solid rgba(255, 255, 255, 0.72);
  border-radius: 36px;
  background: #ffffff;
  box-shadow: var(--shadow-soft-lg);
  transform: rotate(2deg);
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 38px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 0;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--moonlight-700);
  font-size: 28px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
  transition: 0.25s ease;
}

.hero-dot.is-active {
  width: 28px;
  background: var(--moonlight-600);
}

.floating-spotlight {
  position: relative;
  z-index: 5;
  margin-top: -68px;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

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

.section-heading h2,
.rank-panel-head h2,
.page-hero h1 {
  margin: 12px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

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

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

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.78);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft-lg);
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--moonlight-50);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0.72;
  background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.74));
}

.play-chip,
.type-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  background: rgba(63, 110, 232, 0.94);
  padding: 8px 12px;
}

.type-chip {
  left: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, 0.68);
  padding: 8px 12px;
}

.rank-badge {
  top: 12px;
  left: 12px;
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.card-content {
  display: grid;
  gap: 9px;
  padding: 17px;
}

.card-content strong {
  color: #172033;
  font-size: 17px;
  line-height: 1.35;
}

.card-meta,
.card-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.tag-row span {
  background: var(--moonlight-50);
  color: var(--moonlight-700);
  padding: 5px 9px;
}

.category-band {
  margin-top: 80px;
  padding: 68px 0;
  background: var(--soft-gradient);
}

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

.category-card,
.category-overview-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
  transition: 0.25s ease;
}

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

.category-card {
  display: grid;
  grid-template-columns: 106px 1fr;
  align-items: center;
}

.category-card img,
.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card img {
  aspect-ratio: 1;
}

.category-card span,
.category-overview-card div {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.category-card strong,
.category-overview-card h2 {
  margin: 0;
  color: #172033;
  font-size: 20px;
}

.category-card em,
.category-overview-card p {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.rank-panel {
  align-self: start;
  position: sticky;
  top: 100px;
  border: 1px solid rgba(226, 232, 240, 0.78);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  padding: 12px;
  background: var(--pudding-50);
  transition: 0.25s ease;
}

.rank-row:hover {
  background: var(--moonlight-50);
  transform: translateX(4px);
}

.rank-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--pudding-500);
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  color: var(--moonlight-700);
  font-weight: 900;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: var(--moonlight-gradient);
}

.page-hero .container {
  padding: 86px 0;
}

.page-hero span {
  display: block;
  max-width: 760px;
  margin-top: 16px;
  color: #475569;
  font-size: 18px;
  line-height: 1.75;
}

.small-actions {
  margin-top: 22px;
}

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

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

.category-cover {
  min-height: 220px;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-links a {
  border-radius: 999px;
  color: var(--moonlight-700);
  background: var(--moonlight-50);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 700;
}

.filter-toolbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.filter-toolbar label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.inline-filter {
  width: min(460px, 90vw);
}

.big-search {
  max-width: 720px;
  margin-top: 28px;
}

.big-search input {
  flex: 1;
  width: auto;
  min-height: 54px;
  padding-inline: 22px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.filter-chip {
  border: 1px solid rgba(90, 141, 244, 0.24);
  border-radius: 999px;
  color: var(--moonlight-700);
  background: rgba(255, 255, 255, 0.72);
  padding: 10px 14px;
  font-weight: 800;
}

.filter-chip.is-active {
  color: #ffffff;
  background: var(--moonlight-600);
}

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

.detail-hero {
  isolation: isolate;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.22;
  filter: blur(4px) saturate(1.1);
}

.detail-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(255, 248, 236, 0.98), rgba(239, 246, 255, 0.88));
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-inner {
  padding: 48px 0 68px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--moonlight-700);
}

.breadcrumb em {
  font-style: normal;
}

.detail-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin-top: 32px;
}

.detail-poster {
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  background: #ffffff;
  box-shadow: var(--shadow-soft-lg);
}

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

.detail-copy h1 {
  margin: 18px 0;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 820px;
  color: #475569;
  font-size: 19px;
  line-height: 1.8;
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.detail-stats span {
  border-radius: 18px;
  color: #475569;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px 14px;
}

.detail-stats strong {
  color: var(--moonlight-700);
}

.watch-section {
  padding-top: 56px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: #020617;
  box-shadow: var(--shadow-soft-lg);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  background: #020617;
  padding: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-cover-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(63, 110, 232, 0.26), rgba(2, 6, 23, 0.72));
}

.player-button {
  position: relative;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(63, 110, 232, 0.92);
  box-shadow: 0 22px 52px rgba(63, 110, 232, 0.42);
  font-size: 34px;
  line-height: 1;
}

.detail-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-top: 34px;
}

.story-card {
  border: 1px solid rgba(226, 232, 240, 0.78);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

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

.story-card p {
  margin: 0;
  color: #475569;
  font-size: 17px;
  line-height: 1.95;
}

.site-footer {
  margin-top: 96px;
  border-top: 1px solid rgba(226, 232, 240, 0.78);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), var(--pudding-50));
}

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

.footer-grid p {
  max-width: 380px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-grid a:not(.footer-logo) {
  display: block;
  margin: 8px 0;
  color: #64748b;
}

.footer-grid a:hover {
  color: var(--moonlight-700);
}

.footer-bottom {
  border-top: 1px solid rgba(226, 232, 240, 0.72);
  padding: 18px 0 28px;
  color: #64748b;
  font-size: 14px;
}

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

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

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

  .two-column-section {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }
}

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

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

  .header-inner {
    min-height: 68px;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 46px 0 102px;
  }

  .hero-poster {
    width: min(360px, 90vw);
    margin: 0 auto;
    transform: none;
  }

  .spotlight-grid,
  .detail-body,
  .footer-grid,
  .category-overview-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .floating-spotlight {
    margin-top: -42px;
  }

  .detail-poster {
    width: min(330px, 86vw);
  }

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

  .category-cover {
    min-height: 180px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .logo-text {
    font-size: 20px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-copy p,
  .page-hero span,
  .detail-one-line {
    font-size: 16px;
  }

  .hero-actions,
  .big-search {
    display: grid;
  }

  .big-search input {
    width: 100%;
  }

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

  .page-hero .container {
    padding: 54px 0;
  }

  .player-button {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }

  .story-card {
    padding: 22px;
  }
}
