:root {
  --bg: #fffdf8;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --text: #111827;
  --muted: #6b7280;
  --line: #f3e8ff;
  --pink: #ec4899;
  --pink-dark: #db2777;
  --yellow: #f59e0b;
  --yellow-light: #fef3c7;
  --green: #22c55e;
  --green-soft: #dcfce7;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
  --soft-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(244, 114, 182, 0.12);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
  backdrop-filter: blur(16px);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #facc15 0%, #fb7185 48%, #4ade80 100%);
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.28);
}

.logo-name {
  font-size: 21px;
  background: linear-gradient(90deg, #ca8a04, #ec4899, #16a34a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  position: relative;
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--pink-dark);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow), var(--pink), var(--green));
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 14px;
  background: #f9fafb;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
}

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

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

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f9fafb;
}

.hero-section {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: radial-gradient(circle at 15% 20%, rgba(250, 204, 21, 0.38), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(236, 72, 153, 0.28), transparent 30%),
    linear-gradient(135deg, #fef3c7 0%, #fce7f3 48%, #dcfce7 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.26;
  background-image: linear-gradient(rgba(255,255,255,0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.8) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-carousel {
  width: 100%;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.72fr);
  align-items: center;
  gap: 48px;
}

.hero-slide.active {
  display: grid;
  animation: heroFade 0.55s ease both;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--pink-dark);
  background: rgba(252, 231, 243, 0.84);
  font-size: 14px;
  font-weight: 800;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 20px 0 22px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 24px;
  color: #374151;
  font-size: 19px;
}

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

.hero-tags span,
.tag-list span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  border-radius: 999px;
  color: #be185d;
  background: #fce7f3;
  font-size: 13px;
  font-weight: 700;
}

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

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

.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, #ec4899, #f59e0b);
  box-shadow: 0 14px 34px rgba(236, 72, 153, 0.24);
}

.ghost-button,
.section-more {
  color: #111827;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--soft-shadow);
}

.primary-button.small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.hero-art {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 12px solid rgba(255, 255, 255, 0.68);
  border-radius: 34px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  isolation: isolate;
}

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

.hero-art img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.hero-art span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(236, 72, 153, 0.92);
  font-weight: 900;
}

.hero-nav {
  position: absolute;
  left: 0;
  bottom: 54px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.22);
}

.hero-dot.active {
  width: 36px;
  background: linear-gradient(90deg, var(--pink), var(--yellow));
}

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

.page-main {
  min-height: 70vh;
}

.page-hero {
  padding: 72px 0 28px;
}

.page-hero.compact {
  padding-bottom: 10px;
}

.page-hero h1,
.section-heading h2,
.rank-panel h2,
.detail-main h1 {
  margin: 16px 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.page-hero p,
.section-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(236, 72, 153, 0.1);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(236, 72, 153, 0.28);
  box-shadow: var(--soft-shadow);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fce7f3, #dcfce7);
}

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

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

.movie-badge,
.movie-rating {
  position: absolute;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.movie-badge {
  left: 12px;
  top: 12px;
  background: rgba(17, 24, 39, 0.68);
  backdrop-filter: blur(10px);
}

.movie-rating {
  right: 12px;
  bottom: 12px;
  background: linear-gradient(90deg, #f59e0b, #ec4899);
}

.movie-body {
  padding: 17px;
}

.movie-title {
  display: block;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-title:hover {
  color: var(--pink-dark);
}

.movie-meta,
.movie-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.movie-desc {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-list {
  margin-top: 13px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

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

.category-tile {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #111827;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.1);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  opacity: 0.68;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.category-tile:hover img {
  transform: scale(1.05);
  opacity: 0.82;
}

.category-tile span {
  position: absolute;
  inset: auto 16px 16px 16px;
  color: #ffffff;
}

.category-tile strong {
  display: block;
  font-size: 21px;
}

.category-tile em {
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
}

.rank-panel,
.side-card,
.prose-card,
.filter-panel,
.ranking-table {
  border: 1px solid rgba(236, 72, 153, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 26px;
}

.rank-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
}

.rank-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: #f9fafb;
}

.rank-row:hover {
  background: #fce7f3;
}

.rank-row b {
  color: var(--pink);
}

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

.rank-row em {
  color: #ca8a04;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
}

.search-box,
.select-box {
  display: grid;
  gap: 7px;
  color: #374151;
  font-size: 14px;
  font-weight: 800;
}

.search-box input,
.select-box select {
  width: 100%;
  height: 46px;
  border: 1px solid #f3d4e5;
  border-radius: 16px;
  outline: 0;
  padding: 0 14px;
  color: #111827;
  background: #ffffff;
}

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

.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
}

.filter-chip {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: #374151;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

.filter-chip.active,
.filter-chip:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--yellow));
}

.empty-result {
  margin: 24px 0;
  padding: 28px;
  border-radius: var(--radius-md);
  color: var(--muted);
  background: #ffffff;
  text-align: center;
}

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

.category-overview-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(236, 72, 153, 0.1);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #fef3c7, #fce7f3, #dcfce7);
}

.category-overview-card span {
  color: var(--pink-dark);
  font-size: 13px;
  font-weight: 900;
}

.category-overview-card h2 {
  margin: 6px 0;
  font-size: 26px;
}

.category-overview-card p {
  margin: 0;
  color: var(--muted);
}

.ranking-table {
  overflow: hidden;
}

.ranking-line {
  display: grid;
  grid-template-columns: 68px 64px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #f3f4f6;
}

.ranking-line:last-child {
  border-bottom: 0;
}

.ranking-line:hover {
  background: #fff7ed;
}

.ranking-line b {
  color: var(--pink-dark);
  font-size: 19px;
}

.ranking-line img {
  width: 64px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #fef3c7, #fce7f3, #dcfce7);
}

.ranking-line strong {
  display: block;
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-line em {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-line i {
  color: #ca8a04;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 28px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-shell {
  overflow: hidden;
  border-radius: 34px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.player-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050505;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background: #050505;
  cursor: pointer;
}

.player-cover.is-hidden {
  display: none;
}

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

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.72));
}

.play-orb {
  position: relative;
  z-index: 2;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--yellow));
  box-shadow: 0 22px 60px rgba(236, 72, 153, 0.42);
  font-size: 36px;
  line-height: 1;
  transition: transform 0.22s ease;
}

.player-cover:hover .play-orb {
  transform: scale(1.08);
}

.player-cover strong {
  position: relative;
  z-index: 2;
  margin-top: 128px;
  font-size: 22px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  padding: 34px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.detail-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  color: #374151;
  background: #f9fafb;
  font-size: 14px;
  font-weight: 800;
}

.one-line {
  margin: 0 0 18px;
  color: #374151;
  font-size: 18px;
  font-weight: 700;
}

.detail-tags {
  margin-bottom: 24px;
}

.prose-card {
  padding: 24px;
  margin-top: 18px;
}

.prose-card h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

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

.detail-side {
  display: grid;
  gap: 20px;
  align-content: start;
}

.side-poster {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fef3c7, #fce7f3, #dcfce7);
  box-shadow: var(--soft-shadow);
}

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

.side-card {
  padding: 20px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: #f9fafb;
}

.related-card:hover {
  background: #fce7f3;
}

.related-card img {
  width: 62px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #fef3c7, #fce7f3, #dcfce7);
}

.related-card strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-card em {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.site-footer {
  margin-top: 72px;
  padding: 42px 0;
  color: #4b5563;
  background: #111827;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo .logo-name {
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.site-footer p {
  max-width: 560px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

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

[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .rank-panel {
    position: static;
  }

  .detail-side {
    grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  }
}

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

  .menu-toggle {
    display: flex;
  }

  .hero-section,
  .hero-shell {
    min-height: auto;
  }

  .hero-shell {
    padding: 58px 0 88px;
  }

  .hero-slide,
  .hero-slide.active {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-art {
    min-height: 320px;
    transform: none;
  }

  .hero-art img {
    height: 320px;
  }

  .hero-nav {
    bottom: 34px;
  }

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

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

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

  .ranking-line {
    grid-template-columns: 44px 54px minmax(0, 1fr) 50px;
    gap: 10px;
    padding: 12px;
  }

  .ranking-line img {
    width: 54px;
    height: 72px;
  }

  .detail-content {
    padding: 22px;
  }

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

  .side-poster {
    max-width: 300px;
  }
}

@media (max-width: 560px) {
  .container,
  .header-inner,
  .mobile-nav,
  .hero-shell {
    width: min(100% - 22px, 1180px);
  }

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

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

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

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

  .page-hero {
    padding-top: 46px;
  }

  .ranking-line strong,
  .ranking-line em {
    white-space: normal;
  }

  .player-cover strong {
    font-size: 18px;
  }

  .play-orb {
    width: 76px;
    height: 76px;
  }
}
