* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #f8fafc;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 32rem), radial-gradient(circle at 80% 0%, rgba(59, 130, 246, 0.24), transparent 34rem), linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.9), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b, #f97316);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.48);
}

.brand-name {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fde68a, #fbbf24, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 9px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.72) 45%, rgba(2, 6, 23, 0.35) 100%), linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.08) 45%, rgba(2, 6, 23, 0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(880px, calc(100% - 48px));
  margin-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  padding-top: 32px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #fbbf24;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.inner-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  background: linear-gradient(90deg, #fff7ed, #fbbf24, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h2 {
  margin: 22px 0 14px;
  font-size: clamp(1.7rem, 3.4vw, 3.25rem);
  line-height: 1.12;
}

.hero p,
.inner-hero p,
.detail-one-line {
  max-width: 760px;
  color: #cbd5e1;
  font-size: 1.08rem;
  line-height: 1.9;
}

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

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

.primary-btn {
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b, #f97316);
  box-shadow: 0 16px 38px rgba(245, 158, 11, 0.35);
}

.ghost-btn {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.primary-btn.narrow {
  margin-top: 22px;
}

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

.hero-dot {
  width: 38px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.active {
  background: #fbbf24;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.65);
}

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

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

.section-heading.left {
  display: block;
}

.section-heading h2,
.search-panel h2,
.intro-panel h2,
.copy-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.15;
}

.section-heading a {
  color: #fbbf24;
  font-weight: 700;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.4fr) 180px;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.64));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

.search-panel.compact {
  grid-template-columns: minmax(280px, 1fr) 180px;
}

.search-box {
  display: grid;
  gap: 8px;
  color: #94a3b8;
  font-size: 0.9rem;
}

.search-box input,
.search-panel select {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0 16px;
  color: #f8fafc;
  background: rgba(2, 6, 23, 0.7);
  outline: none;
}

.search-box input:focus,
.search-panel select:focus {
  border-color: rgba(251, 191, 36, 0.75);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.14);
}

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34), 0 0 38px rgba(245, 158, 11, 0.13);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #1e293b);
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent);
}

.badge {
  position: absolute;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.top-left {
  top: 12px;
  left: 12px;
}

.top-right {
  top: 12px;
  right: 12px;
}

.play-mark {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: #fbbf24;
  box-shadow: 0 0 28px rgba(251, 191, 36, 0.6);
}

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

.movie-title {
  display: block;
  margin-bottom: 8px;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.36;
}

.movie-title:hover {
  color: #fbbf24;
}

.movie-meta,
.movie-desc {
  margin: 0;
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.65;
}

.movie-desc {
  min-height: 4.4em;
  margin-top: 10px;
  color: #cbd5e1;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fde68a;
  font-size: 0.76rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.tag-row.large .tag {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.88rem;
}

.category-grid,
.collection-grid,
.top-rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.category-card,
.collection-card,
.intro-panel,
.rank-panel,
.copy-card,
.top-rank-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.72));
  box-shadow: 0 24px 75px rgba(0, 0, 0, 0.24);
}

.category-card {
  min-height: 245px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

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

.category-card:hover img {
  transform: scale(1.08);
  opacity: 0.5;
}

.category-card strong,
.category-card p {
  position: relative;
  z-index: 2;
}

.category-card strong {
  font-size: 1.5rem;
}

.category-card p {
  color: #cbd5e1;
  line-height: 1.7;
}

.category-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.12));
}

.split-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.rank-panel,
.intro-panel {
  padding: 28px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 58px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 9px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 0.25s ease, background 0.25s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: rgba(251, 191, 36, 0.14);
}

.rank-no {
  color: #fbbf24;
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-text strong,
.rank-text em {
  display: block;
}

.rank-text em {
  margin-top: 4px;
  color: #94a3b8;
  font-style: normal;
  font-size: 0.86rem;
}

.intro-panel p {
  color: #cbd5e1;
  line-height: 1.85;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.feature-pills span {
  padding: 9px 12px;
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.22);
}

.inner-hero {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 92px 0 42px;
}

.inner-hero p {
  margin-top: 18px;
}

.category-nav-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.collection-card {
  padding: 18px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: center;
}

.collection-card:hover {
  border-color: rgba(251, 191, 36, 0.45);
}

.collection-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.collection-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
}

.collection-card h2 {
  margin: 0;
}

.collection-card p:not(.eyebrow) {
  color: #cbd5e1;
  line-height: 1.75;
}

.top-rank-card {
  min-height: 360px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.top-rank-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.top-rank-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent);
}

.top-rank-card strong,
.top-rank-card p,
.rank-medal {
  position: relative;
  z-index: 2;
}

.rank-medal {
  width: max-content;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #111827;
  font-weight: 900;
  background: #fbbf24;
}

.top-rank-card strong {
  font-size: 1.7rem;
}

.top-rank-card p {
  color: #cbd5e1;
  line-height: 1.7;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  display: flex;
  align-items: center;
}

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

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.74), rgba(2, 6, 23, 0.92)), linear-gradient(0deg, #020617, transparent 48%);
}

.detail-layout {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.48);
}

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

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

.detail-meta span {
  padding: 9px 12px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.player-section {
  padding-top: 20px;
}

.player-box {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.4);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #f8fafc;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.38), rgba(2, 6, 23, 0.78));
}

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

.player-icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  font-size: 2.4rem;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 0 46px rgba(251, 191, 36, 0.56);
}

.detail-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.copy-card {
  padding: 28px;
}

.copy-card p {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.95;
}

.related-grid {
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
}

.compact-card .movie-desc {
  min-height: auto;
}

.site-footer {
  margin-top: 80px;
  padding: 58px 24px 28px;
  color: #cbd5e1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.8), #000000);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  margin-bottom: 12px;
  color: #fbbf24;
  font-size: 1.4rem;
  font-weight: 900;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #fbbf24;
  font-size: 1.05rem;
}

.footer-grid p {
  margin: 0;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 9px;
}

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

.footer-bottom {
  width: min(1280px, 100%);
  margin: 34px auto 0;
  padding-top: 22px;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.movie-card.is-hidden {
  display: none;
}

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    width: calc(100% - 36px);
    margin-left: 18px;
  }

  .search-panel,
  .search-panel.compact,
  .split-section,
  .detail-layout,
  .detail-copy,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    padding: 96px 0 40px;
  }

  .detail-poster {
    width: min(280px, 80vw);
  }

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

@media (max-width: 620px) {
  .nav-shell,
  .content-section,
  .inner-hero,
  .detail-layout {
    width: calc(100% - 32px);
    padding-left: 0;
    padding-right: 0;
  }

  .brand-name {
    font-size: 1rem;
  }

  .hero h1,
  .inner-hero h1,
  .detail-info h1 {
    font-size: 2.4rem;
  }

  .hero-actions,
  .detail-actions {
    flex-direction: column;
  }

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

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

  .movie-desc {
    display: none;
  }

  .detail-poster {
    display: none;
  }

  .player-icon {
    width: 64px;
    height: 64px;
    font-size: 1.8rem;
  }
}
