* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #020617;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #e5e7eb;
  background:
    radial-gradient(circle at 18% 8%, rgba(245, 158, 11, 0.16), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(14, 165, 233, 0.10), transparent 25rem),
    linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(18px);
  background: rgba(2, 6, 23, 0.78);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo,
.footer-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: 16px;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 14px 32px rgba(249, 115, 22, 0.28);
}

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

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link {
  padding: 9px 14px;
  font-size: 15px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #f8fafc;
  background: rgba(245, 158, 11, 0.14);
}

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

.header-search {
  margin-left: auto;
  width: min(360px, 32vw);
}

.header-search input,
.mobile-search input,
.filter-input-wrap input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  outline: none;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.78);
  border-radius: 999px;
}

.header-search input,
.mobile-search input {
  height: 42px;
  padding: 0 16px;
}

.header-search button,
.mobile-search button,
.hero-action,
.section-action,
.small-play,
.filter-chips button,
.player-overlay,
.detail-play {
  border: 0;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.header-search button,
.mobile-search button {
  height: 42px;
  padding: 0 16px;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-action:hover,
.section-action:hover,
.small-play:hover,
.filter-chips button:hover,
.detail-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(249, 115, 22, 0.30);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #f8fafc;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 12px 24px 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.96);
}

.mobile-link {
  display: block;
  padding: 12px 14px;
}

.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px 72px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: #0f172a;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.42);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 600ms ease, transform 800ms ease;
}

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

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

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.98) 0%, transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  max-width: 720px;
  padding: 78px 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.22);
  font-size: 13px;
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
  margin: 18px 0 16px;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 950;
}

.hero p,
.page-hero p,
.detail-title p {
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.8;
}

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

.hero-meta span,
.detail-meta span,
.card-meta-line span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.70);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.hero-action,
.section-action,
.detail-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
}

.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.20);
}

.hero-poster-stack {
  position: absolute;
  right: 54px;
  bottom: 44px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 120px);
  gap: 14px;
}

.hero-mini-card {
  position: relative;
  overflow: hidden;
  height: 172px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.42);
  transform: translateY(0);
  transition: transform 180ms ease;
}

.hero-mini-card:hover {
  transform: translateY(-6px);
}

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

.hero-mini-card span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-dots {
  position: absolute;
  left: 54px;
  bottom: 34px;
  z-index: 4;
  display: flex;
  gap: 9px;
}

.hero-dots button {
  width: 28px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.30);
}

.hero-dots button.is-active {
  background: #f59e0b;
}

.section {
  margin-top: 54px;
}

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

.section-header h2,
.category-card h2,
.detail-section h2 {
  color: #fff;
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 950;
}

.section-header p,
.category-card p,
.empty-result {
  color: #94a3b8;
  line-height: 1.75;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.20);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.46);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.30);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

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

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

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

.poster-year {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
}

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

.movie-meta-small {
  color: #fbbf24;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 7px;
}

.movie-card h3 {
  margin: 0 0 8px;
  color: #f8fafc;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card p {
  min-height: 54px;
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.55;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-list span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.12);
  font-size: 12px;
}

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

.category-tile,
.category-card,
.page-hero,
.detail-card,
.filter-panel {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.74);
  border-radius: 26px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 180ms ease, border-color 180ms ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.44);
}

.category-tile strong {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 25px;
  letter-spacing: -0.025em;
}

.category-tile p {
  position: relative;
  z-index: 2;
  margin: 12px 0 0;
  color: #cbd5e1;
  line-height: 1.65;
}

.category-glow {
  position: absolute;
  width: 190px;
  height: 190px;
  right: -70px;
  top: -70px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.32), transparent 66%);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 46px;
}

.page-hero:before {
  content: "";
  position: absolute;
  inset: -50% 50% auto auto;
  width: 440px;
  height: 440px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22), transparent 68%);
}

.page-hero > * {
  position: relative;
  z-index: 2;
}

.filter-panel {
  padding: 18px;
  margin: 28px 0;
}

.filter-input-wrap input {
  height: 52px;
  padding: 0 18px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.filter-chips button {
  min-height: 34px;
  padding: 0 13px;
  font-size: 13px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 70px 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.70);
}

.rank-num {
  color: #f59e0b;
  font-size: 26px;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.rank-cover {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  background: #111827;
}

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

.rank-info h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 18px;
}

.rank-info p {
  margin: 0 0 8px;
  color: #94a3b8;
  line-height: 1.55;
}

.rank-meta {
  color: #fbbf24;
  font-size: 13px;
  font-weight: 800;
}

.small-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: #0f172a;
}

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

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

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  padding: 46px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.42);
  background: #111827;
}

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

.detail-title h1 {
  font-size: clamp(34px, 5vw, 66px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 14px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fbbf24;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.player-section {
  margin-top: 30px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #000;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 0;
  color: #fff;
  background:
    linear-gradient(0deg, rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.30)),
    rgba(2, 6, 23, 0.24);
  box-shadow: none;
}

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

.play-circle {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  font-size: 28px;
  box-shadow: 0 22px 46px rgba(249, 115, 22, 0.32);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  margin-top: 34px;
}

.detail-card {
  padding: 28px;
}

.detail-card p {
  color: #cbd5e1;
  line-height: 1.88;
  margin: 12px 0 0;
}

.detail-data {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.detail-data div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  color: #cbd5e1;
}

.detail-data strong {
  color: #fbbf24;
}

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

.search-summary {
  color: #94a3b8;
  margin-top: 10px;
}

.empty-result {
  display: none;
  padding: 28px;
  text-align: center;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.68);
}

.empty-result.is-visible {
  display: block;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.76);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px;
  display: grid;
  gap: 12px;
  color: #94a3b8;
}

.footer-logo {
  color: #fff;
}

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

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

.copyright {
  font-size: 13px;
  color: #64748b;
}

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

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

  .hero-poster-stack {
    display: none;
  }
}

@media (max-width: 880px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

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

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

  .page-main {
    padding: 24px 16px 58px;
  }

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

  .hero-content,
  .page-hero,
  .detail-layout {
    padding: 32px 22px;
  }

  .hero-dots {
    left: 22px;
    bottom: 20px;
  }

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

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

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

  .detail-poster {
    max-width: 260px;
  }

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

  .rank-item .small-play {
    grid-column: 2 / -1;
    width: max-content;
  }
}

@media (max-width: 560px) {
  .header-inner {
    min-height: 64px;
    padding: 0 16px;
  }

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

  .logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .hero h1,
  .page-hero h1,
  .detail-title h1 {
    font-size: 34px;
  }

  .hero p,
  .page-hero p,
  .detail-title p {
    font-size: 15px;
  }

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

  .section-header {
    display: grid;
  }

  .rank-item {
    grid-template-columns: 42px 62px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-info p {
    display: none;
  }
}

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

.category-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 18px;
  padding: 24px;
}

.category-card-content {
  display: grid;
  align-content: start;
  gap: 12px;
}

.category-card-content .section-action {
  width: max-content;
}

.category-samples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-content: center;
}

.category-samples a {
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
  aspect-ratio: 2 / 3;
}

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

@media (max-width: 880px) {
  .category-overview,
  .category-card {
    grid-template-columns: 1fr;
  }

  .category-samples {
    max-width: 260px;
  }
}
