:root {
  --blue-900: #0f2d63;
  --blue-800: #16408a;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --yellow-400: #facc15;
  --amber-500: #f59e0b;
  --orange-500: #f97316;
  --green-500: #22c55e;
  --emerald-500: #10b981;
  --red-500: #ef4444;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  --soft-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-800);
  background: var(--slate-50);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--white);
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--blue-700);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

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

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

.nav-link {
  position: relative;
  font-weight: 600;
  opacity: 0.94;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--yellow-400);
  opacity: 1;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: var(--yellow-400);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--white);
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 10px 16px 16px;
}

.mobile-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.mobile-nav.open {
  display: block;
}

.hero-wrap {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(110deg, var(--blue-900), var(--blue-700) 52%, var(--cyan-500));
}

.hero-wrap::before {
  content: "";
  position: absolute;
  inset: -120px -80px auto auto;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.28);
  filter: blur(18px);
}

.hero-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 78px;
  background: linear-gradient(0deg, var(--slate-50), rgba(248, 250, 252, 0));
}

.hero-container {
  position: relative;
  min-height: 560px;
  padding: 64px 0 92px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
  align-items: center;
  gap: 58px;
  min-height: 420px;
}

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

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-900);
  background: var(--yellow-400);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 800;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 710px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-tags,
.detail-meta,
.card-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

.hero-tags span,
.detail-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

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

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

.primary-button {
  color: var(--blue-900);
  background: var(--yellow-400);
  box-shadow: 0 15px 28px rgba(250, 204, 21, 0.24);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

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

.hero-poster {
  position: relative;
  z-index: 2;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.36);
  transform: rotate(1deg);
}

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

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-play,
.poster-play,
.play-hover {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--blue-700);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--soft-shadow);
}

.hero-play {
  left: 50%;
  top: 50%;
  width: 74px;
  height: 74px;
  transform: translate(-50%, -50%);
  font-size: 30px;
}

.hero-controls {
  position: absolute;
  left: 0;
  bottom: 42px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 58px;
  background: var(--yellow-400);
}

.section-block {
  padding: 58px 0;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--slate-500);
}

.section-bar {
  width: 5px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue-600), var(--cyan-500));
}

.section-heading.orange .section-bar {
  background: linear-gradient(180deg, var(--orange-500), var(--red-500));
}

.section-heading.green .section-bar {
  background: linear-gradient(180deg, var(--green-500), var(--emerald-500));
}

.section-heading.amber .section-bar {
  background: linear-gradient(180deg, var(--amber-500), var(--yellow-400));
}

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

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

.poster-card,
.category-panel,
.category-overview-card,
.content-card,
.side-card,
.player-card,
.rank-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--slate-200);
}

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.65), transparent 70%);
  transition: opacity 0.2s ease;
}

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

.poster-play {
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.poster-type {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue-600);
  font-size: 12px;
  font-weight: 800;
}

.poster-body {
  padding: 18px;
}

.poster-title,
.rank-title,
.compact-title {
  display: block;
  color: var(--slate-900);
  font-weight: 800;
  transition: color 0.2s ease;
}

.poster-title {
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poster-title:hover,
.rank-title:hover,
.compact-title:hover {
  color: var(--blue-600);
}

.poster-body p,
.rank-body p,
.compact-body p {
  margin: 8px 0 12px;
  color: var(--slate-600);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  color: var(--slate-500);
  font-size: 13px;
}

.card-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--slate-400);
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--blue-700);
  background: #dbeafe;
  font-size: 12px;
  font-weight: 700;
}

.soft-section {
  background: linear-gradient(90deg, #eff6ff, #ecfeff);
}

.green-section {
  background: linear-gradient(90deg, #f0fdf4, #ecfdf5);
}

.amber-section {
  background: linear-gradient(90deg, #fffbeb, #fefce8);
}

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

.compact-grid,
.side-related {
  display: grid;
  gap: 12px;
}

.compact-card {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 10px;
  background: var(--white);
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  background: var(--slate-50);
  transform: translateX(2px);
}

.compact-cover {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: var(--slate-200);
}

.compact-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.play-hover {
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}

.compact-card:hover .play-hover {
  opacity: 1;
}

.compact-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-panel {
  padding: 22px;
}

.category-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.category-panel-head h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--blue-700);
  font-size: 22px;
}

.category-panel-head h3 span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--blue-700);
  background: #dbeafe;
}

.category-panel-head a {
  color: var(--blue-600);
  font-size: 14px;
  font-weight: 800;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(115deg, var(--blue-900), var(--blue-700), var(--cyan-500));
}

.slim-hero,
.category-hero {
  padding: 74px 0 68px;
}

.ranking-hero {
  background: linear-gradient(115deg, #7c2d12, var(--orange-500), var(--yellow-400));
}

.page-hero .eyebrow {
  color: var(--blue-900);
}

.search-panel {
  display: flex;
  width: min(720px, 100%);
  margin-top: 26px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.search-panel input {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  outline: 0;
  color: var(--slate-900);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  padding: 24px;
}

.category-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  font-size: 32px;
  font-weight: 900;
}

.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-overview-card p {
  margin: 0 0 14px;
  color: var(--slate-600);
}

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

.sample-links a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--blue-700);
  background: #dbeafe;
  font-size: 13px;
  font-weight: 700;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
}

.rank-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--slate-200);
}

.rank-cover img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
}

.rank-number {
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--red-500));
  font-weight: 900;
  box-shadow: var(--soft-shadow);
}

.rank-body {
  padding: 20px 22px 20px 0;
}

.rank-title {
  font-size: 22px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  color: var(--white);
  background: var(--slate-950);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(12px);
  transform: scale(1.08);
  opacity: 0.42;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.68));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 310px 1fr;
  align-items: center;
  gap: 46px;
  padding: 70px 0;
}

.detail-poster {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

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

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

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

.detail-meta {
  margin-top: 24px;
}

.detail-tags span {
  color: var(--blue-900);
  background: var(--yellow-400);
}

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

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
}

.player-card {
  padding: 16px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.22));
  cursor: pointer;
}

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

.player-button-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  color: var(--blue-700);
  background: var(--white);
  font-size: 34px;
  box-shadow: var(--shadow);
}

.player-overlay strong {
  font-size: 20px;
}

.content-card,
.side-card {
  padding: 24px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: var(--slate-900);
  font-size: 22px;
}

.content-card p {
  margin: 0;
  color: var(--slate-700);
  font-size: 16px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px 14px;
  margin: 0;
}

.side-card dt {
  color: var(--slate-500);
  font-weight: 700;
}

.side-card dd {
  margin: 0;
  color: var(--slate-900);
  font-weight: 700;
}

.side-tags {
  margin-top: 20px;
}

.site-footer {
  color: var(--slate-300);
  background: var(--slate-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 54px 0;
}

.footer-brand {
  color: var(--white);
  font-size: 22px;
}

.site-footer p {
  color: var(--slate-400);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li,
.site-footer a {
  color: var(--slate-400);
  line-height: 2;
}

.site-footer a:hover {
  color: var(--cyan-400);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 20px 16px;
  color: var(--slate-500);
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

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

@media (max-width: 1024px) {
  .poster-grid,
  .compact-list-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-slide,
  .detail-hero-inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 560px;
    transform: none;
  }

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

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

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

  .mobile-toggle {
    display: block;
  }

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

  .hero-container {
    padding: 42px 0 78px;
  }

  .hero-slide {
    gap: 28px;
  }

  .hero-controls {
    left: 50%;
    transform: translateX(-50%);
  }

  .poster-grid,
  .compact-list-grid,
  .category-panels,
  .category-overview-grid,
  .three-grid {
    grid-template-columns: 1fr;
  }

  .compact-card {
    grid-template-columns: 104px 1fr;
  }

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

  .rank-body {
    padding: 18px;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

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

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 32px;
  }

  .section-block {
    padding: 42px 0;
  }

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