
:root {
  --bg: #0f1117;
  --bg-soft: #171a23;
  --bg-card: rgba(255, 255, 255, 0.08);
  --text: #f8fafc;
  --muted: #b8c0cc;
  --line: rgba(255, 255, 255, 0.12);
  --brand: #f59e0b;
  --brand-2: #f97316;
  --brand-3: #ef4444;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 32rem),
    radial-gradient(circle at 80% 0, rgba(239, 68, 68, 0.14), transparent 28rem),
    linear-gradient(135deg, #090a0f 0%, #141722 48%, #0b0c12 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 85%);
  z-index: 0;
}

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

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

.wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 10, 15, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

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

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #1f1300;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--muted);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 4px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(18, 20, 28, 0.96);
}

.hero-section {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity 0.7s ease, transform 1s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-background,
.detail-bg {
  position: absolute;
  inset: 0;
}

.hero-background img,
.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(7px) saturate(1.25);
  transform: scale(1.08);
  opacity: 0.45;
}

.hero-background::after,
.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8, 9, 14, 0.96), rgba(8, 9, 14, 0.58), rgba(8, 9, 14, 0.92));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 40%, rgba(245, 158, 11, 0.3), transparent 28rem),
    radial-gradient(circle at 78% 24%, rgba(239, 68, 68, 0.24), transparent 24rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.55fr);
  align-items: center;
  gap: 54px;
  padding: 70px 0;
}

.hero-copy {
  max-width: 760px;
}

.hero-label,
.detail-label,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.sub-hero h1,
.detail-copy h1 {
  margin: 18px 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-copy p,
.sub-hero p,
.detail-copy p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #ffe3b0;
  background: rgba(255, 255, 255, 0.08);
}

.tag-row.large span {
  min-height: 34px;
}

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

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

.primary-button,
.small-button {
  color: #1d1300;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 16px 35px rgba(245, 158, 11, 0.28);
}

.ghost-button,
.more-link {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.more-link.light {
  color: #fff;
}

.primary-button:hover,
.ghost-button:hover,
.small-button:hover,
.more-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.26), rgba(239, 68, 68, 0.18)),
    var(--bg-soft);
  box-shadow: var(--shadow);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 32px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 36px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.hero-dot.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: -44px;
}

.quick-stats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 96px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 23, 32, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-stats strong {
  font-size: 32px;
  color: #fbbf24;
}

.quick-stats span {
  color: var(--muted);
}

.page-section {
  padding: 74px 0;
}

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

.section-heading h2 {
  margin: 8px 0 8px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

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

.category-tile,
.category-card-large {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
}

.category-tile img,
.category-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile::after,
.category-card-large::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18));
}

.category-tile > div,
.category-card-large > div:not(.category-cover) {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.category-tile:hover img,
.category-card-large:hover img {
  opacity: 0.5;
  transform: scale(1.06);
}

.category-tile span,
.category-card-large span {
  color: #fbbf24;
  font-size: 13px;
  font-weight: 800;
}

.category-tile h3,
.category-card-large h2 {
  margin: 10px 0 8px;
  font-size: 24px;
}

.category-tile p,
.category-card-large p {
  color: var(--muted);
  line-height: 1.6;
}

.category-card-large {
  min-height: 280px;
}

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

.filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.sticky-filter {
  position: sticky;
  top: 86px;
  z-index: 9;
  backdrop-filter: blur(16px);
}

.filter-input {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 16px;
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.filter-input:focus {
  border-color: rgba(245, 158, 11, 0.68);
}

.filter-count {
  white-space: nowrap;
  color: #fbbf24;
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(255, 255, 255, 0.1);
}

.poster-frame,
.rank-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.42), transparent 16rem),
    linear-gradient(135deg, #27212a, #0e111a 55%, #2a1608);
}

.poster-frame img,
.rank-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-text {
  position: absolute;
  inset: auto 14px 16px;
  z-index: 1;
  display: none;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.poster-fallback .poster-text {
  display: block;
}

.rating-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #1d1300;
  background: #fbbf24;
  font-size: 12px;
  font-weight: 900;
}

.play-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.36);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.movie-card-body {
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta,
.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
}

.movie-meta span,
.detail-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 58px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card-small .movie-card-body p {
  display: none;
}

.card-small .movie-title {
  min-height: 44px;
}

.sub-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 76px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 16% 24%, rgba(245, 158, 11, 0.22), transparent 24rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent);
}

.sub-hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  right: 6%;
  top: -110px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.2);
  filter: blur(70px);
}

.sub-hero h1 {
  margin: 14px 0;
  font-size: clamp(40px, 6vw, 74px);
}

.highlight-band {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.1));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 76px 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px 16px 12px 12px;
}

.rank-number {
  color: #fbbf24;
  font-size: 26px;
  font-weight: 950;
  text-align: center;
}

.rank-poster {
  width: 76px;
  border-radius: 14px;
}

.rank-copy a {
  font-size: 18px;
  font-weight: 900;
}

.rank-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  padding: 70px 0 80px;
}

.detail-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 14%, rgba(245, 158, 11, 0.26), transparent 26rem),
    linear-gradient(to bottom, rgba(9, 10, 15, 0.74), var(--bg));
}

.detail-hero-inner {
  padding-top: 20px;
}

.breadcrumb,
.breadcrumb-sep,
.detail-hero-inner > span:last-of-type {
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb:hover {
  color: #fbbf24;
}

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

.detail-poster {
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  font-size: clamp(42px, 6vw, 78px);
}

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

.story-card,
.info-card,
.player-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.18);
}

.story-card {
  padding: 28px;
}

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

.story-card p {
  margin: 0 0 16px;
  color: #d8dee8;
  line-height: 1.9;
}

.info-card {
  position: sticky;
  top: 94px;
  padding: 24px;
}

.info-card dl {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}

.info-card dt {
  color: var(--muted);
}

.info-card dd {
  margin: 0;
  color: var(--text);
}

.info-card a {
  color: #fbbf24;
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  padding: 48px 0 28px;
  border-top: 1px solid var(--line);
  background: rgba(6, 7, 11, 0.8);
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
}

.footer-inner p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 13px;
}

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

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

  .hero-poster {
    display: none;
  }
}

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

  .mobile-menu-button {
    display: block;
  }

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

  .quick-stats,
  .category-grid,
  .category-overview-grid,
  .footer-inner,
  .detail-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

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

  .rank-item {
    grid-template-columns: 50px 72px minmax(0, 1fr);
  }

  .rank-item .small-button {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .info-card {
    position: static;
  }
}

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

  .site-logo {
    font-size: 17px;
  }

  .hero-section,
  .hero-content {
    min-height: 590px;
  }

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

  .hero-copy p,
  .sub-hero p,
  .detail-copy p {
    font-size: 16px;
  }

  .page-section {
    padding: 52px 0;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .movie-grid,
  .movie-row {
    gap: 12px;
  }

  .movie-card-body {
    padding: 12px;
  }

  .movie-card-body p,
  .tag-row {
    display: none;
  }
}
